super-page-runtime 2.3.32 → 2.3.33-cdn1

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
2
- import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
2
+ import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as C, headerClick as S, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
3
3
  import { getBaseUrl as E, getListCode as T, getRealRestApiPath as O, isWorkflowPage as R, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isMobileBrowser as N, isPromise as P } from "agilebuilder-ui/src/utils/common-util";
@@ -19,11 +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;
22
+ var _a, _b, _c, _d, _e2;
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: Ce, 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 };
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);
27
28
  return function(e4) {
28
29
  var _a2;
29
30
  ((_a2 = K.props.highOrder) == null ? void 0 : _a2.mergeFields) && K.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = K.props.highOrder.mergeFields.join(","));
@@ -60,7 +61,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
60
61
  e3 && (e3 = O(e3, te, ne, J.isTest));
61
62
  return e3;
62
63
  }(), pe = T(J.code, J.version, K.uuid), de = J.code + "_" + pe, fe = t([]), ge = J.entity.page, me = t({ data: [] }), ve = J.superGridItems, he = ve ? ve[K.uuid] : null, be = t(false), we = Q;
63
- function Se() {
64
+ function Ce() {
64
65
  K.props.linkages && K.props.linkages.length > 0 && (K.props.linkages.forEach((e3) => {
65
66
  const t2 = _(e3.fieldName);
66
67
  t2 && t2.length > 1 && le.push(t2[1]);
@@ -84,7 +85,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
84
85
  }
85
86
  }());
86
87
  }
87
- function Ce({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
88
+ function Se({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
88
89
  ye(null, null, n2, t2, e3);
89
90
  }
90
91
  function ye(e3, t2, n2, o2, i2) {
@@ -247,10 +248,10 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
247
248
  w(J, K, { row: e3, column: t2, event: n2 });
248
249
  }
249
250
  function Le(e3, t2, n2) {
250
- S(J, K, { row: e3, column: t2, event: n2 });
251
+ C(J, K, { row: e3, column: t2, event: n2 });
251
252
  }
252
253
  function Ge(e3, t2) {
253
- C(J, K, { column: e3, event: t2 });
254
+ S(J, K, { column: e3, event: t2 });
254
255
  }
255
256
  function ze() {
256
257
  fe.value = [];
@@ -373,7 +374,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
373
374
  return (_a = se.value) == null ? void 0 : _a.getColumns();
374
375
  } }), (e3, t2) => {
375
376
  const n2 = a("super-grid");
376
- return r(), l("div", { ref_key: "tableDivRef", ref: ue, id: u(pe) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: se, url: u(ce), options: re.value, code: u(pe), settings: u(he), "search-form-info": me.value, "list-toolbar-form-data": u(ge), isDialog: u(J).isDialog, onSelect: He, onSelectAll: Ue, onSelectionChange: Me, onCellClick: $e, onCellDblclick: _e, onRowClick: Ae, onRowDblclick: Le, onHeaderClick: Ge, onRefresh: ze, onNewOpenGridDialog: u(F), onCanShowMobileSearch: We, onGridOnmounted: Se }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "isDialog", "onNewOpenGridDialog"])], 8, W);
377
+ return r(), l("div", { ref_key: "tableDivRef", ref: ue, id: u(pe) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: se, url: u(ce), options: re.value, code: u(pe), settings: u(he), "search-form-info": me.value, "list-toolbar-form-data": u(ge), isDialog: u(J).isDialog, onSelect: He, onSelectAll: Ue, onSelectionChange: Me, onCellClick: $e, onCellDblclick: _e, onRowClick: Ae, onRowDblclick: Le, onHeaderClick: Ge, onRefresh: ze, onNewOpenGridDialog: u(F), onCanShowMobileSearch: We, onGridOnmounted: Ce }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "isDialog", "onNewOpenGridDialog"])], 8, W);
377
378
  };
378
379
  } });
379
380
  export {
@@ -1,14 +1,14 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as v, withCtx as f, createVNode as y, createCommentVNode as g, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as v, withCtx as f, createVNode as y, createCommentVNode as g, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
2
  import { SuperIcon as T } from "agilebuilder-ui";
3
3
  import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
4
  import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
5
  import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
6
6
  import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as N } from "../../../../utils/form/scan-util.js";
7
- import q from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
9
- import J from "../../../../utils/eventBus.js";
10
- import { $t as M } from "../../../../utils/i18n-util.js";
11
- import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
7
+ import P from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
9
+ import D from "../../../../utils/eventBus.js";
10
+ import { $t as J } from "../../../../utils/i18n-util.js";
11
+ import { addRequiredClassUtil as M } from "../../../../utils/common-util.js";
12
12
  const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
13
13
  var _a, _b, _c;
14
14
  const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
@@ -17,47 +17,47 @@ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
17
17
  const e3 = w($, L.pageContext);
18
18
  e3 && (F.value = V(e3.dataType) ? "number" : "text");
19
19
  }
20
- const A = t(D()), E = L.pageContext.code, U = t($ && $.length > 0 ? E + "__" + $.join("__") : null), W = t(null), G = l({ get: () => b(B, $), set(e3) {
21
- h(B, $, e3), null != e3 && "" !== e3 && (W.value = "");
22
- } }), H = t(null), K = t(null), Q = t(null), X = L.configure.runtime ? L.configure.runtime : {}, Y = t(X.props ? X.props : {}), Z = t(!!((_a = Y.value.scan) == null ? void 0 : _a.enable));
20
+ const A = t(q()), E = L.pageContext.code, H = t($ && $.length > 0 ? E + "__" + $.join("__") : null), U = t(null), W = l({ get: () => b(B, $), set(e3) {
21
+ h(B, $, e3), null != e3 && "" !== e3 && (U.value = "");
22
+ } }), G = t(null), K = t(null), Q = t(null), X = L.configure.runtime ? L.configure.runtime : {}, Y = t(X.props ? X.props : {}), Z = t(!!((_a = Y.value.scan) == null ? void 0 : _a.enable));
23
23
  let ee = false;
24
24
  const te = window.localStorage.getItem("auth_source");
25
25
  te && "dingtalk" === te && (ee = true);
26
26
  let le = "";
27
27
  const ne = navigator.userAgent;
28
- le = ne.indexOf(" uni-app ") > 0 ? "app" : "browser";
28
+ le = ne.indexOf("Html5Plus") > 0 ? "app" : "browser";
29
29
  const oe = !(!A.value || !le || "app" !== le), ae = t(!!((oe || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
30
30
  let ue = {};
31
31
  ((_b = Y.value.scan) == null ? void 0 : _b.enable) && ((_c = Y.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Y.value.scan.ruleList).then((e3) => {
32
32
  ue = e3;
33
- }), u(() => G.value, (e3) => {
33
+ }), u(() => W.value, (e3) => {
34
34
  e3 = e3.trim();
35
35
  const t2 = O(e3, ue);
36
36
  t2 && N(L.pageContext, t2.scanSet, t2.params);
37
37
  }));
38
- const ie = X.style, re = X.class, pe = X.headerStyle, se = X.titleExceedStyle;
38
+ const ie = X.style, re = X.class, se = X.headerStyle, pe = X.titleExceedStyle;
39
39
  function ce(e3) {
40
40
  return h(B, $, e3);
41
41
  }
42
42
  n(() => {
43
- J.$on(U.value + "-scanDone", (e3) => {
44
- U.value, JSON.stringify(e3), ce(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
43
+ D.$on(H.value + "-scanDone", (e3) => {
44
+ H.value, JSON.stringify(e3), ce(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
45
45
  }), o(() => {
46
46
  var _a2;
47
- const e3 = G.value;
48
- S(e3, L.pageContext, L.configure, { formItemRef: H.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }), ae.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
47
+ const e3 = W.value;
48
+ S(e3, L.pageContext, L.configure, { formItemRef: G.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }), ae.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
49
49
  });
50
50
  }), a(() => {
51
- J.$off(U.value + "-scanDone");
51
+ D.$off(H.value + "-scanDone");
52
52
  });
53
53
  const ve = t(false);
54
54
  function fe() {
55
55
  if (oe || ee) {
56
- const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
56
+ const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
57
57
  ee && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
58
58
  } else if (A.value) if ("https:" === window.location.protocol) ve.value = true;
59
59
  else {
60
- const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
60
+ const e3 = { type: "scan", componentId: H.value, systemCode: L.pageContext.systemCode };
61
61
  window.parent.postMessage(JSON.stringify(e3), "*");
62
62
  }
63
63
  else ve.value = true;
@@ -68,13 +68,13 @@ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
68
68
  return z2({ getValue: function() {
69
69
  return b(B, $);
70
70
  }, setValue: ce, scanClick: fe, addRequiredClass: function() {
71
- W.value = P();
71
+ U.value = M();
72
72
  } }), (t2, l2) => {
73
73
  const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
74
- return p(), r(a2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: c(v(re) + (W.value ? " " + W.value : "")), "label-width": Y.value.labelWidth, style: s(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: s({ ...v(pe), ...v(se) }) }, [Y.value.prefixType ? (p(), r(q, { key: 0, pageContext: e2.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(M)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: G.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => G.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
74
+ return s(), r(a2, { ref_key: "formItemRef", ref: G, required: !!Y.value.required, class: c(v(re) + (U.value ? " " + U.value : "")), "label-width": Y.value.labelWidth, style: p(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (s(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: p({ ...v(se), ...v(pe) }) }, [Y.value.prefixType ? (s(), r(P, { key: 0, pageContext: e2.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (s(), C(I, { key: 1 }, [d(x(v(J)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: W.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => W.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
75
75
  let t3 = b(B, $);
76
76
  null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e4, L.pageContext, L.configure, "blur");
77
- }(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(j)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.preText)), 1)]), key: "0" } : void 0, "outer" == Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prepend", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(j)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.preText)), 1)]), key: "1" } : void 0, "outer" != Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "suffix", fn: f(() => [Y.value.sufIconType && Y.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(j)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [ae.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => fe()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(j)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (p(), r(o2, { key: 0, onClose: ye })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
77
+ }(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(_)(t3, e2.pageContext, e2.configure, "clear")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.preText)), 1)]), key: "0" } : void 0, "outer" == Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prepend", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.preText)), 1)]), key: "1" } : void 0, "outer" != Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "suffix", fn: f(() => [Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [ae.value ? (s(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => fe()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (s(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(j)(W.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(J)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (s(), r(o2, { key: 0, onClose: ye })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
78
78
  };
79
79
  } });
80
80
  export {
@@ -1,4 +1,7 @@
1
1
  import e from "./select-runtime.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = t(e, [["__scopeId", "data-v-68808d47"]]);
2
5
  export {
3
- e as default
6
+ r as default
4
7
  };
@@ -1,140 +1,154 @@
1
- import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as n, nextTick as i, resolveComponent as u, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, withCtx as v, createVNode as g, createElementVNode as m, withKeys as d, withModifiers as h, createElementBlock as y, Fragment as x, renderList as b, createCommentVNode as C, toDisplayString as w, createTextVNode as _ } from "vue";
2
- import { setVariableValue as k, getOptionDatasFromPage as S, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as A } from "../../../../utils/page-helper-util.js";
1
+ import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as r, createBlock as u, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, withCtx as v, createVNode as g, createElementVNode as m, withKeys as d, withModifiers as y, createCommentVNode as h, createElementBlock as b, Fragment as x, renderList as C, toDisplayString as _, createTextVNode as w } from "vue";
2
+ import { setVariableValue as S, getOptionDatasFromPage as k, queryOptionDatasources as A, autoSetAfterSelect as T, getVariableValue as j } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
4
- import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
5
- import P from "../common/title-suffix-element.vue.js";
4
+ import { handleFormEvent as P, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
5
+ import M from "../common/title-suffix-element.vue.js";
6
6
  import { $t as D } from "../../../../utils/i18n-util.js";
7
7
  import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
8
8
  import { CopyDocument as q } from "@element-plus/icons-vue";
9
9
  import z from "clipboard";
10
10
  import { ElMessage as E } from "element-plus";
11
11
  import { useI18n as O } from "vue-i18n";
12
- const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }, F = { key: 0, style: { display: "flex", "flex-direction": "column" } }, K = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, L = { style: { float: "left" } }, U = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, $ = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
13
- const { t: G } = O(), H = e2, J = l(null), N = H.pageContext.entity ? H.pageContext.entity : {};
14
- let Q = R(H.pageContext, H.configure);
15
- const X = H.configure.runtime ? H.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.headerStyle, le = X.titleExceedStyle, te = l(X.props ? X.props : {});
16
- let oe = l(te.value.optionDescriptionPosition && "default" !== te.value.optionDescriptionPosition), ae = [];
17
- const ne = "copyBtn_" + H.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
18
- function ie() {
19
- let e3 = A(N, Q);
20
- return null != e3 && (e3 = String(e3)), te.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
12
+ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%", display: "flex", "align-items": "center" } }, F = { key: 0, style: { display: "flex", "flex-direction": "column" } }, G = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, K = { style: { float: "left" } }, L = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, U = "__amb_select_all__", $ = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
13
+ const { t: H } = O(), J = e2, N = l(null), Q = l(false), X = J.pageContext.entity ? J.pageContext.entity : {};
14
+ let Y = R(J.pageContext, J.configure);
15
+ const Z = J.configure.runtime ? J.configure.runtime : {}, ee = Z.style, le = Z.class, te = Z.headerStyle, oe = Z.titleExceedStyle, ae = l(Z.props ? Z.props : {});
16
+ let ie = l(ae.value.optionDescriptionPosition && "default" !== ae.value.optionDescriptionPosition), ne = [];
17
+ const re = "copyBtn_" + J.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
18
+ function ue() {
19
+ let e3 = j(X, Y);
20
+ return null != e3 && (e3 = String(e3)), ae.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
21
21
  }
22
- const ue = t({ get: () => ie(), set(e3) {
23
- const l2 = ie();
24
- ae = Array.isArray(l2) ? [...l2] : l2;
22
+ const se = t({ get: () => ue(), set(e3) {
23
+ const l2 = ue();
24
+ ne = Array.isArray(l2) ? [...l2] : l2;
25
25
  let t2 = e3;
26
- if (te.value.multiple) {
27
- t2 = !!te.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
26
+ if (ae.value.multiple && false !== ae.value.showSelectAll && Array.isArray(e3) && e3.includes(U)) {
27
+ const e4 = (pe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
28
+ t2 = e4.length > 0 && e4.every((e5) => o2.includes(e5)) ? [] : e4;
28
29
  }
29
- void 0 === t2 && (t2 = null), k(N, Q, t2), null != t2 && (J.value = "");
30
- } }), re = l(te.value.options ? te.value.options : []), se = S(H.pageContext, H.configure);
31
- se.length > 0 && (re.value = se);
32
- const pe = l(false), ce = H.configure.props && H.configure.props.dataOrigin ? H.configure.props.dataOrigin : {}, fe = ce.optionValueSetType;
33
- let ve = [];
34
- const ge = te.value.optionconfigInfo ? te.value.optionconfigInfo : {};
35
- if ("dynamicData" == fe || "dataTable" == fe || "service" == fe) {
36
- if ("remote" == ce.filterType) {
30
+ if (ae.value.multiple) {
31
+ t2 = !!ae.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
32
+ }
33
+ void 0 === t2 && (t2 = null), S(X, Y, t2), null != t2 && (N.value = "");
34
+ } }), pe = l(ae.value.options ? ae.value.options : []), ce = k(J.pageContext, J.configure);
35
+ ce.length > 0 && (pe.value = ce);
36
+ const fe = l(false), ve = J.configure.props && J.configure.props.dataOrigin ? J.configure.props.dataOrigin : {}, ge = ve.optionValueSetType;
37
+ let me = [];
38
+ const de = ae.value.optionconfigInfo ? ae.value.optionconfigInfo : {};
39
+ if ("dynamicData" == ge || "dataTable" == ge || "service" == ge) {
40
+ if ("remote" == ve.filterType) {
37
41
  let e3;
38
- te.value.filterable = true, te.value.remote = true, te.value.remoteShowSuffix = true, te.value.remoteMethod = function(l2) {
39
- e3 !== l2 && (e3 = l2, pe.value = true, T(H.pageContext, ge, l2).then((e4) => {
40
- pe.value = false;
42
+ ae.value.filterable = true, ae.value.remote = true, ae.value.remoteShowSuffix = true, ae.value.remoteMethod = function(l2) {
43
+ e3 !== l2 && (e3 = l2, fe.value = true, A(J.pageContext, de, l2).then((e4) => {
44
+ fe.value = false;
41
45
  }).then((e4) => {
42
- pe.value = false;
46
+ fe.value = false;
43
47
  }));
44
48
  };
45
49
  }
46
- if (ce.autoSets) for (let e3 of ce.autoSets) e3.source && ve.push(e3);
50
+ if (ve.autoSets) for (let e3 of ve.autoSets) e3.source && me.push(e3);
47
51
  }
48
- H.configure && H.configure.props && H.configure.props.base && H.configure.props.base.optionProp && ve.push({ source: "label", target: H.configure.props.base.optionProp }), te.value.changeMethod = function(e3) {
52
+ J.configure && J.configure.props && J.configure.props.base && J.configure.props.base.optionProp && me.push({ source: "label", target: J.configure.props.base.optionProp }), ae.value.changeMethod = function(e3) {
53
+ var _a;
49
54
  let l2, t2 = null;
50
- re.value && null != e3 && null != e3 && (t2 = re.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
51
- ve.length > 0 && j(H.configure, H.pageContext, ve, t2, [te.value.prop]);
55
+ pe.value && null != e3 && null != e3 && (((_a = ae.value) == null ? void 0 : _a.multiple) && false !== ae.value.showSelectAll && Array.isArray(e3) && e3.includes(U) && (e3 = e3.filter((e4) => e4 !== U)), t2 = pe.value.filter((l3) => Array.isArray(e3) ? e3.includes(l3.value) : e3 === l3.value));
56
+ me.length > 0 && T(J.configure, J.pageContext, me, t2, [ae.value.prop]);
52
57
  t2 && t2.length > 0 && (l2 = t2[0]);
53
58
  let o2 = {};
54
59
  l2 && (o2.extendParams = l2);
55
- o2.options = re.value, o2.oldValue = ae, V(e3, H.pageContext, H.configure, "change", o2);
60
+ o2.options = pe.value, o2.oldValue = ne, P(e3, J.pageContext, J.configure, "change", o2);
56
61
  };
57
- const me = te.value.monitorFields, de = [];
58
- if (me) {
62
+ const ye = ae.value.monitorFields, he = [];
63
+ if (ye) {
59
64
  const e3 = [];
60
- for (let l2 of me) if (l2.startsWith("${")) {
65
+ for (let l2 of ye) if (l2.startsWith("${")) {
61
66
  l2 = l2.substring(2, l2.length - 1);
62
67
  const t2 = l2.split(".");
63
- "page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (de.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
68
+ "page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (he.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
64
69
  }
65
- for (let l2 of e3) o(N[l2], () => {
66
- xe();
70
+ for (let l2 of e3) o(X[l2], () => {
71
+ Ce();
67
72
  });
68
73
  }
69
- let he = "", ye = false;
70
- function xe() {
71
- ye && clearTimeout(ye), ye = setTimeout(function() {
74
+ let be = "", xe = false;
75
+ function Ce() {
76
+ xe && clearTimeout(xe), xe = setTimeout(function() {
72
77
  const e3 = function() {
73
78
  let e4 = [];
74
- for (let l2 of de) e4.push(A(N, l2));
79
+ for (let l2 of he) e4.push(j(X, l2));
75
80
  return e4.join(",");
76
81
  }();
77
- e3 != he && (he = e3, ge.watchAttrValue = e3, T(H.pageContext, ge, void 0).then((e4) => {
78
- pe.value = false;
82
+ e3 != be && (be = e3, de.watchAttrValue = e3, A(J.pageContext, de, void 0).then((e4) => {
83
+ fe.value = false;
79
84
  }));
80
85
  }, 200);
81
86
  }
82
87
  a(() => {
83
- ye && clearTimeout(ye);
88
+ xe && clearTimeout(xe);
84
89
  });
85
- let be = false;
86
- const Ce = l(null), we = l(null), _e = l(null);
87
- function ke() {
88
- const e3 = ie();
90
+ let _e = false;
91
+ const we = l(null), Se = l(null), ke = l(null);
92
+ function Ae() {
93
+ const e3 = ue();
89
94
  if (null != e3 && "" !== e3 && e3.length > 0) {
90
95
  let l2 = "";
91
- return "string" == typeof e3 ? re.value.length > 0 ? re.value.forEach((t2) => {
96
+ return "string" == typeof e3 ? pe.value.length > 0 ? pe.value.forEach((t2) => {
92
97
  t2.value === e3 && (l2 = t2.label);
93
- }) : l2 = e3 : re.value.length > 0 ? (re.value.forEach((t2) => {
98
+ }) : l2 = e3 : pe.value.length > 0 ? (pe.value.forEach((t2) => {
94
99
  e3.forEach((e4) => {
95
100
  t2.value === e4 && (l2 = l2 + t2.label + ",");
96
101
  });
97
102
  }), l2 = l2.slice(0, l2.length - 1)) : l2 = e3.join(","), l2;
98
103
  }
99
104
  }
100
- return n(() => {
101
- const e3 = new z("#" + ne, { text: function() {
102
- return ke();
105
+ function Te(e3) {
106
+ Q.value = e3;
107
+ }
108
+ function je() {
109
+ const e3 = Ae();
110
+ e3 && navigator.clipboard && navigator.clipboard.writeText(e3).then(() => {
111
+ E({ showClose: true, type: "success", message: H("superPageRuntimeMessage.copySuccess") });
112
+ });
113
+ }
114
+ return i(() => {
115
+ const e3 = new z("#" + re, { text: function() {
116
+ return Ae();
103
117
  } });
104
118
  e3.on("success", () => {
105
- E({ showClose: true, type: "success", message: G("superPageRuntimeMessage.copySuccess") });
119
+ E({ showClose: true, type: "success", message: H("superPageRuntimeMessage.copySuccess") });
106
120
  }), e3.on("error", (e4) => {
107
121
  console.error("复制失败", e4);
108
- }), i(() => {
109
- const e4 = ue.value;
110
- M(e4, H.pageContext, H.configure, { formItemRef: Ce.value, componentRef: we.value, titleRef: _e.value, value: e4, entity: H.pageContext.entity.data, pageData: H.pageContext.entity.page });
122
+ }), n(() => {
123
+ const e4 = se.value;
124
+ V(e4, J.pageContext, J.configure, { formItemRef: we.value, componentRef: Se.value, titleRef: ke.value, value: e4, entity: J.pageContext.entity.data, pageData: J.pageContext.entity.page });
111
125
  });
112
126
  }), $2({ updateOptions: function(e3) {
113
- if (re.value = e3 || [], !be) {
114
- const e4 = ie();
115
- if (null != e4 && "" !== e4 && re.value.length > 0) {
127
+ if (pe.value = e3 || [], !_e) {
128
+ const e4 = ue();
129
+ if (null != e4 && "" !== e4 && pe.value.length > 0) {
116
130
  let l2 = false;
117
- for (let t2 of re.value) if (t2.value == e4) {
131
+ for (let t2 of pe.value) if (t2.value == e4) {
118
132
  l2 = true;
119
133
  break;
120
134
  }
121
135
  if (!l2) {
122
- for (let l3 of re.value) if (l3.label == e4) {
123
- ue.value = l3.value;
136
+ for (let l3 of pe.value) if (l3.label == e4) {
137
+ se.value = l3.value;
124
138
  break;
125
139
  }
126
140
  }
127
141
  }
128
142
  }
129
- be = true;
143
+ _e = true;
130
144
  }, addRequiredClass: function() {
131
- J.value = I();
132
- }, getSelectItemsTitle: ke, getOptions: function() {
133
- return re.value;
145
+ N.value = I();
146
+ }, getSelectItemsTitle: Ae, getOptions: function() {
147
+ return pe.value;
134
148
  } }), (l2, t2) => {
135
- const o2 = u("el-icon"), a2 = u("el-option"), n2 = u("el-select"), i2 = u("el-popover"), k2 = u("el-form-item");
136
- return s(), r(k2, { ref_key: "formItemRef", ref: Ce, required: !!te.value.required, class: c(f(Z) + (J.value ? " " + J.value : "")), "label-width": te.value.labelWidth, style: p(f(Y)) }, { label: v(() => [te.value.tittleShow ? (s(), y("div", { key: 0, ref_key: "titleRef", ref: _e, style: p({ ...f(ee), ...f(le) }) }, [te.value.prefixType ? (s(), r(P, { key: 0, pageContext: e2.pageContext, property: te.value }, null, 8, ["pageContext", "property"])) : (s(), y(x, { key: 1 }, [_(w(f(D)(te.value.title)), 1)], 64))], 4)) : C("", true)]), default: v(() => [g(i2, { placement: "top", trigger: "hover" }, { reference: v(() => [m("div", B, [g(n2, { ref_key: "componentRef", ref: we, style: { width: "100%" }, disabled: "disabled" === te.value.state, size: te.value.size, clearable: te.value.clearable, multiple: te.value.multiple, "collapse-tags": te.value.collapseTags, "collapse-tags-tooltip": te.value.collapseTagsTooltip, filterable: te.value.filterable, "allow-create": te.value.allowCreate, placeholder: te.value.placeholder, "remote-show-suffix": te.value.remoteShowSuffix, remote: te.value.remote, "remote-method": te.value.remoteMethod, loading: pe.value, onKeydown: t2[0] || (t2[0] = d(h(() => {
137
- }, ["stop"]), ["space"])), onChange: te.value.changeMethod, onClear: te.value.changeMethod, modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => ue.value = e3) }, { default: v(() => [(s(true), y(x, null, b(re.value, (l3) => (s(), r(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(oe) }), onClick: (t3) => f(V)(l3.value, e2.pageContext, e2.configure, "click", { values: ue.value }) }, { default: v(() => [l3._description_ ? (s(), y(x, { key: 0 }, [f(oe) ? (s(), y("div", F, [m("span", null, w(l3.label), 1), m("span", K, w(l3._description_), 1)])) : (s(), y(x, { key: 1 }, [m("span", L, w(l3.label), 1), m("span", U, w(l3._description_), 1)], 64))], 64)) : C("", true)]), _: 2 }, 1032, ["label", "value", "class", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: v(() => [m("span", W, [g(o2, { id: ne }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
149
+ const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), S2 = r("el-form-item");
150
+ return s(), u(S2, { ref_key: "formItemRef", ref: we, required: !!ae.value.required, class: c(f(le) + (N.value ? " " + N.value : "")), "label-width": ae.value.labelWidth, style: p(f(ee)) }, { label: v(() => [ae.value.tittleShow ? (s(), b("div", { key: 0, ref_key: "titleRef", ref: ke, style: p({ ...f(te), ...f(oe) }) }, [ae.value.prefixType ? (s(), u(M, { key: 0, pageContext: e2.pageContext, property: ae.value }, null, 8, ["pageContext", "property"])) : (s(), b(x, { key: 1 }, [w(_(f(D)(ae.value.title)), 1)], 64))], 4)) : h("", true)]), default: v(() => [g(n2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: v(() => [m("div", B, [g(i2, { ref_key: "componentRef", ref: Se, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ae.value.state, size: ae.value.size, clearable: ae.value.clearable, multiple: ae.value.multiple, "collapse-tags": ae.value.collapseTags, "collapse-tags-tooltip": ae.value.collapseTagsTooltip, filterable: ae.value.filterable, "allow-create": ae.value.allowCreate, placeholder: ae.value.placeholder, "remote-show-suffix": ae.value.remoteShowSuffix, remote: ae.value.remote, "remote-method": ae.value.remoteMethod, loading: fe.value, onKeydown: t2[0] || (t2[0] = d(y(() => {
151
+ }, ["stop"]), ["space"])), onChange: ae.value.changeMethod, onClear: ae.value.changeMethod, onVisibleChange: Te, modelValue: se.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => se.value = e3) }, { prefix: v(() => [m("span", { class: "mobile-copy-trigger", onClick: y(je, ["stop"]) }, [g(o2, { style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), default: v(() => [ae.value.multiple && false !== ae.value.showSelectAll ? (s(), u(a2, { key: 0, label: f(H)("superGrid.selectAll"), value: U, disabled: !(pe.value && pe.value.length > 0) }, null, 8, ["label", "disabled"])) : h("", true), (s(true), b(x, null, C(pe.value, (l3) => (s(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(ie) }), onClick: (t3) => f(P)(l3.value, e2.pageContext, e2.configure, "click", { values: se.value }) }, { default: v(() => [l3._description_ ? (s(), b(x, { key: 0 }, [f(ie) ? (s(), b("div", F, [m("span", null, _(l3.label), 1), m("span", G, _(l3._description_), 1)])) : (s(), b(x, { key: 1 }, [m("span", K, _(l3.label), 1), m("span", L, _(l3._description_), 1)], 64))], 64)) : h("", true)]), _: 2 }, 1032, ["label", "value", "class", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: v(() => [m("span", W, [g(o2, { id: re, style: { cursor: "copy" } }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
138
152
  };
139
153
  } });
140
154
  export {
@@ -1,7 +1,7 @@
1
1
  import r from "./extract-workflow-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = t(r, [["__scopeId", "data-v-886732d1"]]);
4
+ const e = t(r, [["__scopeId", "data-v-86931fd4"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,40 +1,45 @@
1
- import { defineComponent as e, ref as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as t, openBlock as i, createVNode as u, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as c, createTextVNode as d, toDisplayString as m, createBlock as v, createCommentVNode as f, createElementVNode as g } from "vue";
2
- import { handleAfterInitEvent as y, handleEvent as C } from "../../../../utils/events/event-util.js";
3
- import { $t as _ } from "../../../../utils/i18n-util.js";
4
- import { DepartmentUserTree as k } from "agilebuilder-ui";
5
- import { Search as x, Delete as b } from "@element-plus/icons-vue";
6
- const N = { class: "page-runtime-header-btn" }, h = { class: "dialog-footer" }, w = e({ __name: "extract-workflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
7
- const V = e2, U = l(), q = l(false), z = l(false), R = l({}), j = l({ loginName: [], opinion: [] }), D = V.configure.runtime ? V.configure.runtime : {}, E = l(D.props ? D.props : {}), F = D.style, M = D.class;
8
- function O() {
9
- return void 0 !== V.pageContext.canClick && void 0 !== V.pageContext.clickUuid && (!V.pageContext.canClick && V.pageContext.clickUuid === V.configure.uuid);
10
- }
11
- D.props && (true === D.props.requireExtractTransactor && (j.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === D.props.isMustOpinion && (j.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }]));
12
- const T = l(null);
1
+ import { defineComponent as e, ref as l, onMounted as o, nextTick as a, resolveComponent as n, createElementBlock as t, openBlock as i, createVNode as u, normalizeStyle as r, normalizeClass as p, unref as c, withCtx as s, createTextVNode as d, toDisplayString as m, createBlock as f, createCommentVNode as g, createElementVNode as v } from "vue";
2
+ import { handleAfterInitEvent as x, handleEvent as C, getDefaultEventParams as y, canExecuteButton as _ } from "../../../../utils/events/event-util.js";
3
+ import { $t as k } from "../../../../utils/i18n-util.js";
4
+ import { DepartmentUserTree as b } from "agilebuilder-ui";
5
+ import { Search as h, Delete as N } from "@element-plus/icons-vue";
6
+ const w = { class: "page-runtime-header-btn" }, V = { class: "dialog-footer" }, U = e({ __name: "extract-workflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: U2 }) {
7
+ const q = e2, z = l(), R = l(false), j = l(false), E = l({}), D = l({ loginName: [], opinion: [] }), F = q.configure.runtime ? q.configure.runtime : {}, M = l(F.props ? F.props : {}), O = F.style, T = F.class;
13
8
  function $() {
14
- q.value = true;
15
- }
16
- function A(e3) {
17
- q.value = false, R.value.loginName = e3 ? e3.loginName : "", R.value.name = e3 ? e3.name : "";
9
+ return void 0 !== q.pageContext.canClick && void 0 !== q.pageContext.clickUuid && (!q.pageContext.canClick && q.pageContext.clickUuid === q.configure.uuid);
18
10
  }
11
+ F.props && (true === F.props.requireExtractTransactor && (D.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === F.props.isMustOpinion && (D.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }]));
12
+ const A = l(null);
19
13
  function B() {
20
- U.value.validate((e3, l2) => {
14
+ R.value = true;
15
+ }
16
+ function G(e3) {
17
+ R.value = false, E.value.loginName = e3 ? e3.loginName : "", E.value.name = e3 ? e3.name : "";
18
+ }
19
+ function H() {
20
+ z.value.validate((e3, l2) => {
21
21
  if (e3) {
22
- const e4 = { loginName: R.value.loginName, opinion: R.value.opinion };
23
- C(e4, V.pageContext, V.configure, "click");
22
+ const e4 = { loginName: E.value.loginName, opinion: E.value.opinion };
23
+ C(e4, q.pageContext, q.configure, "click");
24
24
  }
25
25
  });
26
26
  }
27
- return a(() => {
28
- o(() => {
29
- y(null, V.pageContext, V.configure, { componentRef: T.value, entity: V.pageContext.entity.data, pageData: V.pageContext.entity.page });
27
+ return o(() => {
28
+ a(() => {
29
+ x(null, q.pageContext, q.configure, { componentRef: A.value, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
30
30
  });
31
- }), w2({ click: function() {
32
- T.value && T.value.$el.click();
31
+ }), U2({ click: function() {
32
+ A.value && A.value.$el.click();
33
33
  } }), (e3, l2) => {
34
- const a2 = n("el-button"), o2 = n("el-icon"), y2 = n("el-input"), C2 = n("el-form-item"), w3 = n("el-form"), V2 = n("el-dialog");
35
- return i(), t("span", N, [u(a2, { ref_key: "componentRef", ref: T, disabled: O(), class: p(s(M)), style: r(s(F)), type: E.value.type, size: E.value.size, round: E.value.round, plain: E.value.plain, loading: O(), onClick: l2[0] || (l2[0] = (e4) => z.value = true) }, { default: c(() => [d(m(s(_)(E.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(V2, { modelValue: z.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => z.value = e4), title: "选择办理人", width: "500" }, { footer: c(() => [g("div", h, [u(a2, { onClick: l2[5] || (l2[5] = (e4) => z.value = false) }, { default: c(() => [...l2[7] || (l2[7] = [d("取消", -1)])]), _: 1 }), u(a2, { type: "primary", onClick: B }, { default: c(() => [...l2[8] || (l2[8] = [d(" 确定 ", -1)])]), _: 1 })])]), default: c(() => [u(w3, { ref_key: "ruleFormRef", ref: U, style: { "max-width": "600px" }, model: R.value, rules: j.value, "label-width": "auto" }, { default: c(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: c(() => [u(y2, { "model-value": R.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => $()) }, { append: c(() => [u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => $()) }, { default: c(() => [u(s(x))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (R.value.loginName = "", void (R.value.name = ""))) }, { default: c(() => [u(s(b))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: c(() => [u(y2, { modelValue: R.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => R.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), q.value ? (i(), v(s(k), { key: 0, width: "60%", multiple: false, onClose: A })) : f("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
34
+ const o2 = n("el-button"), a2 = n("el-icon"), x2 = n("el-input"), C2 = n("el-form-item"), U3 = n("el-form"), F2 = n("el-dialog");
35
+ return i(), t("span", w, [u(o2, { ref_key: "componentRef", ref: A, disabled: $(), class: p(c(T)), style: r(c(O)), type: M.value.type, size: M.value.size, round: M.value.round, plain: M.value.plain, loading: $(), onClick: l2[0] || (l2[0] = (e4) => function(e5) {
36
+ const l3 = y(e5, q.pageContext, q.configure, {});
37
+ _(l3).then((e6) => {
38
+ e6.canExecute && (j.value = true);
39
+ });
40
+ }()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => [...l2[7] || (l2[7] = [d("取消", -1)])]), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => [...l2[8] || (l2[8] = [d(" 确定 ", -1)])]), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
36
41
  };
37
42
  } });
38
43
  export {
39
- w as default
44
+ U as default
40
45
  };
@@ -1,24 +1,24 @@
1
1
  import { defineComponent as e, ref as a, resolveComponent as l, createBlock as u, openBlock as t, withCtx as n, createElementBlock as o, createCommentVNode as r } from "vue";
2
2
  import i from "./super-page.vue.js";
3
- const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, g = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: g2 }) {
4
- const p = e2, v = g2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), x = a(null), V = a(true), S = a(false);
3
+ const d = ["src"], s = ["src"], g = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: g2 }) {
4
+ const v = e2, p = g2, m = a(true), c = v.jumpPageSetting ? v.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), b = a(null), C = a(null), j = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), x = a(null), V = a(true), M = a(false), S = a(true), T = a(false);
5
5
  if (c) {
6
- V.value = (c == null ? void 0 : c.alignCenter) ?? true, S.value = (c == null ? void 0 : c.fullscreen) ?? false, _.value = !(!c || void 0 === c._isIframe) && c._isIframe, x.value = c && c._path ? c._path : null, j.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null;
6
+ V.value = (c == null ? void 0 : c.alignCenter) ?? true, M.value = (c == null ? void 0 : c.fullscreen) ?? false, _.value = !(!c || void 0 === c._isIframe) && c._isIframe, x.value = c && c._path ? c._path : null, C.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === C.value ? "calc(100% - 30px)" : "100%", S.value = c == null ? void 0 : c.showDialogModal, false === S.value ? T.value = c == null ? void 0 : c.dialogModalPenetrable : null !== S.value && void 0 !== S.value || true === (c == null ? void 0 : c.dialogModalPenetrable) && (T.value = true, S.value = false), I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, b.value = c && c.taskId ? c.taskId : null;
7
7
  const e3 = !!c.isNeedId;
8
- if (p.parentPageEventParams) {
8
+ if (v.parentPageEventParams) {
9
9
  try {
10
- const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
11
- e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
10
+ const e4 = JSON.parse(JSON.stringify(v.parentPageEventParams));
11
+ e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(j.value, e4);
12
12
  } catch (e4) {
13
13
  console.error(e4);
14
14
  }
15
- null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
15
+ null !== w.value && void 0 !== w.value || (w.value = v.parentPageEventParams.id);
16
16
  }
17
- b.value.parentPageCode = c && c.parentPageCode ? c.parentPageCode : null, b.value.parentPageVersion = c && c.parentPageVersion ? c.parentPageVersion : null, b.value.jumpMode = c ? c.jumpMode : null, b.value.id = w.value, b.value.isNeedId = e3, b.value.taskId = C.value, p.customParams && Object.assign(b.value, p.customParams);
17
+ j.value.parentPageCode = c && c.parentPageCode ? c.parentPageCode : null, j.value.parentPageVersion = c && c.parentPageVersion ? c.parentPageVersion : null, j.value.jumpMode = c ? c.jumpMode : null, j.value.id = w.value, j.value.isNeedId = e3, j.value.taskId = b.value, v.customParams && Object.assign(j.value, v.customParams);
18
18
  }
19
19
  return (e3, a2) => {
20
- const g3 = l("el-drawer"), p2 = l("el-dialog");
21
- return j.value && "drawer" === j.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(p2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, fullscreen: S.value, alignCenter: V.value, draggable: y.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, style: { "min-height": "100px" }, pageCode: h.value, pageRequest: b.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), o("iframe", d)) : r("", true)]), _: 1 }, 8, ["title", "width", "fullscreen", "alignCenter", "draggable", "overflow"]));
20
+ const g3 = l("el-drawer"), v2 = l("el-dialog");
21
+ return C.value && "drawer" === C.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => p("open")), onOpened: a2[2] || (a2[2] = (e4) => p("opened")), onClose: a2[3] || (a2[3] = (e4) => p("close")), onClosed: a2[4] || (a2[4] = (e4) => p("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: j.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, d)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(v2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, modal: S.value, "modal-penetrable": T.value, fullscreen: M.value, alignCenter: V.value, draggable: y.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => p("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, style: { "min-height": "100px" }, pageCode: h.value, pageRequest: j.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), o("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["title", "width", "modal", "modal-penetrable", "fullscreen", "alignCenter", "draggable", "overflow"]));
22
22
  };
23
23
  } });
24
24
  export {