super-page-designer 2.2.85 → 2.2.88
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 +2 -2
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +33 -33
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +21 -21
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +38 -34
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +20 -19
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +9 -8
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +19 -19
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +39 -36
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +24 -23
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-i18n-key-input.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +64 -60
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +11 -11
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +67 -63
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +43 -38
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +26 -26
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +30 -30
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/component/return-set-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/variate-select.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +17 -14
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +83 -80
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +29 -9
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +33 -25
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +33 -30
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +14 -14
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/object-design.vue.d.ts +4 -0
- package/dist/es/components/design/views/assemblys/object-design.vue.js +5 -138
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +140 -0
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +25 -34
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-design.vue2.js +22 -18
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +36 -36
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +64 -64
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +10 -9
- package/dist/es/components/design/views/design/view/attr-container.vue.js +24 -24
- package/dist/es/components/design/views/design/view/components/el-aside-expand-component.vue.js +24 -0
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +2 -2
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue2.js +4 -4
- package/dist/es/components/design/views/design/view/components/i18n-setting.vue.js +4 -4
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +10 -9
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js +8 -8
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.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-preview.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +2 -2
- package/dist/es/components/design/views/design/view/view-design.vue.js +27 -26
- package/dist/es/index.js +1 -1
- package/dist/es/style.css +12853 -11195
- package/package.json +3 -3
- package/dist/es/components/design/views/assemblys/object-design.vue2.js +0 -4
|
@@ -7,8 +7,10 @@ interface MyProps {
|
|
|
7
7
|
indexObj: any;
|
|
8
8
|
showSelectedClass: boolean;
|
|
9
9
|
errorBlank: boolean;
|
|
10
|
+
isTableBtnLink: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, {
|
|
13
|
+
isTableBtnLink: boolean;
|
|
12
14
|
showSelectedClass: boolean;
|
|
13
15
|
errorBlank: boolean;
|
|
14
16
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -17,6 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
17
19
|
onCustomAttrWidget: (...args: any[]) => void;
|
|
18
20
|
onDelete: (...args: any[]) => void;
|
|
19
21
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<MyProps>, {
|
|
22
|
+
isTableBtnLink: boolean;
|
|
20
23
|
showSelectedClass: boolean;
|
|
21
24
|
errorBlank: boolean;
|
|
22
25
|
}>>> & Readonly<{
|
|
@@ -27,6 +30,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
30
|
}>, {
|
|
28
31
|
errorBlank: boolean;
|
|
29
32
|
showSelectedClass: boolean;
|
|
33
|
+
isTableBtnLink: boolean;
|
|
30
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
35
|
export default _default;
|
|
32
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,140 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import { caculateCommonStyle as W } from "../../utils/container-design-util.js";
|
|
6
|
-
import { PageDimensions as O } from "../../utils/interfaces/page-design-types.js";
|
|
7
|
-
import { batchUpdatePermissions as k, batchRemovePermissions as S } from "../../utils/page-permission-util.js";
|
|
8
|
-
import { watchValidate as P, getRefrencePropMap as M, removePropFromRefrencePropMap as w } from "../../utils/form-design-util.js";
|
|
9
|
-
import { usePageContextStore as U } from "../../../../stores/page-store.js";
|
|
10
|
-
import { getListCode as T } from "super-page-runtime";
|
|
11
|
-
import { getFormPropName as _ } from "../../utils/page-helper-util.js";
|
|
12
|
-
import { updateServiceInputs as B } from "../../utils/chart-design-util.js";
|
|
13
|
-
const I = { class: "amb-widget-item-tool" }, R = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: R2 }) {
|
|
14
|
-
var _a, _b, _c, _d;
|
|
15
|
-
const q = U(), z = e2;
|
|
16
|
-
if ("table" === z.configure.name && z.pageDesign.tableRuntimes && z.pageDesign.tableRuntimes[z.configure.uuid]) {
|
|
17
|
-
const e3 = z.pageDesign.tableRuntimes[z.configure.uuid].configure, i2 = JSON.parse(e3);
|
|
18
|
-
Object.assign(z.configure, i2), delete z.pageDesign.tableRuntimes[z.configure.uuid];
|
|
19
|
-
}
|
|
20
|
-
z.indexObj && z.indexObj.index++, null == z.configure.props && (z.configure.props = {}), null == z.configure.style && (z.configure.style = {});
|
|
21
|
-
const H = q.getModelField(_((_b = (_a = z.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
|
|
22
|
-
if (z.pageDesign && z.configure && "table" == z.configure.name) {
|
|
23
|
-
if (z.configure.uuid) {
|
|
24
|
-
z.pageDesign.tableUuids || (z.pageDesign.tableUuids = []);
|
|
25
|
-
const e3 = setTimeout(() => {
|
|
26
|
-
var _a2, _b2, _c2, _d2;
|
|
27
|
-
((_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(z.configure.uuid)) || ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.push(z.configure.uuid)), A(z.configure.code);
|
|
28
|
-
}, 500);
|
|
29
|
-
i(() => {
|
|
30
|
-
var _a2, _b2, _c2, _d2;
|
|
31
|
-
const i2 = (_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(z.configure.uuid);
|
|
32
|
-
null != i2 && i2 > -1 && ((_d2 = (_c2 = z.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.shift(i2, 1));
|
|
33
|
-
const n2 = T(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
|
|
34
|
-
z.pageDesign.listCodesMap && z.pageDesign.listCodesMap[n2] && delete z.pageDesign.listCodesMap[n2], z.pageDesign.subTableWatchProps && delete z.pageDesign.subTableWatchProps[z.configure.uuid], e3 && clearTimeout(e3);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
n(() => z.configure.code, (e3) => {
|
|
38
|
-
A(e3);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
function A(e3) {
|
|
42
|
-
z.pageDesign.listCodesMap || (z.pageDesign.listCodesMap = {});
|
|
43
|
-
const i2 = T(z.pageDesign.code, z.pageDesign.version, z.configure.uuid);
|
|
44
|
-
i2 && (z.pageDesign.listCodesMap[i2] = e3 || i2);
|
|
45
|
-
}
|
|
46
|
-
z.configure.events && z.pageDesign && (n(z.configure.events, (e3) => {
|
|
47
|
-
k(z.configure, z.pageDesign);
|
|
48
|
-
const i2 = z.configure.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
|
|
49
|
-
z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.events = i2;
|
|
50
|
-
}, { immediate: true }), i(() => {
|
|
51
|
-
S(z.pageDesign, z.configure.uuid);
|
|
52
|
-
})), z.configure.props.linkPage && z.pageDesign && n(z.configure.props.linkPage, (e3) => {
|
|
53
|
-
z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.linkPage = z.configure.props.linkPage;
|
|
54
|
-
}, { immediate: true }), z.configure.props.parameter && z.pageDesign && n(z.configure.props.parameter, (e3) => {
|
|
55
|
-
let i2 = {};
|
|
56
|
-
e3.forEach((e4) => {
|
|
57
|
-
e4.paramName && e4.paramValue && (i2[e4.name] = e4.value);
|
|
58
|
-
}), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.customParams = i2;
|
|
59
|
-
}, { immediate: true }), ((_d = (_c = z.configure.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.serviceInputs) && z.pageDesign && n(z.configure.props.dataOrigin.serviceInputs, (e3) => {
|
|
60
|
-
B(z.configure, e3);
|
|
61
|
-
}, { immediate: true }), z.configure.componentIndex = z.indexObj.index;
|
|
62
|
-
let N = z.indexObj.index;
|
|
63
|
-
const E = R2, F = o({});
|
|
64
|
-
F.value = C(z.configure.name);
|
|
65
|
-
const J = o(true);
|
|
66
|
-
null == F.value && (F.value = j, J.value = false), n(() => z.configure.name, (e3) => {
|
|
67
|
-
F.value = C(e3);
|
|
68
|
-
}), z.configure.props && z.configure.props.verification && (z.configure.props.base && z.configure.props.base.title && n(() => z.configure.props.base.title, (e3) => {
|
|
69
|
-
P(z.configure, z.configure.props.verification, H);
|
|
70
|
-
}), z.configure.props.base && z.configure.props.base.prop && (n(() => z.configure.props.base.prop, (e3, i2) => {
|
|
71
|
-
P(z.configure, z.configure.props.verification, H), z.pageDesign.runtime || (z.pageDesign.runtime = {}), z.pageDesign.runtime.refercePropMap || (z.pageDesign.runtime.refercePropMap = {}), M(e3, i2, z.pageDesign.runtime.refercePropMap);
|
|
72
|
-
}), i(() => {
|
|
73
|
-
var _a2, _b2;
|
|
74
|
-
w(z.configure.props.base.prop, (_b2 = (_a2 = z.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
|
|
75
|
-
})), n(z.configure.props.verification, (e3, i2) => {
|
|
76
|
-
P(z.configure, e3, H);
|
|
77
|
-
})), z.pageDesign.props && n(() => z.pageDesign.props.activeWorkflow, (e3, i2) => {
|
|
78
|
-
if (e3) {
|
|
79
|
-
const e4 = z.configure.props && z.configure.props.rules ? z.configure.props.rules.filter((e5) => e5.required) : null;
|
|
80
|
-
e4 && e4.length > 0 && e4.forEach((e5) => {
|
|
81
|
-
e5.required = false;
|
|
82
|
-
}), z.configure.props && z.configure.props.verification && z.configure.props.verification.required && (z.configure.props.verification.required = false);
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
const V = o(null), G = o({}), K = o(""), L = o({});
|
|
86
|
-
function Q() {
|
|
87
|
-
W(z.configure, G, K), z.configure.runtime || (z.configure.runtime = {}), z.configure.runtime.common || (z.configure.runtime.common = {}), z.configure.runtime.common.class = K.value, z.configure.runtime.common.style = G.value;
|
|
88
|
-
}
|
|
89
|
-
if (z.configure.props && z.configure.props && (n(z.configure.props.size, (e3) => {
|
|
90
|
-
Q();
|
|
91
|
-
}), n(z.configure.props.position, (e3) => {
|
|
92
|
-
Q();
|
|
93
|
-
}, { immediate: true })), z.configure.style && z.configure.style && n(z.configure.style, () => {
|
|
94
|
-
Q();
|
|
95
|
-
}), z.configure.props) {
|
|
96
|
-
z.configure.props.size || (z.configure.props.size = {});
|
|
97
|
-
const e3 = z.configure.props.size;
|
|
98
|
-
let i2 = e3[O.PC];
|
|
99
|
-
i2 || (i2 = {}, e3[O.PC] = i2), 0 == Object.keys(i2).length && (i2.widthType = e3.widthType, i2.flexSpan = e3.flexSpan, i2.fixWidth = e3.fixWidth, i2.fixHeight = e3.fixHeight, delete e3.widthType, delete e3.flexSpan, delete e3.fixWidth, delete e3.fixHeight);
|
|
100
|
-
}
|
|
101
|
-
const X = r(() => {
|
|
102
|
-
const e3 = G.value;
|
|
103
|
-
if (L.value = {}, !e3 || !z.pageDesign) return {};
|
|
104
|
-
const i2 = {};
|
|
105
|
-
z.configure.design && z.configure.design.style && Object.assign(i2, z.configure.design.style);
|
|
106
|
-
const n2 = z.pageDesign.dimensions ? z.pageDesign.dimensions : "pc", o2 = e3[n2 + "_style"];
|
|
107
|
-
return o2 && (i2.width = o2.width, i2.height = o2.height, L.value = { height: o2.height }), K.value = e3[n2 + "_class"], i2;
|
|
108
|
-
});
|
|
109
|
-
n(z.selectWidget, (e3) => {
|
|
110
|
-
e3 && e3.value == N ? Y.value = "amb-design-item-selected" : Y.value = "";
|
|
111
|
-
});
|
|
112
|
-
const Y = o("");
|
|
113
|
-
function Z(e3) {
|
|
114
|
-
e3 && e3.preventDefault(), E("onSelectWidget", N, z.configure);
|
|
115
|
-
}
|
|
116
|
-
function $(e3, i2) {
|
|
117
|
-
E("onSelectWidget", e3, i2);
|
|
118
|
-
}
|
|
119
|
-
function ee(e3, i2) {
|
|
120
|
-
E("onCustomAttrWidget", e3, i2);
|
|
121
|
-
}
|
|
122
|
-
function ie(e3) {
|
|
123
|
-
e3.preventDefault(), E("onCopy", z.configure);
|
|
124
|
-
}
|
|
125
|
-
function ne(e3) {
|
|
126
|
-
if (e3.preventDefault(), E("onDelete", z.configure), z.pageDesign.allChartUuids) {
|
|
127
|
-
const e4 = z.pageDesign.allChartUuids.findIndex((e5) => e5 === z.configure.uuid);
|
|
128
|
-
e4 >= 0 && z.pageDesign.allChartUuids.splice(e4, 1);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return s(() => {
|
|
132
|
-
z.configure.props && z.configure.props.isInit && (delete z.configure.props.isInit, E("onSelectWidget", N, z.configure));
|
|
133
|
-
}), (e3, i2) => {
|
|
134
|
-
const n2 = t("el-icon");
|
|
135
|
-
return u(), g("div", { style: a([{ position: "relative" }, X.value]), class: p(K.value), ref_key: "thisRef", ref: V }, [(u(), c(f(F.value), { style: a([G.value, L.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(Z, ["stop"]), onHandleSelect: Z, class: p([[Y.value], "amb-design-item"]), onOnSelectWidget: $, onOnCustomAttrWidget: ee }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class"])), l(m("span", I, [l(D(n2, { onClick: d(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, J.value]]), D(n2, { onClick: d(ne, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, Y.value && e3.showSelectedClass]])], 6);
|
|
136
|
-
};
|
|
137
|
-
} });
|
|
1
|
+
import e from "./object-design.vue3.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import o from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const t = o(e, [["__scopeId", "data-v-e7e64fd1"]]);
|
|
138
5
|
export {
|
|
139
|
-
|
|
6
|
+
t as default
|
|
140
7
|
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { defineComponent as e, onUnmounted as i, watch as n, ref as o, computed as r, onMounted as s, resolveComponent as t, createElementBlock as u, openBlock as g, normalizeStyle as a, normalizeClass as p, createBlock as c, withDirectives as l, resolveDynamicComponent as f, withModifiers as d, createElementVNode as m, createVNode as D, withCtx as v, unref as b, vShow as h } from "vue";
|
|
2
|
+
import { CopyDocument as x, Delete as y } from "@element-plus/icons";
|
|
3
|
+
import j from "./error-design.vue.js";
|
|
4
|
+
import { getDesignComponentByName as C } from "../../utils/assemblys-config.js";
|
|
5
|
+
import { caculateCommonStyle as W } from "../../utils/container-design-util.js";
|
|
6
|
+
import { PageDimensions as k } from "../../utils/interfaces/page-design-types.js";
|
|
7
|
+
import { batchUpdatePermissions as O, batchRemovePermissions as S } from "../../utils/page-permission-util.js";
|
|
8
|
+
import { watchValidate as P, getRefrencePropMap as B, removePropFromRefrencePropMap as M } from "../../utils/form-design-util.js";
|
|
9
|
+
import { usePageContextStore as T } from "../../../../stores/page-store.js";
|
|
10
|
+
import { getListCode as w } from "super-page-runtime";
|
|
11
|
+
import { getFormPropName as U } from "../../utils/page-helper-util.js";
|
|
12
|
+
import { updateServiceInputs as _ } from "../../utils/chart-design-util.js";
|
|
13
|
+
const I = { class: "amb-widget-item-tool" }, N = e({ __name: "object-design", props: { pageDesign: {}, configure: {}, selectWidget: {}, indexObj: {}, showSelectedClass: { type: Boolean, default: true }, errorBlank: { type: Boolean, default: false }, isTableBtnLink: { type: Boolean, default: false } }, emits: ["onSelectWidget", "onCustomAttrWidget", "onCopy", "onDelete"], setup(e2, { emit: N2 }) {
|
|
14
|
+
var _a, _b, _c, _d;
|
|
15
|
+
const R = T(), q = e2;
|
|
16
|
+
if ("table" === q.configure.name && q.pageDesign.tableRuntimes && q.pageDesign.tableRuntimes[q.configure.uuid]) {
|
|
17
|
+
const e3 = q.pageDesign.tableRuntimes[q.configure.uuid].configure, i2 = JSON.parse(e3);
|
|
18
|
+
Object.assign(q.configure, i2), delete q.pageDesign.tableRuntimes[q.configure.uuid];
|
|
19
|
+
}
|
|
20
|
+
q.indexObj && q.indexObj.index++, null == q.configure.props && (q.configure.props = {}), null == q.configure.style && (q.configure.style = {});
|
|
21
|
+
const z = R.getModelField(U((_b = (_a = q.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop));
|
|
22
|
+
if (q.pageDesign && q.configure && "table" == q.configure.name) {
|
|
23
|
+
if (q.configure.uuid) {
|
|
24
|
+
q.pageDesign.tableUuids || (q.pageDesign.tableUuids = []);
|
|
25
|
+
const e3 = setTimeout(() => {
|
|
26
|
+
var _a2, _b2, _c2, _d2;
|
|
27
|
+
((_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(q.configure.uuid)) || ((_d2 = (_c2 = q.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.push(q.configure.uuid)), H(q.configure.code);
|
|
28
|
+
}, 500);
|
|
29
|
+
i(() => {
|
|
30
|
+
var _a2, _b2, _c2, _d2;
|
|
31
|
+
const i2 = (_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(q.configure.uuid);
|
|
32
|
+
null != i2 && i2 > -1 && ((_d2 = (_c2 = q.pageDesign) == null ? void 0 : _c2.tableUuids) == null ? void 0 : _d2.shift(i2, 1));
|
|
33
|
+
const n2 = w(q.pageDesign.code, q.pageDesign.version, q.configure.uuid);
|
|
34
|
+
q.pageDesign.listCodesMap && q.pageDesign.listCodesMap[n2] && delete q.pageDesign.listCodesMap[n2], q.pageDesign.subTableWatchProps && delete q.pageDesign.subTableWatchProps[q.configure.uuid], e3 && clearTimeout(e3);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
n(() => q.configure.code, (e3) => {
|
|
38
|
+
H(e3);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function H(e3) {
|
|
42
|
+
q.pageDesign.listCodesMap || (q.pageDesign.listCodesMap = {});
|
|
43
|
+
const i2 = w(q.pageDesign.code, q.pageDesign.version, q.configure.uuid);
|
|
44
|
+
i2 && (q.pageDesign.listCodesMap[i2] = e3 || i2);
|
|
45
|
+
}
|
|
46
|
+
q.configure.events && q.pageDesign && (n(q.configure.events, (e3) => {
|
|
47
|
+
O(q.configure, q.pageDesign);
|
|
48
|
+
const i2 = q.configure.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
|
|
49
|
+
q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.events = i2;
|
|
50
|
+
}, { immediate: true }), i(() => {
|
|
51
|
+
S(q.pageDesign, q.configure.uuid);
|
|
52
|
+
})), q.configure.props.linkPage && q.pageDesign && n(q.configure.props.linkPage, (e3) => {
|
|
53
|
+
q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.linkPage = q.configure.props.linkPage;
|
|
54
|
+
}, { immediate: true }), q.configure.props.parameter && q.pageDesign && n(q.configure.props.parameter, (e3) => {
|
|
55
|
+
let i2 = {};
|
|
56
|
+
e3.forEach((e4) => {
|
|
57
|
+
void 0 !== e4.paramName && "" !== e4.paramName && null !== e4.paramName && void 0 !== e4.paramValue && "" !== e4.paramValue && null !== e4.paramValue && (i2[e4.paramName] = e4.paramValue);
|
|
58
|
+
}), q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.customParams = i2;
|
|
59
|
+
}, { immediate: true }), ((_d = (_c = q.configure.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.serviceInputs) && q.pageDesign && n(q.configure.props.dataOrigin.serviceInputs, (e3) => {
|
|
60
|
+
_(q.configure, e3);
|
|
61
|
+
}, { immediate: true }), q.configure.componentIndex = q.indexObj.index;
|
|
62
|
+
let L = q.indexObj.index;
|
|
63
|
+
const V = N2, A = o({});
|
|
64
|
+
A.value = C(q.configure.name);
|
|
65
|
+
const E = o(true);
|
|
66
|
+
null == A.value && (A.value = j, E.value = false), n(() => q.configure.name, (e3) => {
|
|
67
|
+
A.value = C(e3);
|
|
68
|
+
}), q.configure.props && q.configure.props.verification && (q.configure.props.base && q.configure.props.base.title && n(() => q.configure.props.base.title, (e3) => {
|
|
69
|
+
P(q.configure, q.configure.props.verification, z);
|
|
70
|
+
}), q.configure.props.base && q.configure.props.base.prop && (n(() => q.configure.props.base.prop, (e3, i2) => {
|
|
71
|
+
P(q.configure, q.configure.props.verification, z), q.pageDesign.runtime || (q.pageDesign.runtime = {}), q.pageDesign.runtime.refercePropMap || (q.pageDesign.runtime.refercePropMap = {}), B(e3, i2, q.pageDesign.runtime.refercePropMap);
|
|
72
|
+
}), i(() => {
|
|
73
|
+
var _a2, _b2;
|
|
74
|
+
M(q.configure.props.base.prop, (_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
|
|
75
|
+
})), n(q.configure.props.verification, (e3, i2) => {
|
|
76
|
+
P(q.configure, e3, z);
|
|
77
|
+
})), q.pageDesign.props && n(() => q.pageDesign.props.activeWorkflow, (e3, i2) => {
|
|
78
|
+
if (e3) {
|
|
79
|
+
const e4 = q.configure.props && q.configure.props.rules ? q.configure.props.rules.filter((e5) => e5.required) : null;
|
|
80
|
+
e4 && e4.length > 0 && e4.forEach((e5) => {
|
|
81
|
+
e5.required = false;
|
|
82
|
+
}), q.configure.props && q.configure.props.verification && q.configure.props.verification.required && (q.configure.props.verification.required = false);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
const F = o(null), J = o({}), G = o(""), K = o({});
|
|
86
|
+
function Q() {
|
|
87
|
+
W(q.configure, J, G), q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.common || (q.configure.runtime.common = {}), q.configure.runtime.common.class = G.value, q.configure.runtime.common.style = J.value;
|
|
88
|
+
}
|
|
89
|
+
if (q.configure.props && q.configure.props && (n(q.configure.props.size, (e3) => {
|
|
90
|
+
Q();
|
|
91
|
+
}), n(q.configure.props.position, (e3) => {
|
|
92
|
+
Q();
|
|
93
|
+
}, { immediate: true })), q.configure.style && q.configure.style && n(q.configure.style, () => {
|
|
94
|
+
Q();
|
|
95
|
+
}), q.configure.props) {
|
|
96
|
+
q.configure.props.size || (q.configure.props.size = {});
|
|
97
|
+
const e3 = q.configure.props.size;
|
|
98
|
+
let i2 = e3[k.PC];
|
|
99
|
+
i2 || (i2 = {}, e3[k.PC] = i2), 0 == Object.keys(i2).length && (i2.widthType = e3.widthType, i2.flexSpan = e3.flexSpan, i2.fixWidth = e3.fixWidth, i2.fixHeight = e3.fixHeight, delete e3.widthType, delete e3.flexSpan, delete e3.fixWidth, delete e3.fixHeight);
|
|
100
|
+
}
|
|
101
|
+
const X = r(() => {
|
|
102
|
+
const e3 = J.value;
|
|
103
|
+
if (K.value = {}, !e3 || !q.pageDesign) return {};
|
|
104
|
+
const i2 = {};
|
|
105
|
+
q.configure.design && q.configure.design.style && Object.assign(i2, q.configure.design.style);
|
|
106
|
+
const n2 = q.pageDesign.dimensions ? q.pageDesign.dimensions : "pc", o2 = e3[n2 + "_style"];
|
|
107
|
+
return o2 && (i2.width = o2.width, i2.height = o2.height, K.value = { height: o2.height }), G.value = e3[n2 + "_class"], i2;
|
|
108
|
+
});
|
|
109
|
+
n(q.selectWidget, (e3) => {
|
|
110
|
+
e3 && e3.value == L ? Y.value = "amb-design-item-selected" : Y.value = "";
|
|
111
|
+
});
|
|
112
|
+
const Y = o("");
|
|
113
|
+
function Z(e3) {
|
|
114
|
+
e3 && e3.preventDefault(), V("onSelectWidget", L, q.configure);
|
|
115
|
+
}
|
|
116
|
+
function $(e3, i2) {
|
|
117
|
+
V("onSelectWidget", e3, i2);
|
|
118
|
+
}
|
|
119
|
+
function ee(e3, i2) {
|
|
120
|
+
V("onCustomAttrWidget", e3, i2);
|
|
121
|
+
}
|
|
122
|
+
function ie(e3) {
|
|
123
|
+
e3.preventDefault(), V("onCopy", q.configure);
|
|
124
|
+
}
|
|
125
|
+
function ne(e3) {
|
|
126
|
+
if (e3.preventDefault(), V("onDelete", q.configure), q.pageDesign.allChartUuids) {
|
|
127
|
+
const e4 = q.pageDesign.allChartUuids.findIndex((e5) => e5 === q.configure.uuid);
|
|
128
|
+
e4 >= 0 && q.pageDesign.allChartUuids.splice(e4, 1);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return s(() => {
|
|
132
|
+
q.configure.props && q.configure.props.isInit && (delete q.configure.props.isInit, V("onSelectWidget", L, q.configure));
|
|
133
|
+
}), (e3, i2) => {
|
|
134
|
+
const n2 = t("el-icon");
|
|
135
|
+
return g(), u("div", { class: p(["amb-object-design-ref", G.value]), style: a([{ position: "relative" }, X.value]), ref_key: "thisRef", ref: F }, [(g(), c(f(A.value), { style: a([J.value, K.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(Z, ["stop"]), onHandleSelect: Z, class: p([[Y.value], "amb-design-item"]), isTableBtnLink: q.isTableBtnLink, onOnSelectWidget: $, onOnCustomAttrWidget: ee }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class", "isTableBtnLink"])), l(m("span", I, [l(D(n2, { onClick: d(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, E.value]]), D(n2, { onClick: d(ne, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, Y.value && e3.showSelectedClass]])], 6);
|
|
136
|
+
};
|
|
137
|
+
} });
|
|
138
|
+
export {
|
|
139
|
+
N as default
|
|
140
|
+
};
|
package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js
CHANGED
|
@@ -61,10 +61,10 @@ const h = { class: "operation-area operation-area-float" }, $ = e({ __name: "set
|
|
|
61
61
|
q.value.publishVersion = w.publishVersion, q.value.systemCode = w.systemCode;
|
|
62
62
|
}), (e3, l2) => {
|
|
63
63
|
const a2 = t("el-input"), b2 = t("el-form-item"), y2 = t("el-col"), C2 = t("el-row"), g2 = t("el-button"), $3 = t("el-option"), w2 = t("el-select"), N2 = t("el-tag"), I = t("el-switch"), j = t("el-form"), R = t("el-card"), J = t("el-dialog");
|
|
64
|
-
return o(), u("div", null, [n(J, { "close-on-click-modal": false, title: "表单编号管理", "append-to-body": "", fullscreen: "", "model-value": "", onClose: l2[10] || (l2[10] = () => X()) }, { default: s(() => [n(R, { style: { height: "100%", "overflow-y": "scroll", "margin-bottom": "40px" } }, { default: s(() => [n(j, { ref_key: "form", ref: x, model: q.value, "label-position": "left", "label-width": "160px" }, { default: s(() => [n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "规则编号", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleCode" }, { default: s(() => [n(a2, { modelValue: q.value.ruleCode, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => q.value.ruleCode = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "规则名称", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleName" }, { default: s(() => [n(a2, { modelValue: q.value.ruleName, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => q.value.ruleName = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "数据表名", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "entityTableCode" }, { default: s(() => [n(a2, { modelValue: q.value.entityTableCode, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => q.value.entityTableCode = e4), title: q.value.entityTableCode, onClick: z, clearable: "", readonly: "true" }, { append: s(() => [n(g2, { icon: r(V), size: "small", onClick: z }, null, 8, ["icon"]), n(g2, { icon: r(_), title: "Clear", size: "small", onClick: D }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "编号字段", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "field" }, { default: s(() => [n(w2, { modelValue: q.value.field, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => q.value.field = e4), "allow-create": "", clearable: "", filterable: "", placeholder: "请选择", style: { "padding-left": "10px" } }, { default: s(() => [(o(true), u(i, null, m(T.value, (e4) => (o(), p($3, { key: e4.dbColumnName, label: e4.alias + " " + (e4.dbColumnName === e4.alias ? "" : e4.dbColumnName), value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 24 }, { default: s(() => [n(b2, { label: "规则设置", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleSet" }, { default: s(() => [(o(), u(i, null, m(P, (e4) => n(N2, { key: e4.value, style: { "margin-left": "20px" }, onClick: (l3) => {
|
|
64
|
+
return o(), u("div", null, [n(J, { "close-on-click-modal": false, title: "表单编号管理", "append-to-body": "", fullscreen: "", "model-value": "", onClose: l2[10] || (l2[10] = () => X()) }, { default: s(() => [n(R, { style: { height: "100%", "overflow-y": "scroll", "margin-bottom": "40px" } }, { default: s(() => [n(j, { ref_key: "form", ref: x, model: q.value, "label-position": "left", "label-width": "160px" }, { default: s(() => [n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "规则编号", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleCode" }, { default: s(() => [n(a2, { modelValue: q.value.ruleCode, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => q.value.ruleCode = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "规则名称", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleName" }, { default: s(() => [n(a2, { modelValue: q.value.ruleName, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => q.value.ruleName = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "数据表名", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "entityTableCode" }, { default: s(() => [n(a2, { modelValue: q.value.entityTableCode, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => q.value.entityTableCode = e4), title: q.value.entityTableCode, onClick: z, clearable: "", readonly: "true" }, { append: s(() => [n(g2, { type: "default", icon: r(V), size: "small", onClick: z }, null, 8, ["icon"]), n(g2, { type: "default", icon: r(_), title: "Clear", size: "small", onClick: D }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "编号字段", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "field" }, { default: s(() => [n(w2, { modelValue: q.value.field, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => q.value.field = e4), "allow-create": "", clearable: "", filterable: "", placeholder: "请选择", style: { "padding-left": "10px" } }, { default: s(() => [(o(true), u(i, null, m(T.value, (e4) => (o(), p($3, { key: e4.dbColumnName, label: e4.alias + " " + (e4.dbColumnName === e4.alias ? "" : e4.dbColumnName), value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 24 }, { default: s(() => [n(b2, { label: "规则设置", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }], prop: "ruleSet" }, { default: s(() => [(o(), u(i, null, m(P, (e4) => n(N2, { key: e4.value, style: { "margin-left": "20px" }, onClick: (l3) => {
|
|
65
65
|
return a3 = e4, void (q.value.ruleSet ? q.value.ruleSet = q.value.ruleSet + a3.value : q.value.ruleSet = a3.value);
|
|
66
66
|
var a3;
|
|
67
|
-
} }, { default: s(() => [v(f(e4.label), 1)]), _: 2 }, 1032, ["onClick"])), 64)), n(a2, { modelValue: q.value.ruleSet, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => q.value.ruleSet = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "是否需要连续编号" }, { default: s(() => [n(I, { modelValue: q.value.continuousMatch, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => q.value.continuousMatch = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "不同值是否需要重置" }, { default: s(() => [n(I, { modelValue: q.value.differentDataReset, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => q.value.differentDataReset = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(b2, { label: "生成时间", prop: "enerationMode" }, { default: s(() => [n(w2, { modelValue: q.value.enerationMode, "onUpdate:modelValue": l2[7] || (l2[7] = (e4) => q.value.enerationMode = e4), clearable: "", style: { "padding-left": "10px" } }, { default: s(() => [(o(), u(i, null, m(U, (e4) => n($3, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(b2, { label: "规则填写说明" }, { default: s(() => l2[11] || (l2[11] = [d("div", { style: { display: "block" } }, [d("div", null, " 1. 静态默认参数设置:$year年,$month月,$quarter季,$date天,$hour12(小时,12小时制),$hour24(小时,24小时制),$minute分 "), d("div", null, "2. 表单支态参数设置:格式为,如:BPPJ-${factory}-$year-$month;"), d("div", null, " 3. 编号规则设置必须带有流水号 ,流水号以X表示,如三位流水号,则以三个XXX表示:BPPJ-${factory}-$year-$month-XXX ")], -1)])), _: 1 }), n(b2, { label: "拓展参数(条件)", prop: "developmentConditions" }, { default: s(() => [n(a2, { modelValue: q.value.developmentConditions, "onUpdate:modelValue": l2[8] || (l2[8] = (e4) => q.value.developmentConditions = e4) }, null, 8, ["modelValue"])]), _: 1 }), n(b2, { label: "拓展参数(条件)说明:" }, { default: s(() => l2[12] || (l2[12] = [d("div", null, "1. 为hql 语句 前辍为t 如:t.factory = 'B1' or t.factory = 'B2'", -1)])), _: 1 }), n(b2, { label: "效果预览", prop: "preview" }, { default: s(() => [n(a2, { modelValue: q.value.preview, "onUpdate:modelValue": l2[9] || (l2[9] = (e4) => q.value.preview = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }), d("div", h, [n(g2, { size: "default", type: "primary", onClick: M }, { default: s(() => l2[13] || (l2[13] = [v("保存 ")])), _: 1 }), n(g2, { class: "button--default", size: "default", onClick: A }, { default: s(() => l2[14] || (l2[14] = [v("预览 ")])), _: 1 }), n(g2, { class: "button--default", size: "default", onClick: X }, { default: s(() => l2[15] || (l2[15] = [v(" 关闭 ")])), _: 1 })])]), _: 1 }), n(c, { ref_key: "selectTableDialog", ref: S, onSelectTable: B, systemCode: r(k).systemCode, systemVersion: r(k).systemVersion }, null, 8, ["systemCode", "systemVersion"])]);
|
|
67
|
+
} }, { default: s(() => [v(f(e4.label), 1)]), _: 2 }, 1032, ["onClick"])), 64)), n(a2, { modelValue: q.value.ruleSet, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => q.value.ruleSet = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(C2, { gutter: 22 }, { default: s(() => [n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "是否需要连续编号" }, { default: s(() => [n(I, { modelValue: q.value.continuousMatch, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => q.value.continuousMatch = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }), n(y2, { span: 12 }, { default: s(() => [n(b2, { label: "不同值是否需要重置" }, { default: s(() => [n(I, { modelValue: q.value.differentDataReset, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => q.value.differentDataReset = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }), n(b2, { label: "生成时间", prop: "enerationMode" }, { default: s(() => [n(w2, { modelValue: q.value.enerationMode, "onUpdate:modelValue": l2[7] || (l2[7] = (e4) => q.value.enerationMode = e4), clearable: "", style: { "padding-left": "10px" } }, { default: s(() => [(o(), u(i, null, m(U, (e4) => n($3, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(b2, { label: "规则填写说明" }, { default: s(() => l2[11] || (l2[11] = [d("div", { style: { display: "block" } }, [d("div", null, " 1. 静态默认参数设置:$year年,$month月,$quarter季,$date天,$hour12(小时,12小时制),$hour24(小时,24小时制),$minute分 "), d("div", null, "2. 表单支态参数设置:格式为,如:BPPJ-${factory}-$year-$month;"), d("div", null, " 3. 编号规则设置必须带有流水号 ,流水号以X表示,如三位流水号,则以三个XXX表示:BPPJ-${factory}-$year-$month-XXX ")], -1)])), _: 1 }), n(b2, { label: "拓展参数(条件)", prop: "developmentConditions" }, { default: s(() => [n(a2, { modelValue: q.value.developmentConditions, "onUpdate:modelValue": l2[8] || (l2[8] = (e4) => q.value.developmentConditions = e4) }, null, 8, ["modelValue"])]), _: 1 }), n(b2, { label: "拓展参数(条件)说明:" }, { default: s(() => l2[12] || (l2[12] = [d("div", null, "1. 为hql 语句 前辍为t 如:t.factory = 'B1' or t.factory = 'B2'", -1)])), _: 1 }), n(b2, { label: "效果预览", prop: "preview" }, { default: s(() => [n(a2, { modelValue: q.value.preview, "onUpdate:modelValue": l2[9] || (l2[9] = (e4) => q.value.preview = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }), d("div", h, [n(g2, { size: "default", type: "primary", onClick: M }, { default: s(() => l2[13] || (l2[13] = [v("保存 ")])), _: 1 }), n(g2, { type: "default", class: "button--default", size: "default", onClick: A }, { default: s(() => l2[14] || (l2[14] = [v("预览 ")])), _: 1 }), n(g2, { type: "default", class: "button--default", size: "default", onClick: X }, { default: s(() => l2[15] || (l2[15] = [v(" 关闭 ")])), _: 1 })])]), _: 1 }), n(c, { ref_key: "selectTableDialog", ref: S, onSelectTable: B, systemCode: r(k).systemCode, systemVersion: r(k).systemVersion }, null, 8, ["systemCode", "systemVersion"])]);
|
|
68
68
|
};
|
|
69
69
|
} });
|
|
70
70
|
export {
|
|
@@ -35,7 +35,7 @@ const g = { class: "dialog-footer" }, C = e({ __name: "weight-field-input", prop
|
|
|
35
35
|
h.judgeHeavyList && (L.value = h.judgeHeavyList);
|
|
36
36
|
}), (l2, a2) => {
|
|
37
37
|
const b2 = t("el-button"), V2 = t("el-row"), C3 = t("el-option"), _2 = t("el-select"), w2 = t("el-table-column"), k2 = t("el-input"), U2 = t("el-table"), F = t("el-dialog");
|
|
38
|
-
return s(), o(F, { "model-value": "", title: "判重组合字段", "append-to-body": "", onBeforeClose: a2[1] || (a2[1] = () => l2.$emit("close")) }, { footer: u(() => [f("div", g, [i(b2, { onClick: a2[0] || (a2[0] = (e3) => l2.$emit("close")) }, { default: u(() => a2[4] || (a2[4] = [d("取消")])), _: 1 }), i(b2, { type: "primary", onClick: A }, { default: u(() => a2[5] || (a2[5] = [d(" 确定 ")])), _: 1 })])]), default: u(() => [i(V2, { style: { "padding-bottom": "8px" } }, { default: u(() => [i(b2, { icon: n(y), plain: "", type: "primary", onClick: z }, { default: u(() => a2[2] || (a2[2] = [d(" 添加 ")])), _: 1 }, 8, ["icon"]), i(b2, { icon: n(c), plain: "", type: "primary", onClick: N }, { default: u(() => a2[3] || (a2[3] = [d(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), i(U2, { "highlight-current-row": "", onCurrentChange: x, data: L.value, style: { width: "100%" } }, { default: u(() => [i(w2, { prop: "date", label: "判重字段", align: "center" }, { default: u((l3) => [i(_2, { modelValue: l3.row.duplicateFieldList, "onUpdate:modelValue": (e3) => l3.row.duplicateFieldList = e3, size: "default", filterable: "", multiple: "", clearable: "", placeholder: "请选择", onChange: (e3) => function(e4, l4) {
|
|
38
|
+
return s(), o(F, { "model-value": "", title: "判重组合字段", "append-to-body": "", onBeforeClose: a2[1] || (a2[1] = () => l2.$emit("close")) }, { footer: u(() => [f("div", g, [i(b2, { type: "default", onClick: a2[0] || (a2[0] = (e3) => l2.$emit("close")) }, { default: u(() => a2[4] || (a2[4] = [d("取消")])), _: 1 }), i(b2, { type: "primary", onClick: A }, { default: u(() => a2[5] || (a2[5] = [d(" 确定 ")])), _: 1 })])]), default: u(() => [i(V2, { style: { "padding-bottom": "8px" } }, { default: u(() => [i(b2, { icon: n(y), plain: "", type: "primary", onClick: z }, { default: u(() => a2[2] || (a2[2] = [d(" 添加 ")])), _: 1 }, 8, ["icon"]), i(b2, { icon: n(c), plain: "", type: "primary", onClick: N }, { default: u(() => a2[3] || (a2[3] = [d(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), i(U2, { "highlight-current-row": "", onCurrentChange: x, data: L.value, style: { width: "100%" } }, { default: u(() => [i(w2, { prop: "date", label: "判重字段", align: "center" }, { default: u((l3) => [i(_2, { modelValue: l3.row.duplicateFieldList, "onUpdate:modelValue": (e3) => l3.row.duplicateFieldList = e3, size: "default", filterable: "", multiple: "", clearable: "", placeholder: "请选择", onChange: (e3) => function(e4, l4) {
|
|
39
39
|
l4.fieldalias = "", 0 != e4.length && (h.fieldList.forEach((a3) => {
|
|
40
40
|
e4.forEach((e5) => {
|
|
41
41
|
a3.dbColumnName === e5 && (l4.fieldalias += a3.alias + ",");
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as u, withCtx as t, createElementVNode as d, createVNode as r, createTextVNode as n } from "vue";
|
|
2
|
-
const m = { style: { "padding-bottom": "8px" } },
|
|
3
|
-
const
|
|
4
|
-
function
|
|
2
|
+
const m = { style: { "padding-bottom": "8px" } }, f = e({ __name: "create-workflow-dialog", emits: ["close"], setup(e2, { emit: f2 }) {
|
|
3
|
+
const i = l({}), s = f2, p = l(null);
|
|
4
|
+
function c() {
|
|
5
5
|
s("close");
|
|
6
6
|
}
|
|
7
7
|
function v() {
|
|
8
|
-
|
|
9
|
-
e3 && s("close",
|
|
8
|
+
p.value.validate((e3) => {
|
|
9
|
+
e3 && s("close", i.value);
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
return (e3, l2) => {
|
|
13
|
-
const
|
|
14
|
-
return u(), a(b, { "model-value": "", title: "新建流程", onClose:
|
|
13
|
+
const f3 = o("el-button"), s2 = o("el-input"), g = o("el-form-item"), _ = o("el-form"), b = o("el-dialog");
|
|
14
|
+
return u(), a(b, { "append-to-body": "", "model-value": "", title: "新建流程", onClose: c }, { default: t(() => [d("div", m, [r(f3, { type: "default", onClick: v }, { default: t(() => l2[2] || (l2[2] = [n("确定 ")])), _: 1 })]), r(_, { ref_key: "wfInfoRef", ref: p, model: i.value }, { default: t(() => [r(g, { label: "流程编码", prop: "code", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }] }, { default: t(() => [r(s2, { modelValue: i.value.code, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => i.value.code = e4) }, null, 8, ["modelValue"])]), _: 1 }), r(g, { label: "流程名称", prop: "name", rules: [{ required: true, message: "此项不能为空", trigger: "blur" }] }, { default: t(() => [r(s2, { modelValue: i.value.name, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => i.value.name = e4) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 });
|
|
15
15
|
};
|
|
16
16
|
} });
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
f as default
|
|
19
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as
|
|
2
|
-
import { Search as m, Close as b, Setting as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as o, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createVNode as t, createCommentVNode as i, createElementVNode as u, createTextVNode as s, toDisplayString as f, createElementBlock as p, Fragment as c, renderList as d, unref as g } from "vue";
|
|
2
|
+
import { Search as m, Close as b, Setting as y } from "@element-plus/icons";
|
|
3
|
+
import k from "../common/common-select-table.vue.js";
|
|
4
4
|
import w from "./variable-dialog.vue.js";
|
|
5
5
|
import x from "./create-workflow-dialog.vue.js";
|
|
6
6
|
import { queryTableFields as v, changeFeieldToMap as V } from "../../../utils/page-table-util.js";
|
|
@@ -47,8 +47,8 @@ const S = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8p
|
|
|
47
47
|
{
|
|
48
48
|
const o2 = [];
|
|
49
49
|
for (let l2 of e3) {
|
|
50
|
-
const e4 = { label: l2.name + (l2.alias ? "(" + l2.alias + ")" : "") },
|
|
51
|
-
|
|
50
|
+
const e4 = { label: l2.name + (l2.alias ? "(" + l2.alias + ")" : "") }, a2 = $(l2.items);
|
|
51
|
+
a2 && (e4.children = a2), o2.push(e4);
|
|
52
52
|
}
|
|
53
53
|
return o2;
|
|
54
54
|
}
|
|
@@ -66,7 +66,7 @@ const S = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8p
|
|
|
66
66
|
e4 && (z.configure.props.createWorkflowCode = e4.code, z.configure.props.createWorkflowName = e4.name, z.configure.workflowCode = z.configure.props.createWorkflowCode, z.configure.workflowVersion = e4.definitionVersion), E.value = false;
|
|
67
67
|
}) : E.value = false;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function ae(e3) {
|
|
70
70
|
H.value ? W.confirm("开启流程后所有字段的必填验证配置会被取消,以流程图设置中的为准,确定开启吗?", "提示", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
|
|
71
71
|
z.configure.props.activeWorkflow = true;
|
|
72
72
|
}).catch((e4) => {
|
|
@@ -74,8 +74,8 @@ const S = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8p
|
|
|
74
74
|
}) : z.configure.props.activeWorkflow = false;
|
|
75
75
|
}
|
|
76
76
|
return ee(z.configure.props ? z.configure.props.workflowSource : null), (e3, o2) => {
|
|
77
|
-
const v2 = l("el-text"), V2 = l("el-form-item"), _2 = l("el-input"), C2 = l("el-radio-button"), h2 = l("el-radio-group"), W2 = l("el-switch"), j3 = l("el-option"), P2 = l("el-select"), Z2 = l("el-collapse-item"), $2 = l("el-button"),
|
|
78
|
-
return
|
|
77
|
+
const v2 = l("el-text"), V2 = l("el-form-item"), _2 = l("el-input"), C2 = l("el-radio-button"), h2 = l("el-radio-group"), W2 = l("el-switch"), j3 = l("el-option"), P2 = l("el-select"), Z2 = l("el-collapse-item"), $2 = l("el-button"), re = l("el-tree"), ne = l("el-form"), te = l("el-radio"), ie = l("el-collapse");
|
|
78
|
+
return r(), a(ne, { "label-width": "80px", size: "small" }, { default: n(() => [t(ie, { modelValue: B.value, "onUpdate:modelValue": o2[9] || (o2[9] = (e4) => B.value = e4), style: { "margin-top": "6px" } }, { default: n(() => [t(Z2, { title: "基本", name: "1", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", S, [t(V2, { label: "编码" }, { default: n(() => [t(v2, null, { default: n(() => [s(f(e3.configure.code), 1)]), _: 1 })]), _: 1 }), t(V2, { label: "名称", style: { "margin-top": "-10px" } }, { default: n(() => [t(_2, { modelValue: e3.configure.label, "onUpdate:modelValue": o2[0] || (o2[0] = (o3) => e3.configure.label = o3) }, null, 8, ["modelValue"])]), _: 1 }), t(V2, { label: "页面类型", style: { "margin-top": "-10px" } }, { default: n(() => [t(h2, { modelValue: e3.configure.pageType, "onUpdate:modelValue": o2[1] || (o2[1] = (o3) => e3.configure.pageType = o3) }, { default: n(() => [t(C2, { value: "form" }, { default: n(() => o2[10] || (o2[10] = [s("表单")])), _: 1 }), t(C2, { value: "list" }, { default: n(() => o2[11] || (o2[11] = [s("台帐")])), _: 1 }), t(C2, { value: "other" }, { default: n(() => o2[12] || (o2[12] = [s("其他")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), t(V2, { label: "Flex布局", style: { "margin-top": "-10px", "margin-bottom": "-15px" } }, { default: n(() => [t(W2, { modelValue: e3.configure.props.isFlex, "onUpdate:modelValue": o2[2] || (o2[2] = (o3) => e3.configure.props.isFlex = o3) }, null, 8, ["modelValue"])]), _: 1 }), e3.configure.props.isFlex ? (r(), a(V2, { key: 0, label: "水平对齐", style: { "margin-top": "18px", "margin-bottom": "-15px" } }, { default: n(() => [t(P2, { modelValue: e3.configure.props.flexJustify, "onUpdate:modelValue": o2[3] || (o2[3] = (o3) => e3.configure.props.flexJustify = o3), placeholder: "默认", clearable: "" }, { default: n(() => [t(j3, { label: "start", value: "start" }), t(j3, { label: "center", value: "center" }), t(j3, { label: "space-between", value: "space-between" }), t(j3, { label: "space-around", value: "space-around" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true), "2" == e3.configure.props.isFlex ? (r(), a(V2, { key: 1, label: "分栏间隔", style: { "margin-bottom": "-15px", "margin-top": "-10px" } }, { default: n(() => [t(P2, { modelValue: e3.configure.props.flexGutter, "onUpdate:modelValue": o2[4] || (o2[4] = (o3) => e3.configure.props.flexGutter = o3), placeholder: "默认", clearable: "" }, { default: n(() => [(r(true), p(c, null, d(O.value, (e4) => (r(), a(j3, { label: e4, value: e4 }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true)])]), _: 1 }), t(Z2, { title: "页面变量", name: "3", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", T, [e3.configure.pageType && "form" != e3.configure.pageType ? i("", true) : (r(), a(V2, { key: 0, label: "数据模型", class: "amb-design-attr-item" }, { default: n(() => [t(_2, { modelValue: e3.configure.tableAlias, "onUpdate:modelValue": o2[5] || (o2[5] = (o3) => e3.configure.tableAlias = o3), title: e3.configure.tableAlias, clearable: "", readonly: "true" }, { append: n(() => [t($2, { type: "default", icon: g(m), onClick: L, size: "small" }, null, 8, ["icon"]), t($2, { type: "default", icon: g(b), onClick: Q, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 })), t(ne, { "label-position": "top", size: "small" }, { default: n(() => [t(V2, { "label-position": "top", class: "amb-design-attr-item" }, { label: n(() => [o2[13] || (o2[13] = s(" 自定义变量 ")), t($2, { type: "primary", round: "", icon: g(y), onClick: X, size: "small" }, null, 8, ["icon"])]), default: n(() => [t(re, { style: { border: "1px solid #f5f6f8", padding: "10px", width: "100%", "min-height": "100px" }, data: I.value, props: A, "default-expand-all": "", "expand-on-click-node": false }, null, 8, ["data"])]), _: 1 })]), _: 1 })])]), _: 1 }), e3.configure.pageType && "form" != e3.configure.pageType || !z.configure.tableName ? i("", true) : (r(), a(Z2, { key: 0, title: "工作流", name: "2", class: "amb-design-attr-group-header" }, { default: n(() => [u("div", U, [t(V2, { label: "启用", style: { "margin-bottom": "-14px" } }, { default: n(() => [t(W2, { modelValue: H.value, "onUpdate:modelValue": o2[6] || (o2[6] = (e4) => H.value = e4), onChange: ae }, null, 8, ["modelValue"])]), _: 1 }), e3.configure.props.activeWorkflow ? (r(), a(V2, { key: 0, label: "流程来源", style: { "margin-top": "14px", "margin-bottom": "-15px" } }, { default: n(() => [t(h2, { modelValue: e3.configure.props.workflowSource, "onUpdate:modelValue": o2[7] || (o2[7] = (o3) => e3.configure.props.workflowSource = o3), onChange: ee }, { default: n(() => [t(te, { value: "link" }, { default: n(() => o2[14] || (o2[14] = [s("选择引用")])), _: 1 }), t(te, { value: "create" }, { default: n(() => o2[15] || (o2[15] = [s("新增流程")])), _: 1 }), e3.configure.props.workflowSource && "create" === e3.configure.props.workflowSource ? (r(), p("span", F, [t($2, { type: "default", onClick: oe }, { default: n(() => o2[16] || (o2[16] = [s("新增")])), _: 1 })])) : i("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "link" === e3.configure.props.workflowSource ? (r(), a(V2, { key: 1, label: "选择引用", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [t(P2, { modelValue: q.value, "onUpdate:modelValue": o2[8] || (o2[8] = (e4) => q.value = e4), onChange: K }, { default: n(() => [(r(true), p(c, null, d(M.value, (e4) => (r(), a(j3, { key: e4.code, label: e4.name, value: e4.code }, { default: n(() => [u("span", N, f(e4.name), 1), u("span", D, f(e4.code), 1)]), _: 2 }, 1032, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "link" === e3.configure.props.workflowSource ? (r(), a(V2, { key: 2, label: "流程编码", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [s(f(e3.configure.props.linkWorkflowCode), 1)]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "create" === e3.configure.props.workflowSource ? (r(), a(V2, { key: 3, label: "流程名称", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [s(f(e3.configure.props.createWorkflowName), 1)]), _: 1 })) : i("", true), e3.configure.props.activeWorkflow && e3.configure.props.workflowSource && "create" === e3.configure.props.workflowSource ? (r(), a(V2, { key: 4, label: "流程编码", style: { "margin-top": "18px", "margin-bottom": "-12px" } }, { default: n(() => [s(f(e3.configure.props.createWorkflowCode), 1)]), _: 1 })) : i("", true)])]), _: 1 }))]), _: 1 }, 8, ["modelValue"]), t(k, { ref_key: "selectTableDialog", ref: G, onSelectTable: R, systemCode: e3.configure.systemCode, systemVersion: e3.configure.systemVersion }, null, 8, ["systemCode", "systemVersion"]), t(w, { ref_key: "refVariableDialog", ref: J, pageDesign: e3.configure, onClose: Y }, null, 8, ["pageDesign"]), E.value ? (r(), a(x, { key: 0, pageDesign: e3.configure, onClose: le }, null, 8, ["pageDesign"])) : i("", true)]), _: 1 });
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -41,7 +41,7 @@ const y = { key: 0 }, V = { key: 0 }, h = { key: 0 }, v = { key: 0 }, k = e({ __
|
|
|
41
41
|
e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), U.value = e3, D.value = true;
|
|
42
42
|
} }), (e3, l2) => {
|
|
43
43
|
const k3 = a("el-table-column"), _2 = a("el-input"), x2 = a("el-option"), U2 = a("el-select"), A2 = a("el-input-number"), H2 = a("el-button"), R = a("el-tooltip"), B = a("el-dropdown-item"), F = a("el-dropdown-menu"), G = a("el-dropdown"), I = a("el-table"), J = a("el-dialog");
|
|
44
|
-
return t(), o(J, { modelValue: D.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => D.value = e4), title: "自定义参数", width: "800" }, { default: i(() => [n(I, { data: e3.pageDesign.variables, "row-key": "code", style: { width: "100%", "margin-bottom": "20px" }, size: "small", onRowDblclick: C, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: i(() => [n(k3, { type: "index", width: "60", label: "序号" }), n(k3, { prop: "name", width: "200", label: "变量名" }, { default: i((e4) => [e4.row.$editing ? (t(), o(_2, { key: 1, style: { width: "120px" }, disabled: e4.row.disabled, modelValue: e4.row.name, "onUpdate:modelValue": (l3) => e4.row.name = l3, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (t(), d("span", y, r(e4.row.name), 1))]), _: 1 }), n(k3, { prop: "alias", width: "140", label: "别名" }, { default: i((e4) => [e4.row.$editing ? (t(), o(_2, { key: 1, disabled: e4.row.disabled, modelValue: e4.row.alias, "onUpdate:modelValue": (l3) => e4.row.alias = l3, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (t(), d("span", V, r(e4.row.alias), 1))]), _: 1 }), n(k3, { prop: "type", width: "130", label: "类型" }, { default: i((e4) => [e4.row.$editing ? (t(), o(U2, { key: 1, modelValue: e4.row.type, "onUpdate:modelValue": (l3) => e4.row.type = l3, onChange: (l3) => {
|
|
44
|
+
return t(), o(J, { "append-to-body": "", modelValue: D.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => D.value = e4), title: "自定义参数", width: "800" }, { default: i(() => [n(I, { data: e3.pageDesign.variables, "row-key": "code", style: { width: "100%", "margin-bottom": "20px" }, size: "small", onRowDblclick: C, border: "", "tree-props": { children: "items" }, "default-expand-all": "" }, { default: i(() => [n(k3, { type: "index", width: "60", label: "序号" }), n(k3, { prop: "name", width: "200", label: "变量名" }, { default: i((e4) => [e4.row.$editing ? (t(), o(_2, { key: 1, style: { width: "120px" }, disabled: e4.row.disabled, modelValue: e4.row.name, "onUpdate:modelValue": (l3) => e4.row.name = l3, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (t(), d("span", y, r(e4.row.name), 1))]), _: 1 }), n(k3, { prop: "alias", width: "140", label: "别名" }, { default: i((e4) => [e4.row.$editing ? (t(), o(_2, { key: 1, disabled: e4.row.disabled, modelValue: e4.row.alias, "onUpdate:modelValue": (l3) => e4.row.alias = l3, placeholder: "" }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])) : (t(), d("span", V, r(e4.row.alias), 1))]), _: 1 }), n(k3, { prop: "type", width: "130", label: "类型" }, { default: i((e4) => [e4.row.$editing ? (t(), o(U2, { key: 1, modelValue: e4.row.type, "onUpdate:modelValue": (l3) => e4.row.type = l3, onChange: (l3) => {
|
|
45
45
|
return a2 = l3, e4.$index, o2 = e4.row, void ("array" === a2 ? (o2.items = [], o2.items.push({ level: o2.level + 1, code: b(), name: "items", disabled: true, isArrayElement: true, alias: "", type: "object", defaultValue: "", items: [] })) : o2.items && o2.items.length > 0 && (o2.items = []));
|
|
46
46
|
var a2, o2;
|
|
47
47
|
}, placeholder: "" }, { default: i(() => [(t(), d(u, null, s($, (e5) => n(x2, { key: e5, label: e5, value: e5 }, null, 8, ["label", "value"])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])) : (t(), d("span", h, r(e4.row.type), 1))]), _: 1 }), n(k3, { prop: "defaultValue", width: "130", label: "默认值" }, { default: i((e4) => [e4.row.$editing ? "string" === e4.row.type ? (t(), o(_2, { key: 1, modelValue: e4.row.defaultValue, "onUpdate:modelValue": (l3) => e4.row.defaultValue = l3, placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "int" === e4.row.type ? (t(), o(A2, { key: 2, modelValue: e4.row.defaultValue, "onUpdate:modelValue": (l3) => e4.row.defaultValue = l3, "controls-position": "right", placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "number" === e4.row.type ? (t(), o(_2, { key: 3, modelValue: e4.row.defaultValue, "onUpdate:modelValue": (l3) => e4.row.defaultValue = l3, type: "number", placeholder: "" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : p("", true) : (t(), d("span", v, r(e4.row.defaultValue), 1))]), _: 1 }), n(k3, { align: "right", width: 90 }, { header: i(() => [n(R, { class: "box-item", effect: "dark", content: "添加变量", placement: "top" }, { default: i(() => [n(H2, { type: "primary", size: "small", icon: c(f), circle: "", onClick: z }, null, 8, ["icon"])]), _: 1 })]), default: i((e4) => [m("span", null, [n(G, { size: "small", style: { "margin-right": "10px" } }, { dropdown: i(() => [n(F, null, { default: i(() => ["object" === e4.row.type ? (t(), o(B, { key: 0, size: "small", onClick: (l3) => function(e5, l4) {
|