super-page-runtime 2.3.50-sit3 → 2.3.51-sit1

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 (22) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -5
  2. package/dist/es/components/runtime/utils/charts/chart-util.js +121 -90
  3. package/dist/es/components/runtime/utils/events/event-util.js +2 -1
  4. package/dist/es/components/runtime/utils/events/standard-event.js +70 -70
  5. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +7 -6
  6. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
  7. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +25 -13
  8. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +95 -53
  12. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +10 -10
  13. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +48 -26
  15. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -1
  16. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +56 -56
  17. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +12 -12
  19. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +27 -23
  21. package/dist/es/style.css +41 -34
  22. package/package.json +3 -3
@@ -2,7 +2,7 @@ import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as n, isWorkflowPage
2
2
  import c from "agilebuilder-ui/src/utils/request";
3
3
  import { getI18n as l } from "agilebuilder-ui/src/utils/util";
4
4
  import { ElMessage as u, ElMessageBox as p, ElNotification as d } from "element-plus";
5
- import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as b, getRunCurrentRole as C } from "agilebuilder-ui/src/utils/auth";
5
+ import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as C, getRunCurrentRole as b } from "agilebuilder-ui/src/utils/auth";
6
6
  import { getComponentRef as w, getComponentRefByCode as T } from "../global-refs.js";
7
7
  import k from "../eventBus.js";
8
8
  import h from "axios";
@@ -54,7 +54,7 @@ const z = { save: function(e2) {
54
54
  const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 = U(r2, m2);
55
55
  let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
56
56
  g2 = n(g2, p2, d2, r2.isTest);
57
- const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, C2 = !!o(r2) || !!r2.isWorkflowEntityOrg, k2 = S(l2, r2), h2 = { ids: a2, functionCode: k2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: C2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
57
+ const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, b2 = !!o(r2) || !!r2.isWorkflowEntityOrg, k2 = S(l2, r2), h2 = { ids: a2, functionCode: k2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: b2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
58
58
  if (r2.beanName && (h2.beanName = r2.beanName), m2) {
59
59
  const t2 = (_c = (_b = (_a = T(e3.pageContext, m2)) == null ? void 0 : _a.getConfigure()) == null ? void 0 : _b.props) == null ? void 0 : _c.deleteLogicSetting;
60
60
  t2 && t2 && ("object" == typeof t2 ? h2.deleteLogicSetting = JSON.stringify(t2) : "string" == typeof t2 && (h2.deleteLogicSetting = t2));
@@ -84,11 +84,11 @@ const z = { save: function(e2) {
84
84
  const u2 = n2.systemCode, p2 = n2.backendUrl;
85
85
  let d2 = c2, m2 = "?1=1";
86
86
  r2 && d2 && "undefined" !== r2 && "undefined" !== d2 && "null" !== r2 && "null" !== d2 ? m2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(d2) : d2 ? m2 += "&showName=" + encodeURI(d2) : n2.label && (((_a = e3.tableConfigure) == null ? void 0 : _a.title) ? (m2 += "&showName=" + encodeURI(l().t(e3.tableConfigure.title)) + ".xlsx", d2 = l().t(e3.tableConfigure.title) + ".xlsx") : (m2 += "&showName=" + encodeURI(n2.label) + ".xlsx", d2 = n2.label + ".xlsx"));
87
- const b2 = (_b = o2.props.base) == null ? void 0 : _b.logSetting;
88
- b2 && (m2 += "&logSettingText=" + b2.join(""));
87
+ const C2 = (_b = o2.props.base) == null ? void 0 : _b.logSetting;
88
+ C2 && (m2 += "&logSettingText=" + C2.join(""));
89
89
  u2 && (m2 += "&systemCode=" + u2);
90
- const C2 = e3.listCode;
91
- C2 && (m2 += "&listCode=" + C2);
90
+ const b2 = e3.listCode;
91
+ b2 && (m2 += "&listCode=" + b2);
92
92
  n2.beanName && (m2 += "&beanName=" + n2.beanName);
93
93
  const w2 = S(o2, n2);
94
94
  w2 && (m2 += "&functionCode=" + w2);
@@ -144,11 +144,11 @@ const z = { save: function(e2) {
144
144
  const a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
145
145
  let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons";
146
146
  if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
147
- const m2 = be(e3);
147
+ const m2 = Ce(e3);
148
148
  let f2;
149
149
  f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), q(i2.code, a2), f2.then((t2) => {
150
150
  let n2 = true;
151
- t2 && (H(i2.code, a2), n2 = Ce(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e3.configureObj, "superPageRuntimeMessage.successfulSave")) }), k.$emit("clearTableAllEndEditing"), o2(true);
151
+ t2 && (H(i2.code, a2), n2 = be(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e3.configureObj, "superPageRuntimeMessage.successfulSave")) }), k.$emit("clearTableAllEndEditing"), o2(true);
152
152
  }).catch((e4) => {
153
153
  s2(e4);
154
154
  });
@@ -161,11 +161,11 @@ const z = { save: function(e2) {
161
161
  if (Z(i2)) return void o2(false);
162
162
  let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/start";
163
163
  if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
164
- const m2 = be(e3);
164
+ const m2 = Ce(e3);
165
165
  let f2;
166
166
  a2.workflow_id || a2.WORKFLOW_ID ? (d2 = t(p2, i2.isTest) + "/dsc/workflow-commons", d2 = n(d2, r2, p2, i2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), q(i2.code, a2), f2.then((t2) => {
167
167
  let n2 = true;
168
- t2 && (H(i2.code, a2), n2 = Ce(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e3.configureObj, "superPageRuntimeMessage.successfulStart")) }), k.$emit("clearTableAllEndEditing"), o2(true);
168
+ t2 && (H(i2.code, a2), n2 = be(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e3.configureObj, "superPageRuntimeMessage.successfulStart")) }), k.$emit("clearTableAllEndEditing"), o2(true);
169
169
  }).catch((e4) => {
170
170
  s2(e4);
171
171
  });
@@ -179,12 +179,12 @@ const z = { save: function(e2) {
179
179
  const a2 = i2.systemCode, r2 = i2.backendUrl;
180
180
  let p2 = t(r2, i2.isTest) + "/dsc/workflow-commons/submit";
181
181
  if (p2 = n(p2, a2, r2, i2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
182
- const d2 = be(e3);
182
+ const d2 = Ce(e3);
183
183
  q(i2.code, i2.entity.data);
184
184
  const m2 = c.post(p2, d2);
185
185
  m2 ? m2.then((t2) => {
186
186
  let n2 = true;
187
- t2 && (H(i2.code, i2.entity.data), n2 = Ce(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e3.configureObj, "superPageRuntimeMessage.successfulSubmit")) }), k.$emit("clearTableAllEndEditing"), o2(true);
187
+ t2 && (H(i2.code, i2.entity.data), n2 = be(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e3.configureObj, "superPageRuntimeMessage.successfulSubmit")) }), k.$emit("clearTableAllEndEditing"), o2(true);
188
188
  }).catch((e4) => {
189
189
  s2(e4);
190
190
  }) : H(i2.code, i2.entity.data);
@@ -221,22 +221,22 @@ const z = { save: function(e2) {
221
221
  }(e2);
222
222
  }, drawTask: function(e2) {
223
223
  return function(e3) {
224
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = be(e3);
224
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = Ce(e3);
225
225
  return Re(e3, i2, s2, "superPageRuntimeMessage.successfulDrawTask");
226
226
  }(e2);
227
227
  }, abandonReceive: function(e2) {
228
228
  return function(e3) {
229
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = be(e3);
229
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = Ce(e3);
230
230
  return Re(e3, i2, s2, "superPageRuntimeMessage.successfulAbandonReceive");
231
231
  }(e2);
232
232
  }, returnToPreviousTask: function(e2) {
233
233
  return function(e3) {
234
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = be(e3);
234
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = Ce(e3);
235
235
  return Re(e3, i2, s2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
236
236
  }(e2);
237
237
  }, endInstance: function(e2) {
238
238
  return function(e3) {
239
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/end-instance", i2 = be(e3);
239
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/end-instance", i2 = Ce(e3);
240
240
  return Re(e3, i2, s2, "superPageRuntimeMessage.successfulEndInstance");
241
241
  }(e2);
242
242
  }, returnTaskTo: function(e2) {
@@ -251,7 +251,7 @@ const z = { save: function(e2) {
251
251
  }(e2);
252
252
  }, retrieveTask: function(e2) {
253
253
  return function(e3) {
254
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/retrieves", i2 = be(e3);
254
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/retrieves", i2 = Ce(e3);
255
255
  return Re(e3, i2, s2, "superPageRuntimeMessage.successfulRetrieve");
256
256
  }(e2);
257
257
  }, extractWorkflow: function(e2) {
@@ -263,17 +263,17 @@ const z = { save: function(e2) {
263
263
  }(e2);
264
264
  }, cancelExtractWorkflow: function(e2) {
265
265
  return function(e3) {
266
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/cancel-extract", i2 = be(e3);
266
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/cancel-extract", i2 = Ce(e3);
267
267
  return Re(e3, i2, s2, "superPageRuntimeMessage.successfulCancelExtract");
268
268
  }(e2);
269
269
  }, approveExtractWorkflow: function(e2) {
270
270
  return function(e3) {
271
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/approve-extract", i2 = be(e3);
271
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/approve-extract", i2 = Ce(e3);
272
272
  return Re(e3, i2, s2, "superPageRuntimeMessage.successfulOperation");
273
273
  }(e2);
274
274
  }, refuseExtractWorkflow: function(e2) {
275
275
  return function(e3) {
276
- const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/refuse-extract", i2 = be(e3);
276
+ const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/refuse-extract", i2 = Ce(e3);
277
277
  return Re(e3, i2, s2, "superPageRuntimeMessage.successfulOperation");
278
278
  }(e2);
279
279
  }, viewDetail: function(e2) {
@@ -365,7 +365,7 @@ function K(e2) {
365
365
  function X(e2, n2, s2, i2) {
366
366
  var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
367
367
  e2.clickUuid = n2.uuid, e2.canClick = false;
368
- const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = L.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: S(n2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
368
+ const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = L.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: S(n2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
369
369
  if (e2.tableUuids && e2.tableUuids.length > 0) {
370
370
  const t2 = {};
371
371
  e2.tableUuids.forEach((n3) => {
@@ -374,14 +374,14 @@ function X(e2, n2, s2, i2) {
374
374
  const e3 = o2.getConfigure().code, n4 = o2.getSuperGridRef().columns;
375
375
  n4 && n4.length > 0 && (t2[e3] = n4);
376
376
  }
377
- }), C2.subTableColumns = t2;
377
+ }), b2.subTableColumns = t2;
378
378
  }
379
- l2 && (C2.logSettingText = l2.join(""));
379
+ l2 && (b2.logSettingText = l2.join(""));
380
380
  const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
381
- T2 && (C2.currentOperation = T2), C2.isMobile = F();
381
+ T2 && (b2.currentOperation = T2), b2.isMobile = F();
382
382
  const k2 = Pe(e2);
383
383
  let y2;
384
- C2.additionalParamMap = k2, C2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", C2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = i2 ? function(e3, n3, o2, s3) {
384
+ b2.additionalParamMap = k2, b2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", b2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = i2 ? function(e3, n3, o2, s3) {
385
385
  return new Promise((i3, a3) => {
386
386
  const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
387
387
  Q();
@@ -393,7 +393,7 @@ function X(e2, n2, s2, i2) {
393
393
  a3(e4);
394
394
  });
395
395
  });
396
- }(r2, f2, C2, e2.isTest) : function(e3, n3, o2, s3) {
396
+ }(r2, f2, b2, e2.isTest) : function(e3, n3, o2, s3) {
397
397
  return new Promise((i3, a3) => {
398
398
  const r3 = t(n3, s3) + "/dsc/commons/export-reports";
399
399
  Q();
@@ -407,7 +407,7 @@ function X(e2, n2, s2, i2) {
407
407
  a3(e4);
408
408
  });
409
409
  });
410
- }(r2, f2, C2, e2.isTest), y2 && y2.then(() => {
410
+ }(r2, f2, b2, e2.isTest), y2 && y2.then(() => {
411
411
  v(e2, n2);
412
412
  }).catch((t2) => {
413
413
  window.$message.error("导出失败..."), v(e2, n2);
@@ -415,7 +415,7 @@ function X(e2, n2, s2, i2) {
415
415
  }
416
416
  function Q() {
417
417
  h.defaults.headers.common.Authorization = f();
418
- const e2 = C();
418
+ const e2 = b();
419
419
  if (e2) {
420
420
  const t2 = "_RUN_CURRENT_ROLE";
421
421
  h.defaults.headers.common[t2] = e2;
@@ -452,10 +452,10 @@ function te(e2, t2, n2, i2, a2, r2, c2) {
452
452
  r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
453
453
  const g2 = t2.props.base.conversionCodes;
454
454
  g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
455
- const b2 = Fe(t2);
456
- b2 && (f2.autoSetValueData = b2);
457
- const C2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
458
- C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = u2);
455
+ const C2 = Fe(t2);
456
+ C2 && (f2.autoSetValueData = C2);
457
+ const b2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
458
+ b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = u2);
459
459
  const w2 = e2.beanName;
460
460
  w2 && (f2.beanName = w2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
461
461
  const T2 = Pe(e2);
@@ -571,31 +571,31 @@ function me(e2, o2, s2, i2) {
571
571
  return new Promise((r2, u2) => {
572
572
  const d2 = e2.pageContext, m2 = e2.configureObj;
573
573
  if (Z(d2)) return void r2(false);
574
- const f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
574
+ const f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
575
575
  let w2 = false;
576
- C2 && "noOperation" === C2 && (w2 = true);
576
+ b2 && "noOperation" === b2 && (w2 = true);
577
577
  let T2 = d2.tableName;
578
578
  if (o2) {
579
579
  const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
580
580
  T2 = U(d2, t2);
581
581
  } else q(d2.code, d2.entity.data);
582
582
  const k2 = function(e3, o3, s3, i3, r3, u3, d3, m3, f3) {
583
- return new Promise((g3, b3) => {
584
- const C3 = o3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
585
- p.confirm(l().t(w3, { name: C3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
583
+ return new Promise((g3, C3) => {
584
+ const b3 = o3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
585
+ p.confirm(l().t(w3, { name: b3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
586
586
  const a2 = e3.systemCode, l2 = e3.backendUrl, p2 = te(e3, o3, i3, r3, u3, m3, null);
587
587
  p2.tableName = f3;
588
588
  let d4 = t(l2, e3.isTest) + s3;
589
589
  d4 = n(d4, a2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
590
590
  g3(e4);
591
591
  }).catch((e4) => {
592
- b3(e4);
592
+ C3(e4);
593
593
  });
594
594
  }).catch(() => {
595
- b3("点击了取消按钮");
595
+ C3("点击了取消按钮");
596
596
  });
597
597
  });
598
- }(d2, m2, i2, w2, f2, g2, s2, b2, T2);
598
+ }(d2, m2, i2, w2, f2, g2, s2, C2, T2);
599
599
  k2 ? k2.then((e3) => {
600
600
  !o2 && e3 && H(d2.code, d2.entity.data), ae(d2, m2, e3, ie(m2, "superPageRuntimeMessage.successfulSave"), o2), r2(e3);
601
601
  }).catch((e3) => {
@@ -609,10 +609,10 @@ function fe(e2, s2) {
609
609
  f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
610
610
  const g2 = (_b = (_a = a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
611
611
  g2 && f2.append("currentOperation", g2), f2.append("isMobile", F()), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
612
- const b2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
613
- b2 && f2.append("importDuplicateRule", b2);
614
- const C2 = i2.judgeHeavyList;
615
- C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
612
+ const C2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
613
+ C2 && f2.append("importDuplicateRule", C2);
614
+ const b2 = i2.judgeHeavyList;
615
+ b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
616
616
  const w2 = Fe(a2);
617
617
  w2 && f2.append("autoSetValueData", w2);
618
618
  const T2 = i2.formNoRuleCode;
@@ -653,7 +653,7 @@ function ge(e2, t2) {
653
653
  }
654
654
  return true;
655
655
  }
656
- function be(e2) {
656
+ function Ce(e2) {
657
657
  var _a, _b, _c;
658
658
  const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
659
659
  let r2 = S(n2, t2);
@@ -673,13 +673,13 @@ function be(e2) {
673
673
  const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
674
674
  return f2 && (c2.currentOperation = f2), c2.isMobile = F(), c2.taskParamMap = t2.entity.task, c2;
675
675
  }
676
- function Ce(e2, t2, n2, o2, s2) {
676
+ function be(e2, t2, n2, o2, s2) {
677
677
  const i2 = n2.code, a2 = n2.version;
678
678
  let r2;
679
679
  if (e2) {
680
680
  t2 && (n2.initFormNo = e2.formNo, n2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (n2.entity.data = e2.entity, function(e3, t3) {
681
681
  const n3 = Pe(t3);
682
- e3 && n3 && b(n3._t_ + "_id", e3);
682
+ e3 && n3 && C(n3._t_ + "_id", e3);
683
683
  }(e2.entity.id || e2.entity.ID, n2));
684
684
  const s3 = e2.completeTaskResult;
685
685
  if (s3) {
@@ -707,12 +707,12 @@ async function we(e2, o2) {
707
707
  const p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
708
708
  let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
709
709
  if (f2 = n(f2, p2, d2, r2.isTest), !f2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
710
- const g2 = be(e2);
710
+ const g2 = Ce(e2);
711
711
  g2.completeTaskParam = { operationResult: o2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
712
- const b2 = c.post(f2, g2);
713
- q(r2.code, r2.entity.data), b2.then((t2) => {
712
+ const C2 = c.post(f2, g2);
713
+ q(r2.code, r2.entity.data), C2.then((t2) => {
714
714
  let n2 = true;
715
- t2 && (H(r2.code, r2.entity.data), n2 = Ce(t2, false, r2, e2, o2)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e2.configureObj, "superPageRuntimeMessage.successfulCompleteTask")) }), i2(true);
715
+ t2 && (H(r2.code, r2.entity.data), n2 = be(t2, false, r2, e2, o2)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e2.configureObj, "superPageRuntimeMessage.successfulCompleteTask")) }), i2(true);
716
716
  }).catch((e3) => {
717
717
  a2(e3);
718
718
  });
@@ -736,7 +736,7 @@ function Te(e2) {
736
736
  }
737
737
  function ke(e2, n2) {
738
738
  if (n2) {
739
- const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/assigns", r2 = n2.id ? n2.id : n2.ID ? n2.ID : null, c2 = be(e2);
739
+ const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/assigns", r2 = n2.id ? n2.id : n2.ID ? n2.ID : null, c2 = Ce(e2);
740
740
  c2.assigneeId = r2, Re(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
741
741
  v(o2, s2);
742
742
  });
@@ -850,7 +850,7 @@ async function Re(e2, t2, o2, s2) {
850
850
  const f2 = c.post(o2, t2);
851
851
  f2 && f2.then((t3) => {
852
852
  let n2 = true;
853
- t3 && (n2 = Ce(t3, false, p2, e2, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e2.configureObj, s2)) }), a2(true);
853
+ t3 && (n2 = be(t3, false, p2, e2, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(ie(e2.configureObj, s2)) }), a2(true);
854
854
  }).catch((e3) => {
855
855
  r2(e3);
856
856
  });
@@ -865,7 +865,7 @@ function Me(e2) {
865
865
  return c.post(r2, m2);
866
866
  }
867
867
  function xe(e2, n2) {
868
- const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = be(e2);
868
+ const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = Ce(e2);
869
869
  n2.nodeName && (r2.returnToNodeName = n2.nodeName), n2.nodeId && (r2.returnToNodeId = n2.nodeId), Re(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
870
870
  v(o2, s2);
871
871
  });
@@ -873,7 +873,7 @@ function xe(e2, n2) {
873
873
  function Ne(e2) {
874
874
  const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
875
875
  let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
876
- const r2 = be(e2);
876
+ const r2 = Ce(e2);
877
877
  if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
878
878
  u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
879
879
  }
@@ -882,7 +882,7 @@ function Oe(e2, o2) {
882
882
  const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
883
883
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
884
884
  if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
885
- const d2 = o2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = be(e2);
885
+ const d2 = o2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = Ce(e2);
886
886
  m2.ids = d2;
887
887
  const f2 = c.post(p2, m2);
888
888
  f2 && f2.then((e3) => {
@@ -893,7 +893,7 @@ function Oe(e2, o2) {
893
893
  function Ae(e2) {
894
894
  const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
895
895
  let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
896
- const r2 = be(e2);
896
+ const r2 = Ce(e2);
897
897
  if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
898
898
  u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
899
899
  }
@@ -902,7 +902,7 @@ function Ee(e2, o2) {
902
902
  const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
903
903
  let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
904
904
  if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
905
- const d2 = o2.map((e3) => e3.taskId), m2 = be(e2);
905
+ const d2 = o2.map((e3) => e3.taskId), m2 = Ce(e2);
906
906
  m2.ids = d2;
907
907
  const f2 = c.post(p2, m2);
908
908
  f2 && f2.then((e3) => {
@@ -913,7 +913,7 @@ function Ee(e2, o2) {
913
913
  function Ue(e2) {
914
914
  const o2 = e2.pageContext, s2 = o2.backendUrl;
915
915
  let i2 = t(s2, o2.isTest) + "/dsc/workflow-commons/initiate-extract";
916
- const a2 = be(e2);
916
+ const a2 = Ce(e2);
917
917
  if (o2.completeTaskParam) {
918
918
  const t2 = [];
919
919
  e2._value.loginName && t2.push(e2._value.loginName), a2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle: ye(e2) };
@@ -924,7 +924,7 @@ function Ue(e2) {
924
924
  const d2 = c.post(i2, a2);
925
925
  d2 && d2.then((n2) => {
926
926
  let o4 = true;
927
- n2 && (o4 = Ce(n2, false, s3, e2, null)), true === o4 && u({ showClose: true, type: "success", message: l().t(ie(e2.configureObj, "superPageRuntimeMessage.successfulInitiateExtract")) }), t2(true);
927
+ n2 && (o4 = be(n2, false, s3, e2, null)), true === o4 && u({ showClose: true, type: "success", message: l().t(ie(e2.configureObj, "superPageRuntimeMessage.successfulInitiateExtract")) }), t2(true);
928
928
  }).catch((e3) => {
929
929
  o3(e3);
930
930
  });
@@ -991,7 +991,7 @@ function je(e2, t2, n2, o2, s2, i2) {
991
991
  var _a2;
992
992
  const o3 = m(), s3 = o3 ? o3.loginName : null;
993
993
  if (e3 == null ? void 0 : e3.processState) {
994
- if (((_a2 = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a2.nodeId) === (n3 == null ? void 0 : n3.CURRENT_ACTIVITY_ID)) return false;
994
+ if (((_a2 = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a2.nodeId) === (n3 == null ? void 0 : n3.CURRENT_ACTIVITY_ID) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
995
995
  if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && "MANUAL_END" !== (e3 == null ? void 0 : e3.processState) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
996
996
  }
997
997
  return false;
@@ -1048,20 +1048,20 @@ function We(e2, n2, s2) {
1048
1048
  const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Pe(e3);
1049
1049
  let d2 = n3 || null, m2 = n3 ? [n3] : null;
1050
1050
  void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
1051
- const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1051
+ const f2 = p2 ? p2.taskId : null, C2 = l2, b2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1052
1052
  if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
1053
1053
  const t2 = {};
1054
1054
  e3.tableUuids.forEach((e4) => {
1055
1055
  const n4 = r(l2, u2, e4);
1056
1056
  t2[n4] = n4;
1057
- }), C2.listCodesMap = t2;
1057
+ }), b2.listCodesMap = t2;
1058
1058
  }
1059
- m2 && (C2.ids = Be(m2)), f2 ? C2.taskId = f2 : d2 ? C2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (C2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (C2.withDataPermission = true), C2.isMobile = F();
1059
+ m2 && (b2.ids = Be(m2)), f2 ? b2.taskId = f2 : d2 ? b2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (b2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (b2.withDataPermission = true), b2.isMobile = F();
1060
1060
  const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = B();
1061
1061
  T2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
1062
- const k2 = G(e3.code, C2.id);
1063
- c.post(w2, C2).then(async (t2) => {
1064
- k2 && await Le(e3, C2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, Ce(t2, true, e3), e3.workflowRules = D(e3);
1062
+ const k2 = G(e3.code, b2.id);
1063
+ c.post(w2, b2).then(async (t2) => {
1064
+ k2 && await Le(e3, b2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, be(t2, true, e3), e3.workflowRules = D(e3);
1065
1065
  const n4 = e3.pageType;
1066
1066
  n4 && "form" === n4 && function(e4) {
1067
1067
  (function(e5) {
@@ -1105,7 +1105,7 @@ function We(e2, n2, s2) {
1105
1105
  const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Pe(e3);
1106
1106
  let d2 = n3 || null, m2 = n3 ? [n3] : null;
1107
1107
  void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
1108
- const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1108
+ const f2 = p2 ? p2.taskId : null, C2 = l2, b2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
1109
1109
  if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = Be(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), f2 && (w2.taskId = f2), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (w2.withDataPermission = true), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
1110
1110
  const t2 = {};
1111
1111
  e3.tableUuids.forEach((e4) => {
@@ -1114,7 +1114,7 @@ function We(e2, n2, s2) {
1114
1114
  }), w2.listCodesMap = t2;
1115
1115
  }
1116
1116
  e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile = F();
1117
- const T2 = C2 + "/dsc/commons/gets", k2 = B();
1117
+ const T2 = b2 + "/dsc/commons/gets", k2 = B();
1118
1118
  k2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
1119
1119
  const h2 = G(e3.code, w2.id);
1120
1120
  c.post(T2, w2).then(async (t2) => {
@@ -1199,7 +1199,7 @@ function ze(e2, t2, n2, o2) {
1199
1199
  export {
1200
1200
  Z as checkAndTipFileUploading,
1201
1201
  ae as dealAfterOperate,
1202
- Ce as dealCompleteTaskParam,
1202
+ be as dealCompleteTaskParam,
1203
1203
  qe as deleteChartCondition,
1204
1204
  ve as doAddSigner,
1205
1205
  Ie as doAddTransactor,
@@ -1,18 +1,19 @@
1
- import { defineComponent as e, ref as t, onMounted as l, nextTick as i, onUnmounted as n, resolveComponent as o, createElementBlock as a, openBlock as u, createBlock as c, unref as p, normalizeStyle as r, normalizeClass as s, withCtx as v, createCommentVNode as y, Fragment as g, createTextVNode as d, toDisplayString as f } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as i, nextTick as l, onUnmounted as n, resolveComponent as o, createElementBlock as a, openBlock as u, createBlock as c, unref as p, normalizeStyle as r, normalizeClass as s, withCtx as v, createCommentVNode as y, Fragment as g, createTextVNode as d, toDisplayString as f } from "vue";
2
2
  import { SuperIcon as k } from "agilebuilder-ui";
3
3
  import { handleAfterInitEvent as x, handleEvent as C } from "../../../../utils/events/event-util.js";
4
4
  import { $t as m } from "../../../../utils/i18n-util.js";
5
5
  const V = { class: "page-runtime-header-btn" }, T = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: T2 }) {
6
6
  const b = e2, I = b.configure.runtime ? b.configure.runtime : {}, z = t(I.props ? I.props : {}), _ = I.style, h = I.class;
7
7
  function P() {
8
- return "disabled" === z.value.state || N();
8
+ var _a;
9
+ return "disabled" === z.value.state || N() || (((_a = b.pageContext) == null ? void 0 : _a.gridLoadingCount) || 0) > 0;
9
10
  }
10
11
  function N() {
11
12
  return void 0 !== b.pageContext.canClick && void 0 !== b.pageContext.clickUuid && (!b.pageContext.canClick && b.pageContext.clickUuid === b.configure.uuid);
12
13
  }
13
14
  const R = t(null);
14
- return l(() => {
15
- i(() => {
15
+ return i(() => {
16
+ l(() => {
16
17
  x(null, b.pageContext, b.configure, { componentRef: R.value, entity: b.pageContext.entity.data, pageData: b.pageContext.entity.page });
17
18
  });
18
19
  }), n(() => {
@@ -20,8 +21,8 @@ const V = { class: "page-runtime-header-btn" }, T = e({ __name: "button-runtime"
20
21
  }), T2({ click: function() {
21
22
  R.value && R.value.$el.click();
22
23
  } }), (e3, t2) => {
23
- const l2 = o("el-link"), i2 = o("el-button");
24
- return u(), a("span", V, [z.value.text ? (u(), c(l2, { key: 0, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, loading: N(), onClick: t2[0] || (t2[0] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), c(i2, { key: 1, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: N(), onClick: t2[1] || (t2[1] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
24
+ const i2 = o("el-link"), l2 = o("el-button");
25
+ return u(), a("span", V, [z.value.text ? (u(), c(i2, { key: 0, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, loading: N(), onClick: t2[0] || (t2[0] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), c(l2, { key: 1, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: N(), onClick: t2[1] || (t2[1] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
25
26
  };
26
27
  } });
27
28
  export {
@@ -1,7 +1,7 @@
1
1
  import t from "./buttongroup-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(t, [["__scopeId", "data-v-9d55ce0b"]]);
4
+ const r = o(t, [["__scopeId", "data-v-23021692"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,21 +1,33 @@
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";
1
+ import { defineComponent as e, computed as t, ref as n, onMounted as r, nextTick as o, resolveComponent as u, createBlock as a, openBlock as i, normalizeStyle as s, normalizeClass as c, unref as l, withCtx as p, createElementBlock as g, Fragment as f, renderList as m } from "vue";
2
+ import v from "../../object-render.vue.js";
3
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(() => {
4
+ const d = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
5
+ const d2 = e2, x = d2.configure.runtime ? d2.configure.runtime : {}, C = x.class, b = t(() => {
6
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 });
7
+ const { gap: e3 } = ((_a = d2.configure) == null ? void 0 : _a.props) ?? {};
8
+ return { ...e3 ? { gap: `${e3}px` } : {}, ...x.style ?? {} };
9
+ }), h = n(null);
10
+ function k() {
11
+ return "1" === function(e3) {
12
+ const t2 = window.location.hash || "", n2 = t2.indexOf("?"), r2 = n2 > -1 ? t2.slice(n2 + 1) : window.location.search;
13
+ return new URLSearchParams(r2).get(e3);
14
+ }("hideBack");
15
+ }
16
+ const w = t(() => {
17
+ const e3 = d2.configure.items || [];
18
+ return k() ? e3.filter((e4) => !function(e5) {
19
+ return [...e5 && Array.isArray(e5.events) ? e5.events : [], ...e5 && e5.runtime && Array.isArray(e5.runtime.events) ? e5.runtime.events : []].some((e6) => "click" === e6.name && e6.isStandard && "back" === e6.eventName);
20
+ }(e4)) : e3;
21
+ });
22
+ return r(() => {
23
+ o(() => {
24
+ y(null, d2.pageContext, d2.configure, { componentRef: h.value, entity: d2.pageContext.entity.data, pageData: d2.pageContext.entity.page });
13
25
  });
14
26
  }), (e3, t2) => {
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"]);
27
+ const n2 = u("el-button-group");
28
+ return i(), a(n2, { ref_key: "componentRef", ref: h, class: c(["amb-button-group-main", l(C)]), style: s(b.value) }, { default: p(() => [(i(true), g(f, null, m(w.value, (t3, n3) => (i(), a(v, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
17
29
  };
18
30
  } });
19
31
  export {
20
- C as default
32
+ d as default
21
33
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./tabs-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(t, [["__scopeId", "data-v-e2437281"]]);
4
+ const r = e(t, [["__scopeId", "data-v-71f33e38"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -19,12 +19,12 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
19
19
  ie || (ie = window.$vueApp.config.globalProperties.baseURL);
20
20
  const ae = t({}), le = [], re = t({});
21
21
  re.value = function() {
22
- var _a, _b, _c, _d, _e2;
22
+ var _a, _b, _c, _d, _e2, _f, _g;
23
23
  const e3 = J.systemCode, t2 = J.code;
24
24
  let n2 = K.props && K.props.dataOrigin && "[]" !== K.props.dataOrigin.sqlFilterCondition ? K.props.dataOrigin.sqlFilterCondition : null;
25
25
  null == n2 && (n2 = []);
26
- const o2 = (_a = K.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: J.beanName, functionCode: t2 + ".listData", tableName: oe, systemCode: e3, pageCode: J.code, pageVersion: J.version, isMobile: N() }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Te }, indexContinuous: !(!K.props || !K.props.otherSettings) && K.props.otherSettings.serialNumberContinuous, initSearch: !K.props || false !== K.props.dataOrigin.initializationQuery, resizeHeight: Ne, pageCode: J.code, pageVersion: J.version, additionalParamMap: I(J), showOverflowTooltip: (_c = (_b = K == null ? void 0 : K.props) == null ? void 0 : _b.otherSettings) == null ? void 0 : _c.showOverflowTooltip, isEnableEnterEvent: K.props && K.props.otherSettings && K.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(K.props && K.props.otherSettings && K.props.otherSettings.isWithDataPermission) && K.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(J), tableClass: ee, tableStyle: Z, pageContext: J, configureObj: K, backendUrl: ie, cellStyleRender: Qe, rowStyleRender: qe, titleStyleRender: Ye, validateEitConditions: Ze, showOperationCondition: null };
27
- ((_e2 = (_d = K == null ? void 0 : K.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.showOperationCondition) && (i2.showOperationCondition = K.props.base.showOperationCondition);
26
+ const o2 = (_a = K.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: J.beanName, functionCode: t2 + ".listData", tableName: oe, systemCode: e3, pageCode: J.code, pageVersion: J.version, isMobile: N() }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Te }, indexContinuous: !(!K.props || !K.props.otherSettings) && K.props.otherSettings.serialNumberContinuous, initSearch: !K.props || false !== K.props.dataOrigin.initializationQuery, resizeHeight: Ne, pageCode: J.code, pageVersion: J.version, additionalParamMap: I(J), showOverflowTooltip: (_c = (_b = K == null ? void 0 : K.props) == null ? void 0 : _b.otherSettings) == null ? void 0 : _c.showOverflowTooltip, titleOverflow: (_e2 = (_d = K == null ? void 0 : K.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.titleOverflow, isEnableEnterEvent: K.props && K.props.otherSettings && K.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(K.props && K.props.otherSettings && K.props.otherSettings.isWithDataPermission) && K.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(J), tableClass: ee, tableStyle: Z, pageContext: J, configureObj: K, backendUrl: ie, cellStyleRender: Qe, rowStyleRender: qe, titleStyleRender: Ye, validateEitConditions: Ze, showOperationCondition: null };
27
+ ((_g = (_f = K == null ? void 0 : K.props) == null ? void 0 : _f.base) == null ? void 0 : _g.showOperationCondition) && (i2.showOperationCondition = K.props.base.showOperationCondition);
28
28
  return function(e4) {
29
29
  var _a2;
30
30
  ((_a2 = K.props.highOrder) == null ? void 0 : _a2.mergeFields) && K.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = K.props.highOrder.mergeFields.join(","));
@@ -20,8 +20,8 @@ const B = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
20
20
  let ne = t(0);
21
21
  const oe = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, le = t({}), ie = F;
22
22
  le.value = function() {
23
- var _a2, _b, _c, _d;
24
- const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: oe, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: ee, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
23
+ var _a2, _b, _c, _d, _e2, _f, _g, _h;
24
+ const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: oe, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, titleOverflow: (_d = (_c = z == null ? void 0 : z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.titleOverflow, backendUrl: ee, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_f = (_e2 = z.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.allEditable, deleteConfirm: true === ((_h = (_g = z.props) == null ? void 0 : _g.base) == null ? void 0 : _h.deleteConfirm) };
25
25
  return W && (e3.tableStyle = W), X && (e3.tableClass = X), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
26
26
  const t2 = z.props ? z.props.dataOrigin : {};
27
27
  if (t2.treeTable) {
@@ -99,7 +99,7 @@ const B = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
99
99
  e5.push(t4);
100
100
  }
101
101
  if (xe(null, null, null, null, null, true)) {
102
- const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Pe, isShow: De, isStandard: true };
102
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Pe, isShow: De, isStandard: true, isDelete: true };
103
103
  e5.push(t4);
104
104
  }
105
105
  return O(j, z, e5, we), e5;