super-page-designer 2.3.0-sit9 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/design/utils/assemblys-config.js +1 -1
- package/dist/es/components/design/utils/page-table-util.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +20 -20
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +24 -24
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +55 -69
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +16 -16
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +21 -29
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +13 -13
- package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
- package/dist/es/components/design/views/design/page-event/config.vue3.js +50 -56
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design.vue.js +16 -16
- package/dist/es/style.css +9 -9
- package/package.json +5 -5
- package/dist/es/components/design/views/design/page-event/completion-data.d.ts +0 -7
- package/dist/es/components/design/views/design/page-event/completion-data.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./common-icon-bind.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = e(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = e(o, [["__scopeId", "data-v-3be9b759"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1,108 +1,94 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as o, resolveComponent as a, resolveDirective as n, createElementBlock as t, createBlock as u, openBlock as i, toDisplayString as c, withCtx as s, createVNode as
|
|
2
|
-
import { Close as k, Check as I, Search as x, Plus as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as o, resolveComponent as a, resolveDirective as n, createElementBlock as t, createBlock as u, openBlock as i, toDisplayString as c, withCtx as s, createVNode as v, withDirectives as p, unref as r, createElementVNode as m, Fragment as d, renderList as f, normalizeClass as g, vShow as b, createCommentVNode as y, createTextVNode as w, withModifiers as h, nextTick as _ } from "vue";
|
|
2
|
+
import { Close as k, Check as I, Search as x, Plus as $, InfoFilled as C, CircleClose as A } from "@element-plus/icons-vue";
|
|
3
3
|
import * as V from "@element-plus/icons";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j = ["onClick"], S = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, T = { key: 2 }, L = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, N = { class: "amb-component-popover-icon-grid" }, E = ["onClick"], q = { key: 4, style: { "text-align": "right" } }, D = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: D2 }) {
|
|
4
|
+
import O from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
const U = { key: 0 }, j = { class: "amb-component-popover-left-menu-main" }, z = ["onClick"], P = { key: 1, style: { display: "flex", gap: "10px", "align-items": "center" } }, E = { key: 2 }, S = { key: 3, class: "amb-component-popover-icon-list-scroll", style: { overflow: "auto" } }, L = { class: "amb-component-popover-icon-grid" }, T = ["onClick"], N = { key: 4, style: { "text-align": "right" } }, q = e({ __name: "common-icon-bind", props: { iconType: String, iconValue: String, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: q2 }) {
|
|
7
6
|
var _a, _b;
|
|
8
|
-
const
|
|
7
|
+
const M = q2, B = e2, R = l([]), D = l([]), F = l([]), G = l([]), H = l([{ value: "ElementUI", label: "ElementUI" }, { value: "ambIcon", label: "Amb图标库" }, { value: "ambColorIcon", label: "Amb彩色图标库", dataList: [] }, { value: "svgIcon", label: "Svg图标库" }, { value: "custom", label: "自定义" }]);
|
|
9
8
|
l(false);
|
|
10
|
-
const
|
|
9
|
+
const J = l(1), K = l(B.iconType ?? ((_b = (_a = H.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.value)), Q = l("");
|
|
11
10
|
Q.value = B.iconValue;
|
|
12
|
-
const
|
|
13
|
-
let e3 =
|
|
14
|
-
return
|
|
11
|
+
const W = l({}), X = l(""), Y = l(), Z = l(false), ee = o(() => ["ElementUI"].includes(K.value) ? R.value : ["ambIcon"].includes(K.value) ? D.value : ["ambColorIcon"].includes(K.value) ? F.value : G.value), le = o(() => {
|
|
12
|
+
let e3 = ee.value ?? [];
|
|
13
|
+
return X.value && (e3 = e3.filter((e4) => [e4.label ?? "", e4.value ?? ""].some((e5) => {
|
|
15
14
|
var _a2;
|
|
16
|
-
return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(
|
|
17
|
-
}))), e3.slice(0, 50 *
|
|
18
|
-
}),
|
|
19
|
-
|
|
15
|
+
return (_a2 = e5.toLowerCase()) == null ? void 0 : _a2.includes(X.value.toLowerCase());
|
|
16
|
+
}))), e3.slice(0, 50 * J.value);
|
|
17
|
+
}), oe = () => {
|
|
18
|
+
le.value.length > 0 && !Z.value && ee.value.length > le.value.length && !X.value && J.value++;
|
|
20
19
|
};
|
|
21
|
-
const
|
|
22
|
-
if (!(
|
|
20
|
+
const ae = async () => {
|
|
21
|
+
if (!(G.value.length > 0)) {
|
|
23
22
|
try {
|
|
24
|
-
|
|
25
|
-
const e3 = await
|
|
23
|
+
Z.value = true;
|
|
24
|
+
const e3 = await O.post(window.$vueApp.config.globalProperties.baseAPI + "/component/general-icon/query", { pageSize: 200, pageNo: 1 }), l2 = (e3 == null ? void 0 : e3.data) ?? [], o2 = [];
|
|
26
25
|
for (let e4 of l2) o2.push({ value: e4.iconName, label: e4.iconName });
|
|
27
|
-
|
|
26
|
+
W.value.customOptions = o2, G.value = o2;
|
|
28
27
|
} catch (e3) {
|
|
29
28
|
}
|
|
30
|
-
|
|
29
|
+
Z.value = false;
|
|
31
30
|
}
|
|
32
31
|
};
|
|
33
|
-
function
|
|
32
|
+
function ne(e3) {
|
|
34
33
|
var l2;
|
|
35
|
-
|
|
34
|
+
J.value = 1, K.value = e3, "ElementUI" === (l2 = K.value) ? R.value = W.value.elementUIOptions : "custom" === l2 ? ae() : ["ambIcon"].includes(l2) ? (async () => {
|
|
36
35
|
var _a2, _b2, _c;
|
|
37
|
-
if (!(
|
|
36
|
+
if (!(D.value.length > 0)) {
|
|
38
37
|
try {
|
|
39
|
-
|
|
38
|
+
Z.value = true;
|
|
40
39
|
let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
|
|
41
40
|
((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}/iconfont.json`);
|
|
42
41
|
const l3 = await fetch(e4, { mode: "cors" }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
|
|
43
|
-
|
|
42
|
+
D.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
|
|
44
43
|
} catch (e4) {
|
|
45
44
|
}
|
|
46
|
-
|
|
45
|
+
Z.value = false;
|
|
47
46
|
}
|
|
48
47
|
})() : ["ambColorIcon"].includes(l2) && async function() {
|
|
49
48
|
var _a2, _b2, _c;
|
|
50
|
-
if (!(
|
|
49
|
+
if (!(F.value.length > 0)) {
|
|
51
50
|
try {
|
|
52
|
-
|
|
51
|
+
Z.value = true;
|
|
53
52
|
let e4 = `${window.location.origin}${window.location.pathname}font-icon/iconfont.json`;
|
|
54
53
|
((_c = (_b2 = (_a2 = window.$vueApp) == null ? void 0 : _a2.config) == null ? void 0 : _b2.globalProperties) == null ? void 0 : _c.fontIconAddress) && (e4 = `${window.$vueApp.config.globalProperties.fontIconAddress}-color/iconfont.json`);
|
|
55
54
|
const l3 = await fetch(e4, { mode: "cors", headers: { "Content-Type": "application/json" } }).then((e5) => e5.json()), { css_prefix_text: o2, glyphs: a2 = [] } = l3 ?? {};
|
|
56
|
-
|
|
55
|
+
F.value = a2.map((e5) => ({ label: e5.name, value: `${o2}${e5.font_class}` }));
|
|
57
56
|
} catch (e4) {
|
|
58
57
|
}
|
|
59
|
-
|
|
58
|
+
Z.value = false;
|
|
60
59
|
}
|
|
61
60
|
}();
|
|
62
61
|
}
|
|
63
|
-
function
|
|
62
|
+
function te() {
|
|
64
63
|
var _a2, _b2;
|
|
65
|
-
(_b2 = (_a2 =
|
|
64
|
+
(_b2 = (_a2 = Y.value) == null ? void 0 : _a2.hide) == null ? void 0 : _b2.call(_a2);
|
|
66
65
|
}
|
|
67
|
-
function
|
|
68
|
-
Q.value = "",
|
|
66
|
+
function ue() {
|
|
67
|
+
Q.value = "", M("update:modelValue", "", ""), Y.value.hide();
|
|
69
68
|
}
|
|
70
|
-
function
|
|
71
|
-
if (
|
|
72
|
-
const e3 =
|
|
69
|
+
function ie() {
|
|
70
|
+
if (X.value = X.value.trim(), !X.value) return void ElMessage.warning("请输入图标名!");
|
|
71
|
+
const e3 = W.value.customOptions || [];
|
|
73
72
|
let l2 = false;
|
|
74
|
-
for (let
|
|
73
|
+
for (let o3 of e3) if (o3.value === X.value) {
|
|
75
74
|
l2 = true;
|
|
76
75
|
break;
|
|
77
76
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const e4 =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
z.warning("保存图标失败!");
|
|
88
|
-
});
|
|
89
|
-
}
|
|
77
|
+
K.value = "custom", Q.value = X.value;
|
|
78
|
+
const o2 = X.value;
|
|
79
|
+
if (X.value = "", M("update:modelValue", K.value, Q.value), Y.value.hide(), !l2) {
|
|
80
|
+
const e4 = { iconName: o2 };
|
|
81
|
+
O.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", e4).then((e5) => {
|
|
82
|
+
"custom" == K.value && ae();
|
|
83
|
+
}).catch((e5) => {
|
|
84
|
+
ElMessage.warning("保存图标失败!");
|
|
85
|
+
});
|
|
90
86
|
}
|
|
91
87
|
}
|
|
92
|
-
function
|
|
93
|
-
const l2 = e3.target.files[0];
|
|
94
|
-
if (!l2) return;
|
|
95
|
-
const o2 = new FormData();
|
|
96
|
-
o2.append("file", l2), o2.append("iconName", Y.value.trim()), P.post(window.$vueApp.config.globalProperties.baseAPI + "/bs/general-icon/upload-icon", o2, { headers: { "Content-Type": "multipart/form-data" } }).then((e4) => {
|
|
97
|
-
ee.value.value = "", z.success("上传成功!"), H.value.unshift({ value: Y.value.trim(), label: Y.value.trim() }), Y.value = "";
|
|
98
|
-
}).catch((e4) => {
|
|
99
|
-
z.warning("保存图标失败!");
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function ve() {
|
|
88
|
+
function ce() {
|
|
103
89
|
_(() => {
|
|
104
90
|
!function() {
|
|
105
|
-
if (!
|
|
91
|
+
if (!W.value.elementUIOptions) {
|
|
106
92
|
if (!window.temp_Icon_Options) {
|
|
107
93
|
const e3 = [];
|
|
108
94
|
for (const [l2, o2] of Object.entries(V)) e3.push({ value: l2, label: l2, component: o2 });
|
|
@@ -111,19 +97,19 @@ const O = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, j =
|
|
|
111
97
|
return o2.localeCompare(a2);
|
|
112
98
|
}), window.temp_Icon_Options = e3;
|
|
113
99
|
}
|
|
114
|
-
|
|
100
|
+
W.value.elementUIOptions = window.temp_Icon_Options;
|
|
115
101
|
}
|
|
116
|
-
}(),
|
|
102
|
+
}(), ne(K.value);
|
|
117
103
|
});
|
|
118
104
|
}
|
|
119
105
|
return l(), (l2, o2) => {
|
|
120
|
-
const _2 = a("el-icon"), V2 = a("el-input"),
|
|
121
|
-
return e2.showLabel ? (i(), t("span",
|
|
122
|
-
return o3 = e3, Q.value = o3.value,
|
|
106
|
+
const _2 = a("el-icon"), V2 = a("el-input"), O2 = a("el-button"), q3 = a("el-tooltip"), B2 = a("el-scrollbar"), R2 = a("el-col"), D2 = a("el-empty"), F2 = a("el-tag"), G2 = a("SuperIcon"), J2 = a("el-row"), W2 = a("el-popover"), ae2 = n("infinite-scroll"), se = n("loading");
|
|
107
|
+
return e2.showLabel ? (i(), t("span", U, c(Q.value), 1)) : (i(), u(W2, { key: 1, ref_key: "popoverRef", ref: Y, "popper-class": "amb-component-popover-main", trigger: "click", width: 540 }, { reference: s(() => [v(V2, { readonly: "", size: e2.size, onClick: ce, modelValue: Q.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => Q.value = e3), placeholder: "请选择" }, { suffix: s(() => [p(v(_2, { style: { cursor: "pointer" }, onClick: h(ue, ["stop"]) }, { default: s(() => [v(r(A))]), _: 1 }, 512), [[b, Q.value]])]), _: 1 }, 8, ["size", "modelValue"])]), default: s(() => [v(J2, null, { default: s(() => [v(q3, { effect: "dark", content: "关闭", placement: "top-end" }, { default: s(() => [v(O2, { type: "text", class: "amb-component-popover-close-btn", icon: r(k), onClick: te }, null, 8, ["icon"])]), _: 1 }), v(R2, { span: 8 }, { default: s(() => [m("div", j, [v(B2, { "max-height": "100%" }, { default: s(() => [(i(true), t(d, null, f(H.value, (e3) => (i(), t("div", { class: g(["amb-popover-menu-item", e3.value == K.value ? "is-active" : ""]), onClick: (l3) => ne(e3.value) }, [v(_2, null, { default: s(() => [p(v(r(I), null, null, 512), [[b, e3.value == K.value]])]), _: 2 }, 1024), m("span", null, c(e3.label), 1)], 10, z))), 256))]), _: 1 })])]), _: 1 }), p((i(), u(R2, { span: 16, style: { "padding-left": "10px" }, class: "amb-component-popover-icon-list-view" }, { default: s(() => [K.value ? y("", true) : (i(), u(D2, { key: 0, description: "请选择类型", "image-size": 80 })), K.value ? (i(), t("div", P, [v(V2, { modelValue: X.value, "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => X.value = e3), placeholder: "搜索", size: "default", "prefix-icon": r(x), clearable: "", style: { flex: "1 1 auto" } }, null, 8, ["modelValue", "prefix-icon"]), ["custom"].includes(K.value) && X.value && !le.value.length ? (i(), u(q3, { key: 0, effect: "dark", content: "创建该图标", placement: "top-end" }, { default: s(() => [v(O2, { type: "primary", circle: "", icon: r($), onClick: ie }, null, 8, ["icon"])]), _: 1 })) : y("", true)])) : y("", true), ["custom"].includes(K.value) ? (i(), t("div", E, [v(_2, null, { default: s(() => [v(r(C))]), _: 1 }), o2[4] || (o2[4] = m("span", { style: { "margin-left": "5px" } }, "输入图标名后点击加号按钮添加", -1)), o2[5] || (o2[5] = w(" ")), v(q3, null, { content: s(() => o2[2] || (o2[2] = [w(" 1.支持fa图标,图标名称详见官网:https://fontawesome.com.cn/v4/icons-ui/; "), m("br", null, null, -1), w(" 2.支持svg图标,需以svg-img-开头,接svg内容,如:svg-img-xxxxxx. ")])), default: s(() => [v(F2, { type: "primary" }, { default: s(() => o2[3] || (o2[3] = [w("更多")])), _: 1 })]), _: 1 })])) : y("", true), K.value ? p((i(), t("div", S, [le.value.length || Z.value ? y("", true) : (i(), u(D2, { key: 0, description: "没有相关图标", "image-size": 80 })), m("div", L, [(i(true), t(d, null, f(le.value, (e3) => (i(), u(q3, { key: e3.value, effect: "dark", content: e3.label, placement: "top" }, { default: s(() => [m("div", { class: "amb-component-popover-icon-grid-item", onClick: (l3) => {
|
|
108
|
+
return o3 = e3, Q.value = o3.value, M("update:modelValue", K.value, Q.value), void Y.value.hide();
|
|
123
109
|
var o3;
|
|
124
|
-
} }, [
|
|
110
|
+
} }, [v(G2, { iconType: K.value, iconValue: e3.value }, null, 8, ["iconType", "iconValue"])], 8, T)]), _: 2 }, 1032, ["content"]))), 128))])])), [[ae2, oe]]) : y("", true), K.value ? (i(), t("div", N, c(le.value.length) + " / " + c(ee.value.length), 1)) : y("", true)]), _: 1 })), [[se, Z.value]])]), _: 1 })]), _: 1 }, 512));
|
|
125
111
|
};
|
|
126
112
|
} });
|
|
127
113
|
export {
|
|
128
|
-
|
|
114
|
+
q as default
|
|
129
115
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, computed as l, resolveComponent as i, createBlock as o, openBlock as t, withCtx as n, createElementVNode as r, createVNode as s, createCommentVNode as u, withDirectives as d, renderSlot as p, createTextVNode as c, unref as g, vShow as f, createElementBlock as m, Fragment as v, renderList as y, normalizeClass as b, toDisplayString as V } from "vue";
|
|
2
|
-
import O from "../../form/common/dataorigin-input-table.
|
|
2
|
+
import O from "../../form/common/dataorigin-input-table.vue2.js";
|
|
3
3
|
import { Codemirror as _ } from "vue-codemirror";
|
|
4
4
|
import C from "../../workflow/component/combination.vue.js";
|
|
5
5
|
import S from "./return-set-table.vue.js";
|
|
@@ -11,7 +11,6 @@ import T from "../component/variate-select.vue.js";
|
|
|
11
11
|
import "@element-plus/icons";
|
|
12
12
|
import "agilebuilder-ui/src/utils/request";
|
|
13
13
|
import { queryTableFields as S, tableResetConfigIndo as H } from "../../../../utils/page-table-util.js";
|
|
14
|
-
import "element-plus";
|
|
15
14
|
/* empty css */
|
|
16
15
|
import N from "../../common/common-i18n-key-input.vue.js";
|
|
17
16
|
import j from "../../form/common/hyperlink-mult-config.vue.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as i, createElementVNode as n, createVNode as s, createCommentVNode as d, withDirectives as r, unref as m, createElementBlock as p, Fragment as c, renderList as b, createTextVNode as f, vShow as y, normalizeClass as v } from "vue";
|
|
2
|
-
import V from "./dataorigin-input-table.
|
|
2
|
+
import V from "./dataorigin-input-table.vue2.js";
|
|
3
3
|
import g from "./condition.vue.js";
|
|
4
4
|
import S from "./row-ul-li.vue.js";
|
|
5
5
|
import "uuid";
|
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
-
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
-
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
-
function y() {
|
|
6
|
-
if (_.value.length > 0) {
|
|
7
|
-
let e3 = "";
|
|
8
|
-
_.value.forEach((l2) => {
|
|
9
|
-
e3 = e3 + l2.name + ",";
|
|
10
|
-
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
-
} else b.value = false;
|
|
12
|
-
}
|
|
13
|
-
function S(e3) {
|
|
14
|
-
_.value = e3;
|
|
15
|
-
}
|
|
16
|
-
function w() {
|
|
17
|
-
b.value = true;
|
|
18
|
-
}
|
|
19
|
-
return a(() => c.modelValue, (e3) => {
|
|
20
|
-
g.value = e3;
|
|
21
|
-
}), (e3, l2) => {
|
|
22
|
-
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
-
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
-
};
|
|
25
|
-
} });
|
|
1
|
+
import t from "./dataorigin-input-table.vue2.js";
|
|
26
2
|
export {
|
|
27
|
-
|
|
3
|
+
t as default
|
|
28
4
|
};
|
package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
|
-
import t from "
|
|
1
|
+
import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
|
|
2
|
+
import { Search as p } from "@element-plus/icons-vue";
|
|
3
|
+
const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
|
|
4
|
+
const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
|
|
5
|
+
function y() {
|
|
6
|
+
if (_.value.length > 0) {
|
|
7
|
+
let e3 = "";
|
|
8
|
+
_.value.forEach((l2) => {
|
|
9
|
+
e3 = e3 + l2.name + ",";
|
|
10
|
+
}), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
|
|
11
|
+
} else b.value = false;
|
|
12
|
+
}
|
|
13
|
+
function S(e3) {
|
|
14
|
+
_.value = e3;
|
|
15
|
+
}
|
|
16
|
+
function w() {
|
|
17
|
+
b.value = true;
|
|
18
|
+
}
|
|
19
|
+
return a(() => c.modelValue, (e3) => {
|
|
20
|
+
g.value = e3;
|
|
21
|
+
}), (e3, l2) => {
|
|
22
|
+
const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
|
|
23
|
+
return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
|
|
24
|
+
};
|
|
25
|
+
} });
|
|
2
26
|
export {
|
|
3
|
-
|
|
27
|
+
v as default
|
|
4
28
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, nextTick as a, resolveComponent as i, createElementBlock as n, openBlock as t, Fragment as o, createBlock as u, createCommentVNode as g, createVNode as d, withCtx as
|
|
1
|
+
import { defineComponent as e, ref as l, nextTick as a, resolveComponent as i, createElementBlock as n, openBlock as t, Fragment as o, createBlock as u, createCommentVNode as g, createVNode as d, withCtx as r, createTextVNode as p, toDisplayString as s, renderList as m, unref as c, createElementVNode as f } from "vue";
|
|
2
2
|
import k from "./suffixmodule.vue.js";
|
|
3
3
|
import P from "./condition.vue.js";
|
|
4
4
|
import { getCustomFuncs as y } from "../../../../utils/page-event-util.js";
|
|
5
|
-
const v = { class: "dialog-footer" },
|
|
6
|
-
const
|
|
5
|
+
const v = { class: "dialog-footer" }, b = e({ __name: "hyperlink-mult-config", props: { linkPage: {}, pageDesign: {}, tableConfigure: {}, isDialog: { type: Boolean }, isButton: { type: Boolean, default: true } }, emits: ["update:linkPage"], setup(e2, { emit: b2 }) {
|
|
6
|
+
const C = l(false), _ = l({}), j = l(null), x = b2, h = e2, S = l(false);
|
|
7
7
|
if (h.linkPage) {
|
|
8
8
|
if (!Array.isArray(h.linkPage)) {
|
|
9
9
|
const e3 = JSON.parse(JSON.stringify(h.linkPage));
|
|
10
10
|
x("update:linkPage", [e3]);
|
|
11
11
|
}
|
|
12
12
|
} else x("update:linkPage", []);
|
|
13
|
-
function
|
|
13
|
+
function $() {
|
|
14
14
|
h.linkPage || x("update:linkPage", []), h.linkPage.push({ jumpConditionType: "none", conditions: [], customFunc: "", jumpPageSetting: {} });
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
_.value = e3,
|
|
16
|
+
function T(e3) {
|
|
17
|
+
_.value = e3, C.value = true;
|
|
18
18
|
}
|
|
19
19
|
function V(e3) {
|
|
20
20
|
j.value.changeTableFields(h.tableConfigure.modelFields);
|
|
@@ -25,22 +25,22 @@ const v = { class: "dialog-footer" }, C = e({ __name: "hyperlink-mult-config", p
|
|
|
25
25
|
return a(() => {
|
|
26
26
|
S.value = true;
|
|
27
27
|
}), (e3, l2) => {
|
|
28
|
-
const a2 = i("el-button"),
|
|
29
|
-
return t(), n(o, null, [S.value ? (t(), u(B, { key: 0, data: e3.linkPage, style: { width: "100%" } }, { default:
|
|
28
|
+
const a2 = i("el-button"), b3 = i("el-link"), x2 = i("el-tooltip"), F = i("el-table-column"), z = i("Plus"), U = i("el-icon"), w = i("Delete"), B = i("el-table"), N = i("el-radio"), A = i("el-radio-group"), J = i("el-form-item"), O = i("el-option"), R = i("el-select"), q = i("el-dialog");
|
|
29
|
+
return t(), n(o, null, [S.value ? (t(), u(B, { key: 0, data: e3.linkPage, style: { width: "100%" } }, { default: r(() => [d(F, { prop: "value", label: "链接页面", align: "center" }, { default: r((i2) => {
|
|
30
30
|
var _a, _b, _c, _d;
|
|
31
|
-
return [((_a = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a.jumpPageUrl) ? "page" === ((_b = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _b.linkType) ? (t(), u(
|
|
31
|
+
return [((_a = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a.jumpPageUrl) ? "page" === ((_b = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _b.linkType) ? (t(), u(b3, { key: 1, type: "primary", onClick: (e4) => T(i2.$index) }, { default: r(() => {
|
|
32
32
|
var _a2;
|
|
33
|
-
return [
|
|
34
|
-
}), _: 2 }, 1032, ["onClick"])) : "url" === ((_c = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _c.linkType) ? (t(), u(x2, { key: 2, class: "box-item", content: (_d = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _d.jumpPageUrl }, { default:
|
|
33
|
+
return [p(s((_a2 = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageName), 1)];
|
|
34
|
+
}), _: 2 }, 1032, ["onClick"])) : "url" === ((_c = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _c.linkType) ? (t(), u(x2, { key: 2, class: "box-item", content: (_d = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _d.jumpPageUrl }, { default: r(() => [d(b3, { type: "primary", onClick: (e4) => T(i2.$index) }, { default: r(() => {
|
|
35
35
|
var _a2;
|
|
36
|
-
return [
|
|
37
|
-
}), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])) : g("", true) : (t(), u(a2, { key: 0, type: "primary", onClick: (e4) =>
|
|
38
|
-
}), _: 1 }), d(F, { label: "操作", align: "center" }, { header:
|
|
36
|
+
return [p(s((_a2 = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageUrl), 1)];
|
|
37
|
+
}), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])) : g("", true) : (t(), u(a2, { key: 0, type: "primary", onClick: (e4) => T(i2.$index) }, { default: r(() => l2[5] || (l2[5] = [p(" 设置 ")])), _: 2 }, 1032, ["onClick"]))];
|
|
38
|
+
}), _: 1 }), d(F, { label: "操作", align: "center" }, { header: r(() => [d(U, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold" }, onClick: $ }, { default: r(() => [d(z)]), _: 1 })]), default: r((e4) => [d(U, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
39
39
|
return e4.row, a3 = e4.$index, void h.linkPage.splice(a3, 1);
|
|
40
40
|
var a3;
|
|
41
|
-
} }, { default:
|
|
41
|
+
} }, { default: r(() => [d(w)]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])) : g("", true), d(q, { "append-to-body": "", modelValue: C.value, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => C.value = e4), title: "链接配置", width: "500", "before-close": D, "destroy-on-close": "" }, { footer: r(() => [f("div", v, [d(a2, { type: "default", onClick: l2[2] || (l2[2] = (e4) => C.value = false) }, { default: r(() => l2[9] || (l2[9] = [p("取消")])), _: 1 }), d(a2, { type: "primary", onClick: l2[3] || (l2[3] = (e4) => C.value = false) }, { default: r(() => l2[10] || (l2[10] = [p(" 确定 ")])), _: 1 })])]), default: r(() => [d(J, { label: "跳转条件", class: "amb-design-attr-item" }, { default: r(() => [d(A, { modelValue: e3.linkPage[_.value].jumpConditionType, "onUpdate:modelValue": l2[0] || (l2[0] = (l3) => e3.linkPage[_.value].jumpConditionType = l3), onChange: V }, { default: r(() => [d(N, { value: "none", size: "small" }, { default: r(() => l2[6] || (l2[6] = [p("无")])), _: 1 }), d(N, { value: "config", size: "small" }, { default: r(() => l2[7] || (l2[7] = [p("配置条件")])), _: 1 }), d(N, { value: "customFunc", size: "small" }, { default: r(() => l2[8] || (l2[8] = [p("自定义条件")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d(J, { class: "amb-design-attr-item" }, { default: r(() => ["config" === e3.linkPage[_.value].jumpConditionType ? (t(), u(P, { key: 0, title: "跳转条件", buttonText: "设置条件", list: e3.linkPage[_.value].conditions, tableConfigure: e3.tableConfigure, ref_key: "conditionRef", ref: j }, null, 8, ["list", "tableConfigure"])) : "customFunc" === e3.linkPage[_.value].jumpConditionType ? (t(), u(R, { key: 1, modelValue: e3.linkPage[_.value].customFunc, "onUpdate:modelValue": l2[1] || (l2[1] = (l3) => e3.linkPage[_.value].customFunc = l3), clearable: "", size: "small", placeholder: "请选择" }, { default: r(() => [(t(true), n(o, null, m(c(y)(), (e4) => (t(), u(O, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])) : g("", true)]), _: 1 }), d(k, { pageDesign: e3.pageDesign, configure: e3.linkPage[_.value].jumpPageSetting, tableConfigure: e3.tableConfigure, showDisplayConditions: false, isDialog: true }, null, 8, ["pageDesign", "configure", "tableConfigure"])]), _: 1 }, 8, ["modelValue"])], 64);
|
|
42
42
|
};
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
b as default
|
|
46
46
|
};
|
|
@@ -1,45 +1,37 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as s, withDirectives as i, createCommentVNode as d, createElementVNode as r, createElementBlock as p, Fragment as n, renderList as m, unref as f, createTextVNode as c, vShow as b } from "vue";
|
|
2
2
|
import { Search as g } from "@element-plus/icons-vue";
|
|
3
3
|
import { getFormComponentOptions as V } from "../../../../utils/assemblys-config.js";
|
|
4
|
-
import { componentNameChange as
|
|
5
|
-
import
|
|
4
|
+
import { componentNameChange as _ } from "../../../../utils/form-design-util.js";
|
|
5
|
+
import v from "../../common/common-attr-size.vue.js";
|
|
6
6
|
import y from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import h from "./depttree-autoset.vue.js";
|
|
8
8
|
import { OrganizationInput as S } from "agilebuilder-ui";
|
|
9
9
|
import U from "../../common/common-function-code.vue.js";
|
|
10
10
|
import x from "../common/title-suffix.vue.js";
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
F.configure.isTable && (L.value = true);
|
|
18
|
-
const A = l(null), B = W.pageContext;
|
|
19
|
-
var E;
|
|
20
|
-
function G(e3) {
|
|
21
|
-
v(F.configure, e3, O);
|
|
11
|
+
import T from "../../common/common-i18n-key-input.vue.js";
|
|
12
|
+
const w = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { padding: "8px 0px 0px 0px" } }, j = { style: { padding: "8px 0px 0px 0px" } }, z = e({ __name: "depttree-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
|
|
13
|
+
} }, default: () => ({ props: {} }) }, emits: ["changeAssembly"], setup(e2, { emit: z2 }) {
|
|
14
|
+
const D = e2, W = l(D.configure.name), q = z2, M = l(["base"]), C = l(false);
|
|
15
|
+
function F(e3) {
|
|
16
|
+
_(D.configure, e3, q);
|
|
22
17
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
18
|
+
function L(e3, l2) {
|
|
19
|
+
D.configure.props.base.prop = e3, l2 && (D.configure.props.base.title = l2);
|
|
25
20
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
21
|
+
function O(e3) {
|
|
22
|
+
D.configure.props.base.defaultValue = e3;
|
|
28
23
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
24
|
+
function A(e3) {
|
|
25
|
+
D.configure.props.base.deptScopeField = e3;
|
|
31
26
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
27
|
+
function B(e3, l2) {
|
|
28
|
+
D.configure.props.base.deptScopeDepts = l2;
|
|
34
29
|
}
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
return (E = B.currentTableConfig) && (A.value = w(E.modelFields)), (l2, v2) => {
|
|
39
|
-
const j2 = a("el-option"), w2 = a("el-select"), D3 = a("el-form-item"), W2 = a("el-input"), F2 = a("el-radio"), O2 = a("el-radio-group"), B2 = a("el-input-number"), E2 = a("el-collapse-item"), P = a("el-checkbox"), Q = a("el-col"), R = a("el-button"), X = a("el-collapse"), Y = a("el-form");
|
|
40
|
-
return t(), o(Y, { "label-width": "80px", size: "small" }, { default: u(() => [i(X, { modelValue: q.value, "onUpdate:modelValue": v2[15] || (v2[15] = (e3) => q.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(E2, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", T, [i(D3, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [i(w2, { modelValue: M.value, "onUpdate:modelValue": v2[0] || (v2[0] = (e3) => M.value = e3), onChange: G, placeholder: "请选择" }, { default: u(() => [(t(true), p(n, null, m(f(V)(), (e3) => (t(), o(j2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(D3, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [i(W2, { modelValue: e2.configure.uuid, "onUpdate:modelValue": v2[1] || (v2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), i(D3, { label: "结构树类型", class: "amb-design-attr-item" }, { default: u(() => [i(w2, { modelValue: e2.configure.props.base.treeType, "onUpdate:modelValue": v2[2] || (v2[2] = (l3) => e2.configure.props.base.treeType = l3), placeholder: "请选择" }, { default: u(() => [i(j2, { label: "部门人员树", value: "DeptUserTree" }), i(j2, { label: "工作组人员树", value: "WgUserTree" }), i(j2, { label: "部门树", value: "DeptTree" }), i(j2, { label: "工作组树", value: "WgTree" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), L.value ? d("", true) : (t(), o(D3, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": H }, null, 8, ["modelValue"]))]), _: 1 })), i(D3, { label: "默认值", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": I }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), L.value ? d("", true) : (t(), o(D3, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), L.value ? d("", true) : (t(), o(D3, { key: 2, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": v2[3] || (v2[3] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: true }, { default: u(() => v2[16] || (v2[16] = [c("显示")])), _: 1 }), i(F2, { value: false }, { default: u(() => v2[17] || (v2[17] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), s(i(D3, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [i(k, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": v2[4] || (v2[4] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), s(i(D3, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [i(B2, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": v2[5] || (v2[5] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), s(i(D3, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": v2[6] || (v2[6] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: "block" }, { default: u(() => v2[18] || (v2[18] = [c("换行")])), _: 1 }), i(F2, { value: "inline" }, { default: u(() => v2[19] || (v2[19] = [c("不换行")])), _: 1 }), i(F2, { value: "omit" }, { default: u(() => v2[20] || (v2[20] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(D3, { label: "多选", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.treeMultiple, "onUpdate:modelValue": v2[7] || (v2[7] = (l3) => e2.configure.props.base.treeMultiple = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: true }, { default: u(() => v2[21] || (v2[21] = [c("是")])), _: 1 }), i(F2, { value: false }, { default: u(() => v2[22] || (v2[22] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(i(D3, { label: "分隔符", class: "amb-design-attr-item" }, { default: u(() => [i(W2, { modelValue: e2.configure.props.base.separator, "onUpdate:modelValue": v2[8] || (v2[8] = (l3) => e2.configure.props.base.separator = l3), placeholder: "," }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.treeMultiple]]), i(D3, { label: "尺寸", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": v2[9] || (v2[9] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: "large" }, { default: u(() => v2[23] || (v2[23] = [c("大")])), _: 1 }), i(F2, { value: "default" }, { default: u(() => v2[24] || (v2[24] = [c("中")])), _: 1 }), i(F2, { value: "small" }, { default: u(() => v2[25] || (v2[25] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(D3, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [i(O2, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": v2[10] || (v2[10] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [i(F2, { value: "default" }, { default: u(() => v2[26] || (v2[26] = [c("普通")])), _: 1 }), i(F2, { value: "disabled" }, { default: u(() => v2[27] || (v2[27] = [c("禁用")])), _: 1 }), i(F2, { value: "hidden" }, { default: u(() => v2[28] || (v2[28] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(E2, { title: "限定部门", name: "deptScopes", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", z, [i(O2, { modelValue: e2.configure.props.base.deptScope, "onUpdate:modelValue": v2[12] || (v2[12] = (l3) => e2.configure.props.base.deptScope = l3), onChange: N }, { default: u(() => [i(D3, { class: "amb-design-attr-item" }, { label: u(() => [i(F2, { value: "field" }, { default: u(() => v2[29] || (v2[29] = [c("指定变量")])), _: 1 })]), default: u(() => [i(y, { showLabel: "field" != e2.configure.props.base.deptScope, objModelOptions: A.value, modelValue: e2.configure.props.base.deptScopeField, "onUpdate:modelValue": J }, null, 8, ["showLabel", "objModelOptions", "modelValue"])]), _: 1 }), i(D3, { class: "amb-design-attr-item" }, { label: u(() => [i(F2, { value: "depts" }, { default: u(() => v2[30] || (v2[30] = [c("固定部门")])), _: 1 })]), default: u(() => [i(f(S), { disabled: "depts" != e2.configure.props.base.deptScope, multiple: true, treeType: "DeptTree", value: e2.configure.props.base.deptScopeDepts, "onUpdate:value": v2[11] || (v2[11] = (l3) => e2.configure.props.base.deptScopeDepts = l3), models: e2.configure.props.base, fields: [{ type: "code", model: "deptScopeCodes" }], size: "small", placeholder: "请选择", separator: ",", onSetValue: K }, null, 8, ["disabled", "value", "models"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), "field" === e2.configure.props.base.deptScope ? (t(), o(D3, { key: 0, label: "筛选字段", class: "amb-design-attr-item" }, { default: u(() => [i(w2, { modelValue: e2.configure.props.base.limitFilterColumn, "onUpdate:modelValue": v2[13] || (v2[13] = (l3) => e2.configure.props.base.limitFilterColumn = l3), clearable: "", placeholder: "请选择" }, { default: u(() => [i(j2, { key: "id", label: "id", value: "id" }), i(j2, { key: "code", label: "编码", value: "code" }), i(j2, { key: "name", label: "名称", value: "name" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true)])]), _: 1 }), (t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"])), s(i(x, { configure: e2.configure }, null, 8, ["configure"]), [[b, e2.configure.props.base.tittleShow]]), (t(), o(E2, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [r("div", C, [i(D3, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(P, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": v2[14] || (v2[14] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(D3, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(Q, { span: 8 }, { default: u(() => [i(P, { label: "自定义", value: "custom" })]), _: 1 }), i(Q, { span: 14 }, { default: u(() => [i(R, { type: "default" }, { default: u(() => v2[31] || (v2[31] = [c("自定义逻辑")])), _: 1 }), i(R, { type: "default", icon: f(g), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), L.value ? d("", true) : (t(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
30
|
+
return D.configure.isTable && (C.value = true), (l2, _2) => {
|
|
31
|
+
const z3 = a("el-option"), D2 = a("el-select"), q2 = a("el-form-item"), E = a("el-input"), G = a("el-radio"), H = a("el-radio-group"), I = a("el-input-number"), J = a("el-collapse-item"), K = a("el-checkbox"), N = a("el-col"), P = a("el-button"), Q = a("el-collapse"), R = a("el-form");
|
|
32
|
+
return t(), o(R, { "label-width": "80px", size: "small" }, { default: u(() => [s(Q, { modelValue: M.value, "onUpdate:modelValue": _2[14] || (_2[14] = (e3) => M.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [s(J, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", w, [s(q2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [s(D2, { modelValue: W.value, "onUpdate:modelValue": _2[0] || (_2[0] = (e3) => W.value = e3), onChange: F, placeholder: "请选择" }, { default: u(() => [(t(true), p(n, null, m(f(V)(), (e3) => (t(), o(z3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(q2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [s(E, { modelValue: e2.configure.uuid, "onUpdate:modelValue": _2[1] || (_2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), s(q2, { label: "结构树类型", class: "amb-design-attr-item" }, { default: u(() => [s(D2, { modelValue: e2.configure.props.base.treeType, "onUpdate:modelValue": _2[2] || (_2[2] = (l3) => e2.configure.props.base.treeType = l3), placeholder: "请选择" }, { default: u(() => [s(z3, { label: "部门人员树", value: "DeptUserTree" }), s(z3, { label: "工作组人员树", value: "WgUserTree" }), s(z3, { label: "部门树", value: "DeptTree" }), s(z3, { label: "工作组树", value: "WgTree" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), C.value ? d("", true) : (t(), o(q2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": L }, null, 8, ["modelValue"]))]), _: 1 })), s(q2, { label: "默认值", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": O }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), C.value ? d("", true) : (t(), o(q2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), C.value ? d("", true) : (t(), o(q2, { key: 2, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": _2[3] || (_2[3] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [s(G, { value: true }, { default: u(() => _2[15] || (_2[15] = [c("显示")])), _: 1 }), s(G, { value: false }, { default: u(() => _2[16] || (_2[16] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), i(s(q2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [s(T, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": _2[4] || (_2[4] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), i(s(q2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [s(I, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": _2[5] || (_2[5] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), i(s(q2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": _2[6] || (_2[6] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [s(G, { value: "block" }, { default: u(() => _2[17] || (_2[17] = [c("换行")])), _: 1 }), s(G, { value: "inline" }, { default: u(() => _2[18] || (_2[18] = [c("不换行")])), _: 1 }), s(G, { value: "omit" }, { default: u(() => _2[19] || (_2[19] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), s(q2, { label: "多选", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.treeMultiple, "onUpdate:modelValue": _2[7] || (_2[7] = (l3) => e2.configure.props.base.treeMultiple = l3), class: "ml-4" }, { default: u(() => [s(G, { value: true }, { default: u(() => _2[20] || (_2[20] = [c("是")])), _: 1 }), s(G, { value: false }, { default: u(() => _2[21] || (_2[21] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(s(q2, { label: "分隔符", class: "amb-design-attr-item" }, { default: u(() => [s(E, { modelValue: e2.configure.props.base.separator, "onUpdate:modelValue": _2[8] || (_2[8] = (l3) => e2.configure.props.base.separator = l3), placeholder: "," }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.treeMultiple]]), s(q2, { label: "尺寸", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": _2[9] || (_2[9] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: u(() => [s(G, { value: "large" }, { default: u(() => _2[22] || (_2[22] = [c("大")])), _: 1 }), s(G, { value: "default" }, { default: u(() => _2[23] || (_2[23] = [c("中")])), _: 1 }), s(G, { value: "small" }, { default: u(() => _2[24] || (_2[24] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(q2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": _2[10] || (_2[10] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [s(G, { value: "default" }, { default: u(() => _2[25] || (_2[25] = [c("普通")])), _: 1 }), s(G, { value: "disabled" }, { default: u(() => _2[26] || (_2[26] = [c("禁用")])), _: 1 }), s(G, { value: "hidden" }, { default: u(() => _2[27] || (_2[27] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), s(J, { title: "限定部门", name: "deptScopes", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", k, [s(H, { modelValue: e2.configure.props.base.deptScope, "onUpdate:modelValue": _2[12] || (_2[12] = (l3) => e2.configure.props.base.deptScope = l3) }, { default: u(() => [s(q2, { class: "amb-design-attr-item" }, { label: u(() => [s(G, { value: "field" }, { default: u(() => _2[28] || (_2[28] = [c("指定变量")])), _: 1 })]), default: u(() => [s(y, { isTable: e2.configure.isTable, showLabel: "field" != e2.configure.props.base.deptScope, modelValue: e2.configure.props.base.deptScopeField, "onUpdate:modelValue": A }, null, 8, ["isTable", "showLabel", "modelValue"])]), _: 1 }), s(q2, { class: "amb-design-attr-item" }, { label: u(() => [s(G, { value: "depts" }, { default: u(() => _2[29] || (_2[29] = [c("固定部门")])), _: 1 })]), default: u(() => [s(f(S), { disabled: "depts" != e2.configure.props.base.deptScope, multiple: true, treeType: "DeptTree", value: e2.configure.props.base.deptScopeDepts, "onUpdate:value": _2[11] || (_2[11] = (l3) => e2.configure.props.base.deptScopeDepts = l3), models: e2.configure.props.base, fields: [{ type: "code", model: "deptScopeCodes" }], size: "small", placeholder: "请选择", separator: ",", onSetValue: B }, null, 8, ["disabled", "value", "models"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])])]), _: 1 }), (t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"])), i(s(x, { configure: e2.configure }, null, 8, ["configure"]), [[b, e2.configure.props.base.tittleShow]]), (t(), o(J, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [r("div", j, [s(q2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [s(K, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": _2[13] || (_2[13] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), s(q2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [s(N, { span: 8 }, { default: u(() => [s(K, { label: "自定义", value: "custom" })]), _: 1 }), s(N, { span: 14 }, { default: u(() => [s(P, { type: "default" }, { default: u(() => _2[30] || (_2[30] = [c("自定义逻辑")])), _: 1 }), s(P, { type: "default", icon: f(g), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), C.value ? d("", true) : (t(), o(v, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
41
33
|
};
|
|
42
34
|
} });
|
|
43
35
|
export {
|
|
44
|
-
|
|
36
|
+
z as default
|
|
45
37
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as l, onUnmounted as t, resolveComponent as a, createBlock as o, openBlock as
|
|
1
|
+
import { defineComponent as e, computed as l, onUnmounted as t, resolveComponent as a, createBlock as o, openBlock as r, withCtx as u, createElementVNode as s, createVNode as n, unref as i, createElementBlock as p, Fragment as d, renderList as m, withDirectives as c, vShow as f } from "vue";
|
|
2
2
|
import { Plus as b, Delete as g } from "@element-plus/icons-vue";
|
|
3
3
|
import { getUuidv4 as v } from "../../../../utils/common-util.js";
|
|
4
4
|
import y from "../../common/common-variable-bind.vue.js";
|
|
@@ -6,11 +6,11 @@ const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "depttree-a
|
|
|
6
6
|
const w2 = e2;
|
|
7
7
|
w2.configure.props || (w2.configure.props = {}), w2.configure.props.base || (w2.configure.props.base = {}), w2.configure.props.base.otherFieldSets || (w2.configure.props.base.otherFieldSets = []);
|
|
8
8
|
const T = w2.configure.props.base, _ = T.otherFieldSets;
|
|
9
|
-
0 == _.length &&
|
|
9
|
+
0 == _.length && x(null);
|
|
10
10
|
const V = l(() => {
|
|
11
11
|
let e3 = w2.configure.props.base.treeType;
|
|
12
12
|
return e3 = e3 || "DeptUserTree", e3.includes("User") ? "user" : "dept";
|
|
13
|
-
}), k = [{ name: "ID", value: "id", types: ["user", "dept"] }, { name: "编码", value: "code", types: ["dept"] }, { name: "名称", value: "name", types: ["user", "dept"] }, { name: "登录名", value: "loginName", types: ["user"] }, { name: "Email", value: "email", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "领导登录名", value: "divisionManager", types: ["user"] }, { name: "正职部门编码", value: "mainDeptCode", types: ["user"] }, { name: "
|
|
13
|
+
}), k = [{ name: "ID", value: "id", types: ["user", "dept"] }, { name: "编码", value: "code", types: ["dept"] }, { name: "名称", value: "name", types: ["user", "dept"] }, { name: "登录名", value: "loginName", types: ["user"] }, { name: "Email", value: "email", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "领导登录名", value: "divisionManager", types: ["user"] }, { name: "正职部门编码", value: "mainDeptCode", types: ["user"] }, { name: "正职部门ID", value: "mainDeptId", types: ["user"] }, { name: "分支机构名称", value: "subCompanyName", types: ["user"] }, { name: "分支机构ID", value: "subCompanyId", types: ["user"] }];
|
|
14
14
|
function C(e3) {
|
|
15
15
|
let l2 = -1;
|
|
16
16
|
const t2 = _.length;
|
|
@@ -20,26 +20,26 @@ const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "depttree-a
|
|
|
20
20
|
}
|
|
21
21
|
return l2;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function x(e3) {
|
|
24
24
|
let l2 = -1;
|
|
25
25
|
e3 && (l2 = C(e3));
|
|
26
26
|
const t2 = { uuid: v(), source: "", target: "" };
|
|
27
27
|
_.splice(l2 + 1, 0, t2);
|
|
28
28
|
}
|
|
29
|
-
let
|
|
29
|
+
let D;
|
|
30
30
|
return t(() => {
|
|
31
|
-
|
|
31
|
+
D && clearTimeout(D);
|
|
32
32
|
}), (l2, t2) => {
|
|
33
33
|
const v2 = a("el-option"), w3 = a("el-select"), U = a("el-table-column"), F = a("el-icon"), I = a("el-table"), S = a("el-collapse-item");
|
|
34
|
-
return
|
|
34
|
+
return r(), o(S, { title: "其他字段设值", name: "otherFieldSet", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", h, [n(I, { data: i(T).otherFieldSets }, { default: u(() => [n(U, { prop: "label", label: "字段", width: "90" }, { default: u((e3) => [n(w3, { size: "small", modelValue: e3.row.source, "onUpdate:modelValue": (l3) => e3.row.source = l3, title: e3.row.source, filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择" }, { default: u(() => [(r(), p(d, null, m(k, (e4) => c(n(v2, { key: e4.name, label: e4.name, value: e4.value }, null, 8, ["label", "value"]), [[f, e4.types.includes(V.value)]])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), n(U, { prop: "value", label: "设置到", width: "120" }, { default: u((l3) => [n(y, { isTable: e2.configure.isTable, modelValue: l3.row.target, paramTypes: ["data", "page"], "onUpdate:modelValue": (e3) => function(e4, l4) {
|
|
35
35
|
l4.target = e4;
|
|
36
|
-
}(e3, l3.row) }, null, 8, ["isTable", "modelValue", "onUpdate:modelValue"])]), _: 1 }), n(U, { label: "操作", width: "60" }, { default:
|
|
37
|
-
|
|
36
|
+
}(e3, l3.row) }, null, 8, ["isTable", "modelValue", "onUpdate:modelValue"])]), _: 1 }), n(U, { label: "操作", width: "60" }, { default: u((e3) => [n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => x(e3.row) }, { default: u(() => [n(i(b))]), _: 2 }, 1032, ["onClick"]), n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
37
|
+
D && clearTimeout(D);
|
|
38
38
|
let l4 = C(e4);
|
|
39
|
-
l4 > -1 && (_.splice(l4, 1), 0 == _.length && (
|
|
40
|
-
|
|
39
|
+
l4 > -1 && (_.splice(l4, 1), 0 == _.length && (D = setTimeout(function() {
|
|
40
|
+
x(null);
|
|
41
41
|
}, 10)));
|
|
42
|
-
}(e3.row) }, { default:
|
|
42
|
+
}(e3.row) }, { default: u(() => [n(i(g))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|