super-page-runtime 2.3.33-sit1 → 2.3.33
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.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +47 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
- package/dist/es/components/runtime/utils/events/event-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/event-util.js +140 -128
- package/dist/es/components/runtime/utils/events/print-label.js +27 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +738 -726
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +130 -125
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +27 -23
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +29 -26
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +119 -116
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +46 -45
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -56
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +12 -11
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +53 -46
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +18 -16
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +32 -27
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -4
- package/dist/es/components/runtime/views/super-page.vue2.js +183 -182
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +15 -3
- package/package.json +2 -2
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as
|
|
2
|
-
import { setVariableValue as S, getOptionDatasFromPage as
|
|
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 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
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
import { addRequiredClassUtil as
|
|
8
|
-
import { CopyDocument as
|
|
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
|
+
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as D } from "../../../../utils/common-util.js";
|
|
8
|
+
import { CopyDocument as I } 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" } }, 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 }) {
|
|
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
13
|
const { t: H } = O(), J = e2, N = l(null), Q = l(false), X = J.pageContext.entity ? J.pageContext.entity : {};
|
|
14
14
|
let Y = R(J.pageContext, J.configure);
|
|
15
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
|
|
17
|
-
const
|
|
18
|
-
function
|
|
16
|
+
let ne = l(ae.value.optionDescriptionPosition && "default" !== ae.value.optionDescriptionPosition), ie = [];
|
|
17
|
+
const re = "copyBtn_" + J.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
|
+
function ue() {
|
|
19
19
|
let e3 = j(X, Y);
|
|
20
20
|
return null != e3 && (e3 = String(e3)), ae.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
21
21
|
}
|
|
22
|
-
const se = t({ get: () =>
|
|
23
|
-
const l2 =
|
|
24
|
-
|
|
22
|
+
const se = t({ get: () => ue(), set(e3) {
|
|
23
|
+
const l2 = ue();
|
|
24
|
+
ie = Array.isArray(l2) ? [...l2] : l2;
|
|
25
25
|
let t2 = e3;
|
|
26
26
|
if (ae.value.multiple && false !== ae.value.showSelectAll && Array.isArray(e3) && e3.includes(U)) {
|
|
27
27
|
const e4 = (pe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
|
|
@@ -31,41 +31,41 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
31
31
|
t2 = !!ae.value.arrayValue ? Array.isArray(t2) ? t2 : t2 ? String(t2).split(",") : [] : Array.isArray(t2) ? t2.length > 0 ? t2.join(",") : "" : t2 ?? "";
|
|
32
32
|
}
|
|
33
33
|
void 0 === t2 && (t2 = null), S(X, Y, t2), null != t2 && (N.value = "");
|
|
34
|
-
} }), pe = l(ae.value.options ? ae.value.options : []), ce =
|
|
34
|
+
} }), pe = l(ae.value.options ? ae.value.options : []), ce = k(J.pageContext, J.configure);
|
|
35
35
|
ce.length > 0 && (pe.value = ce);
|
|
36
36
|
const fe = l(false), ve = J.configure.props && J.configure.props.dataOrigin ? J.configure.props.dataOrigin : {}, ge = ve.optionValueSetType;
|
|
37
|
-
let
|
|
38
|
-
const
|
|
37
|
+
let me = [];
|
|
38
|
+
const de = ae.value.optionconfigInfo ? ae.value.optionconfigInfo : {};
|
|
39
39
|
if ("dynamicData" == ge || "dataTable" == ge || "service" == ge) {
|
|
40
40
|
if ("remote" == ve.filterType) {
|
|
41
41
|
let e3;
|
|
42
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,
|
|
43
|
+
e3 !== l2 && (e3 = l2, fe.value = true, console.log("query", l2), A(J.pageContext, de, l2).then((e4) => {
|
|
44
44
|
fe.value = false;
|
|
45
45
|
}).then((e4) => {
|
|
46
|
-
fe.value = false;
|
|
46
|
+
console.log("查询失败!", e4), fe.value = false;
|
|
47
47
|
}));
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
if (ve.autoSets) for (let e3 of ve.autoSets) e3.source &&
|
|
50
|
+
if (ve.autoSets) for (let e3 of ve.autoSets) e3.source && me.push(e3);
|
|
51
51
|
}
|
|
52
|
-
J.configure && J.configure.props && J.configure.props.base && J.configure.props.base.optionProp &&
|
|
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
53
|
var _a;
|
|
54
54
|
let l2, t2 = null;
|
|
55
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
|
-
|
|
56
|
+
me.length > 0 && T(J.configure, J.pageContext, me, t2, [ae.value.prop]);
|
|
57
57
|
t2 && t2.length > 0 && (l2 = t2[0]);
|
|
58
58
|
let o2 = {};
|
|
59
59
|
l2 && (o2.extendParams = l2);
|
|
60
|
-
o2.options = pe.value, o2.oldValue =
|
|
60
|
+
o2.options = pe.value, o2.oldValue = ie, P(e3, J.pageContext, J.configure, "change", o2);
|
|
61
61
|
};
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
62
|
+
const ye = ae.value.monitorFields, he = [];
|
|
63
|
+
if (ye) {
|
|
64
64
|
const e3 = [];
|
|
65
|
-
for (let l2 of
|
|
65
|
+
for (let l2 of ye) if (l2.startsWith("${")) {
|
|
66
66
|
l2 = l2.substring(2, l2.length - 1);
|
|
67
67
|
const t2 = l2.split(".");
|
|
68
|
-
"page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (
|
|
68
|
+
"page" !== t2[0] && "task" !== t2[0] && "data" !== t2[0] || (he.push(t2), e3.includes(t2[0]) || e3.push(t2[0]));
|
|
69
69
|
}
|
|
70
70
|
for (let l2 of e3) o(X[l2], () => {
|
|
71
71
|
Ce();
|
|
@@ -76,11 +76,11 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
76
76
|
xe && clearTimeout(xe), xe = setTimeout(function() {
|
|
77
77
|
const e3 = function() {
|
|
78
78
|
let e4 = [];
|
|
79
|
-
for (let l2 of
|
|
79
|
+
for (let l2 of he) e4.push(j(X, l2));
|
|
80
80
|
return e4.join(",");
|
|
81
81
|
}();
|
|
82
|
-
e3 != be && (be = e3,
|
|
83
|
-
fe.value = false;
|
|
82
|
+
e3 != be && (be = e3, de.watchAttrValue = e3, A(J.pageContext, de, void 0).then((e4) => {
|
|
83
|
+
console.log("查询失败!", e4), fe.value = false;
|
|
84
84
|
}));
|
|
85
85
|
}, 200);
|
|
86
86
|
}
|
|
@@ -88,9 +88,9 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
88
88
|
xe && clearTimeout(xe);
|
|
89
89
|
});
|
|
90
90
|
let _e = false;
|
|
91
|
-
const we = l(null), Se = l(null),
|
|
92
|
-
function
|
|
93
|
-
const e3 =
|
|
91
|
+
const we = l(null), Se = l(null), ke = l(null);
|
|
92
|
+
function Ae() {
|
|
93
|
+
const e3 = ue();
|
|
94
94
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
95
95
|
let l2 = "";
|
|
96
96
|
return "string" == typeof e3 ? pe.value.length > 0 ? pe.value.forEach((t2) => {
|
|
@@ -105,20 +105,27 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
105
105
|
function Te(e3) {
|
|
106
106
|
Q.value = e3;
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
const e3 =
|
|
110
|
-
|
|
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 n(() => {
|
|
115
|
+
const e3 = new z("#" + re, { text: function() {
|
|
116
|
+
return Ae();
|
|
111
117
|
} });
|
|
112
118
|
e3.on("success", () => {
|
|
113
|
-
E({ showClose: true, type: "success", message: H("superPageRuntimeMessage.copySuccess") });
|
|
119
|
+
console.log("复制成功"), E({ showClose: true, type: "success", message: H("superPageRuntimeMessage.copySuccess") });
|
|
114
120
|
}), e3.on("error", (e4) => {
|
|
115
|
-
|
|
121
|
+
console.error("复制失败", e4);
|
|
122
|
+
}), i(() => {
|
|
116
123
|
const e4 = se.value;
|
|
117
|
-
|
|
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 });
|
|
118
125
|
});
|
|
119
126
|
}), $2({ updateOptions: function(e3) {
|
|
120
127
|
if (pe.value = e3 || [], !_e) {
|
|
121
|
-
const e4 =
|
|
128
|
+
const e4 = ue();
|
|
122
129
|
if (null != e4 && "" !== e4 && pe.value.length > 0) {
|
|
123
130
|
let l2 = false;
|
|
124
131
|
for (let t2 of pe.value) if (t2.value == e4) {
|
|
@@ -135,13 +142,13 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
135
142
|
}
|
|
136
143
|
_e = true;
|
|
137
144
|
}, addRequiredClass: function() {
|
|
138
|
-
N.value =
|
|
139
|
-
}, getSelectItemsTitle:
|
|
145
|
+
N.value = D();
|
|
146
|
+
}, getSelectItemsTitle: Ae, getOptions: function() {
|
|
140
147
|
return pe.value;
|
|
141
|
-
} }), (
|
|
142
|
-
const
|
|
143
|
-
return s(),
|
|
144
|
-
}, ["stop"]), ["space"])), onChange: ae.value.changeMethod, onClear: ae.value.changeMethod, onVisibleChange: Te, modelValue: se.value, "onUpdate:modelValue":
|
|
148
|
+
} }), (l2, t2) => {
|
|
149
|
+
const o2 = r("el-icon"), a2 = r("el-option"), n2 = r("el-select"), i2 = 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(q)(ae.value.title)), 1)], 64))], 4)) : h("", true)]), default: v(() => [g(i2, { 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(n2, { 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(I))]), _: 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(ne) }), onClick: (t3) => f(P)(l3.value, e2.pageContext, e2.configure, "click", { values: se.value }) }, { default: v(() => [l3._description_ ? (s(), b(x, { key: 0 }, [f(ne) ? (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(I))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
145
152
|
};
|
|
146
153
|
} });
|
|
147
154
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
CHANGED
|
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
|
|
|
9
9
|
const e3 = y(v.configure.props.base.title);
|
|
10
10
|
b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
|
|
11
11
|
});
|
|
12
|
-
}), d2({}), (
|
|
12
|
+
}), d2({}), (t2, i2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e2.configure.props.base.title)), 1)], 4)], 6));
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
15
15
|
d as default
|
|
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
|
|
|
26
26
|
});
|
|
27
27
|
}), w2({ addRequiredClass: function() {
|
|
28
28
|
_.value = b();
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
return v(), n(
|
|
29
|
+
} }), (t2, l2) => {
|
|
30
|
+
const a2 = i("el-switch"), u2 = i("el-form-item");
|
|
31
|
+
return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|
|
@@ -24,19 +24,19 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
24
24
|
const e3 = E.value;
|
|
25
25
|
h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
|
|
26
26
|
});
|
|
27
|
-
}), (
|
|
28
|
-
const
|
|
29
|
-
return r(), n(
|
|
27
|
+
}), (t2, l2) => {
|
|
28
|
+
const a2 = o("el-tag"), i2 = o("el-form-item");
|
|
29
|
+
return r(), n(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (t3) => (r(), n(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
|
-
let
|
|
32
|
-
null ==
|
|
33
|
-
const l3 = Array.isArray(
|
|
34
|
-
l3 || (
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
let e5 = C(D, A);
|
|
32
|
+
null == e5 && (e5 = []);
|
|
33
|
+
const l3 = Array.isArray(e5);
|
|
34
|
+
l3 || (e5 = (e5 + "").split(","));
|
|
35
|
+
const a3 = e5.indexOf(t4.value);
|
|
36
|
+
a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
|
|
37
37
|
}
|
|
38
|
-
k(
|
|
39
|
-
}(
|
|
38
|
+
k(e4, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e3, t3), onClick: l2[0] || (l2[0] = (t4) => p(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -18,9 +18,9 @@ const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
|
|
|
18
18
|
});
|
|
19
19
|
}), _2({ addRequiredClass: function() {
|
|
20
20
|
I.value = j();
|
|
21
|
-
} }), (
|
|
22
|
-
const
|
|
23
|
-
return r(), u("div", null, [i(
|
|
21
|
+
} }), (t2, l2) => {
|
|
22
|
+
const a2 = n("el-input"), o2 = n("el-form-item");
|
|
23
|
+
return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: U, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...m(N), ...m(T) }) }, [D.value.prefixType ? (r(), c(k, { key: 0, pageContext: e2.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), u(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [i(a2, { ref_key: "componentRef", ref: W, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => V.value = e3), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxlength, minlength: D.value.minlength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -73,9 +73,9 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
|
|
|
73
73
|
const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
|
|
74
74
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
75
75
|
};
|
|
76
|
-
return (
|
|
77
|
-
const
|
|
78
|
-
return u($)(
|
|
76
|
+
return (o2, t2) => {
|
|
77
|
+
const n2 = i("permission");
|
|
78
|
+
return u($)(e2.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [n2, { codes: u(N) ? u(N) : "true", systemCode: e2.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -3,13 +3,13 @@ import C from "./error-render.vue.js";
|
|
|
3
3
|
import { getRuntimeComponentByName as v } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { addComponentRef as h, addComponentRefByCode as x } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes as y, packageFormRules as
|
|
6
|
+
import { getPermissionCodes as y, packageFormRules as w, controlObjectRenderState as j } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as M, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
|
-
import { isWorkflowPage as
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
12
|
-
import { checkPermission as
|
|
8
|
+
import { isWorkflowPage as H, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowMobileEvent as N, isShowComponent as O } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as P } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as S } from "../../utils/table-utils.js";
|
|
12
|
+
import { checkPermission as B } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as R } from "agilebuilder-ui/src/utils/common-util";
|
|
14
14
|
const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
15
15
|
var _a, _b;
|
|
@@ -17,8 +17,8 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
17
17
|
null == F2.configure.style && (F2.configure.style = {});
|
|
18
18
|
const k = y(F2.configure, F2.pageContext);
|
|
19
19
|
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.functionCode = k);
|
|
20
|
-
const D =
|
|
21
|
-
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J),
|
|
20
|
+
const D = B(k || "true", F2.pageContext.systemCode), E = S(F2.pageContext, F2.configure), J = D && E;
|
|
21
|
+
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J), w(F2.pageContext, F2.configure, J);
|
|
22
22
|
let L = o(null), W = o(true), q = o("");
|
|
23
23
|
if (F2.configure && F2.configure.props) {
|
|
24
24
|
let e3 = [];
|
|
@@ -26,7 +26,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
26
26
|
var _a2;
|
|
27
27
|
let o2 = true;
|
|
28
28
|
if (J) if (L.value && null !== L.value) o2 = "show" === L.value;
|
|
29
|
-
else if (
|
|
29
|
+
else if (N(F2.pageContext, F2.configure)) if (e3 && e3.length > 0) o2 = M(F2.pageContext, e3);
|
|
30
30
|
else {
|
|
31
31
|
const e4 = (_a2 = F2.configure.props.base) == null ? void 0 : _a2.state;
|
|
32
32
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -39,7 +39,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
39
39
|
const e4 = F2.configure.props.base.editConditions;
|
|
40
40
|
if (e4.length > 0) {
|
|
41
41
|
const o2 = F2.configure.runtime ? F2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
42
|
-
if (n2.rawSate = n2.state,
|
|
42
|
+
if (n2.rawSate = n2.state, H(F2.pageContext) && F2.pageContext.fieldPermissionMap) {
|
|
43
43
|
const e5 = F2.configure.props.base;
|
|
44
44
|
if (e5 && e5.prop) {
|
|
45
45
|
let o3 = e5.prop;
|
|
@@ -60,7 +60,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
60
60
|
z.value = n(v(F2.configure.name));
|
|
61
61
|
const G = o(true);
|
|
62
62
|
null == z.value && (z.value = C, G.value = false);
|
|
63
|
-
const I = o(null), K = o({}), Q = o(""), U =
|
|
63
|
+
const I = o(null), K = o({}), Q = o(""), U = T(F2.configure);
|
|
64
64
|
U && (Q.value = U);
|
|
65
65
|
const V = F2.configure.runtime && F2.configure.runtime.common ? F2.configure.runtime.common : {};
|
|
66
66
|
if (V.class && (Q.value += " " + V.class), V.style) {
|
|
@@ -70,7 +70,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
70
70
|
const t2 = V.style[e3 + "_class"];
|
|
71
71
|
t2 && (Q.value += " " + t2);
|
|
72
72
|
}
|
|
73
|
-
const X =
|
|
73
|
+
const X = P();
|
|
74
74
|
function Y(e3) {
|
|
75
75
|
if (I.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
76
76
|
L.value = "show";
|
|
@@ -90,7 +90,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
90
90
|
const o2 = F2.configure.props ? F2.configure.props.base : null;
|
|
91
91
|
if (o2 && o2.prop) {
|
|
92
92
|
let e4 = o2.prop;
|
|
93
|
-
e4 = _(e4),
|
|
93
|
+
e4 = _(e4), j(F2.pageContext, e4), F2.pageContext.propTitleMap = F2.pageContext.propTitleMap || {}, F2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
94
94
|
}
|
|
95
95
|
!function() {
|
|
96
96
|
if (!I.value) return;
|
|
@@ -118,14 +118,16 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
118
118
|
const o2 = e3.parentNode;
|
|
119
119
|
if (!e3 || !o2) return;
|
|
120
120
|
const t2 = e3.getBoundingClientRect();
|
|
121
|
-
let n2 = window.innerHeight - t2.y - 30
|
|
121
|
+
let n2 = window.innerHeight - t2.y - 30;
|
|
122
|
+
console.log("contentHeight=", window.innerHeight, t2.y);
|
|
123
|
+
let i2 = n2 + "";
|
|
122
124
|
if ("tabs" === F2.configure.name && F2.pageContext.isDialog && !R()) {
|
|
123
125
|
const o3 = e3.closest(".runtime-page-container");
|
|
124
126
|
if (o3) {
|
|
125
127
|
const e4 = o3.getBoundingClientRect(), s2 = t2.y - e4.y;
|
|
126
128
|
n2 = e4.height - s2 - 30, i2 = n2 + "px";
|
|
127
129
|
}
|
|
128
|
-
} else
|
|
130
|
+
} else $(n2) && (i2 = n2 + "px");
|
|
129
131
|
K.value.height = i2, K.value["overflow-y"] = "auto", K.value["overflow-x"] = "hidden", F2.configure.sytle || (F2.configure.sytle = {}), F2.configure.sytle._heightStyle = i2;
|
|
130
132
|
}
|
|
131
133
|
i(() => {
|
|
@@ -144,7 +146,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
144
146
|
const t2 = F2.configure.props ? F2.configure.props : {}, n2 = F2.configure.style ? F2.configure.style : {}, i2 = t2.position;
|
|
145
147
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
146
148
|
};
|
|
147
|
-
return (
|
|
149
|
+
return (o2, t2) => l(J) && l(O)(e2.configure) ? r((p(), a(c(z.value), { key: 0, ref: Y, style: f(K.value), class: g(Q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
|
|
148
150
|
} });
|
|
149
151
|
export {
|
|
150
152
|
F as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, createBlock as t, openBlock as e } from "vue";
|
|
2
2
|
import p from "./workflow/component/workflow-opinion-box.vue.js";
|
|
3
|
-
const n = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (
|
|
3
|
+
const n = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (n2, a) => (e(), t(p, { pageContext: o2.pageContext }, null, 8, ["pageContext"])) });
|
|
4
4
|
export {
|
|
5
5
|
n as default
|
|
6
6
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js
CHANGED
|
@@ -10,12 +10,12 @@ const m = { style: { "background-color": "#ffffff" } }, x = { class: "opinion-bo
|
|
|
10
10
|
var _a;
|
|
11
11
|
((_a = C.value) == null ? void 0 : _a.focus) && C.value.focus();
|
|
12
12
|
})) : y.value = "";
|
|
13
|
-
}, { immediate: true }), (
|
|
13
|
+
}, { immediate: true }), (e2, n2) => {
|
|
14
14
|
var _a;
|
|
15
|
-
const
|
|
16
|
-
return ((_a =
|
|
15
|
+
const t2 = i("el-input"), d2 = i("el-affix");
|
|
16
|
+
return ((_a = o2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (p(), l(d2, { key: 0, target: ".app-container", position: "bottom", offset: 35 }, { default: u(() => {
|
|
17
17
|
var _a2;
|
|
18
|
-
return [s("div", m, [s("div", x, [s("table", k, [s("tbody", null, [s("tr", null, [s("td", v, [((_a2 =
|
|
18
|
+
return [s("div", m, [s("div", x, [s("table", k, [s("tbody", null, [s("tr", null, [s("td", v, [((_a2 = o2.pageContext.workflowOpinion) == null ? void 0 : _a2.isRequired) ? (p(), r("span", g, "*")) : a("", true), n2[2] || (n2[2] = f(" 处理意见 ", -1))]), s("td", { class: c(["opinion-input-cell", y.value]) }, [w(t2, { ref_key: "opinionInputRef", ref: C, modelValue: b2.value, "onUpdate:modelValue": n2[0] || (n2[0] = (o3) => b2.value = o3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: n2[1] || (n2[1] = (o3) => {
|
|
19
19
|
O.pageContext.workflowOpinion && (O.pageContext.workflowOpinion.opinion = b2.value.trim(), O.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
20
20
|
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])])];
|
|
21
21
|
}), _: 1 })) : a("", true);
|
|
@@ -20,7 +20,7 @@ const g = { class: "dialog-footer" }, _ = e({ __name: "extract-workflow-runtime-
|
|
|
20
20
|
return w.props && (true === w.props.requireExtractTransactor && (h.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === w.props.isMustOpinion && (h.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }])), o(() => {
|
|
21
21
|
}), (e3, l2) => {
|
|
22
22
|
const o2 = a("el-icon"), s2 = a("el-input"), _3 = a("el-form-item"), x2 = a("el-form"), y2 = a("el-button"), w2 = a("el-dialog");
|
|
23
|
-
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => l2[6] || (l2[6] = [d("取消")])), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => l2[7] || (l2[7] = [d(" 确定 ")])), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
|
|
23
|
+
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => [...l2[6] || (l2[6] = [d("取消", -1)])]), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => [...l2[7] || (l2[7] = [d(" 确定 ", -1)])]), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
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-
|
|
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
|
|
2
|
-
import { handleAfterInitEvent as
|
|
3
|
-
import { $t as
|
|
4
|
-
import { DepartmentUserTree as
|
|
5
|
-
import { Search as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
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.
|
|
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
|
-
|
|
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:
|
|
23
|
-
C(e4,
|
|
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
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
}),
|
|
32
|
-
|
|
31
|
+
}), U2({ click: function() {
|
|
32
|
+
A.value && A.value.$el.click();
|
|
33
33
|
} }), (e3, l2) => {
|
|
34
|
-
const
|
|
35
|
-
return i(), t("span",
|
|
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
|
-
|
|
44
|
+
U as default
|
|
40
45
|
};
|
|
@@ -17,7 +17,7 @@ const p = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
|
|
|
17
17
|
}(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
|
|
18
18
|
return c(l2.pageContext, t2, g, v, e4, x);
|
|
19
19
|
})(e3) && C.value.push(e3);
|
|
20
|
-
}), (
|
|
20
|
+
}), (t2, m2) => (o(), n("span", p, [(o(true), n(r, null, u(C.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), a(s, { key: u2, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
|
|
21
21
|
} });
|
|
22
22
|
export {
|
|
23
23
|
l as default
|