super-page-designer 2.3.13-sit4-design1 → 2.3.14-sit1-design2

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.
Files changed (41) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +66 -56
  2. package/dist/es/components/design/utils/form-design-util.js +1 -1
  3. package/dist/es/components/design/utils/page-table-util.js +2 -2
  4. package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue.js +1 -1
  5. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +8 -8
  6. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +10 -10
  7. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +1 -1
  9. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue2.js +1 -1
  10. package/dist/es/components/design/views/assemblys/common/common-bind-default-value.vue.js +7 -0
  11. package/dist/es/components/design/views/assemblys/common/common-bind-default-value.vue2.js +27 -0
  12. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +5 -5
  13. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +16 -18
  14. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +14 -16
  15. package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +21 -21
  16. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +11 -11
  17. package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +25 -27
  18. package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +16 -18
  19. package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +15 -17
  20. package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
  21. package/dist/es/components/design/views/assemblys/object-design.vue3.js +87 -97
  22. package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +37 -37
  23. package/dist/es/components/design/views/assemblys/workflow/component/condition-dialog.vue.js +28 -0
  24. package/dist/es/components/design/views/assemblys/workflow/component/condition-dialog.vue2.js +4 -0
  25. package/dist/es/components/design/views/assemblys/workflow/component/journal-set-dialog.vue.js +7 -0
  26. package/dist/es/components/design/views/assemblys/workflow/component/journal-set-dialog.vue2.js +33 -0
  27. package/dist/es/components/design/views/assemblys/workflow/component/set-dialog.vue.js +28 -0
  28. package/dist/es/components/design/views/assemblys/workflow/component/set-dialog.vue2.js +4 -0
  29. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue.js +68 -0
  30. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue2.js +4 -0
  31. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-event.vue.js +14 -0
  32. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-event.vue2.js +4 -0
  33. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr.vue.js +4 -0
  34. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr.vue2.js +15 -0
  35. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-design.vue.js +4 -0
  36. package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-design.vue2.js +28 -0
  37. package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +13 -11
  38. package/dist/es/components/design/views/design/view/view-design-display.vue.js +8 -18
  39. package/dist/es/style.css +18 -3
  40. package/package.json +4 -4
  41. /package/dist/es/components/design/views/assemblys/button/component/{journal-set-dialog.vue2.js → journal-set-dialog.vue3.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import e from "./object-design.vue3.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = o(e, [["__scopeId", "data-v-62a28ffa"]]);
4
+ const t = o(e, [["__scopeId", "data-v-3c3cc623"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,140 +1,130 @@
1
- import { defineComponent as e, onUnmounted as i, watch as n, ref as r, computed as o, 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";
1
+ import { defineComponent as e, onUnmounted as i, watch as n, ref as r, computed as o, onMounted as t, resolveComponent as s, 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 v, withCtx as D, unref as b, vShow as h } from "vue";
2
2
  import { CopyDocument as x, Delete as y } from "@element-plus/icons";
3
3
  import j from "./error-design.vue.js";
4
4
  import { getDesignComponentByName as C } from "../../utils/assemblys-config.js";
5
5
  import { caculateCommonStyle as W } from "../../utils/container-design-util.js";
6
6
  import { PageDimensions as k } from "../../utils/interfaces/page-design-types.js";
7
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";
8
+ import { watchValidate as P, getRefrencePropMap as B, removePropFromRefrencePropMap as T } from "../../utils/form-design-util.js";
9
+ import { usePageContextStore as w } from "../../../../stores/page-store.js";
10
+ import { getListCode as I } from "super-page-runtime";
11
11
  import { getFormPropName as U } from "../../utils/page-helper-util.js";
12
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 }) {
13
+ const M = { 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
14
  var _a, _b;
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];
15
+ const L = w(), R = e2;
16
+ if ("table" === R.configure.name && R.pageDesign.tableRuntimes && R.pageDesign.tableRuntimes[R.configure.uuid]) {
17
+ const e3 = R.pageDesign.tableRuntimes[R.configure.uuid].configure, i2 = JSON.parse(e3);
18
+ Object.assign(R.configure, i2), delete R.pageDesign.tableRuntimes[R.configure.uuid];
19
19
  }
20
- if (q.indexObj && q.indexObj.index++, null == q.configure.props && (q.configure.props = {}), null == q.configure.style && (q.configure.style = {}), q.pageDesign && q.configure && "table" == q.configure.name) {
21
- if (q.configure.uuid) {
22
- q.pageDesign.tableUuids || (q.pageDesign.tableUuids = []);
23
- const e3 = setTimeout(() => {
24
- var _a2, _b2, _c, _d;
25
- ((_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(q.configure.uuid)) || ((_d = (_c = q.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.push(q.configure.uuid)), z(q.configure.code);
26
- }, 500);
27
- i(() => {
28
- var _a2, _b2, _c, _d;
29
- const i2 = (_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(q.configure.uuid);
30
- null != i2 && i2 > -1 && ((_d = (_c = q.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.shift(i2, 1));
31
- const n2 = w(q.pageDesign.code, q.pageDesign.version, q.configure.uuid);
32
- 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);
33
- });
34
- }
35
- n(() => q.configure.code, (e3) => {
36
- z(e3);
20
+ if (R.indexObj && R.indexObj.index++, null == R.configure.props && (R.configure.props = {}), null == R.configure.style && (R.configure.style = {}), R.pageDesign && R.configure && "table" == R.configure.name && R.configure.uuid) {
21
+ R.pageDesign.tableUuids || (R.pageDesign.tableUuids = []);
22
+ const e3 = setTimeout(() => {
23
+ var _a2, _b2, _c, _d;
24
+ ((_b2 = (_a2 = R.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.includes(R.configure.uuid)) || ((_d = (_c = R.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.push(R.configure.uuid)), getListCodeMap(R.configure.code);
25
+ }, 500);
26
+ i(() => {
27
+ var _a2, _b2, _c, _d;
28
+ const i2 = (_b2 = (_a2 = R.pageDesign) == null ? void 0 : _a2.tableUuids) == null ? void 0 : _b2.indexOf(R.configure.uuid);
29
+ null != i2 && i2 > -1 && ((_d = (_c = R.pageDesign) == null ? void 0 : _c.tableUuids) == null ? void 0 : _d.shift(i2, 1));
30
+ const n2 = I(R.pageDesign.code, R.pageDesign.version, R.configure.uuid);
31
+ R.pageDesign.listCodesInitSearchForm && R.pageDesign.listCodesInitSearchForm[n2] && delete R.pageDesign.listCodesInitSearchForm[n2], R.pageDesign.subTableWatchProps && delete R.pageDesign.subTableWatchProps[R.configure.uuid], e3 && clearTimeout(e3);
37
32
  });
38
33
  }
39
- function z(e3) {
40
- q.pageDesign.listCodesMap || (q.pageDesign.listCodesMap = {});
41
- const i2 = w(q.pageDesign.code, q.pageDesign.version, q.configure.uuid);
42
- i2 && (q.pageDesign.listCodesMap[i2] = e3 || i2);
43
- }
44
- q.configure.events && q.pageDesign && (n(q.configure.events, (e3) => {
45
- O(q.configure, q.pageDesign);
46
- const i2 = q.configure.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
47
- q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.events = i2;
34
+ R.configure.events && R.pageDesign && (n(R.configure.events, (e3) => {
35
+ O(R.configure, R.pageDesign);
36
+ const i2 = R.configure.events.filter((e4) => !e4.isStandard && e4.jsContent || e4.isStandard && e4.eventName);
37
+ R.configure.runtime || (R.configure.runtime = {}), R.configure.runtime.events = i2;
48
38
  }, { immediate: true }), i(() => {
49
- S(q.pageDesign, q.configure.uuid);
50
- })), q.configure.props.linkPage && q.pageDesign && n(q.configure.props.linkPage, (e3) => {
51
- q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.linkPage = q.configure.props.linkPage;
52
- }, { immediate: true }), q.configure.props.parameter && q.pageDesign && n(q.configure.props.parameter, (e3) => {
39
+ S(R.pageDesign, R.configure.uuid);
40
+ })), R.configure.props.linkPage && R.pageDesign && n(R.configure.props.linkPage, (e3) => {
41
+ R.configure.runtime || (R.configure.runtime = {}), R.configure.runtime.linkPage = R.configure.props.linkPage;
42
+ }, { immediate: true }), R.configure.props.parameter && R.pageDesign && n(R.configure.props.parameter, (e3) => {
53
43
  let i2 = {};
54
44
  e3.forEach((e4) => {
55
45
  void 0 !== e4.paramName && "" !== e4.paramName && null !== e4.paramName && void 0 !== e4.paramValue && "" !== e4.paramValue && null !== e4.paramValue && (i2[e4.paramName] = e4.paramValue);
56
- }), q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.customParams = i2;
57
- }, { immediate: true }), ((_b = (_a = q.configure.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.serviceInputs) && q.pageDesign && n(q.configure.props.dataOrigin.serviceInputs, (e3) => {
58
- _(q.configure, e3);
59
- }, { immediate: true }), q.configure.componentIndex = q.indexObj.index;
60
- let H = q.indexObj.index;
61
- const L = N2, V = r({});
62
- V.value = C(q.configure.name);
63
- const A = r(true);
64
- null == V.value && (V.value = j, A.value = false), n(() => q.configure.name, (e3) => {
65
- V.value = C(e3);
66
- }), q.configure.props && q.configure.props.verification && (q.configure.props.base && q.configure.props.base.title && n(() => q.configure.props.base.title, (e3) => {
67
- P(q.configure, q.configure.props.verification, ne());
68
- }), q.configure.props.base && q.configure.props.base.prop && (n(() => q.configure.props.base.prop, (e3, i2) => {
69
- P(q.configure, q.configure.props.verification, ne()), q.pageDesign.runtime || (q.pageDesign.runtime = {}), q.pageDesign.runtime.refercePropMap || (q.pageDesign.runtime.refercePropMap = {}), B(e3, i2, q.pageDesign.runtime.refercePropMap);
46
+ }), R.configure.runtime || (R.configure.runtime = {}), R.configure.runtime.customParams = i2;
47
+ }, { immediate: true }), ((_b = (_a = R.configure.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.serviceInputs) && R.pageDesign && n(R.configure.props.dataOrigin.serviceInputs, (e3) => {
48
+ _(R.configure, e3);
49
+ }, { immediate: true }), R.configure.componentIndex = R.indexObj.index;
50
+ let q = R.indexObj.index;
51
+ const z = N2, F = r({});
52
+ F.value = C(R.configure.name);
53
+ const H = r(true);
54
+ null == F.value && (F.value = j, H.value = false), n(() => R.configure.name, (e3) => {
55
+ F.value = C(e3);
56
+ }), R.configure.props && R.configure.props.verification && (R.configure.props.base && R.configure.props.base.title && n(() => R.configure.props.base.title, (e3) => {
57
+ P(R.configure, R.configure.props.verification, ie());
58
+ }), R.configure.props.base && R.configure.props.base.prop && (n(() => R.configure.props.base.prop, (e3, i2) => {
59
+ P(R.configure, R.configure.props.verification, ie()), R.pageDesign.runtime || (R.pageDesign.runtime = {}), R.pageDesign.runtime.refercePropMap || (R.pageDesign.runtime.refercePropMap = {}), B(e3, i2, R.pageDesign.runtime.refercePropMap);
70
60
  }), i(() => {
71
61
  var _a2, _b2;
72
- M(q.configure.props.base.prop, (_b2 = (_a2 = q.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
73
- })), n(q.configure.props.verification, (e3, i2) => {
74
- P(q.configure, e3, ne());
75
- })), q.pageDesign.props && n(() => q.pageDesign.props.activeWorkflow, (e3, i2) => {
62
+ T(R.configure.props.base.prop, (_b2 = (_a2 = R.pageDesign) == null ? void 0 : _a2.runtime) == null ? void 0 : _b2.refercePropMap);
63
+ })), n(R.configure.props.verification, (e3, i2) => {
64
+ P(R.configure, e3, ie());
65
+ })), R.pageDesign.props && n(() => R.pageDesign.props.activeWorkflow, (e3, i2) => {
76
66
  if (e3) {
77
- const e4 = q.configure.props && q.configure.props.rules ? q.configure.props.rules.filter((e5) => e5.required) : null;
67
+ const e4 = R.configure.props && R.configure.props.rules ? R.configure.props.rules.filter((e5) => e5.required) : null;
78
68
  e4 && e4.length > 0 && e4.forEach((e5) => {
79
69
  e5.required = false;
80
- }), q.configure.props && q.configure.props.verification && q.configure.props.verification.required && (q.configure.props.verification.required = false);
70
+ }), R.configure.props && R.configure.props.verification && R.configure.props.verification.required && (R.configure.props.verification.required = false);
81
71
  }
82
72
  });
83
- const E = r(null), F = r({}), J = r(""), G = r({});
84
- function K() {
85
- W(q.configure, F, J), q.configure.runtime || (q.configure.runtime = {}), q.configure.runtime.common || (q.configure.runtime.common = {}), q.configure.runtime.common.class = J.value, q.configure.runtime.common.style = F.value;
73
+ const V = r(null), A = r({}), E = r(""), J = r({});
74
+ function G() {
75
+ W(R.configure, A, E), R.configure.runtime || (R.configure.runtime = {}), R.configure.runtime.common || (R.configure.runtime.common = {}), R.configure.runtime.common.class = E.value, R.configure.runtime.common.style = A.value;
86
76
  }
87
- if (q.configure.props && q.configure.props && (n(q.configure.props.size, (e3) => {
88
- K();
89
- }), n(() => q.configure.props.position, (e3) => {
90
- K();
91
- }, { immediate: true })), q.configure.style && q.configure.style && n(q.configure.style, () => {
92
- K();
93
- }), q.configure.props) {
94
- q.configure.props.size || (q.configure.props.size = {});
95
- const e3 = q.configure.props.size;
77
+ if (R.configure.props && R.configure.props && (n(R.configure.props.size, (e3) => {
78
+ G();
79
+ }), n(() => R.configure.props.position, (e3) => {
80
+ G();
81
+ }, { immediate: true })), R.configure.style && R.configure.style && n(R.configure.style, () => {
82
+ G();
83
+ }), R.configure.props) {
84
+ R.configure.props.size || (R.configure.props.size = {});
85
+ const e3 = R.configure.props.size;
96
86
  let i2 = e3[k.PC];
97
87
  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);
98
88
  }
99
- const Q = o(() => {
100
- const e3 = F.value;
101
- if (G.value = {}, !e3 || !q.pageDesign) return {};
89
+ const K = o(() => {
90
+ const e3 = A.value;
91
+ if (J.value = {}, !e3 || !R.pageDesign) return {};
102
92
  const i2 = {};
103
- q.configure.design && q.configure.design.style && Object.assign(i2, q.configure.design.style);
104
- const n2 = q.pageDesign.dimensions ? q.pageDesign.dimensions : "pc", r2 = e3[n2 + "_style"];
105
- return r2 && (i2.width = r2.width, i2.height = r2.height, G.value = { height: r2.height }), J.value = e3[n2 + "_class"], i2;
93
+ R.configure.design && R.configure.design.style && Object.assign(i2, R.configure.design.style);
94
+ const n2 = R.pageDesign.dimensions ? R.pageDesign.dimensions : "pc", r2 = e3[n2 + "_style"];
95
+ return r2 && (i2.width = r2.width, i2.height = r2.height, J.value = { height: r2.height }), E.value = e3[n2 + "_class"], i2;
106
96
  });
107
- q.selectWidget && n(q.selectWidget, (e3) => {
108
- e3 && e3.value == H ? X.value = "amb-design-item-selected" : X.value = "";
97
+ R.selectWidget && n(R.selectWidget, (e3) => {
98
+ e3 && e3.value == q ? Q.value = "amb-design-item-selected" : Q.value = "";
109
99
  });
110
- const X = r("");
111
- function Y(e3) {
112
- e3 && e3.preventDefault(), L("onSelectWidget", H, q.configure);
100
+ const Q = r("");
101
+ function X(e3) {
102
+ e3 && e3.preventDefault(), z("onSelectWidget", q, R.configure);
103
+ }
104
+ function Y(e3, i2) {
105
+ z("onSelectWidget", e3, i2);
113
106
  }
114
107
  function Z(e3, i2) {
115
- L("onSelectWidget", e3, i2);
108
+ z("onCustomAttrWidget", e3, i2);
116
109
  }
117
- function $(e3, i2) {
118
- L("onCustomAttrWidget", e3, i2);
110
+ function $(e3) {
111
+ e3.preventDefault(), z("onCopy", R.configure);
119
112
  }
120
113
  function ee(e3) {
121
- e3.preventDefault(), L("onCopy", q.configure);
122
- }
123
- function ie(e3) {
124
- if (e3.preventDefault(), L("onDelete", q.configure), q.pageDesign.allChartUuids) {
125
- const e4 = q.pageDesign.allChartUuids.findIndex((e5) => e5 === q.configure.uuid);
126
- e4 >= 0 && q.pageDesign.allChartUuids.splice(e4, 1);
114
+ if (e3.preventDefault(), z("onDelete", R.configure), R.pageDesign.allChartUuids) {
115
+ const e4 = R.pageDesign.allChartUuids.findIndex((e5) => e5 === R.configure.uuid);
116
+ e4 >= 0 && R.pageDesign.allChartUuids.splice(e4, 1);
127
117
  }
128
118
  }
129
- function ne() {
119
+ function ie() {
130
120
  var _a2, _b2;
131
- return R.getModelField(U((_b2 = (_a2 = q.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.prop));
121
+ return L.getModelField(U((_b2 = (_a2 = R.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.prop));
132
122
  }
133
- return s(() => {
134
- q.configure.props && q.configure.props.isInit && (delete q.configure.props.isInit, L("onSelectWidget", H, q.configure));
123
+ return t(() => {
124
+ R.configure.props && R.configure.props.isInit && (delete R.configure.props.isInit, z("onSelectWidget", q, R.configure));
135
125
  }), (e3, i2) => {
136
- const n2 = t("el-icon");
137
- return g(), u("div", { class: p(["amb-object-design-ref", J.value]), style: a([{ position: "relative" }, Q.value]), ref_key: "thisRef", ref: E }, [(g(), c(f(V.value), { style: a([F.value, G.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(Y, ["stop"]), onHandleSelect: Y, class: p([[X.value], "amb-design-item"]), isTableBtnLink: q.isTableBtnLink, onOnSelectWidget: Z, onOnCustomAttrWidget: $ }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class", "isTableBtnLink"])), l(m("span", I, [l(D(n2, { onClick: d(ee, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(x))]), _: 1 }, 512), [[h, A.value]]), D(n2, { onClick: d(ie, ["stop"]), style: { "margin-left": "6px" } }, { default: v(() => [D(b(y))]), _: 1 })], 512), [[h, X.value && e3.showSelectedClass]])], 6);
126
+ const n2 = s("el-icon");
127
+ return g(), u("div", { class: p(["amb-object-design-ref", E.value]), style: a([{ position: "relative" }, K.value]), ref_key: "thisRef", ref: V }, [(g(), c(f(F.value), { style: a([A.value, J.value]), configure: e3.configure, pageDesign: e3.pageDesign, indexObj: e3.indexObj, errorBlank: e3.errorBlank, selectWidget: e3.selectWidget, onClick: d(X, ["stop"]), onHandleSelect: X, class: p([[Q.value], "amb-design-item"]), isTableBtnLink: R.isTableBtnLink, onOnSelectWidget: Y, onOnCustomAttrWidget: Z }, null, 40, ["style", "configure", "pageDesign", "indexObj", "errorBlank", "selectWidget", "class", "isTableBtnLink"])), l(m("span", M, [l(v(n2, { onClick: d($, ["stop"]), style: { "margin-left": "6px" } }, { default: D(() => [v(b(x))]), _: 1 }, 512), [[h, H.value]]), v(n2, { onClick: d(ee, ["stop"]), style: { "margin-left": "6px" } }, { default: D(() => [v(b(y))]), _: 1 })], 512), [[h, Q.value && e3.showSelectedClass]])], 6);
138
128
  };
139
129
  } });
140
130
  export {
@@ -1,60 +1,60 @@
1
- import { defineComponent as e, ref as o, onUnmounted as l, resolveComponent as i, createBlock as t, openBlock as n, withCtx as r, createElementVNode as s, createVNode as u, unref as a, createElementBlock as p, toDisplayString as m, Fragment as c, renderList as d, createCommentVNode as f } from "vue";
2
- import { Top as g, Bottom as w, Plus as y, Delete as b } from "@element-plus/icons-vue";
3
- import { getUuidv4 as C } from "../../../utils/common-util.js";
4
- import { getFunctionTypes as _ } from "../../../utils/page-permission-util.js";
5
- import { FuncType as x } from "super-page-runtime";
6
- import k from "../common/page-permission-select.vue.js";
7
- const P = { style: { padding: "8px 0px 0px 0px" } }, h = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, v = ["title"], V = { key: 1 }, T = e({ __name: "page-attr-permissions", props: { configure: {} }, setup(e2, { expose: T2 }) {
8
- const U = e2, j = _();
9
- U.configure.pagePermissions || (U.configure.pagePermissions = []);
10
- const z = o([]);
11
- function D(e3) {
1
+ import { defineComponent as e, ref as o, onUnmounted as l, resolveComponent as i, createBlock as t, openBlock as n, withCtx as r, createElementVNode as s, createVNode as u, unref as a, createElementBlock as p, toDisplayString as m, Fragment as c, renderList as d } from "vue";
2
+ import { Top as f, Bottom as g, Plus as w, Delete as b } from "@element-plus/icons-vue";
3
+ import { getUuidv4 as y } from "../../../utils/common-util.js";
4
+ import { getFunctionTypes as C } from "../../../utils/page-permission-util.js";
5
+ import { FuncType as _ } from "super-page-runtime";
6
+ import x from "../common/page-permission-select.vue.js";
7
+ const P = { style: { padding: "8px 0px 0px 0px" } }, h = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, k = ["title"], v = { key: 1 }, V = e({ __name: "page-attr-permissions", props: { configure: {} }, setup(e2, { expose: V2 }) {
8
+ const T = e2, U = C();
9
+ T.configure.pagePermissions || (T.configure.pagePermissions = []);
10
+ const j = o([]);
11
+ function z(e3) {
12
12
  let o2 = -1;
13
- const l2 = U.configure.pagePermissions.length;
14
- for (let i2 = 0; i2 < l2; i2++) if (U.configure.pagePermissions[i2].uuid == e3.uuid) {
13
+ const l2 = T.configure.pagePermissions.length;
14
+ for (let i2 = 0; i2 < l2; i2++) if (T.configure.pagePermissions[i2].uuid == e3.uuid) {
15
15
  o2 = i2;
16
16
  break;
17
17
  }
18
18
  return o2;
19
19
  }
20
- function O(e3) {
20
+ function D(e3) {
21
21
  let o2 = -1;
22
- e3 && (o2 = D(e3));
23
- const l2 = { source: "custom", simpleCode: "", type: "", name: "", funcType: x.AUTHORIZED, uuid: C() };
24
- U.configure.pagePermissions.splice(o2 + 1, 0, l2);
22
+ e3 && (o2 = z(e3));
23
+ const l2 = { source: "custom", simpleCode: "", type: "", name: "", funcType: _.AUTHORIZED, uuid: y() };
24
+ T.configure.pagePermissions.splice(o2 + 1, 0, l2);
25
25
  }
26
- let A;
26
+ let O;
27
27
  return l(() => {
28
- A && clearTimeout(A);
29
- }), T2({ updateSourceFields: function(e3) {
30
- z.value = e3 || [];
28
+ O && clearTimeout(O);
29
+ }), V2({ updateSourceFields: function(e3) {
30
+ j.value = e3 || [];
31
31
  } }), (e3, o2) => {
32
- const l2 = i("el-icon"), C2 = i("el-table-column"), _2 = i("el-input"), x2 = i("el-option"), T3 = i("el-select"), z2 = i("el-table"), E = i("el-collapse-item");
33
- return n(), t(E, { title: "页面资源", name: "pagePermissions", class: "amb-design-attr-group-header" }, { default: r(() => [s("div", P, [u(z2, { data: e3.configure.pagePermissions }, { default: r(() => [u(C2, { label: "", width: "32" }, { default: r((e4) => [s("div", h, [u(l2, { size: "14", style: { cursor: "pointer" }, onClick: (o3) => function(e5) {
34
- let o4 = D(e5);
32
+ const l2 = i("el-icon"), y2 = i("el-table-column"), C2 = i("el-input"), _2 = i("el-option"), V3 = i("el-select"), j2 = i("el-table"), A = i("el-collapse-item");
33
+ return n(), t(A, { title: "页面资源", name: "pagePermissions", class: "amb-design-attr-group-header" }, { default: r(() => [s("div", P, [u(j2, { data: e3.configure.pagePermissions }, { default: r(() => [u(y2, { label: "", width: "32" }, { default: r((e4) => [s("div", h, [u(l2, { size: "14", style: { cursor: "pointer" }, onClick: (o3) => function(e5) {
34
+ let o4 = z(e5);
35
35
  if (o4 < 1) return;
36
- const l3 = U.configure.pagePermissions;
36
+ const l3 = T.configure.pagePermissions;
37
37
  [l3[o4 - 1], l3[o4]] = [l3[o4], l3[o4 - 1]];
38
- }(e4.row) }, { default: r(() => [u(a(g))]), _: 2 }, 1032, ["onClick"]), u(l2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (o3) => function(e5) {
39
- let o4 = D(e5);
40
- const l3 = U.configure.pagePermissions;
38
+ }(e4.row) }, { default: r(() => [u(a(f))]), _: 2 }, 1032, ["onClick"]), u(l2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (o3) => function(e5) {
39
+ let o4 = z(e5);
40
+ const l3 = T.configure.pagePermissions;
41
41
  -1 != o4 && l3.length != o4 + 1 && ([l3[o4], l3[o4 + 1]] = [l3[o4 + 1], l3[o4]]);
42
- }(e4.row) }, { default: r(() => [u(a(w))]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), u(C2, { prop: "simpleCode", label: "简码", width: "65" }, { default: r((o3) => ["auto" == o3.row.source ? (n(), p("span", { key: 0, title: o3.row.simpleCode }, m(o3.row.simpleCode), 9, v)) : (n(), p("span", V, [u(k, { pageDesign: e3.configure, rowObj: o3.row, "onUpdate:modelValue": (e4, l3, i2) => function(e5, o4, l4, i3) {
42
+ }(e4.row) }, { default: r(() => [u(a(g))]), _: 2 }, 1032, ["onClick"])])]), _: 1 }), u(y2, { prop: "simpleCode", label: "简码", width: "65" }, { default: r((o3) => ["auto" == o3.row.source ? (n(), p("span", { key: 0, title: o3.row.simpleCode }, m(o3.row.simpleCode), 9, k)) : (n(), p("span", v, [u(x, { pageDesign: e3.configure, rowObj: o3.row, "onUpdate:modelValue": (e4, l3, i2) => function(e5, o4, l4, i3) {
43
43
  if (i3) {
44
44
  if (o4) {
45
- for (let l5 of U.configure.pagePermissions) if (l5.simpleCode == o4 && l5.type == e5 && l5.uuid != i3.uuid) return void alert("已经存在相同的权限!");
45
+ for (let l5 of T.configure.pagePermissions) if (l5.simpleCode == o4 && l5.type == e5 && l5.uuid != i3.uuid) return void alert("已经存在相同的权限!");
46
46
  }
47
47
  i3.type = e5, i3.simpleCode = o4, o4 && !l4 || (i3.name = l4);
48
48
  }
49
- }(e4, l3, i2, o3.row) }, null, 8, ["pageDesign", "rowObj", "onUpdate:modelValue"])]))]), _: 1 }), u(C2, { prop: "name", label: "名称", width: "70" }, { default: r((e4) => [u(_2, { modelValue: e4.row.name, "onUpdate:modelValue": (o3) => e4.row.name = o3, title: e4.row.name }, null, 8, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), u(C2, { prop: "funcType", label: "类型", width: "60" }, { default: r((e4) => [u(T3, { modelValue: e4.row.funcType, "onUpdate:modelValue": (o3) => e4.row.funcType = o3 }, { default: r(() => [(n(true), p(c, null, d(a(j), (e5) => (n(), t(x2, { value: e5.value, label: e5.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(C2, { label: "操作", width: "60" }, { default: r((e4) => [u(l2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (o3) => O(e4.row) }, { default: r(() => [u(a(y))]), _: 2 }, 1032, ["onClick"]), "auto" != e4.row.source ? (n(), t(l2, { key: 0, size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (o3) => function(e5) {
50
- A && clearTimeout(A);
51
- let o4 = D(e5);
52
- o4 > -1 && (U.configure.pagePermissions.splice(o4, 1), 0 == U.configure.pagePermissions.length && (A = setTimeout(function() {
53
- O(null);
49
+ }(e4, l3, i2, o3.row) }, null, 8, ["pageDesign", "rowObj", "onUpdate:modelValue"])]))]), _: 1 }), u(y2, { prop: "name", label: "名称", width: "70" }, { default: r((e4) => [u(C2, { modelValue: e4.row.name, "onUpdate:modelValue": (o3) => e4.row.name = o3, title: e4.row.name }, null, 8, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), u(y2, { prop: "funcType", label: "类型", width: "60" }, { default: r((e4) => [u(V3, { modelValue: e4.row.funcType, "onUpdate:modelValue": (o3) => e4.row.funcType = o3 }, { default: r(() => [(n(true), p(c, null, d(a(U), (e5) => (n(), t(_2, { value: e5.value, label: e5.label }, null, 8, ["value", "label"]))), 256))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(y2, { label: "操作", width: "60" }, { default: r((e4) => [u(l2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (o3) => D(e4.row) }, { default: r(() => [u(a(w))]), _: 2 }, 1032, ["onClick"]), u(l2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (o3) => function(e5) {
50
+ O && clearTimeout(O);
51
+ let o4 = z(e5);
52
+ o4 > -1 && (T.configure.pagePermissions.splice(o4, 1), 0 == T.configure.pagePermissions.length && (O = setTimeout(function() {
53
+ D(null);
54
54
  }, 10)));
55
- }(e4.row) }, { default: r(() => [u(a(b))]), _: 2 }, 1032, ["onClick"])) : f("", true)]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
55
+ }(e4.row) }, { default: r(() => [u(a(b))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
56
56
  };
57
57
  } });
58
58
  export {
59
- T as default
59
+ V as default
60
60
  };
@@ -0,0 +1,28 @@
1
+ import { defineComponent as e, ref as l, resolveComponent as t, createBlock as o, openBlock as a, withCtx as n, createVNode as i, createCommentVNode as u, unref as r, createTextVNode as d, createElementVNode as p } from "vue";
2
+ import { CirclePlus as c, Delete as m } from "@element-plus/icons-vue";
3
+ import s from "./combination.vue.js";
4
+ const f = { class: "dialog-footer" }, y = e({ __name: "condition-dialog", props: { list: Array }, setup(e2) {
5
+ const y2 = e2, v = l({}), g = l(false), _ = l({});
6
+ function b() {
7
+ g.value = false;
8
+ }
9
+ function k() {
10
+ y2.list = y2.list.filter((e3) => e3 !== v.value);
11
+ }
12
+ function C(e3) {
13
+ v.value = e3;
14
+ }
15
+ function V() {
16
+ y2.list.push({ leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "" });
17
+ }
18
+ return (l2, y3) => {
19
+ const v2 = t("el-button"), w = t("el-row"), h = t("el-input"), U = t("el-table-column"), z = t("el-table"), B = t("el-dialog");
20
+ return a(), o(B, { "model-value": "", title: "可执行条件", "append-to-body": "", onBeforeClose: y3[2] || (y3[2] = (e3) => l2.$emit("close")) }, { footer: n(() => [p("div", f, [i(v2, { type: "default", onClick: y3[0] || (y3[0] = (e3) => l2.$emit("close")) }, { default: n(() => y3[5] || (y3[5] = [d("取消")])), _: 1 }), i(v2, { type: "primary", onClick: y3[1] || (y3[1] = (e3) => l2.$emit("close")) }, { default: n(() => y3[6] || (y3[6] = [d(" 确定 ")])), _: 1 })])]), default: n(() => [i(w, { style: { "padding-bottom": "8px" } }, { default: n(() => [i(v2, { icon: r(c), plain: "", type: "primary", onClick: V }, { default: n(() => y3[3] || (y3[3] = [d(" 添加 ")])), _: 1 }, 8, ["icon"]), i(v2, { icon: r(m), plain: "", type: "primary", onClick: k }, { default: n(() => y3[4] || (y3[4] = [d(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), i(z, { "highlight-current-row": "", onCurrentChange: C, data: e2.list, style: { width: "100%" } }, { default: n(() => [i(U, { prop: "date", label: "组合条件", align: "center" }, { default: n((e3) => [i(h, { size: "default", onClick: (l3) => {
21
+ return t2 = e3.row, _.value = t2.combination, void (g.value = true);
22
+ var t2;
23
+ } }, null, 8, ["onClick"])]), _: 1 }), i(U, { prop: "name", label: "提示信息", align: "center" }, { default: n((e3) => [i(h, { size: "default", modelValue: e3.row.name, "onUpdate:modelValue": (l3) => e3.row.name = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), i(U, { prop: "address", label: "国际化key", align: "center" }, { default: n((e3) => [i(h, { size: "default", modelValue: e3.row.type, "onUpdate:modelValue": (l3) => e3.row.type = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"]), g.value ? (a(), o(s, { key: 0, list: _.value, onClose: b }, null, 8, ["list"])) : u("", true)]), _: 1 });
24
+ };
25
+ } });
26
+ export {
27
+ y as default
28
+ };
@@ -0,0 +1,4 @@
1
+ import o from "./condition-dialog.vue.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./journal-set-dialog.vue2.js";
2
+ /* empty css */
3
+ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = e(o, [["__scopeId", "data-v-9fd9567f"]]);
5
+ export {
6
+ r as default
7
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as e, ref as a, resolveComponent as t, createBlock as l, openBlock as u, withCtx as n, createElementBlock as o, createVNode as r, Fragment as d, renderList as m, createTextVNode as c, toDisplayString as p, withKeys as s, unref as i, createElementVNode as v } from "vue";
2
+ import { EditPen as y, Search as f } from "@element-plus/icons-vue";
3
+ const _ = { class: "dialog-footer" }, x = { class: "dialog-footer" }, $ = e({ __name: "journal-set-dialog", setup(e2) {
4
+ const $2 = a([{ name: 111, type: "1" }, { name: 222, type: "2" }, { name: 333, type: "2" }, { name: 444, type: "2" }, { name: 555, type: "1" }, { name: 555, type: "1" }, { name: 555, type: "1" }, { name: 555, type: "1" }, { name: 555, type: "1" }, { name: 555, type: "1" }, { name: 555, type: "1" }]), V = [{ name: "当前时间", type: "2", value: "${context.currentTime}" }, { name: "当前用户登录名", type: "2", value: "${context.currentTransactor}" }, { name: "当前用户姓名", type: "2", value: "${context.currentTransactorName}" }, { name: "当前用户id", type: "2", value: "${context.currentTransactorId}" }, { name: "当前用户部门id", type: "2", value: "${context.currentTransactorMainDepartmentId}" }, { name: "当前用户部门名称", type: "2", value: "${context.currentTransactorMainDepartment}" }, { name: "当前用户角色id", type: "2", value: "${context.currentTransactorRoleId}" }, { name: "当前用户角色名称", type: "2", value: "${context.currentTransactorRole}" }, { name: "当前用户工作组id", type: "2", value: "${context.currentTransactorWorkGroupId}" }, { name: "当前用户工作组名称", type: "2", value: "${context.currentTransactorWorkGroup}" }, { name: "当前用户所属分支名称", type: "2", value: "${context.currentTransactorBranchName}" }, { name: "当前用户所属分支id", type: "2", value: "${context.currentTransactorBranchId}" }], b = [{ name: "数据库字段1", type: "2", value: "${context.database1}" }, { name: "数据库字段2", type: "2", value: "${context.database2}" }, { name: "数据库字段3", type: "2", value: "${context.database3}" }], g = a(false), k = a(""), T = a(false), C = a(""), h = a("standard");
5
+ function z() {
6
+ if ("" != k.value) {
7
+ let e3 = { name: k.value };
8
+ $2.value.push(e3), g.value = false, k.value = "";
9
+ }
10
+ }
11
+ function I() {
12
+ if ("" != C.value) {
13
+ let e3 = { name: C.value };
14
+ $2.value.push(e3), T.value = false, C.value = "";
15
+ } else T.value = false;
16
+ }
17
+ function U() {
18
+ g.value = true, k.value = "";
19
+ }
20
+ return (e3, a2) => {
21
+ const B = t("el-tag"), w = t("el-input"), D = t("el-button"), G = t("el-icon"), M = t("el-button-group"), N = t("el-radio"), R = t("el-radio-group"), W = t("el-tab-pane"), j = t("el-tabs"), K = t("el-dialog");
22
+ return u(), l(K, { "model-value": "", title: "自动设值", "append-to-body": "", width: "40%", onBeforeClose: a2[9] || (a2[9] = (a3) => e3.$emit("close")) }, { footer: n(() => [v("div", x, [r(D, { type: "default", onClick: a2[7] || (a2[7] = (a3) => e3.$emit("close")) }, { default: n(() => a2[14] || (a2[14] = [c("取消")])), _: 1 }), r(D, { type: "primary", onClick: a2[8] || (a2[8] = (a3) => e3.$emit("close")) }, { default: n(() => a2[15] || (a2[15] = [c(" 确定 ")])), _: 1 })])]), default: n(() => [(u(true), o(d, null, m($2.value, (e4, a3) => {
23
+ return u(), l(B, { key: a3, closable: "", size: "large", type: (t2 = e4, "2" === t2.type ? "success" : null), onClose: (a4) => {
24
+ return t3 = e4, void ($2.value = $2.value.filter((e5) => e5 != t3));
25
+ var t3;
26
+ } }, { default: n(() => [c(p(e4.name), 1)]), _: 2 }, 1032, ["type", "onClose"]);
27
+ var t2;
28
+ }), 128)), g.value ? (u(), l(w, { key: 0, size: "default", style: { width: "200px", "margin-left": "10px" }, modelValue: k.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => k.value = e4), onBlur: z, onKeyup: s(z, ["enter"]) }, null, 8, ["modelValue"])) : (u(), l(M, { key: 1, style: { "margin-left": "10px" } }, { default: n(() => [r(D, { size: "default", type: "primary", icon: i(y), onClick: U }, { default: n(() => a2[10] || (a2[10] = [c("输入文字")])), _: 1 }, 8, ["icon"]), r(D, { size: "default", type: "primary", onClick: a2[1] || (a2[1] = (e4) => T.value = true) }, { default: n(() => [a2[11] || (a2[11] = c(" 选择字段")), r(G, { class: "el-icon--right" }, { default: n(() => [r(i(f))]), _: 1 })]), _: 1 })]), _: 1 })), r(K, { modelValue: T.value, "onUpdate:modelValue": a2[6] || (a2[6] = (e4) => T.value = e4), width: "30%", title: "选择字段" }, { footer: n(() => [v("div", _, [r(D, { type: "default", onClick: a2[5] || (a2[5] = (e4) => T.value = true) }, { default: n(() => a2[12] || (a2[12] = [c("取消")])), _: 1 }), r(D, { type: "primary", onClick: I }, { default: n(() => a2[13] || (a2[13] = [c(" 确定 ")])), _: 1 })])]), default: n(() => [r(j, { modelValue: h.value, "onUpdate:modelValue": a2[4] || (a2[4] = (e4) => h.value = e4), type: "card", class: "demo-tabs" }, { default: n(() => [r(W, { label: "标准字段", name: "standard" }, { default: n(() => [r(R, { modelValue: C.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e4) => C.value = e4), class: "ml-4" }, { default: n(() => [(u(), o(d, null, m(V, (e4, a3) => r(N, { value: e4.value, key: a3, size: "large" }, { default: n(() => [c(p(e4.name), 1)]), _: 2 }, 1032, ["value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(W, { label: "数据库字段", name: "database" }, { default: n(() => [r(R, { modelValue: C.value, "onUpdate:modelValue": a2[3] || (a2[3] = (e4) => C.value = e4), class: "ml-4" }, { default: n(() => [(u(), o(d, null, m(b, (e4, a3) => r(N, { value: e4.value, key: a3, size: "large" }, { default: n(() => [c(p(e4.name), 1)]), _: 2 }, 1032, ["value"])), 64))]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
29
+ };
30
+ } });
31
+ export {
32
+ $ as default
33
+ };
@@ -0,0 +1,28 @@
1
+ import { defineComponent as e, ref as l, resolveComponent as a, createBlock as t, openBlock as o, withCtx as u, createVNode as n, createCommentVNode as i, unref as r, createTextVNode as d, createElementVNode as p } from "vue";
2
+ import { CirclePlus as c, Delete as s } from "@element-plus/icons-vue";
3
+ import f from "./combination.vue.js";
4
+ const m = { class: "dialog-footer" }, b = e({ __name: "set-dialog", props: { list: Object }, setup(e2) {
5
+ const b2 = e2, v = l({}), y = l(false), _ = l({});
6
+ function g() {
7
+ y.value = false;
8
+ }
9
+ function V() {
10
+ b2.list = b2.list.filter((e3) => e3 !== v.value);
11
+ }
12
+ function k(e3) {
13
+ v.value = e3;
14
+ }
15
+ function w() {
16
+ b2.list.push({ leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "" });
17
+ }
18
+ return (l2, b3) => {
19
+ const v2 = a("el-button"), C = a("el-row"), h = a("el-option"), U = a("el-select"), j = a("el-table-column"), x = a("el-input"), z = a("el-table"), B = a("el-dialog");
20
+ return o(), t(B, { "model-value": "", title: "自动设值", "append-to-body": "", onBeforeClose: b3[2] || (b3[2] = (e3) => l2.$emit("close")) }, { footer: u(() => [p("div", m, [n(v2, { type: "default", onClick: b3[0] || (b3[0] = (e3) => l2.$emit("close")) }, { default: u(() => b3[5] || (b3[5] = [d("取消")])), _: 1 }), n(v2, { type: "primary", onClick: b3[1] || (b3[1] = (e3) => l2.$emit("close")) }, { default: u(() => b3[6] || (b3[6] = [d(" 确定 ")])), _: 1 })])]), default: u(() => [n(C, { style: { "padding-bottom": "8px" } }, { default: u(() => [n(v2, { icon: r(c), plain: "", type: "primary", onClick: w }, { default: u(() => b3[3] || (b3[3] = [d(" 添加 ")])), _: 1 }, 8, ["icon"]), n(v2, { icon: r(s), plain: "", type: "primary", onClick: V }, { default: u(() => b3[4] || (b3[4] = [d(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), n(z, { "highlight-current-row": "", onCurrentChange: k, data: e2.list, style: { width: "100%" } }, { default: u(() => [n(j, { prop: "date", label: "填写方式", align: "center" }, { default: u((e3) => [n(U, { modelValue: e3.row.type, "onUpdate:modelValue": (l3) => e3.row.type = l3, clearable: "", size: "default" }, { default: u(() => [n(h, { label: "覆盖", value: "cover" }), n(h, { label: "追加", value: "append" }), n(h, { label: "插入最前面", value: "prepend" }), n(h, { label: "有值跳过", value: "skipIfExists" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(j, { prop: "date", label: "前置条件", align: "center" }, { default: u((e3) => [n(x, { size: "default", onClick: (l3) => {
21
+ return a2 = e3.row, _.value = a2.combination, void (y.value = true);
22
+ var a2;
23
+ } }, null, 8, ["onClick"])]), _: 1 }), n(j, { label: "执行方法时设置", align: "center" }, { default: u(() => [n(j, { prop: "name", label: "字段", align: "center" }, { default: u((e3) => [n(U, { modelValue: e3.row.type, "onUpdate:modelValue": (l3) => e3.row.type = l3, clearable: "", size: "default" }, { default: u(() => [n(h, { label: "1", value: "1" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), n(j, { prop: "address", label: "值", align: "center" }, { default: u((e3) => [n(U, { modelValue: e3.row.type, "onUpdate:modelValue": (l3) => e3.row.type = l3, clearable: "", size: "default" }, { default: u(() => [n(h, { label: "手动填写", value: "input" }), n(h, { label: "环境变量", value: "context" }), n(h, { label: "请求参数", value: "request" }), n(h, { label: "数据库字段", value: "obj" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["data"]), y.value ? (o(), t(f, { key: 0, list: _.value, onClose: g }, null, 8, ["list"])) : i("", true)]), _: 1 });
24
+ };
25
+ } });
26
+ export {
27
+ b as default
28
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./set-dialog.vue.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,68 @@
1
+ import { defineComponent as e, ref as o, watch as l, resolveComponent as a, createBlock as t, openBlock as i, withCtx as n, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as p, Fragment as c, renderList as m, createTextVNode as f, withDirectives as g, vShow as d } from "vue";
2
+ import b from "../component/condition-dialog.vue.js";
3
+ import v from "../component/set-dialog.vue.js";
4
+ import y from "../component/combination.vue.js";
5
+ import C from "../component/journal-set-dialog.vue.js";
6
+ import _ from "../../common/common-advanced-basic-showcondition.vue.js";
7
+ import { isShowOpinionSetting as k } from "../../../../utils/form-design-util.js";
8
+ import V from "agilebuilder-ui/src/utils/request";
9
+ import { getTableConfigByTableUuid as j } from "../../../../utils/page-table-util.js";
10
+ import "@element-plus/icons-vue";
11
+ import "uuid";
12
+ import "../../../../../../stores/page-store.js";
13
+ import "../../../../../../stores/table-store.js";
14
+ import "../../../../../../stores/statistics-table-store.js";
15
+ /* empty css */
16
+ /* empty css */
17
+ const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "extract-attr-advanced", props: { configure: { type: Object, default: () => {
18
+ } }, pageDesign: { type: Object, default: () => {
19
+ } } }, setup(e2) {
20
+ var _a;
21
+ const w2 = e2, D = o(["base"]), x = o(false), O = o([]), M = (_a = w2.pageDesign) == null ? void 0 : _a.systemVersion, L = o(j(w2.pageDesign, w2.configure));
22
+ function R() {
23
+ x.value = false;
24
+ }
25
+ function S(e3) {
26
+ w2.configure.props.base.logSetting = e3, R();
27
+ }
28
+ V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${w2.pageDesign.systemCode}/${M}`).then((e3) => {
29
+ O.value = e3;
30
+ });
31
+ const U = o(false);
32
+ function N() {
33
+ U.value = false;
34
+ }
35
+ const z = o(false);
36
+ function q() {
37
+ z.value = false;
38
+ }
39
+ function A(e3) {
40
+ w2.configure.props.setValueList = e3;
41
+ }
42
+ const $ = o(false);
43
+ function E() {
44
+ $.value = false;
45
+ }
46
+ function F(e3) {
47
+ w2.configure.props.base.showConditions = JSON.stringify(e3);
48
+ }
49
+ const P = o(W("opinion")), T = o(W("wfRemark"));
50
+ function W(e3) {
51
+ let o2 = false;
52
+ const l2 = w2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
53
+ if (l2 && l2.length > 0) {
54
+ const a2 = l2[0].eventName;
55
+ o2 = k(a2, e3);
56
+ }
57
+ return o2;
58
+ }
59
+ return l(w2.configure.events, (e3) => {
60
+ P.value = W("opinion"), T.value = W("wfRemark"), P.value || (w2.configure.props.base.isMustOpinion = false);
61
+ }, { immediate: true }), (o2, l2) => {
62
+ const k2 = a("el-option"), V2 = a("el-select"), j2 = a("el-form-item"), w3 = a("el-button"), M2 = a("el-text"), W2 = a("el-switch"), I = a("el-collapse-item"), J = a("el-collapse"), B = a("el-form");
63
+ return i(), t(B, { "label-width": "80px", size: "small" }, { default: n(() => [s(J, { modelValue: D.value, "onUpdate:modelValue": l2[8] || (l2[8] = (e3) => D.value = e3), style: { "margin-top": "6px" } }, { default: n(() => [s(I, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: n(() => [r("div", h, [s(j2, { label: "成功后", class: "amb-design-attr-item" }, { default: n(() => [s(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": l2[0] || (l2[0] = (o3) => e2.configure.props.base.successOperation = o3), class: "ml-4" }, { default: n(() => [s(k2, { label: "无操作", value: "noOperation" }), s(k2, { label: "刷新", value: "refresh" }), s(k2, { label: "关闭窗口", value: "closeWindow" }), s(k2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(j2, { label: "转换规则", class: "amb-design-attr-item" }, { default: n(() => [s(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": l2[1] || (l2[1] = (o3) => e2.configure.props.base.conversionCodes = o3), multiple: "", class: "ml-4" }, { default: n(() => [(i(true), p(c, null, m(O.value, (e3) => (i(), t(k2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(j2, { label: "执行条件", class: "amb-design-attr-item" }, { default: n(() => [s(w3, { type: "primary", onClick: l2[2] || (l2[2] = (e3) => U.value = true) }, { default: n(() => l2[9] || (l2[9] = [f("编辑")])), _: 1 })]), _: 1 }), s(j2, { label: "启用条件", class: "amb-design-attr-item" }, { default: n(() => [(i(), t(_, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: L.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(j2, { label: "自动设值", class: "amb-design-attr-item" }, { default: n(() => [s(w3, { type: "primary", onClick: l2[3] || (l2[3] = (e3) => z.value = true) }, { default: n(() => l2[10] || (l2[10] = [f("编辑")])), _: 1 }), g(s(M2, { type: "success" }, { default: n(() => l2[11] || (l2[11] = [f("  已设置条件. ")])), _: 1 }, 512), [[d, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), s(j2, { label: "显示条件", class: "amb-design-attr-item" }, { default: n(() => [(i(), t(_, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: L.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(j2, { label: "日志设置", class: "amb-design-attr-item" }, { default: n(() => [s(w3, { type: "primary", onClick: l2[4] || (l2[4] = (e3) => x.value = true) }, { default: n(() => l2[12] || (l2[12] = [f("编辑")])), _: 1 })]), _: 1 }), s(j2, { label: "主管必填", class: "amb-design-attr-item" }, { default: n(() => [s(W2, { modelValue: e2.configure.props.base.requireExtractTransactor, "onUpdate:modelValue": l2[5] || (l2[5] = (o3) => e2.configure.props.base.requireExtractTransactor = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), P.value ? (i(), t(j2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: n(() => [s(W2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": l2[6] || (l2[6] = (o3) => e2.configure.props.base.isMustOpinion = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (i(), t(j2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: n(() => [(i(), t(_, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: L.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true), T.value ? (i(), t(j2, { key: 2, label: "备注必填", class: "amb-design-attr-item" }, { default: n(() => [s(W2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": l2[7] || (l2[7] = (o3) => e2.configure.props.base.isMustRemark = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustRemark ? (i(), t(j2, { key: 3, label: "备注必填条件", class: "amb-design-attr-item" }, { default: n(() => [(i(), t(_, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: L.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true)])]), _: 1 }), U.value ? (i(), t(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onClose: N }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), z.value ? (i(), t(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: L.value, onSave: A, onClose: q }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), $.value ? (i(), t(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: L.value, onSave: F, onClose: E }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), x.value ? (i(), t(C, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: R, onSave: S }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
64
+ };
65
+ } });
66
+ export {
67
+ w as default
68
+ };
@@ -0,0 +1,4 @@
1
+ import t from "./extract-attr-advanced.vue.js";
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,14 @@
1
+ import { defineComponent as e, ref as t, watch as r, resolveComponent as n, createBlock as o, openBlock as u, withCtx as s, createVNode as a } from "vue";
2
+ import c from "../../form/common/attr-event.vue.js";
3
+ const f = e({ __name: "extract-attr-event", props: { configure: Object }, setup(e2) {
4
+ const f2 = e2, i = t([]);
5
+ return r(() => f2.configure.events, (e3) => {
6
+ i.value = f2.configure.events;
7
+ }, { immediate: true }), (t2, r2) => {
8
+ const f3 = n("el-form");
9
+ return u(), o(f3, { "label-width": "80px", size: "small" }, { default: s(() => [a(c, { configure: e2.configure, events: i.value }, null, 8, ["configure", "events"])]), _: 1 });
10
+ };
11
+ } });
12
+ export {
13
+ f as default
14
+ };
@@ -0,0 +1,4 @@
1
+ import t from "./extract-attr-event.vue.js";
2
+ export {
3
+ t as default
4
+ };