super-page-designer 2.2.13 → 2.2.16

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 (39) hide show
  1. package/dist/es/components/design/utils/common-util.d.ts +1 -0
  2. package/dist/es/components/design/utils/common-util.js +20 -15
  3. package/dist/es/components/design/utils/data-table-util.d.ts +1 -1
  4. package/dist/es/components/design/utils/data-table-util.js +52 -55
  5. package/dist/es/components/design/utils/page-table-util.js +7 -7
  6. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +34 -33
  7. package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +23 -20
  8. package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +16 -15
  9. package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +36 -31
  10. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
  11. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +29 -28
  12. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +13 -13
  13. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +48 -48
  14. package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +39 -34
  15. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  16. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  17. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
  18. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  19. package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +7 -7
  20. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -2
  21. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
  22. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
  23. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
  24. package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +5 -5
  25. package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +21 -21
  26. package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +4 -4
  27. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +7 -7
  28. package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +5 -5
  29. package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +1 -1
  30. package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +12 -11
  31. package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
  32. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
  33. package/dist/es/components/design/views/design/page-event/config.vue3.js +5 -5
  34. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +50 -50
  35. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +50 -50
  36. package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
  37. package/dist/es/style.css +15 -15
  38. package/package.json +5 -5
  39. /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
@@ -22,3 +22,4 @@ export declare function getUuidv4(): string;
22
22
  * @returns
23
23
  */
24
24
  export declare function findDesignItemByUuid(data: any, uuid: string): Component | null;
25
+ export declare function isNumberType(type: string): boolean;
@@ -1,23 +1,28 @@
1
- import { v4 as r } from "uuid";
2
- function t(r2) {
3
- if ("object" != typeof r2 || null === r2) return r2;
4
- const n2 = Array.isArray(r2) ? [] : {};
5
- for (const o2 in r2) r2.hasOwnProperty(o2) && (n2[o2] = t(r2[o2]));
6
- return n2;
1
+ import { v4 as t } from "uuid";
2
+ function n(t2) {
3
+ if ("object" != typeof t2 || null === t2) return t2;
4
+ const r2 = Array.isArray(t2) ? [] : {};
5
+ for (const o2 in t2) t2.hasOwnProperty(o2) && (r2[o2] = n(t2[o2]));
6
+ return r2;
7
7
  }
8
- function n() {
9
- return r().replace(/-/g, "");
8
+ function r() {
9
+ return t().replace(/-/g, "");
10
10
  }
11
- function o(r2, t2) {
12
- for (const n2 of r2.items) if (n2.uuid === t2) return n2;
13
- for (const n2 of r2.items) if (n2.items && n2.items.length > 0) {
14
- const r3 = o(n2, t2);
15
- if (r3) return r3;
11
+ function o(t2, n2) {
12
+ for (const r2 of t2.items) if (r2.uuid === n2) return r2;
13
+ for (const r2 of t2.items) if (r2.items && r2.items.length > 0) {
14
+ const t3 = o(r2, n2);
15
+ if (t3) return t3;
16
16
  }
17
17
  return null;
18
18
  }
19
+ function e(t2) {
20
+ const n2 = t2.toLowerCase();
21
+ return "int" === n2 || "long" === n2 || "float" === n2 || "double" === n2 || "number" === n2;
22
+ }
19
23
  export {
20
- t as deepCopy,
24
+ n as deepCopy,
21
25
  o as findDesignItemByUuid,
22
- n as getUuidv4
26
+ r as getUuidv4,
27
+ e as isNumberType
23
28
  };
@@ -1,5 +1,5 @@
1
1
  export declare function formatConditionList(conditionList: any, attributeMap: [], fieldMap: []): string;
2
- export declare function getOperators(item: object): {
2
+ export declare function getOperators(item: any): {
3
3
  name: string;
4
4
  label: string;
5
5
  }[];
@@ -1,92 +1,89 @@
1
1
  import { getUuidv4 as e } from "./common-util.js";
2
- import l from "./eventBus.js";
3
- function a(e2, l2, a2) {
4
- if (e2) {
5
- const l3 = e2;
6
- e2 = [];
7
- for (const a3 in l3) e2.push(l3[a3]);
8
- }
9
- let n2 = "";
10
- if (e2 && e2.length > 0) for (var t2 = 0; t2 < e2.length; t2++) {
11
- const i2 = e2[t2];
12
- if (i2 && i2.propDbName && l2) {
13
- const e3 = r(a2[i2.propDbName]);
14
- if (e3 && e3.length > 0) {
15
- const l3 = e3.filter((e4) => e4.name === i2.operator);
16
- n2 += i2.leftBracket, a2[i2.propDbName] && a2[i2.propDbName].alias && (n2 += a2[i2.propDbName].alias + " "), l3 && l3.length > 0 && (n2 += l3[0].label + " "), n2 += i2.propValue + i2.rightBracket + " ", i2.joinSign && ("or" === i2.joinSign ? n2 += "或者" : n2 += "并且");
2
+ import a from "./eventBus.js";
3
+ function l(e2, a2, l2) {
4
+ let n2 = [];
5
+ e2 && (n2 = "string" == typeof e2 ? JSON.parse(e2) : JSON.parse(JSON.stringify(e2)));
6
+ let t2 = "";
7
+ if (n2 && n2.length > 0) for (var i2 = 0; i2 < n2.length; i2++) {
8
+ const e3 = n2[i2];
9
+ if (e3 && e3.propDbName && a2) {
10
+ const a3 = r(l2[e3.propDbName]);
11
+ if (a3 && a3.length > 0) {
12
+ const r2 = a3.filter((a4) => a4.name === e3.operator);
13
+ t2 += e3.leftBracket, l2[e3.propDbName] && l2[e3.propDbName].alias && (t2 += l2[e3.propDbName].alias + " "), r2 && r2.length > 0 && (t2 += r2[0].label + " "), "IS_NULL" === e3.operator || "IS_NOT_NULL" === e3.operator ? t2 += e3.rightBracket + " " : t2 += e3.propValue + e3.rightBracket + " ", e3.joinSign && ("or" === e3.joinSign ? t2 += "或者" : t2 += "并且");
17
14
  }
18
15
  }
19
16
  }
20
- if (n2 && "" !== n2) {
21
- const e3 = n2.substring(n2.length - 1);
22
- "者" !== e3 && "且" !== e3 || (n2 = n2.substring(0, n2.length - 2));
17
+ if (t2 && "" !== t2) {
18
+ const e3 = t2.substring(t2.length - 1);
19
+ "者" !== e3 && "且" !== e3 || (t2 = t2.substring(0, t2.length - 2));
23
20
  }
24
- return n2;
21
+ return t2;
25
22
  }
26
23
  function r(e2) {
27
- return e2 ? "INTEGER" === e2.dataType || "LONG" === e2.dataType || "DOUBLE" === e2.dataType || "FLOAT" === e2.dataType ? [{ name: "GT", label: "大于" }, { name: "LT", label: "小于" }, { name: "EQ", label: "等于" }, { name: "LET", label: "不大于" }, { name: "GET", label: "不小于" }, { name: "NET", label: "不等于" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }] : "DATE" === e2.dataType || "TIME" === e2.dataType ? [{ name: "GT", label: "晚于" }, { name: "LT", label: "早于" }, { name: "EQ", label: "等于" }, { name: "LET", label: "不晚于" }, { name: "GET", label: "不早于" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }, { name: "BETWEEN", label: "时间范围" }] : "TEXT" === e2.dataType || "STRING" === e2.dataType ? [{ name: "EQ", label: "等于" }, { name: "NET", label: "不等于" }, { name: "CONTAIN", label: "包含" }, { name: "NOT_CONTAIN", label: "不包含" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }] : [{ name: "EQ", label: "等于" }, { name: "NET", label: "不等于" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }] : [{ name: "EQ", label: "等于" }, { name: "NET", label: "不等于" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }];
24
+ return e2 ? "INTEGER" === e2.dataType || "LONG" === e2.dataType || "DOUBLE" === e2.dataType || "FLOAT" === e2.dataType ? [{ name: "GT", label: "大于" }, { name: "LT", label: "小于" }, { name: "EQ", label: "等于" }, { name: "LET", label: "不大于" }, { name: "GET", label: "不小于" }, { name: "NET", label: "不等于" }, { name: "RANGE_QUERY", label: "in" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }] : "DATE" === e2.dataType || "TIME" === e2.dataType ? [{ name: "GT", label: "晚于" }, { name: "LT", label: "早于" }, { name: "EQ", label: "等于" }, { name: "LET", label: "不晚于" }, { name: "GET", label: "不早于" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }, { name: "BETWEEN", label: "时间范围" }] : "TEXT" === e2.dataType || "STRING" === e2.dataType ? [{ name: "EQ", label: "等于" }, { name: "NET", label: "不等于" }, { name: "CONTAIN", label: "包含" }, { name: "NOT_CONTAIN", label: "不包含" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }] : [{ name: "EQ", label: "等于" }, { name: "NET", label: "不等于" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }] : [{ name: "EQ", label: "等于" }, { name: "NET", label: "不等于" }, { name: "IS_NULL", label: "等于Null" }, { name: "IS_NOT_NULL", label: "不等于Null" }];
28
25
  }
29
- function n(l2, a2, r2) {
30
- let n2 = { uuid: e(), parentUuid: a2, columnUuid: l2.uuid, prop: l2.props.base.prop, titleText: l2.props.base.name, isLeaf: true };
31
- t(a2, n2, r2), r2.push(n2);
26
+ function n(a2, l2, r2) {
27
+ let n2 = { uuid: e(), parentUuid: l2, columnUuid: a2.uuid, prop: a2.props.base.prop, titleText: a2.props.base.name, isLeaf: true };
28
+ t(l2, n2, r2), r2.push(n2);
32
29
  }
33
- function t(e2, l2, a2) {
30
+ function t(e2, a2, l2) {
34
31
  let r2 = [];
35
- if (r2 = e2 ? a2.filter((l3) => l3.parentUuid === e2) : a2.filter((e3) => !e3.parentUuid), r2 && r2.length > 0) {
36
- r2 = r2.sort((e4, l3) => e4.displayOrder - l3.displayOrder);
32
+ if (r2 = e2 ? l2.filter((a3) => a3.parentUuid === e2) : l2.filter((e3) => !e3.parentUuid), r2 && r2.length > 0) {
33
+ r2 = r2.sort((e4, a3) => e4.displayOrder - a3.displayOrder);
37
34
  const e3 = r2[r2.length - 1];
38
- l2.displayOrder = e3.displayOrder + 1;
39
- } else l2.displayOrder = 1;
35
+ a2.displayOrder = e3.displayOrder + 1;
36
+ } else a2.displayOrder = 1;
40
37
  }
41
- function i(e2, l2) {
42
- const a2 = e2.findIndex((e3) => e3.uuid === l2);
43
- null != a2 && a2 >= 0 && e2.splice(a2, 1);
38
+ function i(e2, a2) {
39
+ const l2 = e2.findIndex((e3) => e3.uuid === a2);
40
+ null != l2 && l2 >= 0 && e2.splice(l2, 1);
44
41
  }
45
42
  function p(e2) {
46
- let l2 = [];
47
- return e2.forEach((a2) => {
48
- a2.parentUuid ? a2.isLeaf = true : (a2.isLeaf = s(a2, e2), l2.push(a2));
49
- }), l2 = l2.sort((e3, l3) => e3.displayOrder - l3.displayOrder), l2;
43
+ let a2 = [];
44
+ return e2.forEach((l2) => {
45
+ l2.parentUuid ? l2.isLeaf = true : (l2.isLeaf = s(l2, e2), a2.push(l2));
46
+ }), a2 = a2.sort((e3, a3) => e3.displayOrder - a3.displayOrder), a2;
50
47
  }
51
- function s(e2, l2) {
52
- for (const a2 of l2) {
53
- if (a2.parentUuid === e2.uuid) return false;
54
- if (a2.children && a2.children.length > 0 && !s(e2, a2.children)) return false;
48
+ function s(e2, a2) {
49
+ for (const l2 of a2) {
50
+ if (l2.parentUuid === e2.uuid) return false;
51
+ if (l2.children && l2.children.length > 0 && !s(e2, l2.children)) return false;
55
52
  }
56
53
  return true;
57
54
  }
58
- function o(e2, l2, a2) {
55
+ function o(e2, a2, l2) {
59
56
  const r2 = e2.uuid;
60
- let n2 = l2.filter((e3) => e3.parentUuid === r2);
57
+ let n2 = a2.filter((e3) => e3.parentUuid === r2);
61
58
  n2 && n2.length > 0 ? (n2.forEach((e3) => {
62
59
  if (e3.columnUuid) {
63
- const l3 = a2.filter((l4) => l4.uuid === e3.columnUuid);
64
- l3 && l3.length > 0 && Object.assign(e3, l3[0]);
60
+ const a3 = l2.filter((a4) => a4.uuid === e3.columnUuid);
61
+ a3 && a3.length > 0 && Object.assign(e3, a3[0]);
65
62
  }
66
- }), n2 = n2.sort((e3, l3) => e3.displayOrder - l3.displayOrder), e2.children = n2, n2.forEach((e3) => o(e3, l2, a2))) : e2.children = [];
63
+ }), n2 = n2.sort((e3, a3) => e3.displayOrder - a3.displayOrder), e2.children = n2, n2.forEach((e3) => o(e3, a2, l2))) : e2.children = [];
67
64
  }
68
65
  function u(e2) {
69
66
  if (!e2.props.groupHeaders) return;
70
- let a2 = [], r2 = e2.items, n2 = JSON.parse(JSON.stringify(e2.props.groupHeaders));
71
- return !r2 || n2 && 0 !== n2.length ? (a2 = function(e3, a3) {
67
+ let l2 = [], r2 = e2.items, n2 = JSON.parse(JSON.stringify(e2.props.groupHeaders));
68
+ return !r2 || n2 && 0 !== n2.length ? (l2 = function(e3, l3) {
72
69
  let r3 = [];
73
70
  if (!e3) return r3;
74
71
  let n3 = [];
75
- return e3.forEach((l2) => {
76
- if (l2.columnUuid) {
77
- const e4 = a3.filter((e5) => e5.uuid === l2.columnUuid);
78
- e4 && e4.length > 0 && Object.assign(l2, e4[0]);
72
+ return e3.forEach((a2) => {
73
+ if (a2.columnUuid) {
74
+ const e4 = l3.filter((e5) => e5.uuid === a2.columnUuid);
75
+ e4 && e4.length > 0 && Object.assign(a2, e4[0]);
79
76
  }
80
- l2.parentUuid ? l2.isLeaf = true : (l2.isLeaf = s(l2, e3), r3.push(l2), n3.push(l2));
81
- }), l.$emit("setFieldGroup", n3), a3 && a3.forEach((e4) => {
77
+ a2.parentUuid ? a2.isLeaf = true : (a2.isLeaf = s(a2, e3), r3.push(a2), n3.push(a2));
78
+ }), a.$emit("setFieldGroup", n3), l3 && l3.forEach((e4) => {
82
79
  e4.props.base && "$selection" == e4.props.base.prop ? r3.unshift(e4) : e4.props.base && "$index" == e4.props.base.prop ? r3.splice(1, 0, e4) : e4.props.base && "operation" == e4.props.base.prop && r3.push(e4);
83
- }), r3 = r3.sort((e4, l2) => e4.displayOrder - l2.displayOrder), r3;
84
- }(n2, r2), a2.forEach((e3) => o(e3, n2, r2))) : a2 = r2.sort((e3, l2) => e3.props.base ? e3.props.base.displayOrder - l2.props.base.displayOrder : 0), a2;
80
+ }), r3 = r3.sort((e4, a2) => e4.displayOrder - a2.displayOrder), r3;
81
+ }(n2, r2), l2.forEach((e3) => o(e3, n2, r2))) : l2 = r2.sort((e3, a2) => e3.props.base ? e3.props.base.displayOrder - a2.props.base.displayOrder : 0), l2;
85
82
  }
86
83
  export {
87
84
  n as addColumnToGroupHeaders,
88
85
  i as deleteGroupHeaderByColumnUuid,
89
- a as formatConditionList,
86
+ l as formatConditionList,
90
87
  u as getColumnsWithGroupHeader,
91
88
  r as getOperators,
92
89
  p as getTopGroupHeaderList,
@@ -29,7 +29,7 @@ function o(e2, r2) {
29
29
  const r4 = { titleText: e5.titleText, parentCode: e5.parentUuid, displayOrder: e5.displayOrder, prop: e5.prop, uuid: e5.uuid };
30
30
  t2.push(r4);
31
31
  });
32
- return t2;
32
+ return t2.sort((e5, t3) => e5.displayOrder - t3.displayOrder), t2;
33
33
  }(e3), n2;
34
34
  }(s2, r2, i2), delete e2.btnList, delete e2.items, delete e2.modelFields, e2.runtime && e2.runtime.events) {
35
35
  const { events: t2 } = e2.runtime;
@@ -210,16 +210,16 @@ function C(e2, t2) {
210
210
  let a2 = { uuid: e2.uuid, base: e2.props.base, dataOrigin: e2.props.dataOrigin, dynamicColumnData: e2.props.dynamicColumnData, editLine: e2.props.editLine, format: e2.props.format, verification: e2.props.verification, definition: e2.props.definition, size: e2.props.size };
211
211
  e2.props = {}, e2.uuid = a2.uuid, e2.props.base = a2.base, e2.props.dataOrigin = a2.dataOrigin, e2.props.dynamicColumnData = a2.dynamicColumnData, e2.props.editLine = a2.editLine, e2.props.format = a2.format, e2.props.verification = a2.verification, e2.props.definition = a2.definition, e2.props.size = a2.size, e2.events = r(t2), e2.name = t2;
212
212
  }
213
- function T(e2, t2) {
213
+ function O(e2, t2) {
214
214
  return e2 = {}, t2.forEach((t3) => {
215
215
  e2[t3.dbColumnName] = t3;
216
216
  }), e2;
217
217
  }
218
- function N(e2, t2) {
218
+ function T(e2, t2) {
219
219
  let r2, a2 = e2.tableName;
220
220
  return a2 || (e2.tableRuntimes && t2 && e2.tableRuntimes[t2] && e2.pageType && "list" === e2.pageType && (r2 = JSON.parse(e2.tableRuntimes[t2].configure)), r2 && r2.props && r2.props.dataOrigin ? r2.props.dataOrigin.tableName : null);
221
221
  }
222
- function O(e2) {
222
+ function N(e2) {
223
223
  let t2 = [];
224
224
  return e2 && e2.forEach((e3) => {
225
225
  t2.push({ value: e3.dbColumnName, label: e3.alias, alias: e3.alias, dataType: e3.dataType });
@@ -232,10 +232,10 @@ function h(e2, t2) {
232
232
  return (t2 == null ? void 0 : t2.props.base.tableUuid) ? (s2 = t2.props.base.tableUuid, a2 = i(e2, s2)) : r2 && "list" === r2 && ((_a = e2 == null ? void 0 : e2.tableUuids) == null ? void 0 : _a.length) > 0 ? (s2 = e2 == null ? void 0 : e2.tableUuids[0], a2 = i(e2, s2)) : (e2 == null ? void 0 : e2.currentTableConfig) && (a2 = e2.currentTableConfig), a2;
233
233
  }
234
234
  export {
235
- T as changeFeieldToMap,
236
- O as getModelOptionsByFields,
235
+ O as changeFeieldToMap,
236
+ N as getModelOptionsByFields,
237
237
  h as getTableConfigByTableUuid,
238
- N as getTableNameByTableUuid,
238
+ T as getTableNameByTableUuid,
239
239
  n as querySublist,
240
240
  s as queryTableFields,
241
241
  o as setTableRuntimesFromConfigure,
@@ -1,60 +1,61 @@
1
- import { defineComponent as e, ref as o, watch as l, resolveComponent as n, createBlock as i, openBlock as a, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as c, Fragment as p, renderList as d, createTextVNode as m } from "vue";
2
- import f from "../component/condition-dialog.vue.js";
3
- import g from "../component/set-dialog.vue.js";
1
+ import { defineComponent as e, ref as o, watch as l, resolveComponent as i, createBlock as n, openBlock as a, withCtx as t, createVNode as s, createCommentVNode as u, createElementVNode as r, createElementBlock as c, Fragment as p, renderList as f, createTextVNode as g } from "vue";
2
+ import d from "../component/condition-dialog.vue.js";
3
+ import m from "../component/set-dialog.vue.js";
4
4
  import b from "../component/combination.vue.js";
5
5
  import v from "../component/journal-set-dialog.vue.js";
6
- import y from "../../common/common-advanced-basic-showcondition.vue.js";
7
- import { isShowOpinionSetting as _ } from "../../../../utils/form-design-util.js";
8
- import V from "agilebuilder-ui/src/utils/request";
9
- const C = { style: { padding: "8px 0px 0px 0px" } }, k = e({ __name: "button-attr-advanced", props: { configure: { type: Object, default: () => {
6
+ import C from "../../common/common-advanced-basic-showcondition.vue.js";
7
+ import { isShowOpinionSetting as y } from "../../../../utils/form-design-util.js";
8
+ import _ from "agilebuilder-ui/src/utils/request";
9
+ import { getTableConfigByTableUuid as V } from "../../../../utils/page-table-util.js";
10
+ const k = { style: { padding: "8px 0px 0px 0px" } }, h = e({ __name: "button-attr-advanced", props: { configure: { type: Object, default: () => {
10
11
  } }, pageDesign: { type: Object, default: () => {
11
12
  } } }, setup(e2) {
12
13
  var _a;
13
- const k2 = e2, h = o(["base"]), w = o(false), D = o([]), O = (_a = k2.pageDesign) == null ? void 0 : _a.systemVersion;
14
- function j() {
14
+ const h2 = e2, D = o(["base"]), w = o(false), O = o([]), j = (_a = h2.pageDesign) == null ? void 0 : _a.systemVersion, x = o(V(h2.pageDesign, h2.configure));
15
+ function M() {
15
16
  w.value = false;
16
17
  }
17
- function x(e3) {
18
- k2.configure.props.base.logSetting = e3, j();
18
+ function S(e3) {
19
+ h2.configure.props.base.logSetting = e3, M();
19
20
  }
20
- V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${k2.pageDesign.systemCode}/${O}`).then((e3) => {
21
- D.value = e3;
21
+ _.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${h2.pageDesign.systemCode}/${j}`).then((e3) => {
22
+ O.value = e3;
22
23
  });
23
- const M = o(false);
24
- function S() {
25
- M.value = false;
26
- }
27
24
  const L = o(false);
28
25
  function N() {
29
26
  L.value = false;
30
27
  }
31
- function U(e3) {
32
- k2.configure.props.setValueList = e3;
28
+ const U = o(false);
29
+ function A() {
30
+ U.value = false;
31
+ }
32
+ function $(e3) {
33
+ h2.configure.props.setValueList = e3;
33
34
  }
34
- const A = o(false);
35
- function $() {
36
- A.value = false;
35
+ const z = o(false);
36
+ function F() {
37
+ z.value = false;
37
38
  }
38
- function z(e3) {
39
- k2.configure.props.base.showConditions = JSON.stringify(e3);
39
+ function P(e3) {
40
+ h2.configure.props.base.showConditions = JSON.stringify(e3);
40
41
  }
41
- const F = o(P());
42
- function P() {
42
+ const W = o(q());
43
+ function q() {
43
44
  let e3 = false;
44
- const o2 = k2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
45
+ const o2 = h2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
45
46
  if (o2 && o2.length > 0) {
46
47
  const l2 = o2[0].eventName;
47
- e3 = _(l2);
48
+ e3 = y(l2);
48
49
  }
49
50
  return e3;
50
51
  }
51
- return l(k2.configure.events, (e3) => {
52
- F.value = P(), F.value || (k2.configure.props.base.isMustOpinion = false);
52
+ return l(h2.configure.events, (e3) => {
53
+ W.value = q(), W.value || (h2.configure.props.base.isMustOpinion = false);
53
54
  }, { immediate: true }), (o2, l2) => {
54
- const _2 = n("el-option"), V2 = n("el-select"), k3 = n("el-form-item"), O2 = n("el-button"), P2 = n("el-switch"), W = n("el-collapse-item"), q = n("el-collapse"), I = n("el-form");
55
- return a(), i(I, { "label-width": "80px", size: "small" }, { default: t(() => [s(q, { modelValue: h.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e3) => h.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(W, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", C, [s(k3, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [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: t(() => [s(_2, { label: "无操作", value: "noOperation" }), s(_2, { label: "刷新", value: "refresh" }), s(_2, { label: "关闭窗口", value: "closeWindow" }), s(_2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(k3, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [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: t(() => [(a(true), c(p, null, d(D.value, (e3) => (a(), i(_2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(k3, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(O2, { type: "primary", onClick: l2[2] || (l2[2] = (e3) => M.value = true) }, { default: t(() => l2[7] || (l2[7] = [m("编辑")])), _: 1 })]), _: 1 }), s(k3, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(a(), i(y, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", type: "editConditions" }, null, 8, ["configure"]))]), _: 1 }), s(k3, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(O2, { type: "primary", onClick: l2[3] || (l2[3] = (e3) => L.value = true) }, { default: t(() => l2[8] || (l2[8] = [m("编辑")])), _: 1 })]), _: 1 }), s(k3, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(a(), i(y, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions" }, null, 8, ["configure"]))]), _: 1 }), s(k3, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(O2, { type: "primary", onClick: l2[4] || (l2[4] = (e3) => w.value = true) }, { default: t(() => l2[9] || (l2[9] = [m("编辑")])), _: 1 })]), _: 1 }), F.value ? (a(), i(k3, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(P2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": l2[5] || (l2[5] = (o3) => e2.configure.props.base.isMustOpinion = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (a(), i(k3, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(a(), i(y, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", title: "意见必填条件" }, null, 8, ["configure"]))]), _: 1 })) : u("", true)])]), _: 1 }), M.value ? (a(), i(f, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, onClose: S }, null, 8, ["pageDesign", "configure"])) : u("", true), L.value ? (a(), i(g, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, onSave: U, onClose: N }, null, 8, ["pageDesign", "configure"])) : u("", true), A.value ? (a(), i(b, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, onSave: z, onClose: $ }, null, 8, ["conditionList", "fieldNameList", "fieldMap"])) : u("", true), w.value ? (a(), i(v, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: j, onSave: x }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
55
+ const y2 = i("el-option"), _2 = i("el-select"), V2 = i("el-form-item"), h3 = i("el-button"), j2 = i("el-switch"), q2 = i("el-collapse-item"), I = i("el-collapse"), J = i("el-form");
56
+ return a(), n(J, { "label-width": "80px", size: "small" }, { default: t(() => [s(I, { modelValue: D.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e3) => D.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [s(q2, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", k, [s(V2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [s(_2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": l2[0] || (l2[0] = (o3) => e2.configure.props.base.successOperation = o3), class: "ml-4" }, { default: t(() => [s(y2, { label: "无操作", value: "noOperation" }), s(y2, { label: "刷新", value: "refresh" }), s(y2, { label: "关闭窗口", value: "closeWindow" }), s(y2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(V2, { label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [s(_2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": l2[1] || (l2[1] = (o3) => e2.configure.props.base.conversionCodes = o3), multiple: "", class: "ml-4" }, { default: t(() => [(a(true), c(p, null, f(O.value, (e3) => (a(), n(y2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(V2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [s(h3, { type: "primary", onClick: l2[2] || (l2[2] = (e3) => L.value = true) }, { default: t(() => l2[7] || (l2[7] = [g("编辑")])), _: 1 })]), _: 1 }), s(V2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(a(), n(C, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: x.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(V2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [s(h3, { type: "primary", onClick: l2[3] || (l2[3] = (e3) => U.value = true) }, { default: t(() => l2[8] || (l2[8] = [g("编辑")])), _: 1 })]), _: 1 }), s(V2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(a(), n(C, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: x.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), s(V2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [s(h3, { type: "primary", onClick: l2[4] || (l2[4] = (e3) => w.value = true) }, { default: t(() => l2[9] || (l2[9] = [g("编辑")])), _: 1 })]), _: 1 }), W.value ? (a(), n(V2, { key: 0, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [s(j2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": l2[5] || (l2[5] = (o3) => e2.configure.props.base.isMustOpinion = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : u("", true), e2.configure.props.base.isMustOpinion ? (a(), n(V2, { key: 1, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(a(), n(C, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: x.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : u("", true)])]), _: 1 }), L.value ? (a(), n(d, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: x.value, onClose: N }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), U.value ? (a(), n(m, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: x.value, onSave: $, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : u("", true), z.value ? (a(), n(b, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: x.value, onSave: P, onClose: F }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true), w.value ? (a(), n(v, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: M, onSave: S }, null, 8, ["modelValue"])) : u("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
56
57
  };
57
58
  } });
58
59
  export {
59
- k as default
60
+ h as default
60
61
  };
@@ -1,39 +1,42 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as t, openBlock as u, withCtx as d, createVNode as r, unref as n, createTextVNode as i, createElementBlock as p, Fragment as m, renderList as s } from "vue";
2
2
  import { CirclePlus as f, Delete as b } from "@element-plus/icons-vue";
3
- import c from "../../common/common-variable-bind.vue.js";
4
- import { ElMessage as v } from "element-plus";
3
+ import v from "../../common/common-variable-bind.vue.js";
4
+ import { ElMessage as c } from "element-plus";
5
5
  import { getOperators as V } from "../../../../utils/data-table-util.js";
6
+ import { getModelOptionsByFields as _ } from "../../../../utils/page-table-util.js";
6
7
  const w = e({ __name: "combination", props: { conditionList: { type: String, default: null }, list: { type: Array, default: () => [] }, fieldNameList: { type: Array, default: () => {
7
8
  } }, fieldMap: { type: Object, default: () => {
9
+ } }, tableConfigure: { type: Object, default: () => {
8
10
  } } }, emits: ["remove", "save", "close"], setup(e2, { emit: w2 }) {
9
- const _ = e2, y = w2, g = l({}), h = l([]), U = l([]);
10
- function N() {
11
- h.value = h.value.filter((e3) => e3 != g.value);
11
+ const y = e2, g = w2, U = l({}), h = l([]), N = l([]), k = l(null);
12
+ var C;
13
+ function j() {
14
+ h.value = h.value.filter((e3) => e3 != U.value);
12
15
  }
13
- function k(e3) {
14
- g.value = e3;
15
- }
16
- function C() {
17
- h.value.push({ leftBracket: "", propName: "", operator: "", rightBracket: "", joinSign: "" }), U.value.push([]);
16
+ function L(e3) {
17
+ U.value = e3;
18
18
  }
19
19
  function z() {
20
+ h.value.push({ leftBracket: "", propName: "", operator: "", rightBracket: "", joinSign: "" }), N.value.push([]);
21
+ }
22
+ function S() {
20
23
  if (h.value && h.value.length > 0) for (let e3 = 0; e3 < h.value.length; e3++) {
21
24
  const l2 = h.value[e3];
22
- if (!l2.propName || !l2.propValue) return v.warning("第" + e3 + "行字段名或值有空白");
25
+ if (!(l2.propName && l2.propValue || "IS_NULL" == l2.operator || "IS_NOT_NULL" == l2.operator)) return c.warning("第" + e3 + "行字段名或值有空白");
23
26
  }
24
- y("save", h.value), y("close");
27
+ g("save", h.value), g("close");
25
28
  }
26
- return a(() => {
27
- _.conditionList ? h.value = JSON.parse(_.conditionList) : _.list && (h.value = _.list);
29
+ return (C = y.tableConfigure) && (k.value = _(C.modelFields)), a(() => {
30
+ y.conditionList ? h.value = JSON.parse(y.conditionList) : y.list && (h.value = y.list);
28
31
  }), (l2, a2) => {
29
- const v2 = o("el-button"), w3 = o("el-row"), g2 = o("el-option"), j = o("el-select"), B = o("el-table-column"), L = o("el-table"), S = o("el-dialog");
30
- return u(), t(S, { "model-value": "", title: "组合条件", width: "70%", "close-on-click-modal": false, onClose: a2[0] || (a2[0] = (e3) => y("close")) }, { default: d(() => [r(w3, { style: { "padding-bottom": "8px" } }, { default: d(() => [r(v2, { icon: n(f), plain: "", type: "primary", onClick: z }, { default: d(() => a2[1] || (a2[1] = [i(" 保存 ")])), _: 1 }, 8, ["icon"]), r(v2, { icon: n(f), plain: "", type: "primary", onClick: C }, { default: d(() => a2[2] || (a2[2] = [i(" 添加 ")])), _: 1 }, 8, ["icon"]), r(v2, { icon: n(b), plain: "", type: "primary", onClick: N }, { default: d(() => a2[3] || (a2[3] = [i(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), r(L, { ref: "tableRef", "highlight-current-row": "", onCurrentChange: k, data: h.value, style: { width: "100%" } }, { default: d(() => [r(B, { prop: "date", label: "(" }, { default: d((e3) => [r(j, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", size: "default" }, { default: d(() => [r(g2, { label: "", value: "" }), r(g2, { label: "(", value: "(" }), r(g2, { label: "((", value: "((" }), r(g2, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(B, { prop: "name", label: "字段名(*)" }, { default: d((l3) => [r(j, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", filterable: "", size: "default", onChange: (e3) => function(e4, l4, a3) {
31
- const o2 = _.fieldMap[a3];
32
- l4.dataType = o2.dataType, l4.propName = o2.name, U.value[e4] = V(o2);
33
- }(l3.$index, l3.row, l3.row.propDbName) }, { default: d(() => [(u(true), p(m, null, s(e2.fieldNameList, (e3) => (u(), t(g2, { key: e3.id, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), r(B, { prop: "address", label: "操作符" }, { default: d((e3) => [r(j, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", size: "default" }, { default: d(() => [(u(true), p(m, null, s(n(V)(e3.row), (e4) => (u(), t(g2, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(B, { prop: "address", label: "值(*)" }, { default: d((e3) => [r(c, { modelValue: e3.row.propValue, "onUpdate:modelValue": (l3) => {
32
+ const c2 = o("el-button"), _2 = o("el-row"), w3 = o("el-option"), U2 = o("el-select"), C2 = o("el-table-column"), B = o("el-table"), O = o("el-dialog");
33
+ return u(), t(O, { "model-value": "", title: "组合条件", width: "70%", "close-on-click-modal": false, onClose: a2[0] || (a2[0] = (e3) => g("close")) }, { default: d(() => [r(_2, { style: { "padding-bottom": "8px" } }, { default: d(() => [r(c2, { icon: n(f), plain: "", type: "primary", onClick: S }, { default: d(() => a2[1] || (a2[1] = [i(" 保存 ")])), _: 1 }, 8, ["icon"]), r(c2, { icon: n(f), plain: "", type: "primary", onClick: z }, { default: d(() => a2[2] || (a2[2] = [i(" 添加 ")])), _: 1 }, 8, ["icon"]), r(c2, { icon: n(b), plain: "", type: "primary", onClick: j }, { default: d(() => a2[3] || (a2[3] = [i(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), r(B, { ref: "tableRef", "highlight-current-row": "", onCurrentChange: L, data: h.value, style: { width: "100%" } }, { default: d(() => [r(C2, { prop: "date", label: "(" }, { default: d((e3) => [r(U2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", size: "default" }, { default: d(() => [r(w3, { label: "", value: "" }), r(w3, { label: "(", value: "(" }), r(w3, { label: "((", value: "((" }), r(w3, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(C2, { prop: "name", label: "字段名(*)" }, { default: d((l3) => [r(U2, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", filterable: "", size: "default", onChange: (e3) => function(e4, l4, a3) {
34
+ const o2 = y.fieldMap[a3];
35
+ l4.dataType = o2.dataType, l4.propName = o2.name, N.value[e4] = V(o2);
36
+ }(l3.$index, l3.row, l3.row.propDbName) }, { default: d(() => [(u(true), p(m, null, s(e2.fieldNameList, (e3) => (u(), t(w3, { key: e3.id, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), r(C2, { prop: "address", label: "操作符" }, { default: d((e3) => [r(U2, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", size: "default" }, { default: d(() => [(u(true), p(m, null, s(n(V)(e3.row), (e4) => (u(), t(w3, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(C2, { prop: "address", label: "值(*)" }, { default: d((e3) => [r(v, { modelValue: e3.row.propValue, objModelOptions: k.value, "onUpdate:modelValue": (l3) => {
34
37
  return a3 = l3, void (e3.row.propValue = a3);
35
38
  var a3;
36
- } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(B, { prop: "address", label: "日期格式" }, { default: d((e3) => [r(j, { modelValue: e3.row.date, "onUpdate:modelValue": (l3) => e3.row.date = l3, clearable: "", size: "default" }, { default: d(() => [r(g2, { label: "年份", value: "year" }), r(g2, { label: "季度", value: "quarter" }), r(g2, { label: "月份", value: "month" }), r(g2, { label: "日", value: "day" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(B, { prop: "address", label: ")" }, { default: d((e3) => [r(j, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, clearable: "", size: "default" }, { default: d(() => [r(g2, { label: "", value: "" }), r(g2, { label: ")", value: ")" }), r(g2, { label: "))", value: "))" }), r(g2, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(B, { prop: "address", label: "并且/或者" }, { default: d((e3) => [r(j, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", size: "default" }, { default: d(() => [r(g2, { label: "或者", value: "or" }), r(g2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(B, { prop: "address", label: "变量为空时" }, { default: d((e3) => [r(j, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", size: "default" }, { default: d(() => [r(g2, { label: "Null", value: "null" }), r(g2, { label: "忽略(1=1)", value: "1=1" }), r(g2, { label: "不符合(1<>1)", value: "1<>1" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
39
+ } }, null, 8, ["modelValue", "objModelOptions", "onUpdate:modelValue"])]), _: 1 }), r(C2, { prop: "address", label: "日期格式" }, { default: d((e3) => [r(U2, { modelValue: e3.row.date, "onUpdate:modelValue": (l3) => e3.row.date = l3, clearable: "", size: "default" }, { default: d(() => [r(w3, { label: "年份", value: "year" }), r(w3, { label: "季度", value: "quarter" }), r(w3, { label: "月份", value: "month" }), r(w3, { label: "日", value: "day" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(C2, { prop: "address", label: ")" }, { default: d((e3) => [r(U2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, clearable: "", size: "default" }, { default: d(() => [r(w3, { label: "", value: "" }), r(w3, { label: ")", value: ")" }), r(w3, { label: "))", value: "))" }), r(w3, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(C2, { prop: "address", label: "并且/或者" }, { default: d((e3) => [r(U2, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", size: "default" }, { default: d(() => [r(w3, { label: "或者", value: "or" }), r(w3, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), r(C2, { prop: "address", label: "变量为空时" }, { default: d((e3) => [r(U2, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", size: "default" }, { default: d(() => [r(w3, { label: "Null", value: "null" }), r(w3, { label: "忽略(1=1)", value: "1=1" }), r(w3, { label: "不符合(1<>1)", value: "1<>1" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
37
40
  };
38
41
  } });
39
42
  export {
@@ -1,36 +1,37 @@
1
- import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as i, withCtx as n, createVNode as t, createCommentVNode as d, unref as u, createTextVNode as p, createElementVNode as s } from "vue";
2
- import { formatConditionList as r } from "../../../../utils/data-table-util.js";
1
+ import { defineComponent as e, ref as l, resolveComponent as o, createBlock as a, openBlock as i, withCtx as n, createVNode as t, createCommentVNode as u, unref as d, createTextVNode as p, createElementVNode as r } from "vue";
2
+ import { formatConditionList as s } from "../../../../utils/data-table-util.js";
3
3
  import { CirclePlus as c, Delete as m } from "@element-plus/icons-vue";
4
4
  import f from "./combination.vue.js";
5
- const _ = { class: "dialog-footer" }, b = e({ __name: "condition-dialog", props: { configure: { type: Object, default: () => {
5
+ const b = { class: "dialog-footer" }, g = e({ __name: "condition-dialog", props: { configure: { type: Object, default: () => {
6
6
  } }, pageDesign: { type: Object, default: () => {
7
- } } }, emits: ["close"], setup(e2, { emit: b2 }) {
8
- const T = e2, g = b2, v = l({}), y = l(false), I = l("");
7
+ } }, tableConfigure: { type: Object, default: () => {
8
+ } } }, emits: ["close"], setup(e2, { emit: g2 }) {
9
+ const _ = e2, T = g2, v = l({}), y = l(false), I = l("");
9
10
  l([{ dbColumnName: "FIRST_TASK_ID", label: "该流程的第一个任务的id", type: "TEXT", value: "FIRST_TASK_ID" }, { dbColumnName: "ID", label: "id", type: "LONG", value: "ID" }, { dbColumnName: "AUDIT_REPORT_NO", label: "审核报告编号", type: "TEXT", value: "AUDIT_REPORT_NO" }]), l({ FIRST_TASK_ID: { dbColumnName: "FIRST_TASK_ID", label: "该流程的第一个任务的id", type: "TEXT", value: "FIRST_TASK_ID" }, ID: { dbColumnName: "ID", label: "id", type: "LONG", value: "ID" }, AUDIT_REPORT_NO: { dbColumnName: "AUDIT_REPORT_NO", label: "审核报告编号", type: "TEXT", value: "AUDIT_REPORT_NO" } });
10
- const D = l(null);
11
- function C(e3) {
12
- T.configure.props.base.condition[I.value].conditionList = JSON.stringify(e3);
11
+ const C = l(null);
12
+ function D(e3) {
13
+ _.configure.props.base.condition[I.value].conditionList = JSON.stringify(e3);
13
14
  }
14
15
  function N() {
15
16
  y.value = false;
16
17
  }
17
18
  function O() {
18
- T.configure.props.base.condition = T.configure.props.base.condition.filter((e3) => e3 !== v.value);
19
+ _.configure.props.base.condition = _.configure.props.base.condition.filter((e3) => e3 !== v.value);
19
20
  }
20
21
  function R(e3) {
21
22
  v.value = e3;
22
23
  }
23
24
  function S() {
24
- T.configure.props.base.condition.push({});
25
+ _.configure.props.base.condition || (_.configure.props.base.condition = []), _.configure.props.base.condition.push({});
25
26
  }
26
- return (l2, b3) => {
27
+ return (l2, g3) => {
27
28
  const v2 = o("el-button"), A = o("el-row"), w = o("el-input"), E = o("el-table-column"), F = o("el-table"), L = o("el-dialog");
28
- return i(), a(L, { "model-value": "", title: "可执行条件", "append-to-body": "", onClose: b3[2] || (b3[2] = (e3) => g("close")) }, { footer: n(() => [s("div", _, [t(v2, { onClick: b3[0] || (b3[0] = (e3) => g("close")) }, { default: n(() => b3[5] || (b3[5] = [p("取消")])), _: 1 }), t(v2, { type: "primary", onClick: b3[1] || (b3[1] = (e3) => g("close")) }, { default: n(() => b3[6] || (b3[6] = [p(" 确定 ")])), _: 1 })])]), default: n(() => [t(A, { style: { "padding-bottom": "8px" } }, { default: n(() => [t(v2, { icon: u(c), plain: "", type: "primary", onClick: S }, { default: n(() => b3[3] || (b3[3] = [p(" 添加 ")])), _: 1 }, 8, ["icon"]), t(v2, { icon: u(m), plain: "", type: "primary", onClick: O }, { default: n(() => b3[4] || (b3[4] = [p(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), t(F, { "highlight-current-row": "", onCurrentChange: R, data: T.configure.props.base.condition, style: { width: "100%" } }, { default: n(() => [t(E, { prop: "date", label: "组合条件", align: "center" }, { default: n((l3) => [t(w, { "model-value": u(r)(l3.row.conditionList, e2.pageDesign.modelFields, e2.pageDesign.modelFieldsMap), size: "default", onClick: (e3) => {
29
- return o2 = l3.row, a2 = l3.$index, D.value = o2.conditionList, I.value = a2, void (y.value = true);
29
+ return i(), a(L, { "model-value": "", title: "可执行条件", "append-to-body": "", onClose: g3[2] || (g3[2] = (e3) => T("close")) }, { footer: n(() => [r("div", b, [t(v2, { onClick: g3[0] || (g3[0] = (e3) => T("close")) }, { default: n(() => g3[5] || (g3[5] = [p("取消")])), _: 1 }), t(v2, { type: "primary", onClick: g3[1] || (g3[1] = (e3) => T("close")) }, { default: n(() => g3[6] || (g3[6] = [p(" 确定 ")])), _: 1 })])]), default: n(() => [t(A, { style: { "padding-bottom": "8px" } }, { default: n(() => [t(v2, { icon: d(c), plain: "", type: "primary", onClick: S }, { default: n(() => g3[3] || (g3[3] = [p(" 添加 ")])), _: 1 }, 8, ["icon"]), t(v2, { icon: d(m), plain: "", type: "primary", onClick: O }, { default: n(() => g3[4] || (g3[4] = [p(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), t(F, { "highlight-current-row": "", onCurrentChange: R, data: _.configure.props.base.condition, style: { width: "100%" } }, { default: n(() => [t(E, { prop: "date", label: "组合条件", align: "center" }, { default: n((l3) => [t(w, { "model-value": d(s)(l3.row.conditionList, e2.pageDesign.modelFields, e2.pageDesign.modelFieldsMap), size: "default", onClick: (e3) => {
30
+ return o2 = l3.row, a2 = l3.$index, C.value = o2.conditionList, I.value = a2, void (y.value = true);
30
31
  var o2, a2;
31
- } }, null, 8, ["model-value", "onClick"])]), _: 1 }), t(E, { prop: "name", label: "提示信息", align: "center" }, { default: n((e3) => [t(w, { size: "default", modelValue: e3.row.toolTips, "onUpdate:modelValue": (l3) => e3.row.toolTips = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), t(E, { prop: "address", label: "国际化key", align: "center" }, { default: n((e3) => [t(w, { size: "default", modelValue: e3.row.labelI18nKey, "onUpdate:modelValue": (l3) => e3.row.labelI18nKey = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"]), y.value ? (i(), a(f, { key: 0, conditionList: D.value, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, onSave: C, onClose: N }, null, 8, ["conditionList", "fieldNameList", "fieldMap"])) : d("", true)]), _: 1 });
32
+ } }, null, 8, ["model-value", "onClick"])]), _: 1 }), t(E, { prop: "name", label: "提示信息", align: "center" }, { default: n((e3) => [t(w, { size: "default", modelValue: e3.row.toolTips, "onUpdate:modelValue": (l3) => e3.row.toolTips = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), t(E, { prop: "address", label: "国际化key", align: "center" }, { default: n((e3) => [t(w, { size: "default", modelValue: e3.row.labelI18nKey, "onUpdate:modelValue": (l3) => e3.row.labelI18nKey = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"]), y.value ? (i(), a(f, { key: 0, conditionList: C.value, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: e2.tableConfigure, onSave: D, onClose: N }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : u("", true)]), _: 1 });
32
33
  };
33
34
  } });
34
35
  export {
35
- b as default
36
+ g as default
36
37
  };