super-page-runtime 2.3.15-sit3 → 2.3.16-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.
@@ -353,7 +353,7 @@ function W(e2) {
353
353
  }
354
354
  function L(e2, s2, o2, a2) {
355
355
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
356
- e2.clickUuid = s2.uuid;
356
+ e2.clickUuid = s2.uuid, e2.canClick = false;
357
357
  const i2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = _.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: R(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
358
358
  u2 && (b2.logSettingText = u2.join(""));
359
359
  const T2 = ce(e2);
@@ -362,7 +362,8 @@ function L(e2, s2, o2, a2) {
362
362
  return new Promise((a3, i3) => {
363
363
  const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
364
364
  B();
365
- w.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
365
+ const c3 = w.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" });
366
+ window.$message.info("正在导出中..."), c3.then((t3) => {
366
367
  const s4 = new Blob([t3.data]), n2 = document.createElement("a");
367
368
  n2.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", n2.style.display = "none", n2.target = "_blank", n2.href = URL.createObjectURL(s4), document.body.appendChild(n2), n2.click(), URL.revokeObjectURL(n2.href), document.body.removeChild(n2), a3(true);
368
369
  }).catch((e4) => {
@@ -401,7 +402,7 @@ function F(e2, t2) {
401
402
  const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
402
403
  let u2 = false;
403
404
  c2 && "noOperation" === c2 && (u2 = true);
404
- const l2 = $(o2, a2, "/dsc/commons", u2, i2, r2);
405
+ const l2 = q(o2, a2, "/dsc/commons", u2, i2, r2);
405
406
  l2 ? l2.then((e3) => {
406
407
  H(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
407
408
  }).catch((e3) => {
@@ -427,7 +428,7 @@ function V(e2, n2, o2, a2, i2, r2, c2) {
427
428
  const w2 = ce(e2);
428
429
  return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
429
430
  }
430
- function q(e2, t2, s2, a2, i2, r2, u2, l2) {
431
+ function $(e2, t2, s2, a2, i2, r2, u2, l2) {
431
432
  const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
432
433
  return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, a3, i3, r3) {
433
434
  const u3 = n(t3, r3);
@@ -436,8 +437,8 @@ function q(e2, t2, s2, a2, i2, r2, u2, l2) {
436
437
  return l3;
437
438
  }(p2, d2, m2, s2, e2.entity.data, e2.isTest);
438
439
  }
439
- function $(e2, t2, s2, n2, o2, a2) {
440
- return q(e2, t2, s2, n2, o2, a2, null, null);
440
+ function q(e2, t2, s2, n2, o2, a2) {
441
+ return $(e2, t2, s2, n2, o2, a2, null, null);
441
442
  }
442
443
  function H(t2, s2, n2, o2, a2) {
443
444
  const i2 = J(t2, s2, a2);
@@ -1076,8 +1077,8 @@ export {
1076
1077
  ye as getFormData,
1077
1078
  ge as getRemoveSigner,
1078
1079
  be as getRemoveTransactor,
1079
- $ as getSaveFormRequest,
1080
- q as getSaveFormRequestWithRow,
1080
+ q as getSaveFormRequest,
1081
+ $ as getSaveFormRequestWithRow,
1081
1082
  me as getTaskInformitions,
1082
1083
  we as isVisibleWorkflowButton,
1083
1084
  ee as judgeDataNumber,
@@ -1,28 +1,30 @@
1
1
  import e from "agilebuilder-ui/src/utils/request";
2
2
  import { getAdditionalParamMap as t } from "./events/standard-event.js";
3
3
  import { PageDimensions as i } from "./interfaces/page-design-types.js";
4
- import { getFormPropName as s, getVariableValue as n, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
4
+ import { getFormPropName as n, getVariableValue as s, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
5
5
  import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
6
6
  import { functions as a } from "./api/page-expose-util.js";
7
7
  import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
8
8
  import { packageCustomValidator as d } from "./events/validator-util.js";
9
- import { isMobileBrowser as f } from "agilebuilder-ui/src/utils/common-util";
10
- function m(t2) {
11
- return new Promise((i2, s2) => {
9
+ import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
10
+ function f(t2) {
11
+ return new Promise((i2, n2) => {
12
12
  (function(t3) {
13
13
  return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
14
14
  })(t2).then((t3) => {
15
- t3 ? function(t4, i3) {
16
- let s3 = "";
17
- t4 && i3 && (s3 = "?listViewTableName=" + t4 + "&listViewTablePublishVersion=" + i3);
18
- return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + s3);
19
- }(t3.listViewTableName, t3.listViewTablePublishVersion).then((e2) => {
20
- e2 ? (t3.contextParam = e2.contextParam, t3.branchFieldAuth = e2.branchFieldAuth, t3.systemParam = e2.systemParam, t3.isWorkflowEntity = e2.isWorkflowEntity, t3.dataTypeMaps = e2.dataTypeMaps, i2(t3)) : i2(null);
15
+ t3 ? e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param").then((n3) => {
16
+ n3 && (t3.systemParam = g(n3)), function(t4, i3) {
17
+ let n4 = "";
18
+ t4 && i3 && (n4 = "?listViewTableName=" + t4 + "&listViewTablePublishVersion=" + i3);
19
+ return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + n4);
20
+ }(t3.listViewTableName, t3.listViewTablePublishVersion).then((e2) => {
21
+ e2 ? (t3.contextParam = g(e2.contextParam), t3.branchFieldAuth = e2.branchFieldAuth, t3.isWorkflowEntity = e2.isWorkflowEntity, t3.dataTypeMaps = e2.dataTypeMaps, i2(t3)) : i2(null);
22
+ });
21
23
  }) : i2(null);
22
24
  });
23
25
  });
24
26
  }
25
- function c(e2) {
27
+ function m(e2) {
26
28
  var _a, _b, _c;
27
29
  if (null == e2) return null;
28
30
  const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: b(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
@@ -35,7 +37,7 @@ function c(e2) {
35
37
  for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? i2[t3.name] = [] : t3.defaultValue ? i2[t3.name] = t3.defaultValue : i2[t3.name] = void 0);
36
38
  }
37
39
  return function(e3) {
38
- if (f()) {
40
+ if (c()) {
39
41
  e3.entity.page._isMobile = "true";
40
42
  const t3 = navigator ? navigator.userAgent : null;
41
43
  t3 ? t3.indexOf(" uni-app ") > 0 ? (e3.entity.page._isMobileApp = "true", e3.entity.page._isMobileBrowser = "false") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "true") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "false");
@@ -46,6 +48,23 @@ function c(e2) {
46
48
  return e3 > 768 ? i.PC : e3 > 414 ? i.IPAD : i.PHONE;
47
49
  }(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
48
50
  }
51
+ function g(e2) {
52
+ try {
53
+ const t2 = function(e3) {
54
+ if (!e3) return e3;
55
+ try {
56
+ const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), i2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
57
+ return window.CryptoJS.AES.decrypt(e3, t3, { iv: i2, mode: window.CryptoJS.mode.CBC, padding: window.CryptoJS.pad.ZeroPadding }).toString(CryptoJS.enc.Utf8);
58
+ } catch (t3) {
59
+ return e3;
60
+ }
61
+ }(e2);
62
+ if (!t2) return {};
63
+ return JSON.parse(t2);
64
+ } catch (t2) {
65
+ return e2;
66
+ }
67
+ }
49
68
  function b(e2) {
50
69
  try {
51
70
  return e2.props && e2.props.judgeHeavyList.length > 0 ? (e2.props.judgeHeavyList.forEach((e3) => {
@@ -54,7 +73,7 @@ function b(e2) {
54
73
  } catch (e3) {
55
74
  }
56
75
  }
57
- function g(e2) {
76
+ function w(e2) {
58
77
  let t2 = decodeURI(window.location.href);
59
78
  try {
60
79
  window.top && !Array.isArray(window.top) && (t2 = decodeURI(window.top.location.href));
@@ -65,28 +84,28 @@ function g(e2) {
65
84
  const i2 = t2.split("&");
66
85
  for (const t3 of i2) {
67
86
  const i3 = t3.split("=");
68
- let s2 = i3[0];
69
- if (s2) {
87
+ let n2 = i3[0];
88
+ if (n2) {
70
89
  const t4 = i3.length > 1 ? i3[1] : "";
71
- s2.indexOf("ai__") >= 0 && (s2 = s2.substring(s2.indexOf("ai__") + 4)), e2[s2] = t4;
90
+ n2.indexOf("ai__") >= 0 && (n2 = n2.substring(n2.indexOf("ai__") + 4)), e2[n2] = t4;
72
91
  }
73
92
  }
74
93
  }
75
94
  e2._t_;
76
95
  }
77
- function h(e2, t2) {
96
+ function y(e2, t2) {
78
97
  if (e2) {
79
98
  Object.assign(t2, e2);
80
- w(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
99
+ P(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
81
100
  }
82
101
  }
83
- function y(e2, t2) {
102
+ function h(e2, t2) {
84
103
  if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
85
104
  Object.assign(t2, e2.query);
86
- w(e2.query.paramStoreId, t2);
105
+ P(e2.query.paramStoreId, t2);
87
106
  }
88
107
  }
89
- function w(e2, t2) {
108
+ function P(e2, t2) {
90
109
  if (e2) {
91
110
  const i2 = l(e2);
92
111
  if (i2) {
@@ -96,29 +115,29 @@ function w(e2, t2) {
96
115
  }
97
116
  }
98
117
  function E(e2, t2) {
99
- let i2, s2 = t2;
100
- t2 || (i2 = e2.props.base ? e2.props.base : {}, s2 = i2.prop);
101
- let n2 = null;
102
- return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || s2 && s2.startsWith("${") ? s2.startsWith("${") ? (s2 = s2.substring(2, s2.length - 1), n2 = s2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
118
+ let i2, n2 = t2;
119
+ t2 || (i2 = e2.props.base ? e2.props.base : {}, n2 = i2.prop);
120
+ let s2 = null;
121
+ return t2 && !t2.startsWith("${") ? s2 = ["data", t2] : !e2 || n2 && n2.startsWith("${") ? n2.startsWith("${") ? (n2 = n2.substring(2, n2.length - 1), s2 = n2.split("."), e2 && s2.length < 2 && (s2 = [e2.uuid])) : e2 && (s2 = ["page", e2.uuid]) : s2 = ["page", e2.uuid], s2 || e2 ? s2 : ["temp"];
103
122
  }
104
- function P(e2, t2, i2) {
123
+ function v(e2, t2, i2) {
105
124
  var _a;
106
- const s2 = E(t2, i2), r2 = e2.entity;
125
+ const n2 = E(t2, i2), r2 = e2.entity;
107
126
  if (null == r2.data.ID && null == r2.data.id) {
108
127
  let i3, l2, a2 = false;
109
128
  t2 && (i3 = t2.props.base ? t2.props.base : {}, l2 = t2.name, a2 = i3.multiple);
110
- const p2 = n(r2, s2);
129
+ const p2 = s(r2, n2);
111
130
  if (null == p2) {
112
131
  const t3 = i3 ? i3.defaultValue : null;
113
132
  if (t3) try {
114
- const n2 = v(e2, t3, l2, a2);
115
- if (null != n2 && "" !== n2) o(r2, s2, n2);
133
+ const s2 = C(e2, t3, l2, a2);
134
+ if (null != s2 && "" !== s2) o(r2, n2, s2);
116
135
  else if (((_a = i3.moreDefaultValue) == null ? void 0 : _a.length) > 0) {
117
136
  const t4 = i3.moreDefaultValue;
118
137
  for (let i4 = 0; i4 < t4.length; i4++) {
119
- const n3 = v(e2, t4[i4], l2, a2);
120
- if (null != n3 && "" !== n3) {
121
- o(r2, s2, n3);
138
+ const s3 = C(e2, t4[i4], l2, a2);
139
+ if (null != s3 && "" !== s3) {
140
+ o(r2, n2, s3);
122
141
  break;
123
142
  }
124
143
  }
@@ -127,25 +146,25 @@ function P(e2, t2, i2) {
127
146
  }
128
147
  }
129
148
  }
130
- return s2;
149
+ return n2;
131
150
  }
132
- function v(e2, t2, i2, s2) {
133
- let n2;
134
- if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && i2)) {
151
+ function C(e2, t2, i2, n2) {
152
+ let s2;
153
+ if (t2 && (s2 = r(e2, t2), null != s2 && null != s2 && i2)) {
135
154
  let e3 = false;
136
- "checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = s2), e3 && (n2 = (n2 + "").split(","));
155
+ "checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = n2), e3 && (s2 = (s2 + "").split(","));
137
156
  }
138
- return n2;
157
+ return s2;
139
158
  }
140
159
  function M(e2, t2) {
141
160
  var _a, _b;
142
161
  if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
143
162
  const i2 = [];
144
- if (e2.autoPermissions) for (const s2 of e2.autoPermissions) i2.push(t2.code + "." + s2.simpleCode);
163
+ if (e2.autoPermissions) for (const n2 of e2.autoPermissions) i2.push(t2.code + "." + n2.simpleCode);
145
164
  if (e2.functionCodes) {
146
- const s2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
147
- for (let e3 = 0; e3 < n2.length; e3++) {
148
- const o2 = n2[e3], r2 = e3 < s2.length ? s2[e3] : "";
165
+ const n2 = e2.sourceTypes ? e2.sourceTypes : [], s2 = e2.functionCodes;
166
+ for (let e3 = 0; e3 < s2.length; e3++) {
167
+ const o2 = s2[e3], r2 = e3 < n2.length ? n2[e3] : "";
149
168
  let l2 = "";
150
169
  if ("service" == r2) l2 = o2;
151
170
  else if ("standard" === r2) l2 = t2.code + "." + o2;
@@ -164,27 +183,27 @@ function k(e2, t2) {
164
183
  }
165
184
  return null;
166
185
  }
167
- function I(i2, s2, n2) {
168
- const o2 = i2.tableRuntimes, r2 = t(s2);
186
+ function I(i2, n2, s2) {
187
+ const o2 = i2.tableRuntimes, r2 = t(n2);
169
188
  let l2;
170
- const a2 = s2.code;
171
- return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: n2, pageType: i2.pageType });
189
+ const a2 = n2.code;
190
+ return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: s2, pageType: i2.pageType });
172
191
  }
173
- const C = ["button-detail", "print-label"];
192
+ const A = ["button-detail", "print-label"];
174
193
  function j(e2, t2, i2) {
175
194
  var _a, _b;
176
- const n2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
195
+ const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
177
196
  let r2 = false;
178
- if (o2 && C.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
197
+ if (o2 && A.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
179
198
  const i3 = e2.fieldPermissionMap.get("all_fields");
180
199
  false === (i3 == null ? void 0 : i3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
181
200
  }
182
- if (n2) {
183
- const l2 = s(n2);
201
+ if (s2) {
202
+ const l2 = n(s2);
184
203
  if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[l2] || (e2.rules[l2] = []), t2.props.rules.forEach((e3) => {
185
204
  d(e3), !i2 && e3 && e3.required && (e3.required = false);
186
205
  }), e2.rules[l2] = t2.props.rules), o2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
187
- const s2 = e2.fieldPermissionMap.get(l2);
206
+ const n2 = e2.fieldPermissionMap.get(l2);
188
207
  if (!i2 && e2.workflowRules && (e2.workflowRules[l2] || e2.workflowRules.rules && e2.workflowRules.rules[l2])) {
189
208
  let t3 = e2.workflowRules[l2];
190
209
  if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[l2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
@@ -196,37 +215,37 @@ function j(e2, t2, i2) {
196
215
  }
197
216
  else t3 && t3.required && (t3.required = false);
198
217
  }
199
- t2.runtime.props || (t2.runtime.props = {}), s2 ? (!i2 && s2.canEdit && (s2.canEdit = false), false === s2.canEdit ? t2.runtime.props.state = "disabled" : s2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
218
+ t2.runtime.props || (t2.runtime.props = {}), n2 ? (!i2 && n2.canEdit && (n2.canEdit = false), false === n2.canEdit ? t2.runtime.props.state = "disabled" : n2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
200
219
  }
201
220
  ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: l2, events: t2.props.customRuleEvents }));
202
221
  }
203
222
  }
204
- function A(e2, t2) {
223
+ function O(e2, t2) {
205
224
  if (e2.initInfo) {
206
225
  ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((i2) => {
207
- const s2 = e2.initInfo[i2];
208
- if (s2) if ("dynamicControlFormEdit" === i2) {
209
- let i3 = s2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
226
+ const n2 = e2.initInfo[i2];
227
+ if (n2) if ("dynamicControlFormEdit" === i2) {
228
+ let i3 = n2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
210
229
  if (i3 && i3.length > 0 && (i3 = i3.filter((e3) => "_all_fields" === e3.name), i3 && i3.length > 0)) {
211
230
  const e3 = u(i3[0]);
212
231
  e3.name = t2, i3 = [e3];
213
232
  }
214
233
  a.dynamicControlFormEdit(e2, i3, false);
215
- } else "disableElement" === i2 ? s2.indexOf(t2) >= 0 && a.disableElement(e2, [t2], false) : "enableElement" === i2 ? s2.indexOf(t2) >= 0 && a.enableElement(e2, [t2], false) : "hideElement" === i2 ? s2.indexOf(t2) >= 0 && a.hideElement(e2, [t2], false) : "showElement" === i2 && s2.indexOf(t2) >= 0 && a.showElement(e2, [t2], false);
234
+ } else "disableElement" === i2 ? n2.indexOf(t2) >= 0 && a.disableElement(e2, [t2], false) : "enableElement" === i2 ? n2.indexOf(t2) >= 0 && a.enableElement(e2, [t2], false) : "hideElement" === i2 ? n2.indexOf(t2) >= 0 && a.hideElement(e2, [t2], false) : "showElement" === i2 && n2.indexOf(t2) >= 0 && a.showElement(e2, [t2], false);
216
235
  });
217
236
  }
218
237
  }
219
238
  export {
220
- A as controlObjectRenderState,
221
- c as convertToPageContext,
222
- v as getDefaultValue,
223
- P as getFormModelFields,
239
+ O as controlObjectRenderState,
240
+ m as convertToPageContext,
241
+ C as getDefaultValue,
242
+ v as getFormModelFields,
224
243
  E as getModelFields,
225
244
  M as getPermissionCodes,
226
- g as packageAdditionalMapWithLocationSearch,
227
- h as packageAdditionalMapWithPageRequest,
228
- y as packageAdditionalMapWithRoute,
245
+ w as packageAdditionalMapWithLocationSearch,
246
+ y as packageAdditionalMapWithPageRequest,
247
+ h as packageAdditionalMapWithRoute,
229
248
  j as packageFormRules,
230
- m as queryPageDesignByCode,
249
+ f as queryPageDesignByCode,
231
250
  I as queryPageSuperGrids
232
251
  };
@@ -1,32 +1,32 @@
1
- import { defineComponent as e, ref as t, onMounted as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as p, createVNode as s, createTextVNode as r, toDisplayString as n } from "vue";
2
- import { packageTemplateFiles as i } from "../../../utils/common-util.js";
1
+ import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as u, withCtx as i, createVNode as n, createTextVNode as p, toDisplayString as r } from "vue";
2
+ import { packageTemplateFiles as s } from "../../../utils/common-util.js";
3
3
  import { ElMessage as m } from "element-plus";
4
4
  const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["export", "close"], setup(e2, { emit: g2 }) {
5
5
  var _a, _b;
6
- const f = e2, b = t(false), v = g2, h = t([]), x = t([]), y = (_a = f.configure.props) == null ? void 0 : _a.base, w = (_b = f.pageContext) == null ? void 0 : _b.entity.data;
7
- function N(e3) {
8
- let t2, l2, a2 = e3;
9
- const o2 = a2.indexOf(c), u2 = a2.indexOf(d);
10
- return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? a2 = a2.substring(0, u2) + a2.substring(u2 + 1) : (t2 = a2.substring(o2 + 2, u2), l2 = a2.substring(o2, u2 + 1), x.value.push(t2), a2 = a2.replace(l2, "")), N(a2)) : x.value;
6
+ const f = e2, v = t(false), x = g2, b = t([]), h = t([]), C = (_a = f.configure.props) == null ? void 0 : _a.base, y = (_b = f.pageContext) == null ? void 0 : _b.entity.data;
7
+ function w(e3) {
8
+ let t2, a2, l2 = e3;
9
+ const o2 = l2.indexOf(c), u2 = l2.indexOf(d);
10
+ return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? l2 = l2.substring(0, u2) + l2.substring(u2 + 1) : (t2 = l2.substring(o2 + 2, u2), a2 = l2.substring(o2, u2 + 1), h.value.push(t2), l2 = l2.replace(a2, "")), w(l2)) : h.value;
11
11
  }
12
- function O(e3) {
13
- v("export", f.configure, e3);
12
+ function N(e3) {
13
+ x("export", f.configure, e3);
14
14
  }
15
- function _() {
16
- v("close");
15
+ function O() {
16
+ x("close");
17
17
  }
18
- return l(() => {
19
- y.templateFiles && y.templateFiles.length > 0 ? h.value = i(y.templateFiles, f.pageContext, f.configure) : y.templateUuid && y.templateName && h.value.push({ templateUuid: y.templateUuid, templateName: y.templateName }), h.value.forEach((e3) => {
18
+ return a(() => {
19
+ C.templateFiles && C.templateFiles.length > 0 ? b.value = s(C.templateFiles, f.pageContext, f.configure) : C.templateUuid && C.templateName && b.value.push({ templateUuid: C.templateUuid, templateName: C.templateName }), b.value.forEach((e3) => {
20
20
  var t2;
21
- e3 && e3.templateName && (e3.templateName = (N(t2 = e3.templateName).forEach((e4) => {
22
- const l2 = c + e4 + d;
23
- let a2;
24
- -1 !== t2.indexOf(l2) && Object.prototype.hasOwnProperty.call(w, e4) && (a2 = w[e4] ? w[e4] : "", t2 = t2.replace(l2, a2));
21
+ e3 && e3.templateName && (e3.templateName = (w(t2 = e3.templateName).forEach((e4) => {
22
+ const a2 = c + e4 + d;
23
+ let l2;
24
+ -1 !== t2.indexOf(a2) && Object.prototype.hasOwnProperty.call(y, e4) && (l2 = y[e4] ? y[e4] : "", t2 = t2.replace(a2, l2));
25
25
  }), t2));
26
- }), h.value && 0 !== h.value.length || (m({ message: "无符合条件可导出的模板!", type: "warning" }), v("close")), 1 === (h == null ? void 0 : h.value.length) ? (O(h.value[0]), v("close")) : b.value = true;
26
+ }), b.value && 0 !== b.value.length || (m({ message: "无符合条件可导出的模板!", type: "warning" }), x("close")), 1 === (b == null ? void 0 : b.value.length) ? (N(b.value[0]), x("close")) : v.value = true;
27
27
  }), (e3, t2) => {
28
- const l2 = a("el-table-column"), i2 = a("el-button"), m2 = a("el-table"), c2 = a("el-dialog");
29
- return u(), o(c2, { modelValue: b.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => b.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: _ }, { default: p(() => [s(m2, { data: h.value, style: { width: "100%" } }, { default: p(() => [s(l2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: p((e4) => [r(n(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), s(l2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: p((t3) => [s(i2, { type: "text", size: "small", onClick: (e4) => O(t3.row) }, { default: p(() => [r(n(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
28
+ const a2 = l("el-table-column"), s2 = l("el-button"), m2 = l("el-table"), c2 = l("el-dialog");
29
+ return u(), o(c2, { modelValue: v.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => v.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default: i(() => [n(m2, { data: b.value, style: { width: "100%" } }, { default: i(() => [n(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: i((e4) => [p(r(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), n(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: i((t3) => [n(s2, { type: "text", size: "small", onClick: (e4) => N(t3.row), loading: void 0 !== f.pageContext.canClick && void 0 !== f.pageContext.clickUuid && !f.pageContext.canClick && f.pageContext.clickUuid === f.configure.uuid }, { default: i(() => [p(r(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick", "loading"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
30
30
  };
31
31
  } });
32
32
  export {
@@ -1,17 +1,17 @@
1
- import { defineComponent as e, ref as t, resolveComponent as l, createElementBlock as o, openBlock as n, createVNode as a, withCtx as s, createElementVNode as u, createTextVNode as i, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as l, resolveComponent as t, createElementBlock as o, openBlock as a, createVNode as n, withCtx as s, createTextVNode as d, toDisplayString as u, createElementVNode as i } from "vue";
2
2
  import { ElMessage as r } from "element-plus";
3
3
  import { useI18n as p } from "vue-i18n";
4
4
  const m = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog", props: { taskInformitions: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: c2 }) {
5
- const { t: g } = p(), f = c2, h = t([]);
6
- function b() {
7
- 0 === h.value.length || h.value.length > 1 ? r({ showClose: true, type: "warning", message: g("superPageRuntimeMessage.pleaseSelectNode") }) : f("result", h.value[0]);
5
+ const { t: f } = p(), g = e2, b = c2, v = l(null), h = l();
6
+ function y() {
7
+ v.value ? b("result", v.value) : r({ showClose: true, type: "warning", message: f("superPageRuntimeMessage.pleaseSelectNode") });
8
8
  }
9
- function v(e3) {
10
- h.value = e3;
9
+ function _(e3) {
10
+ v.value = g.taskInformitions[e3];
11
11
  }
12
- return (t2, r2) => {
13
- const p2 = l("el-table-column"), c3 = l("el-table"), g2 = l("el-button"), h2 = l("el-dialog");
14
- return n(), o("div", null, [a(h2, { "model-value": "", title: t2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: r2[1] || (r2[1] = (e3) => f("open")), onOpend: r2[2] || (r2[2] = (e3) => f("opend")), onClose: r2[3] || (r2[3] = (e3) => f("close")), onClosed: r2[4] || (r2[4] = (e3) => f("closed")) }, { footer: s(() => [u("div", m, [a(g2, { type: "primary", onClick: b }, { default: s(() => [i(d(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), a(g2, { type: "default", onClick: r2[0] || (r2[0] = (e3) => f("close")) }, { default: s(() => [i(d(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [a(c3, { data: e2.taskInformitions, border: "", style: { width: "100%" }, onSelect: v }, { default: s(() => [a(p2, { type: "selection", width: "55" }), a(p2, { prop: "nodeName", label: t2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), a(p2, { prop: "nodeId", label: t2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
12
+ return (l2, r2) => {
13
+ const p2 = t("el-radio"), c3 = t("el-table-column"), f2 = t("el-table"), g2 = t("el-button"), v2 = t("el-dialog");
14
+ return a(), o("div", null, [n(v2, { "model-value": "", title: l2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: r2[2] || (r2[2] = (e3) => b("open")), onOpend: r2[3] || (r2[3] = (e3) => b("opend")), onClose: r2[4] || (r2[4] = (e3) => b("close")), onClosed: r2[5] || (r2[5] = (e3) => b("closed")) }, { footer: s(() => [i("div", m, [n(g2, { type: "primary", onClick: y }, { default: s(() => [d(u(l2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(g2, { type: "default", onClick: r2[1] || (r2[1] = (e3) => b("close")) }, { default: s(() => [d(u(l2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [n(f2, { data: e2.taskInformitions, border: "", style: { width: "100%" } }, { default: s(() => [n(c3, { fixed: "", width: "60" }, { default: s((e3) => [n(p2, { modelValue: h.value, "onUpdate:modelValue": r2[0] || (r2[0] = (e4) => h.value = e4), label: e3.$index, onChange: _ }, { default: s(() => [d(u(e3.$index + 1), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 1 }), n(c3, { prop: "nodeName", label: l2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), n(c3, { prop: "nodeId", label: l2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
15
15
  };
16
16
  } });
17
17
  export {
@@ -203,7 +203,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
203
203
  const t2 = Ne();
204
204
  if (t2) {
205
205
  let n2 = 0;
206
- return e3.searchHeight && (n2 = e3.searchHeight), t2 - 20 - n2;
206
+ return e3.searchHeight && (n2 = e3.searchHeight), t2 - 10 - n2;
207
207
  }
208
208
  }
209
209
  function Ne() {
@@ -1,4 +1,7 @@
1
1
  import t from "./richtext-runtime.vue2.js";
2
+ /* empty css */
3
+ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = e(t, [["__scopeId", "data-v-dfbd71ac"]]);
2
5
  export {
3
- t as default
6
+ r as default
4
7
  };