super-page-runtime 2.2.74 → 2.2.77-sit5

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 (42) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
  2. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  3. package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
  4. package/dist/es/components/runtime/utils/events/standard-event.js +152 -153
  5. package/dist/es/components/runtime/utils/events/validator-util.js +48 -38
  6. package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
  7. package/dist/es/components/runtime/utils/tree-utils.js +24 -23
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
  10. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
  11. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +6 -5
  13. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +125 -111
  14. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -2
  15. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +83 -49
  16. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
  17. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  19. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
  21. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +32 -27
  23. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -0
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +54 -52
  27. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
  28. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +77 -73
  30. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -1
  31. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
  32. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +29 -29
  33. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
  34. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
  35. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  36. package/dist/es/components/runtime/views/super-page-dialog.vue.js +13 -13
  37. package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
  38. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  39. package/dist/es/components/runtime/views/super-page.vue2.js +17 -15
  40. package/dist/es/index.js +1 -0
  41. package/dist/es/style.css +225 -99
  42. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import e from "async-validator";
2
2
  import { ElMessage as t } from "element-plus";
3
- import { getComponentRefByCode as n, getComponentRef as r, getAllComponentRefs as s } from "../global-refs.js";
3
+ import { getComponentRefByCode as n, getAllComponentRefs as r, getComponentRef as s } from "../global-refs.js";
4
4
  import { getI18n as i } from "agilebuilder-ui/src/utils/util";
5
5
  import { getAdditionalParamMap as l } from "./standard-event.js";
6
6
  import { isPromise as o } from "agilebuilder-ui/src/utils/common-util";
@@ -34,9 +34,9 @@ function f(e2, t2, n2) {
34
34
  }), r2;
35
35
  }
36
36
  function c(e2, t2, n2, r2, s2) {
37
- return m(e2, t2, n2, r2, true);
37
+ return d(e2, t2, n2, r2, true);
38
38
  }
39
- function d(e2) {
39
+ function m(e2) {
40
40
  if (e2) return Object.keys(e2).forEach((t2) => {
41
41
  if (t2.indexOf(".") >= 0) {
42
42
  let n2 = [];
@@ -44,15 +44,15 @@ function d(e2) {
44
44
  }
45
45
  }), e2;
46
46
  }
47
- function m(n2, r2, s2, i2, l2, o2) {
48
- let a2, u2 = d(r2);
47
+ function d(n2, r2, s2, i2, l2, o2) {
48
+ let a2, u2 = m(r2);
49
49
  if (r2 && null !== r2 || !s2 || (u2 = {}), !u2 || 0 === Object.keys(u2).length) return n2.validateErrorField = "", true;
50
50
  return new e(u2).validate(n2, { first: true }, (e2, o3) => {
51
51
  let u3;
52
52
  if (e2 ? (a2 = e2[0].message, u3 = e2[0].field, t({ message: a2, showClose: true, type: "warning", duration: 3e3 })) : a2 = true, u3 && true === l2) {
53
53
  if (/[A-Z]+/.test(u3) && void 0 !== n2[u3.toLowerCase()]) {
54
54
  const e3 = JSON.parse(JSON.stringify(n2));
55
- e3[u3.toUpperCase()] = n2[u3.toLowerCase()], delete e3[u3.toLowerCase()], a2 = m(e3, r2, s2, i2, false);
55
+ e3[u3.toUpperCase()] = n2[u3.toLowerCase()], delete e3[u3.toLowerCase()], a2 = d(e3, r2, s2, i2, false);
56
56
  }
57
57
  }
58
58
  }), a2;
@@ -63,12 +63,12 @@ function p(e2, n2, r2) {
63
63
  if (e3) {
64
64
  return u(s3) ? function(e4, n4, r4) {
65
65
  return new Promise((s4, o3) => {
66
- const a3 = l(n4), u2 = n4.entity.context, f3 = n4.entity.task, c2 = true, d2 = n4.subTablePageInfo;
66
+ const a3 = l(n4), u2 = n4.entity.context, f3 = n4.entity.task, c2 = true, m2 = n4.subTablePageInfo;
67
67
  b(e4, n4, r4).then((r5) => {
68
68
  if (r5) {
69
69
  let i2 = r5;
70
70
  const l2 = n4.workflowRules;
71
- i2 = !l2 || window.$vueApp.config.globalProperties.$formValidator(e4, l2, c2, a3, f3, u2, d2), true !== i2 ? (t({ showClose: true, message: i2 + "", type: "warning" }), s4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, s4(e4));
71
+ i2 = !l2 || window.$vueApp.config.globalProperties.$formValidator(e4, l2, c2, a3, f3, u2, m2), true !== i2 ? (t({ showClose: true, message: i2 + "", type: "warning" }), s4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, s4(e4));
72
72
  } else o3(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
73
73
  }).catch((e5) => {
74
74
  o3(e5);
@@ -94,17 +94,17 @@ function p(e2, n2, r2) {
94
94
  }
95
95
  function g(e2) {
96
96
  return new Promise((t2, n2) => {
97
- const s2 = [], i2 = e2.customValidatorUuids;
97
+ const r2 = [], i2 = e2.customValidatorUuids;
98
98
  i2 && i2.forEach((t3) => {
99
- const n3 = r(e2, t3);
100
- n3 && n3.validator && s2.push(n3.validator());
101
- }), s2 && s2.length > 0 ? Promise.all(s2).then((e3) => {
99
+ const n3 = s(e2, t3);
100
+ n3 && n3.validator && r2.push(n3.validator());
101
+ }), r2 && r2.length > 0 ? Promise.all(r2).then((e3) => {
102
102
  e3.includes(false) ? t2(false) : t2(true);
103
103
  }) : t2(true);
104
104
  });
105
105
  }
106
106
  function b(e2, t2, n2) {
107
- return new Promise((s2, l2) => {
107
+ return new Promise((r2, l2) => {
108
108
  const a2 = JSON.parse(JSON.stringify(e2));
109
109
  if (n2 && 0 !== Object.keys(n2).length) {
110
110
  if (true === c(a2, n2, null, null)) {
@@ -113,7 +113,7 @@ function b(e2, t2, n2) {
113
113
  const t3 = e4.tableUuids;
114
114
  if (!t3) return true;
115
115
  for (let n3 = 0; n3 < t3.length; n3++) {
116
- const s3 = t3[n3], i2 = r(e4, s3);
116
+ const r3 = t3[n3], i2 = s(e4, r3);
117
117
  if (i2) {
118
118
  if (!i2.validatorSunTableListData()) return false;
119
119
  }
@@ -124,16 +124,16 @@ function b(e2, t2, n2) {
124
124
  const e4 = function(e5) {
125
125
  const t3 = [];
126
126
  e5.customRuleEvents && e5.customRuleEvents.length > 0 && e5.customRuleEvents.forEach((n3) => {
127
- n3.events.forEach((r2) => {
128
- const s3 = e5.customEvents[r2];
129
- t3.push(s3.apply(s3, [{ prop: n3.prop, pageContext: e5 }]));
127
+ n3.events.forEach((r3) => {
128
+ const s2 = e5.customEvents[r3];
129
+ t3.push(s2.apply(s2, [{ prop: n3.prop, pageContext: e5 }]));
130
130
  });
131
131
  });
132
132
  if (t3 && t3.length > 0) return new Promise((e6, n3) => {
133
- const r2 = [], s3 = [];
133
+ const r3 = [], s2 = [];
134
134
  t3.forEach((e7) => {
135
- o(e7) ? r2.push(e7) : s3.push(e7);
136
- }), s3.includes(false) && e6(false), r2.length > 0 ? Promise.all(r2).then((t4) => {
135
+ o(e7) ? r3.push(e7) : s2.push(e7);
136
+ }), s2.includes(false) && e6(false), r3.length > 0 ? Promise.all(r3).then((t4) => {
137
137
  t4.includes(false) ? e6(false) : e6(true);
138
138
  }).catch((t4) => {
139
139
  e6(false);
@@ -143,14 +143,14 @@ function b(e2, t2, n2) {
143
143
  }(t2);
144
144
  e4 && o(e4) ? e4.then((e5) => {
145
145
  e5 ? g(t2).then((e6) => {
146
- s2(e6);
147
- }) : s2(false);
146
+ r2(e6);
147
+ }) : r2(false);
148
148
  }) : g(t2).then((e5) => {
149
- s2(e5);
149
+ r2(e5);
150
150
  });
151
151
  } else l2(new Error(i().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
152
152
  } else l2(new Error(i().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
153
- } else s2(true);
153
+ } else r2(true);
154
154
  });
155
155
  }
156
156
  function h(e2, t2) {
@@ -163,8 +163,8 @@ function h(e2, t2) {
163
163
  Object.keys(e4).forEach((n3) => {
164
164
  t2.subRules || (t2.subRules = {}), t2.subRules[n3] ? Object.assign(t2.subRules[n3], e4[n3]) : t2.subRules[n3] = e4[n3];
165
165
  });
166
- } else k(r2[e3]), t2[e3] = r2[e3];
167
- }), d(t2);
166
+ } else j(r2[e3]), t2[e3] = r2[e3];
167
+ }), m(t2);
168
168
  }
169
169
  function y(e2) {
170
170
  if (!e2 || 0 === Object.keys(e2).length) return;
@@ -200,28 +200,38 @@ function P(e2, t2) {
200
200
  let s2 = e2.rules ? e2.rules : {};
201
201
  s2 = h(r2, s2), e2.rules = s2;
202
202
  let i2 = e2.workflowRules ? e2.workflowRules : {};
203
- i2 = h(r2, i2), e2.workflowRules = i2, t2.forEach((t3) => {
204
- O(n(e2, t3.name), t3);
203
+ i2 = h(r2, i2), e2.workflowRules = i2;
204
+ const l2 = t2.filter((e3) => "_all_fields" === e3.name);
205
+ l2 && l2.length > 0 && O(e2, l2[0]), t2.forEach((t3) => {
206
+ if ("_all_fields" !== t3.name) {
207
+ k(n(e2, t3.name), t3);
208
+ }
205
209
  });
206
210
  }
207
211
  function E(e2) {
208
- s(e2).forEach((e3) => {
209
- O(e3, { disabled: true });
210
- });
212
+ O(e2, { disabled: true });
213
+ }
214
+ function O(e2, t2) {
215
+ const n2 = r(e2);
216
+ if (n2) for (const e3 in n2) {
217
+ const r2 = n2[e3];
218
+ k(r2 ? r2.value : r2, t2);
219
+ }
211
220
  }
212
- function R(e2, t2, s2) {
221
+ function R(e2, t2, r2) {
213
222
  let i2, l2;
214
- if (s2 ? (i2 = n(e2, s2), l2 = i2 ? i2.getTableUuid() : null) : (l2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = l2 ? r(e2, l2) : null), !i2) return;
223
+ if (r2 ? (i2 = n(e2, r2), l2 = i2 ? i2.getTableUuid() : null) : (l2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, i2 = l2 ? s(e2, l2) : null), !i2) return;
215
224
  const o2 = e2.code, u2 = e2.version, f2 = a(o2, u2, l2);
216
225
  i2.dynamicControlTableEdit(e2, t2, f2);
217
226
  }
218
- function O(e2, t2) {
227
+ function k(e2, t2) {
228
+ var _a, _b, _c;
219
229
  if (e2) {
220
230
  const n2 = e2.getConfigure();
221
- void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && (n2.runtime.props.required = t2.required), void 0 !== t2.readonly && (t2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== t2.disabled && (t2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled");
231
+ void 0 !== t2.show && (t2.show ? e2.show() : e2.hide()), void 0 !== t2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = t2.required), void 0 !== t2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (t2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== t2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (t2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name && e2.changeOperationAddState(false));
222
232
  }
223
233
  }
224
- function k(e2) {
234
+ function j(e2) {
225
235
  e2 && e2.type && "boolean" === e2.type ? e2.validator = function(e3, t2, n2) {
226
236
  return null == t2 ? !e3.required : "number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2);
227
237
  } : e2 && e2.type && "date" === e2.type && (e2.validator = function(e3, t2, n2) {
@@ -239,9 +249,9 @@ export {
239
249
  w as i18nValidatePropRulesMessage,
240
250
  y as i18nValidateRulesMessage,
241
251
  h as packageCustomRules,
242
- k as packageCustomValidator,
252
+ j as packageCustomValidator,
243
253
  f as setObjectPropRule,
244
- O as updateComponentDisplayState,
254
+ k as updateComponentDisplayState,
245
255
  P as updateFormItemEditState,
246
256
  p as validateDataModelFunc,
247
257
  c as validator
@@ -1,30 +1,30 @@
1
1
  var o = ((o2) => (o2.AUTHENTICATED = "AUTHENTICATED", o2.ANONYMOUS = "ANONYMOUS", o2.AUTHORIZED = "AUTHORIZED", o2))(o || {});
2
- const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消编辑", functions: [] } }, n = {};
3
- function t(o2) {
2
+ const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", props: { base: { type: "info", plain: true } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", props: { base: { type: "primary" } }, functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", props: { base: { type: "primary", plain: true } }, functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", props: { base: { type: "primary" } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", props: { base: { type: "success", text: true } }, functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", props: { base: { type: "danger", text: true } }, functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", props: { base: { type: "primary", text: true } }, functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消", props: { base: { type: "info", text: true } }, functions: [] } }, s = {};
3
+ function n(o2) {
4
4
  return o2 ? e[o2] : void 0;
5
5
  }
6
- function a(o2) {
6
+ function t(o2) {
7
7
  if (!o2) return;
8
- let t2 = n[o2];
9
- if (null == t2) {
10
- for (const n2 in e) {
11
- const a2 = e[n2].functions;
12
- if (a2) {
13
- for (const e2 of a2) {
14
- if (o2 === (e2.code ? e2.code : n2)) {
15
- t2 = e2;
8
+ let n2 = s[o2];
9
+ if (null == n2) {
10
+ for (const s2 in e) {
11
+ const t2 = e[s2].functions;
12
+ if (t2) {
13
+ for (const e2 of t2) {
14
+ if (o2 === (e2.code ? e2.code : s2)) {
15
+ n2 = e2;
16
16
  break;
17
17
  }
18
18
  }
19
- if (t2) break;
19
+ if (n2) break;
20
20
  }
21
21
  }
22
- n[o2] = t2 || "";
22
+ s[o2] = n2 || "";
23
23
  }
24
- return t2 || void 0;
24
+ return n2 || void 0;
25
25
  }
26
26
  export {
27
27
  o as FuncType,
28
- a as getFunctionInfo,
29
- t as getStandPermissionInfo
28
+ t as getFunctionInfo,
29
+ n as getStandPermissionInfo
30
30
  };
@@ -1,8 +1,9 @@
1
1
  import { getBaseUrl as e, getRealRestApiPath as t } from "./common-util.js";
2
2
  import a from "agilebuilder-ui/src/utils/request";
3
3
  import "./eventBus.js";
4
- import { getPermissionCodes as o } from "./page-init-util.js";
4
+ import { getPermissionCodes as i } from "./page-init-util.js";
5
5
  import "agilebuilder-ui/src/utils/common-util";
6
+ import "agilebuilder-ui/src/store";
6
7
  import "agilebuilder-ui/src/utils/util";
7
8
  import "element-plus";
8
9
  import "agilebuilder-ui/src/utils/auth";
@@ -16,14 +17,14 @@ import "./page-store.js";
16
17
  import "agilebuilder-ui/src/utils/i18n-util";
17
18
  import "vue-i18n";
18
19
  import "async-validator";
19
- function i(i2, r2, s2, n2, p2) {
20
+ function o(o2, r2, s2, n2, p2) {
20
21
  return new Promise((s3, n3) => {
21
22
  var _a, _b;
22
23
  if (r2 && ((_a = r2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) if ("beanName" === ((_b = r2.props.dataOrigin) == null ? void 0 : _b.optionValueSetType)) {
23
- const n4 = i2.backendUrl, m = i2.systemCode, l = o(r2, i2);
24
- let d = e(n4, i2.isTest) + "/dsc/commons/load-tree-node";
25
- d = t(d, m, n4, i2.isTest);
26
- const u = { pageCode: i2.code, pageVersion: i2.version, tableName: i2.tableName, systemCode: m, functionCode: l, beanName: i2.beanName };
24
+ const n4 = o2.backendUrl, l = o2.systemCode, m = i(r2, o2);
25
+ let d = e(n4, o2.isTest) + "/dsc/commons/load-tree-node";
26
+ d = t(d, l, n4, o2.isTest);
27
+ const u = { pageCode: o2.code, pageVersion: o2.version, tableName: o2.tableName, systemCode: l, functionCode: m, beanName: o2.beanName };
27
28
  r2.props.dataOrigin.beanName && (u.beanName = r2.props.dataOrigin.beanName), p2 && Object.assign(u, p2), a.post(d, u).then((e2) => {
28
29
  s3(e2);
29
30
  });
@@ -34,40 +35,40 @@ function i(i2, r2, s2, n2, p2) {
34
35
  else s3([]);
35
36
  });
36
37
  }
37
- const r = (t2, o2, i2) => new Promise((r2, s2) => {
38
+ const r = (t2, i2, o2) => new Promise((r2, s2) => {
38
39
  var _a;
39
- if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
40
- const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node", m = p(false, t2, o2, i2);
41
- a.delete(n2, { data: m }).then((e2) => {
40
+ if ("beanName" === ((_a = i2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
41
+ const s3 = o2.backendUrl, n2 = e(s3, o2.isTest) + "/dsc/commons/tree-node", l = p(false, t2, i2, o2);
42
+ a.delete(n2, { data: l }).then((e2) => {
42
43
  r2(e2);
43
44
  });
44
45
  }
45
- }), s = (t2, o2, i2) => new Promise((r2, s2) => {
46
+ }), s = (t2, i2, o2) => new Promise((r2, s2) => {
46
47
  var _a;
47
- if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
48
- const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node", m = p(true, t2, o2, i2);
49
- a.post(n2, m).then((e2) => {
48
+ if ("beanName" === ((_a = i2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
49
+ const s3 = o2.backendUrl, n2 = e(s3, o2.isTest) + "/dsc/commons/tree-node", l = p(true, t2, i2, o2);
50
+ a.post(n2, l).then((e2) => {
50
51
  r2(e2);
51
52
  });
52
53
  }
53
- }), n = (t2, o2, i2) => new Promise((r2, s2) => {
54
+ }), n = (t2, i2, o2) => new Promise((r2, s2) => {
54
55
  var _a;
55
- if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
56
- const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node";
57
- a.put(n2, p(false, t2, o2, i2)).then((e2) => {
56
+ if ("beanName" === ((_a = i2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
57
+ const s3 = o2.backendUrl, n2 = e(s3, o2.isTest) + "/dsc/commons/tree-node";
58
+ a.put(n2, p(false, t2, i2, o2)).then((e2) => {
58
59
  r2(e2);
59
60
  });
60
61
  }
61
62
  });
62
- function p(e2, t2, a2, o2) {
63
- const i2 = JSON.parse(JSON.stringify(t2.data));
64
- e2 && (i2.nodeId = null);
65
- const r2 = { pageCode: o2.code, pageVersion: o2.version, systemCode: o2.systemCode, beanName: o2.beanName, tableName: a2.props.base.treeTableName, treeLabelProp: a2.props.base.treeLabelProp, treeParentIdProp: a2.props.base.treeParentIdProp, currentNode: i2, parentNode: null };
63
+ function p(e2, t2, a2, i2) {
64
+ const o2 = JSON.parse(JSON.stringify(t2.data));
65
+ e2 && (o2.nodeId = null);
66
+ const r2 = { pageCode: i2.code, pageVersion: i2.version, systemCode: i2.systemCode, beanName: i2.beanName, tableName: a2.props.base.treeTableName, treeLabelProp: a2.props.base.treeLabelProp, treeParentIdProp: a2.props.base.treeParentIdProp, currentNode: o2, parentNode: null };
66
67
  return a2.props.dataOrigin.beanName && (r2.beanName = a2.props.dataOrigin.beanName), t2.parent && t2.parent.level > 0 && (r2.parentNode = t2.parent.data), r2;
67
68
  }
68
69
  export {
69
70
  s as createTreeNode,
70
71
  r as deleteNode,
71
- i as getMenuTreeData,
72
+ o as getMenuTreeData,
72
73
  n as updateTreeNode
73
74
  };
@@ -1,22 +1,25 @@
1
- import { defineComponent as e, ref as t, onMounted as i, nextTick as n, resolveComponent as l, createElementBlock as a, openBlock as o, createVNode as u, unref as c, normalizeStyle as p, normalizeClass as r, withCtx as s, createCommentVNode as v, createBlock as g, Fragment as d, createTextVNode as y, toDisplayString as f } from "vue";
2
- import { SuperIcon as m } from "agilebuilder-ui";
3
- import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
1
+ import { defineComponent as e, ref as l, onMounted as i, nextTick as t, resolveComponent as n, createElementBlock as a, openBlock as u, createBlock as o, unref as c, normalizeStyle as s, normalizeClass as p, withCtx as r, createCommentVNode as v, Fragment as y, createTextVNode as g, toDisplayString as d } from "vue";
2
+ import { SuperIcon as k } from "agilebuilder-ui";
3
+ import { handleAfterInitEvent as f, handleEvent as m } from "../../../../utils/events/event-util.js";
4
4
  import { $t as C } from "../../../../utils/i18n-util.js";
5
- const b = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
6
- const T = e2, _ = T.configure.runtime ? T.configure.runtime : {}, h = t(_.props ? _.props : {}), z = _.style, j = _.class;
5
+ const x = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
6
+ const b = e2, T = b.configure.runtime ? b.configure.runtime : {}, z = l(T.props ? T.props : {}), _ = T.style, h = T.class;
7
7
  function P() {
8
- return void 0 !== T.pageContext.canClick && void 0 !== T.pageContext.clickUuid && (!T.pageContext.canClick && T.pageContext.clickUuid === T.configure.uuid);
8
+ return "disabled" === z.value.state || R();
9
9
  }
10
- const R = t(null);
10
+ function R() {
11
+ return void 0 !== b.pageContext.canClick && void 0 !== b.pageContext.clickUuid && (!b.pageContext.canClick && b.pageContext.clickUuid === b.configure.uuid);
12
+ }
13
+ const j = l(null);
11
14
  return i(() => {
12
- n(() => {
13
- k(null, T.pageContext, T.configure, { componentRef: R.value, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
15
+ t(() => {
16
+ f(null, b.pageContext, b.configure, { componentRef: j.value, entity: b.pageContext.entity.data, pageData: b.pageContext.entity.page });
14
17
  });
15
18
  }), V2({ click: function() {
16
- R.value && R.value.$el.click();
17
- } }), (e3, t2) => {
18
- const i2 = l("el-button");
19
- return o(), a("span", b, [u(i2, { ref_key: "componentRef", ref: R, disabled: "disabled" === h.value.state || P(), class: r(c(j)), style: p(c(z)), type: h.value.type, size: h.value.size, text: h.value.text, round: h.value.round, plain: h.value.plain, loading: P(), onClick: t2[0] || (t2[0] = (t3) => c(x)(t3, e3.pageContext, e3.configure, "click")) }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (o(), a(d, { key: 0 }, [y(f(c(C)(h.value.title)) + " ", 1), h.value.iconValue ? (o(), a(d, { key: 0 }, [y("   ")], 64)) : v("", true)], 64)) : v("", true), h.value.iconType && h.value.iconValue ? (o(), g(c(m), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), h.value.title && "right" != h.value.iconPosition ? (o(), a(d, { key: 2 }, [h.value.iconValue ? (o(), a(d, { key: 0 }, [y("   ")], 64)) : v("", true), y(" " + f(c(C)(h.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain", "loading"])]);
19
+ j.value && j.value.$el.click();
20
+ } }), (e3, l2) => {
21
+ const i2 = n("el-link"), t2 = n("el-button");
22
+ return u(), a("span", x, [z.value.text ? (u(), o(i2, { key: 0, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, loading: R(), onClick: l2[0] || (l2[0] = (l3) => c(m)(l3, e3.pageContext, e3.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(y, { key: 0 }, [g(d(c(C)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g("   ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g("   ")], 64)) : v("", true), g(" " + d(c(C)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), o(t2, { key: 1, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: R(), onClick: l2[1] || (l2[1] = (l3) => c(m)(l3, e3.pageContext, e3.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(y, { key: 0 }, [g(d(c(C)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g("   ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g("   ")], 64)) : v("", true), g(" " + d(c(C)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
20
23
  };
21
24
  } });
22
25
  export {
@@ -1,4 +1,7 @@
1
1
  import t from "./buttongroup-runtime.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = o(t, [["__scopeId", "data-v-9d55ce0b"]]);
2
5
  export {
3
- t as default
6
+ r as default
4
7
  };
@@ -1,17 +1,21 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u, createBlock as r, openBlock as a, normalizeStyle as i, normalizeClass as l, unref as p, withCtx as s, createElementBlock as g, Fragment as c, renderList as f } from "vue";
2
- import m from "../../object-render.vue.js";
3
- import { handleAfterInitEvent as x } from "../../../../utils/events/event-util.js";
4
- const y = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
5
- const y2 = e2, C = y2.configure.runtime ? y2.configure.runtime : {}, d = C.style, v = C.class, _ = t(null);
6
- return n(() => {
7
- o(() => {
8
- x(null, y2.pageContext, y2.configure, { componentRef: _.value, entity: y2.pageContext.entity.data, pageData: y2.pageContext.entity.page });
1
+ import { defineComponent as e, computed as t, ref as n, onMounted as o, nextTick as u, resolveComponent as r, createBlock as a, openBlock as p, normalizeStyle as g, normalizeClass as i, unref as s, withCtx as l, createElementBlock as c, Fragment as f, renderList as m } from "vue";
2
+ import x from "../../object-render.vue.js";
3
+ import { handleAfterInitEvent as y } from "../../../../utils/events/event-util.js";
4
+ const C = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
5
+ const C2 = e2, v = C2.configure.runtime ? C2.configure.runtime : {}, b = v.class, d = t(() => {
6
+ var _a;
7
+ const { gap: e3 } = ((_a = C2.configure) == null ? void 0 : _a.props) ?? {};
8
+ return { ...e3 ? { gap: `${e3}px` } : {}, ...v.style ?? {} };
9
+ }), _ = n(null);
10
+ return o(() => {
11
+ u(() => {
12
+ y(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
9
13
  });
10
14
  }), (e3, t2) => {
11
- const n2 = u("el-button-group");
12
- return a(), r(n2, { ref_key: "componentRef", ref: _, class: l(p(v)), style: i(p(d)) }, { default: s(() => [(a(true), g(c, null, f(e3.configure.items, (t3, n3) => (a(), r(m, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
15
+ const n2 = r("el-button-group");
16
+ return p(), a(n2, { ref_key: "componentRef", ref: _, class: i(["amb-button-group-main", s(b)]), style: g(d.value) }, { default: l(() => [(p(true), c(f, null, m(e3.configure.items, (t3, n3) => (p(), a(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
13
17
  };
14
18
  } });
15
19
  export {
16
- y as default
20
+ C as default
17
21
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./common-homepage-search.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = o(e, [["__scopeId", "data-v-16a29b68"]]);
4
+ const m = o(e, [["__scopeId", "data-v-57964c4a"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,10 +1,11 @@
1
- import { defineComponent as e, ref as t, onMounted as o, onUnmounted as i, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createElementVNode as u, createVNode as s, createTextVNode as p, createCommentVNode as c, createElementBlock as g, Fragment as m, renderList as d } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as o, onUnmounted as i, resolveComponent as l, createBlock as r, openBlock as a, withCtx as n, createElementVNode as u, createVNode as s, createTextVNode as p, createCommentVNode as c, createElementBlock as g, Fragment as m, renderList as d } from "vue";
2
2
  import f from "../../object-render.vue.js";
3
3
  import { updateChartDatasources as v, getValueFromVariable as h } from "../../../../utils/page-helper-util.js";
4
4
  import { ElLoading as y, ElMessage as C } from "element-plus";
5
- import S from "agilebuilder-ui/src/utils/request";
5
+ import b from "agilebuilder-ui/src/utils/request";
6
6
  import "agilebuilder-ui/src/utils/common-util";
7
7
  import "agilebuilder-ui/src/utils/util";
8
+ import "agilebuilder-ui/src/store";
8
9
  import "agilebuilder-ui/src/utils/auth";
9
10
  import "../../../../utils/global-refs.js";
10
11
  import "../../../../utils/eventBus.js";
@@ -14,7 +15,7 @@ import "../../../../utils/page-store.js";
14
15
  import "agilebuilder-ui/src/utils/i18n-util";
15
16
  import "vue-i18n";
16
17
  import "../../../../utils/events/print-label.js";
17
- const b = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, O = { class: "dialog-footer" }, x = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
18
+ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, O = { class: "dialog-footer" }, x = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
18
19
  } } }, setup(e2, { expose: x2 }) {
19
20
  const N = e2, _ = t(false), J = t({}), j = t(0);
20
21
  let I;
@@ -47,7 +48,7 @@ const b = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
47
48
  let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), o2 = {};
48
49
  t2 && (o2 = JSON.parse(t2)), o2[N.configure.homeChartSettingUserId] = e3;
49
50
  const i2 = JSON.stringify(e3);
50
- window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(o2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), S.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: i2 }).then((e4) => {
51
+ window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(o2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: i2 }).then((e4) => {
51
52
  C.success("保存成功"), T();
52
53
  });
53
54
  }
@@ -55,7 +56,7 @@ const b = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
55
56
  _.value = true, k.value = N.configure.pushHomepage.searchConditions;
56
57
  } }), (t2, o2) => {
57
58
  const i2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
58
- return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", b, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(i2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => o2[1] || (o2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { onClick: H }, { default: n(() => o2[2] || (o2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => o2[3] || (o2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
59
+ return a(), r(y2, { modelValue: _.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (a(), r(i2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (a(), r(v2, { key: j.value }, { default: n(() => [(a(true), g(m, null, d(k.value, (t3) => (a(), r(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => o2[1] || (o2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => o2[2] || (o2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => o2[3] || (o2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
59
60
  };
60
61
  } });
61
62
  export {