super-page-runtime 2.3.41-sit1 → 2.3.41
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/runtime/utils/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +38 -38
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +100 -95
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +56 -51
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +48 -47
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -8
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue2.js +53 -52
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +10 -10
- package/package.json +2 -2
|
@@ -86,9 +86,9 @@ const V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
|
|
|
86
86
|
_.configure.items.forEach((t2) => {
|
|
87
87
|
e3.includes(t2.code) && n2.push(t2.code);
|
|
88
88
|
}), I.value = [...new Set(n2)];
|
|
89
|
-
} }), (
|
|
90
|
-
const
|
|
91
|
-
return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue":
|
|
89
|
+
} }), (n2, t2) => {
|
|
90
|
+
const o2 = i("el-button");
|
|
91
|
+
return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => A.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(u(R)), class: r([u(B), "runtime-page-container-tabs-view"]), closable: e2.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(d, null, m(_.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e2.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(u(z)) }, y(u(O)(n3.label)), 5)]), default: p(() => [(e2.configure.props.isFullyRendered ?? 1) || n3.code === A.value ? (l(true), f(d, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e2.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e2.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e2.configure.props.resetable ? (l(), c(o2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e2.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as r, onMounted as a, watch as o, resolveComponent as l, createBlock as n, openBlock as u, normalizeStyle as i, normalizeClass as s, unref as c, withCtx as p, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
2
|
import d from "qrcode";
|
|
3
3
|
import v from "jsbarcode";
|
|
4
4
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
12
12
|
let k = y(q.pageContext, q.configure);
|
|
13
13
|
const A = t({ get: () => x(N, k), set(e3) {
|
|
14
14
|
h(N, k, e3);
|
|
15
|
-
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ =
|
|
15
|
+
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ = r(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = r(""), I = r(null), Q = r(_.value.brCodeFormat ?? "CODE128"), V = r([]);
|
|
16
16
|
function F(e3) {
|
|
17
17
|
return h(N, k, e3);
|
|
18
18
|
}
|
|
@@ -22,15 +22,16 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
22
22
|
function L(e3) {
|
|
23
23
|
var t2;
|
|
24
24
|
"QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
|
|
25
|
-
e4
|
|
25
|
+
e4 ? console.error(e4) : $.value = t3;
|
|
26
26
|
})) : function(e4) {
|
|
27
27
|
try {
|
|
28
28
|
v(I.value, e4, { format: Q.value });
|
|
29
29
|
} catch (e5) {
|
|
30
|
+
console.error("生成条形码时发生错误:", e5);
|
|
30
31
|
}
|
|
31
32
|
}(e3);
|
|
32
33
|
}
|
|
33
|
-
return
|
|
34
|
+
return a(() => {
|
|
34
35
|
_.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
|
|
35
36
|
o(() => q.pageContext.entity.data[e3], (e4, t2) => {
|
|
36
37
|
null != e4 && function() {
|
|
@@ -38,15 +39,15 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
38
39
|
V.value.forEach((t3) => {
|
|
39
40
|
q.pageContext.entity.data[t3] || (e5 = false);
|
|
40
41
|
}), e5 && J(function(e6, t3) {
|
|
41
|
-
const
|
|
42
|
-
return e6.replace(
|
|
42
|
+
const r2 = /\$\{(\w+)\}/g;
|
|
43
|
+
return e6.replace(r2, (e7, r3) => t3.hasOwnProperty(r3) ? t3[r3] : e7);
|
|
43
44
|
}(_.value.generateRule, q.pageContext.entity.data));
|
|
44
45
|
}();
|
|
45
46
|
});
|
|
46
47
|
})) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/component/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
|
|
47
48
|
const t2 = JSON.parse(e3.barcodeModelItems);
|
|
48
49
|
t2.forEach((e4) => {
|
|
49
|
-
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5,
|
|
50
|
+
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, r2) => {
|
|
50
51
|
if (null != e5) {
|
|
51
52
|
const e6 = b(t2, q.pageContext.entity.data);
|
|
52
53
|
e6 && J(e6);
|
|
@@ -54,12 +55,13 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
54
55
|
}));
|
|
55
56
|
});
|
|
56
57
|
}).catch((e3) => {
|
|
58
|
+
console.error("获取条码规则失败:", e3);
|
|
57
59
|
})), A.value && L(A.value);
|
|
58
60
|
}), D2({ getValue: function() {
|
|
59
61
|
return x(N, k);
|
|
60
62
|
}, setValue: F }), (e3, t2) => {
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
+
const r2 = l("el-form-item");
|
|
64
|
+
return u(), n(r2, { required: !!_.value.required, class: s(c(P)), "label-width": _.value.labelWidth, style: i(c(O)) }, { label: p(() => [_.value.tittleShow ? (u(), m("div", { key: 0, style: i({ ...c(S) }) }, g(c(R)(_.value.title)), 5)) : f("", true)]), default: p(() => ["QR-code" === _.value.type ? (u(), m("img", { key: 0, src: $.value }, null, 8, j)) : (u(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
63
65
|
};
|
|
64
66
|
} });
|
|
65
67
|
export {
|
|
@@ -284,7 +284,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
284
284
|
}
|
|
285
285
|
n(() => {
|
|
286
286
|
const e3 = Xe();
|
|
287
|
-
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
287
|
+
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle && Y.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
288
288
|
se.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
289
289
|
}), H.$on(de + "_close-dialog-get-entity", () => {
|
|
290
290
|
H.$emit(de + "_close-super-dialog");
|
|
@@ -21,7 +21,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
21
21
|
const ne = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = F;
|
|
22
22
|
oe.value = function() {
|
|
23
23
|
var _a2, _b, _c, _d;
|
|
24
|
-
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender:
|
|
24
|
+
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
|
|
25
25
|
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
|
|
26
26
|
const t2 = z.props ? z.props.dataOrigin : {};
|
|
27
27
|
if (t2.treeTable) {
|
|
@@ -47,7 +47,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
47
47
|
}
|
|
48
48
|
t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
|
|
49
49
|
let n2 = C(j, z);
|
|
50
|
-
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions =
|
|
50
|
+
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Be;
|
|
51
51
|
}
|
|
52
52
|
function re() {
|
|
53
53
|
if (z.props && z.props.otherSettings) {
|
|
@@ -76,6 +76,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
76
76
|
}
|
|
77
77
|
function be(e3) {
|
|
78
78
|
e3 || (e3 = oe.value), function(e4) {
|
|
79
|
+
var _a2;
|
|
79
80
|
e4 || (e4 = oe.value);
|
|
80
81
|
const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
81
82
|
if (t3 && null != t3) {
|
|
@@ -92,18 +93,19 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
92
93
|
}
|
|
93
94
|
e4.operations || (e4.operations = {});
|
|
94
95
|
const o2 = function() {
|
|
95
|
-
let e5 = []
|
|
96
|
-
if (
|
|
97
|
-
const
|
|
98
|
-
e5.push(
|
|
96
|
+
let e5 = [];
|
|
97
|
+
if (we(null, null, null, null, null, true, "canAdd")) {
|
|
98
|
+
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: Te, isStandard: true };
|
|
99
|
+
e5.push(t4);
|
|
99
100
|
}
|
|
100
|
-
if (
|
|
101
|
-
const
|
|
102
|
-
e5.push(
|
|
101
|
+
if (xe(null, null, null, null, null, true)) {
|
|
102
|
+
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Ce, isStandard: true };
|
|
103
|
+
e5.push(t4);
|
|
103
104
|
}
|
|
104
|
-
return R(j, z, e5,
|
|
105
|
+
return R(j, z, e5, he), e5;
|
|
105
106
|
}();
|
|
106
|
-
|
|
107
|
+
((_a2 = z.props.base.showOperationCondition) == null ? void 0 : _a2.length) > 0 && (e4.operations.showOperationFunc = me);
|
|
108
|
+
e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete");
|
|
107
109
|
}(e3), c(e3, B, j, z);
|
|
108
110
|
const t2 = j.customEvents;
|
|
109
111
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
@@ -111,6 +113,9 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
111
113
|
function ge() {
|
|
112
114
|
j.tableUuids || (j.tableUuids = []), j.tableUuids.indexOf(z.uuid) < 0 && j.tableUuids.push(z.uuid);
|
|
113
115
|
}
|
|
116
|
+
function me() {
|
|
117
|
+
return w($.pageContext, z.props.base.showOperationCondition);
|
|
118
|
+
}
|
|
114
119
|
n(() => {
|
|
115
120
|
const e3 = z.uuid, t2 = j.subTableWatchProps;
|
|
116
121
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
@@ -122,7 +127,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
122
127
|
ae();
|
|
123
128
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
124
129
|
!function(e5) {
|
|
125
|
-
|
|
130
|
+
Ge(e5), de = setTimeout(() => {
|
|
126
131
|
ie.value && (ie.value.refreshChildData(G, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
|
|
127
132
|
}, 10);
|
|
128
133
|
}(e4);
|
|
@@ -136,16 +141,16 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
136
141
|
const e3 = z.uuid;
|
|
137
142
|
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
138
143
|
});
|
|
139
|
-
const
|
|
140
|
-
function
|
|
144
|
+
const ve = t({});
|
|
145
|
+
function he(e3) {
|
|
141
146
|
if (!e3) return;
|
|
142
|
-
return
|
|
147
|
+
return ve.value[e3.uuid] = e3, Se;
|
|
143
148
|
}
|
|
144
|
-
function
|
|
145
|
-
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 =
|
|
149
|
+
function Se(e3, t2, n2, o2, l2, i2) {
|
|
150
|
+
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ve.value[i2.sourceButton.uuid], r2 = z;
|
|
146
151
|
u2.props.base.tableUuid = r2.uuid, S(null, j, u2, "click", a2);
|
|
147
152
|
}
|
|
148
|
-
function
|
|
153
|
+
function we(e3, t2, n2, o2, l2, i2, a2) {
|
|
149
154
|
a2 || (a2 = "canAdd");
|
|
150
155
|
if (!w($.pageContext, z.props.base.showOperationCondition)) return false;
|
|
151
156
|
const u2 = j.fieldPermissionMap, r2 = j.actionPermissionMap;
|
|
@@ -160,11 +165,11 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
160
165
|
}
|
|
161
166
|
return s2;
|
|
162
167
|
}
|
|
163
|
-
function
|
|
164
|
-
let a2 =
|
|
168
|
+
function Te(e3, t2, n2, o2, l2, i2) {
|
|
169
|
+
let a2 = we(0, 0, 0, 0, 0, 0, "canAdd");
|
|
165
170
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
|
|
166
171
|
}
|
|
167
|
-
function
|
|
172
|
+
function xe(e3, t2, n2, o2, l2, i2) {
|
|
168
173
|
const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
|
|
169
174
|
let r2 = true;
|
|
170
175
|
if (a2 && null !== a2) {
|
|
@@ -184,94 +189,94 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
184
189
|
}
|
|
185
190
|
return r2;
|
|
186
191
|
}
|
|
187
|
-
function
|
|
188
|
-
let a2 =
|
|
192
|
+
function Ce(e3, t2, n2, o2, l2, i2) {
|
|
193
|
+
let a2 = xe(0, 0, n2, 0, 0, i2);
|
|
189
194
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
|
|
190
195
|
}
|
|
191
|
-
function
|
|
196
|
+
function De(e3, t2, n2, o2, l2) {
|
|
192
197
|
ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
193
|
-
|
|
198
|
+
qe(l2);
|
|
194
199
|
});
|
|
195
200
|
}
|
|
196
|
-
function
|
|
201
|
+
function ye(e3, t2, n2, o2, l2, i2, a2, u2) {
|
|
197
202
|
ie.value.deleteRow(l2, G, false, a2, u2, n2);
|
|
198
203
|
}
|
|
199
|
-
function
|
|
204
|
+
function Pe(e3) {
|
|
200
205
|
T(X, Y, e3);
|
|
201
206
|
}
|
|
202
|
-
function
|
|
207
|
+
function Ie(e3) {
|
|
203
208
|
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[L] || (j.subTablePageInfo[L] = {}), j.subTablePageInfo[L].title = z.title ? z.title : z.code, j.subTablePageInfo[L].pageSize = e3;
|
|
204
209
|
}
|
|
205
|
-
function
|
|
210
|
+
function Re(e3) {
|
|
206
211
|
const t2 = e3.key, n2 = e3.value;
|
|
207
212
|
j.selectOptions || (j.selectOptions = {}), j.selectOptions[t2] = n2;
|
|
208
213
|
}
|
|
209
|
-
function
|
|
214
|
+
function Oe(e3) {
|
|
210
215
|
const t2 = j.code + "_";
|
|
211
216
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
212
217
|
}
|
|
213
|
-
function
|
|
218
|
+
function _e(e3) {
|
|
214
219
|
const t2 = j.entity.data;
|
|
215
220
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
216
221
|
}
|
|
217
|
-
function
|
|
222
|
+
function ke(e3, t2) {
|
|
218
223
|
if (void 0 !== t2) {
|
|
219
224
|
q.value = e3;
|
|
220
225
|
p(j, z, { selection: e3, row: t2 });
|
|
221
226
|
}
|
|
222
227
|
}
|
|
223
|
-
function
|
|
228
|
+
function Ae(e3) {
|
|
224
229
|
q.value = e3;
|
|
225
230
|
d(j, z, { selection: e3 });
|
|
226
231
|
}
|
|
227
|
-
function
|
|
232
|
+
function Me(e3) {
|
|
228
233
|
f(j, z, { newSelection: e3 });
|
|
229
234
|
}
|
|
230
|
-
function
|
|
235
|
+
function Ee(e3, t2, n2, o2) {
|
|
231
236
|
b(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
232
237
|
}
|
|
233
|
-
function
|
|
238
|
+
function Ne(e3, t2, n2, o2) {
|
|
234
239
|
g(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
235
240
|
}
|
|
236
|
-
function
|
|
241
|
+
function Fe(e3, t2, n2) {
|
|
237
242
|
m(j, z, { row: e3, column: t2, event: n2 });
|
|
238
243
|
}
|
|
239
|
-
function
|
|
244
|
+
function $e(e3, t2, n2) {
|
|
240
245
|
v(j, z, { row: e3, column: t2, event: n2 });
|
|
241
246
|
}
|
|
242
|
-
function
|
|
247
|
+
function je(e3, t2) {
|
|
243
248
|
h(j, z, { column: e3, event: t2 });
|
|
244
249
|
}
|
|
245
|
-
function
|
|
250
|
+
function ze(e3) {
|
|
246
251
|
j.entity.data = e3;
|
|
247
252
|
}
|
|
248
|
-
function
|
|
253
|
+
function Ve() {
|
|
249
254
|
return x(X, Y);
|
|
250
255
|
}
|
|
251
|
-
function
|
|
256
|
+
function Ge(e3) {
|
|
252
257
|
return T(X, Y, e3);
|
|
253
258
|
}
|
|
254
|
-
function
|
|
259
|
+
function He(e3) {
|
|
255
260
|
return A(e3, null, $);
|
|
256
261
|
}
|
|
257
|
-
function
|
|
262
|
+
function Le(e3) {
|
|
258
263
|
return M(e3, e3.cellStyle, $);
|
|
259
264
|
}
|
|
260
|
-
function
|
|
265
|
+
function Ue(e3) {
|
|
261
266
|
const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
|
|
262
267
|
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
|
|
263
268
|
}
|
|
264
|
-
function
|
|
269
|
+
function Be({ row: e3, editConditions: t2 }) {
|
|
265
270
|
let n2 = true;
|
|
266
271
|
return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
|
|
267
272
|
}
|
|
268
|
-
function
|
|
273
|
+
function qe(e3) {
|
|
269
274
|
var _a2;
|
|
270
275
|
(_a2 = ie.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
|
|
271
276
|
}
|
|
272
277
|
return function(e3) {
|
|
273
278
|
const t2 = re();
|
|
274
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
279
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Ve(), be(e3));
|
|
275
280
|
}(oe.value), N2({ createRow: function() {
|
|
276
281
|
return ie.value.createRow(G);
|
|
277
282
|
}, getSelections: function() {
|
|
@@ -287,7 +292,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
287
292
|
return z;
|
|
288
293
|
}, validatorSunTableListData: function() {
|
|
289
294
|
return ie.value.validatorSunTableListData();
|
|
290
|
-
}, getValue:
|
|
295
|
+
}, getValue: Ve, setValue: Ge, getTableSelectOptions: function() {
|
|
291
296
|
if (ie.value) return ie.value.getTableSelectOptions(G);
|
|
292
297
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
293
298
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
@@ -308,7 +313,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
308
313
|
}, setCurrentRowIndex: function(e3) {
|
|
309
314
|
var _a2;
|
|
310
315
|
(_a2 = ie.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
|
|
311
|
-
}, setScrollTopByRowIndex:
|
|
316
|
+
}, setScrollTopByRowIndex: qe, getTableData: function() {
|
|
312
317
|
var _a2;
|
|
313
318
|
return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
|
|
314
319
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
@@ -322,7 +327,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
322
327
|
(_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
323
328
|
} }), (e3, t2) => {
|
|
324
329
|
const n2 = l("super-grid");
|
|
325
|
-
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect:
|
|
330
|
+
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect: ke, onSelectAll: Ae, onSelectionChange: Me, onCellClick: Ee, onCellDblclick: Ne, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Oe, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: _e, onSetSelectOptions: Re, onChangeRowsPerPage: Ie, onNewOpenGridDialog: s(I), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
|
|
326
331
|
};
|
|
327
332
|
} });
|
|
328
333
|
export {
|
|
@@ -81,7 +81,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
81
81
|
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
82
82
|
var _a;
|
|
83
83
|
(_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
84
|
-
} }), (
|
|
84
|
+
} }), (t2, n2) => (l(), u("div", null, [r(g) && "form" === r(g) && C.value ? (l(), o(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (l(), o(c, { key: 1, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
|
|
85
85
|
} });
|
|
86
86
|
export {
|
|
87
87
|
f as default
|
|
@@ -104,29 +104,29 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
104
104
|
te.value.setCheckedKeys(e3, t2);
|
|
105
105
|
}, setChecked: (e3, t2, a2) => {
|
|
106
106
|
te.value.setChecked(e3, t2, a2);
|
|
107
|
-
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (
|
|
107
|
+
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (t2, a2) => {
|
|
108
108
|
var _a2;
|
|
109
|
-
const
|
|
110
|
-
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(
|
|
111
|
-
"" !== ce.value ? (
|
|
112
|
-
ye(
|
|
113
|
-
}) : E(
|
|
114
|
-
ye(
|
|
109
|
+
const n2 = d("el-input"), l2 = d("el-button"), o2 = d("SuperIcon"), V2 = d("el-tree");
|
|
110
|
+
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(n2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ue.value = e3), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(V2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: t3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(n2, { modelValue: ce.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ce.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
|
|
111
|
+
"" !== ce.value ? (e4.data.name = ce.value, re.value && e4.data.nodeId === re.value ? w(e4, X.configure, X.pageContext).then((t4) => {
|
|
112
|
+
ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
|
|
113
|
+
}) : E(e4, X.configure, X.pageContext).then((t4) => {
|
|
114
|
+
ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
|
|
115
115
|
})) : z.warning("请输入节点名称");
|
|
116
|
-
})(
|
|
117
|
-
re.value &&
|
|
118
|
-
})(
|
|
119
|
-
if (ge.value && "standard" ===
|
|
120
|
-
else if ("delete" ===
|
|
121
|
-
ke(
|
|
116
|
+
})(t3) }, { default: g(() => [...a2[2] || (a2[2] = [y(" 保存 ", -1)])]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (a3) => ((e3) => {
|
|
117
|
+
re.value && e3.data.nodeId === re.value && te.value.remove(e3), Ce();
|
|
118
|
+
})(t3, e2.configure, e2.pageContext) }, { default: g(() => [...a2[3] || (a2[3] = [y(" 撤销 ", -1)])]), _: 1 }, 8, ["onClick"])])])) : (i(), u("span", { key: 1, title: t3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(o2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(o2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [a2[5] || (a2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [a2[4] || (a2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e3, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e4) => {
|
|
119
|
+
if (ge.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
|
|
120
|
+
else if ("delete" === e4.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
121
|
+
ke(e4);
|
|
122
122
|
}).catch(() => {
|
|
123
123
|
ge.value = null;
|
|
124
|
-
})) : ke(
|
|
124
|
+
})) : ke(e4);
|
|
125
125
|
else {
|
|
126
126
|
const t5 = xe();
|
|
127
|
-
se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" ===
|
|
127
|
+
se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e4.standardEvent ? (t5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? te.value.append(t5, ge.value.parent) : oe.value.push(t5)) : "addChildNode" === e4.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
|
|
128
128
|
}
|
|
129
|
-
})(
|
|
129
|
+
})(e3) }, [h("span", null, x(e3.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
130
130
|
};
|
|
131
131
|
} });
|
|
132
132
|
export {
|
|
@@ -56,9 +56,9 @@ const z = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
|
|
|
56
56
|
});
|
|
57
57
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
58
58
|
}
|
|
59
|
-
} }), (
|
|
60
|
-
const
|
|
61
|
-
return i(), u(
|
|
59
|
+
} }), (t2, l2) => {
|
|
60
|
+
const o2 = a("el-checkbox"), n2 = a("el-checkbox-group"), b2 = a("el-form-item");
|
|
61
|
+
return i(), u(b2, { ref_key: "formItemRef", ref: X, class: s(c(F) + (E.value ? " " + E.value : "")), required: !!B.value.required, "label-width": B.value.labelWidth, style: r(c(T)) }, p({ default: f(() => [g(n2, { ref_key: "componentRef", ref: Y, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => M.value = e3) }, { default: f(() => [(i(true), v(d, null, m(G.value, (t3) => (i(), u(o2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => c(I)(t3.value, e2.pageContext, e2.configure, "click", { values: M.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: f(() => [h("div", { ref_key: "titleRef", ref: Z, style: r({ ...c(U), ...c(W) }), class: "amb-form-item-label" }, y(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "required", "label-width", "style"]);
|
|
62
62
|
};
|
|
63
63
|
} });
|
|
64
64
|
export {
|
|
@@ -28,9 +28,9 @@ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property
|
|
|
28
28
|
const r2 = l2.indexOf(h);
|
|
29
29
|
e3 ? -1 == r2 && l2.push(h) : r2 > -1 && l2.splice(r2, 1), y(c, d, l2);
|
|
30
30
|
} else y(c, d, e3);
|
|
31
|
-
} })), (
|
|
32
|
-
const
|
|
33
|
-
return p(), t(o, null, ["radio" ===
|
|
31
|
+
} })), (l2, s2) => {
|
|
32
|
+
const y2 = r("el-radio"), f2 = r("el-checkbox");
|
|
33
|
+
return p(), t(o, null, ["radio" === e2.property.prefixType ? (p(), u(y2, { key: 0, value: e2.property.prefixValue, label: e2.property.title, modelValue: i(b), "onUpdate:modelValue": s2[0] || (s2[0] = (e3) => n(b) ? b.value = e3 : b = e3) }, null, 8, ["value", "label", "modelValue"])) : a("", true), "checkbox" === e2.property.prefixType ? (p(), u(f2, { key: 1, label: e2.property.title, value: e2.property.prefixValue, modelValue: i(b), "onUpdate:modelValue": s2[1] || (s2[1] = (e3) => n(b) ? b.value = e3 : b = e3) }, null, 8, ["label", "value", "modelValue"])) : a("", true)], 64);
|
|
34
34
|
};
|
|
35
35
|
} });
|
|
36
36
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as m, unref as f, createSlots as d, withCtx as g, resolveDynamicComponent as v, createElementVNode as C, toDisplayString as x } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as b, getVariableValue as h, formatVariableValue as j, getFormPropName as R, setVariableValueWithProp as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as V, handleEvent as _ } from "../../../../utils/events/event-util.js";
|
|
@@ -24,7 +24,7 @@ const $ = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
24
24
|
k(H, e3, t2);
|
|
25
25
|
}
|
|
26
26
|
function T(e3) {
|
|
27
|
-
q.isHasFieldAuthPermission(G.configure)
|
|
27
|
+
q.isHasFieldAuthPermission(G.configure) ? D(G.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", P ? P.join(".") : "");
|
|
28
28
|
}
|
|
29
29
|
function X() {
|
|
30
30
|
const e3 = G.pageContext.tableUuids;
|
|
@@ -43,7 +43,7 @@ const $ = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
43
43
|
const t2 = e3.result;
|
|
44
44
|
b(H, P, t2);
|
|
45
45
|
}), U.$on(Z.value + "-pickFileDone", (e3) => {
|
|
46
|
-
ee.value.pickFileDone(e3);
|
|
46
|
+
Z.value, ee.value.pickFileDone(e3);
|
|
47
47
|
}), n(() => {
|
|
48
48
|
const e3 = I.value;
|
|
49
49
|
V(e3, G.pageContext, G.configure, { formItemRef: te.value, componentRef: ee.value, titleRef: oe.value, value: e3, entity: G.pageContext.entity.data, pageData: G.pageContext.entity.page });
|
|
@@ -59,9 +59,9 @@ const $ = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
|
|
|
59
59
|
return ee.value && "function" == typeof ee.value[e3];
|
|
60
60
|
}, addRequiredClass: function() {
|
|
61
61
|
requiredClass.value = addRequiredClassUtil();
|
|
62
|
-
} }), (
|
|
63
|
-
const
|
|
64
|
-
return K.value.tittleShow ? (p(), l(
|
|
62
|
+
} }), (t2, o2) => {
|
|
63
|
+
const a2 = u("el-form-item");
|
|
64
|
+
return K.value.tittleShow ? (p(), l(a2, { key: 0, ref_key: "formItemRef", ref: te, required: K.value.required, class: m(f(W)), "label-width": K.value.labelWidth, style: c(f(B)) }, d({ default: g(() => [N.value ? (p(), r("div", $, [(p(), l(v(N.value), { ref_key: "customRef", ref: ee, size: K.value.size, entity: e2.pageContext.entity.data, pageData: e2.pageContext.entity.page, pageContext: e2.pageContext, configureObj: e2.configure, prop: f(R)(e2.configure.props && e2.configure.props.base ? e2.configure.props.base.prop : null), "custom-params": f(L), modelValue: I.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => I.value = e3), disabled: "disabled" === K.value.state, "additional-param-map": f(M), "component-id": Z.value, onSetEntityValue: Q, onSetCustomRules: T, onRestoreGridEdit: X, onHandleEvent: ae, onChange: o2[1] || (o2[1] = (t3) => f(_)(I.value, e2.pageContext, e2.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 2 }, [K.value.tittleShow ? { name: "label", fn: g(() => [C("div", { ref_key: "titleRef", ref: oe, style: c({ ...f(J) }), class: "amb-form-item-label" }, x(f(S)(K.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : N.value ? (p(), r("div", O, [(p(), l(v(N.value), { ref_key: "customRef", ref: ee, entity: e2.pageContext.entity.data, pageData: e2.pageContext.entity.page, pageContext: e2.pageContext, configureObj: e2.configure, prop: f(R)(e2.configure.props && e2.configure.props.base ? e2.configure.props.base.prop : null), "custom-params": f(L), modelValue: I.value, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => I.value = e3), disabled: "disabled" === K.value.state, "additional-param-map": f(M), "component-id": Z.value, onSetEntityValue: Q, onSetCustomRules: T, onRestoreGridEdit: X, onHandleEvent: ae, onChange: o2[3] || (o2[3] = (t3) => f(_)(I.value, e2.pageContext, e2.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
|
|
65
65
|
};
|
|
66
66
|
} });
|
|
67
67
|
export {
|