super-page-runtime 2.3.27 → 2.3.28-sit1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +105 -95
- package/dist/es/components/runtime/utils/charts/chart-util.js +117 -113
- package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +554 -535
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +13 -1
- package/dist/es/components/runtime/utils/page-init-util.js +9 -11
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +7 -9
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +11 -12
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +11 -8
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- 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 +4 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +38 -39
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +54 -52
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +82 -83
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +12 -12
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -17
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.js +8 -8
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -3
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +75 -76
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +133 -129
- package/package.json +2 -2
|
@@ -1,142 +1,141 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as
|
|
2
|
-
import { setVariableValue as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, 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";
|
|
3
3
|
import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
import { addRequiredClassUtil as
|
|
8
|
-
import { CopyDocument as
|
|
9
|
-
import
|
|
10
|
-
import { ElMessage as
|
|
11
|
-
import { useI18n as
|
|
12
|
-
const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }, F = { style: {
|
|
13
|
-
const { t:
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
let e3 = A(
|
|
20
|
-
return null != e3 && (e3 = String(e3)),
|
|
5
|
+
import P from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as D } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
|
|
8
|
+
import { CopyDocument as q } from "@element-plus/icons-vue";
|
|
9
|
+
import z from "clipboard";
|
|
10
|
+
import { ElMessage as E } from "element-plus";
|
|
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 = t(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, te = X.titleExceedStyle, le = t(X.props ? X.props : {});
|
|
16
|
+
let oe = t(le.value.optionDescriptionPosition && "default" !== le.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)), le.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
const t2 =
|
|
24
|
-
|
|
22
|
+
const ue = l({ get: () => ie(), set(e3) {
|
|
23
|
+
const t2 = ie();
|
|
24
|
+
ae = Array.isArray(t2) ? [...t2] : t2;
|
|
25
25
|
let l2 = e3;
|
|
26
|
-
if (
|
|
27
|
-
l2 = !!
|
|
26
|
+
if (le.value.multiple) {
|
|
27
|
+
l2 = !!le.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
|
|
28
28
|
}
|
|
29
|
-
void 0 === l2 && (l2 = null),
|
|
30
|
-
} }),
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
let
|
|
34
|
-
const
|
|
35
|
-
if ("dynamicData" ==
|
|
36
|
-
if ("remote" ==
|
|
29
|
+
void 0 === l2 && (l2 = null), k(N, Q, l2), null != l2 && (J.value = "");
|
|
30
|
+
} }), re = t(le.value.options ? le.value.options : []), se = S(H.pageContext, H.configure);
|
|
31
|
+
se.length > 0 && (re.value = se);
|
|
32
|
+
const pe = t(false), ce = H.configure.props && H.configure.props.dataOrigin ? H.configure.props.dataOrigin : {}, fe = ce.optionValueSetType;
|
|
33
|
+
let ve = [];
|
|
34
|
+
const ge = le.value.optionconfigInfo ? le.value.optionconfigInfo : {};
|
|
35
|
+
if ("dynamicData" == fe || "dataTable" == fe || "service" == fe) {
|
|
36
|
+
if ("remote" == ce.filterType) {
|
|
37
37
|
let e3;
|
|
38
|
-
|
|
39
|
-
e3 !== t2 && (e3 = t2,
|
|
40
|
-
|
|
38
|
+
le.value.filterable = true, le.value.remote = true, le.value.remoteShowSuffix = true, le.value.remoteMethod = function(t2) {
|
|
39
|
+
e3 !== t2 && (e3 = t2, pe.value = true, T(H.pageContext, ge, t2).then((e4) => {
|
|
40
|
+
pe.value = false;
|
|
41
41
|
}).then((e4) => {
|
|
42
|
-
|
|
42
|
+
pe.value = false;
|
|
43
43
|
}));
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
if (
|
|
46
|
+
if (ce.autoSets) for (let e3 of ce.autoSets) e3.source && ve.push(e3);
|
|
47
47
|
}
|
|
48
|
-
|
|
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 }), le.value.changeMethod = function(e3) {
|
|
49
49
|
let t2, l2 = null;
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
re.value && null != e3 && null != e3 && (l2 = re.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
|
|
51
|
+
ve.length > 0 && j(H.configure, H.pageContext, ve, l2, [le.value.prop]);
|
|
52
52
|
l2 && l2.length > 0 && (t2 = l2[0]);
|
|
53
53
|
let o2 = {};
|
|
54
54
|
t2 && (o2.extendParams = t2);
|
|
55
|
-
o2.options =
|
|
55
|
+
o2.options = re.value, o2.oldValue = ae, V(e3, H.pageContext, H.configure, "change", o2);
|
|
56
56
|
};
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
57
|
+
const me = le.value.monitorFields, de = [];
|
|
58
|
+
if (me) {
|
|
59
59
|
const e3 = [];
|
|
60
|
-
for (let t2 of
|
|
60
|
+
for (let t2 of me) if (t2.startsWith("${")) {
|
|
61
61
|
t2 = t2.substring(2, t2.length - 1);
|
|
62
62
|
const l2 = t2.split(".");
|
|
63
|
-
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (
|
|
63
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (de.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
64
64
|
}
|
|
65
|
-
for (let t2 of e3) o(
|
|
66
|
-
|
|
65
|
+
for (let t2 of e3) o(N[t2], () => {
|
|
66
|
+
xe();
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
let
|
|
70
|
-
function
|
|
71
|
-
|
|
69
|
+
let he = "", ye = false;
|
|
70
|
+
function xe() {
|
|
71
|
+
ye && clearTimeout(ye), ye = setTimeout(function() {
|
|
72
72
|
const e3 = function() {
|
|
73
73
|
let e4 = [];
|
|
74
|
-
for (let t2 of
|
|
74
|
+
for (let t2 of de) e4.push(A(N, t2));
|
|
75
75
|
return e4.join(",");
|
|
76
76
|
}();
|
|
77
|
-
e3 !=
|
|
78
|
-
|
|
77
|
+
e3 != he && (he = e3, ge.watchAttrValue = e3, T(H.pageContext, ge, void 0).then((e4) => {
|
|
78
|
+
pe.value = false;
|
|
79
79
|
}));
|
|
80
80
|
}, 200);
|
|
81
81
|
}
|
|
82
82
|
a(() => {
|
|
83
|
-
|
|
83
|
+
ye && clearTimeout(ye);
|
|
84
84
|
});
|
|
85
|
-
let
|
|
86
|
-
const
|
|
87
|
-
function
|
|
88
|
-
const e3 =
|
|
85
|
+
let be = false;
|
|
86
|
+
const Ce = t(null), we = t(null), _e = t(null);
|
|
87
|
+
function ke() {
|
|
88
|
+
const e3 = ie();
|
|
89
89
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
90
90
|
let t2 = "";
|
|
91
|
-
return "string" == typeof e3 ?
|
|
91
|
+
return "string" == typeof e3 ? re.value.length > 0 ? re.value.forEach((l2) => {
|
|
92
92
|
l2.value === e3 && (t2 = l2.label);
|
|
93
|
-
}) : t2 = e3 :
|
|
93
|
+
}) : t2 = e3 : re.value.length > 0 ? (re.value.forEach((l2) => {
|
|
94
94
|
e3.forEach((e4) => {
|
|
95
95
|
l2.value === e4 && (t2 = t2 + l2.label + ",");
|
|
96
96
|
});
|
|
97
97
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
return
|
|
101
|
-
const e3 = new
|
|
102
|
-
return
|
|
100
|
+
return n(() => {
|
|
101
|
+
const e3 = new z("#" + ne, { text: function() {
|
|
102
|
+
return ke();
|
|
103
103
|
} });
|
|
104
104
|
e3.on("success", () => {
|
|
105
|
-
|
|
105
|
+
E({ showClose: true, type: "success", message: G("superPageRuntimeMessage.copySuccess") });
|
|
106
106
|
}), e3.on("error", (e4) => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
M(e4, G.pageContext, G.configure, { formItemRef: ye.value, componentRef: be.value, titleRef: xe.value, value: e4, entity: G.pageContext.entity.data, pageData: G.pageContext.entity.page });
|
|
107
|
+
}), i(() => {
|
|
108
|
+
const e4 = ue.value;
|
|
109
|
+
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 });
|
|
111
110
|
});
|
|
112
|
-
}),
|
|
113
|
-
if (
|
|
114
|
-
const e4 =
|
|
115
|
-
if (null != e4 && "" !== e4 &&
|
|
111
|
+
}), $2({ updateOptions: function(e3) {
|
|
112
|
+
if (re.value = e3 || [], !be) {
|
|
113
|
+
const e4 = ie();
|
|
114
|
+
if (null != e4 && "" !== e4 && re.value.length > 0) {
|
|
116
115
|
let t2 = false;
|
|
117
|
-
for (let l2 of
|
|
116
|
+
for (let l2 of re.value) if (l2.value == e4) {
|
|
118
117
|
t2 = true;
|
|
119
118
|
break;
|
|
120
119
|
}
|
|
121
120
|
if (!t2) {
|
|
122
|
-
for (let t3 of
|
|
123
|
-
|
|
121
|
+
for (let t3 of re.value) if (t3.label == e4) {
|
|
122
|
+
ue.value = t3.value;
|
|
124
123
|
break;
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
}
|
|
128
127
|
}
|
|
129
|
-
|
|
128
|
+
be = true;
|
|
130
129
|
}, addRequiredClass: function() {
|
|
131
|
-
|
|
132
|
-
}, getSelectItemsTitle:
|
|
133
|
-
return
|
|
134
|
-
} }), (
|
|
135
|
-
const
|
|
136
|
-
return
|
|
137
|
-
}, ["stop"]), ["space"])), onChange:
|
|
130
|
+
J.value = I();
|
|
131
|
+
}, getSelectItemsTitle: ke, getOptions: function() {
|
|
132
|
+
return re.value;
|
|
133
|
+
} }), (e3, t2) => {
|
|
134
|
+
const l2 = u("el-icon"), o2 = u("el-option"), a2 = u("el-select"), n2 = u("el-popover"), i2 = u("el-form-item");
|
|
135
|
+
return s(), r(i2, { ref_key: "formItemRef", ref: Ce, required: !!le.value.required, class: c(f(Z) + (J.value ? " " + J.value : "")), "label-width": le.value.labelWidth, style: p(f(Y)) }, { label: v(() => [le.value.tittleShow ? (s(), y("div", { key: 0, ref_key: "titleRef", ref: _e, style: p({ ...f(ee), ...f(te) }) }, [le.value.prefixType ? (s(), r(P, { key: 0, pageContext: e3.pageContext, property: le.value }, null, 8, ["pageContext", "property"])) : (s(), y(x, { key: 1 }, [_(w(f(D)(le.value.title)), 1)], 64))], 4)) : C("", true)]), default: v(() => [g(n2, { placement: "top", trigger: "hover" }, { reference: v(() => [m("div", B, [g(a2, { ref_key: "componentRef", ref: we, style: { width: "100%" }, disabled: "disabled" === le.value.state, size: le.value.size, clearable: le.value.clearable, multiple: le.value.multiple, "collapse-tags": le.value.collapseTags, "collapse-tags-tooltip": le.value.collapseTagsTooltip, filterable: le.value.filterable, "allow-create": le.value.allowCreate, placeholder: le.value.placeholder, "remote-show-suffix": le.value.remoteShowSuffix, remote: le.value.remote, "remote-method": le.value.remoteMethod, loading: pe.value, onKeydown: t2[0] || (t2[0] = d(h(() => {
|
|
136
|
+
}, ["stop"]), ["space"])), onChange: le.value.changeMethod, onClear: le.value.changeMethod, modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4) }, { default: v(() => [(s(true), y(x, null, b(re.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.label, value: t3.value, class: c({ "option-description-newLine": f(oe) }), onClick: (l3) => f(V)(t3.value, e3.pageContext, e3.configure, "click", { values: ue.value }) }, { default: v(() => [t3._description_ ? (s(), y(x, { key: 0 }, [f(oe) ? (s(), y("div", F, [m("span", null, w(t3.label), 1), m("span", K, w(t3._description_), 1)])) : (s(), y(x, { key: 1 }, [m("span", L, w(t3.label), 1), m("span", U, w(t3._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(l2, { id: ne }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
138
137
|
};
|
|
139
138
|
} });
|
|
140
139
|
export {
|
|
141
|
-
|
|
140
|
+
$ as default
|
|
142
141
|
};
|
package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as i, nextTick as o,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as i, nextTick as o, createElementBlock as n, openBlock as r, normalizeClass as a, normalizeStyle as p, unref as l, createElementVNode as s, createBlock as u, createCommentVNode as c, createTextVNode as g, toDisplayString as f } from "vue";
|
|
2
2
|
import { SuperIcon as m } from "agilebuilder-ui";
|
|
3
3
|
import { $t as y } from "../../../../utils/i18n-util.js";
|
|
4
4
|
import { handleAfterInitEvent as b } from "../../../../utils/events/event-util.js";
|
|
@@ -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({}), (e3, t2) => (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)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e3.configure.props.base.title)), 1)], 4)], 6));
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
15
15
|
d as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as u, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as u, resolveComponent as i, createBlock as n, openBlock as v, normalizeStyle as o, normalizeClass as r, unref as c, withCtx as s, createVNode as f, createElementBlock as p, createCommentVNode as m, toDisplayString as d } from "vue";
|
|
2
2
|
import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as V, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as x, handleFormEvent as h } from "../../../../utils/events/event-util.js";
|
|
@@ -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
|
|
29
|
+
} }), (e3, t2) => {
|
|
30
|
+
const l2 = i("el-switch"), a2 = i("el-form-item");
|
|
31
|
+
return v(), n(a2, { 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(l2, { 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": t2[0] || (t2[0] = (e4) => U.value = e4), onChange: t2[1] || (t2[1] = (t3) => c(h)(t3, e3.pageContext, e3.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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o, createBlock as n, openBlock as r, normalizeStyle as u, normalizeClass as s, unref as p, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createTextVNode as v, toDisplayString as y, createCommentVNode as d } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as C, setVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as h, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
@@ -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
|
|
27
|
+
}), (e3, t2) => {
|
|
28
|
+
const l2 = o("el-tag"), a2 = o("el-form-item");
|
|
29
|
+
return r(), n(a2, { 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, (a3) => (r(), n(l2, { key: a3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e4) => function(e5, t3) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
|
-
let
|
|
32
|
-
null ==
|
|
33
|
-
const l3 = Array.isArray(
|
|
34
|
-
l3 || (
|
|
35
|
-
const
|
|
36
|
-
|
|
31
|
+
let e6 = C(D, A);
|
|
32
|
+
null == e6 && (e6 = []);
|
|
33
|
+
const l3 = Array.isArray(e6);
|
|
34
|
+
l3 || (e6 = (e6 + "").split(","));
|
|
35
|
+
const a4 = e6.indexOf(t3.value);
|
|
36
|
+
a4 > -1 && e6.splice(a4, 1), l3 || (e6 = e6.join(",")), b(D, A, e6);
|
|
37
37
|
}
|
|
38
|
-
k(
|
|
39
|
-
}(
|
|
38
|
+
k(e5, j2.pageContext, j2.configure, "remove");
|
|
39
|
+
}(e4, a3), onClick: t2[0] || (t2[0] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: c(() => [v(y(a3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as u, openBlock as r, createVNode as i, normalizeStyle as s, normalizeClass as p, unref as m, withCtx as f, createCommentVNode as g, createBlock as c, Fragment as d, createTextVNode as v, toDisplayString as x } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as h, getVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as w, handleFormEvent as b } from "../../../../utils/events/event-util.js";
|
|
@@ -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
|
|
21
|
+
} }), (e3, t2) => {
|
|
22
|
+
const l2 = n("el-input"), a2 = n("el-form-item");
|
|
23
|
+
return r(), u("div", null, [i(a2, { 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: e3.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(l2, { 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": t2[0] || (t2[0] = (e4) => V.value = e4), 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: t2[1] || (t2[1] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(b)(t3, e3.pageContext, e3.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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i,
|
|
1
|
+
import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, withDirectives as r, createCommentVNode as s, unref as u, createBlock as l, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as a, vShow as p, nextTick as m } from "vue";
|
|
2
2
|
import v from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as y } from "../../utils/interfaces/page-design-types.js";
|
|
@@ -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
|
|
76
|
+
return (e3, o2) => {
|
|
77
|
+
const t2 = i("permission");
|
|
78
|
+
return u($)(e3.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [t2, { codes: u(N) ? u(N) : "true", systemCode: e3.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s,
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as p, openBlock as a, resolveDynamicComponent as c, normalizeClass as g, normalizeStyle as f, vShow as m, nextTick as d } from "vue";
|
|
2
2
|
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 j, controlObjectRenderState as w } 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 T, getPropClassName as $, isNumber as
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
8
|
+
import { isWorkflowPage as T, getPropClassName as $, isNumber as N } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as S } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as H } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as B } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
14
14
|
var _a, _b;
|
|
@@ -16,8 +16,8 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
16
16
|
null == F2.configure.style && (F2.configure.style = {});
|
|
17
17
|
const R = y(F2.configure, F2.pageContext);
|
|
18
18
|
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.functionCode = R);
|
|
19
|
-
const k = B(R || "true", F2.pageContext.systemCode), E =
|
|
20
|
-
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J),
|
|
19
|
+
const k = B(R || "true", F2.pageContext.systemCode), E = H(F2.pageContext, F2.configure), J = k && E;
|
|
20
|
+
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J), j(F2.pageContext, F2.configure, J);
|
|
21
21
|
let L = o(null), W = o(true), q = o("");
|
|
22
22
|
if (F2.configure && F2.configure.props) {
|
|
23
23
|
let e3 = [];
|
|
@@ -25,7 +25,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
25
25
|
var _a2;
|
|
26
26
|
let o2 = true;
|
|
27
27
|
if (J) if (L.value && null !== L.value) o2 = "show" === L.value;
|
|
28
|
-
else if (
|
|
28
|
+
else if (O(F2.pageContext, F2.configure)) if (e3 && e3.length > 0) o2 = M(F2.pageContext, e3);
|
|
29
29
|
else {
|
|
30
30
|
const e4 = (_a2 = F2.configure.props.base) == null ? void 0 : _a2.state;
|
|
31
31
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -69,7 +69,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
69
69
|
const t2 = U.style[e3 + "_class"];
|
|
70
70
|
t2 && (K.value += " " + t2);
|
|
71
71
|
}
|
|
72
|
-
const V =
|
|
72
|
+
const V = S();
|
|
73
73
|
function X(e3) {
|
|
74
74
|
if (G.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
75
75
|
L.value = "show";
|
|
@@ -89,12 +89,12 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
89
89
|
const o2 = F2.configure.props ? F2.configure.props.base : null;
|
|
90
90
|
if (o2 && o2.prop) {
|
|
91
91
|
let e4 = o2.prop;
|
|
92
|
-
e4 = _(e4),
|
|
92
|
+
e4 = _(e4), w(F2.pageContext, e4), F2.pageContext.propTitleMap = F2.pageContext.propTitleMap || {}, F2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
93
93
|
}
|
|
94
94
|
!function() {
|
|
95
95
|
if (!G.value) return;
|
|
96
96
|
const e4 = A(F2.pageContext, F2.configure);
|
|
97
|
-
"table" !== F2.configure.name && e4 && e4.isCalcHeight &&
|
|
97
|
+
"table" !== F2.configure.name && e4 && e4.isCalcHeight && d(() => {
|
|
98
98
|
var _a2;
|
|
99
99
|
if (!(((_a2 = G.value) == null ? void 0 : _a2.$el) || G.value)) return;
|
|
100
100
|
const e5 = (o3 = 0) => {
|
|
@@ -117,10 +117,8 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
117
117
|
const o2 = e3.parentNode;
|
|
118
118
|
if (!e3 || !o2) return;
|
|
119
119
|
const t2 = e3.getBoundingClientRect();
|
|
120
|
-
let n2 = window.innerHeight - t2.y - 30;
|
|
121
|
-
|
|
122
|
-
let i2 = n2 + "";
|
|
123
|
-
H(n2) && (i2 = n2 + "px"), I.value.height = i2, I.value["overflow-y"] = "auto", I.value["overflow-x"] = "hidden", F2.configure.sytle || (F2.configure.sytle = {}), F2.configure.sytle._heightStyle = i2;
|
|
120
|
+
let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
|
|
121
|
+
N(n2) && (i2 = n2 + "px"), I.value.height = i2, I.value["overflow-y"] = "auto", I.value["overflow-x"] = "hidden", F2.configure.sytle || (F2.configure.sytle = {}), F2.configure.sytle._heightStyle = i2;
|
|
124
122
|
}
|
|
125
123
|
i(() => {
|
|
126
124
|
var _a2, _b2, _c;
|
|
@@ -138,7 +136,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
138
136
|
const t2 = F2.configure.props ? F2.configure.props : {}, n2 = F2.configure.style ? F2.configure.style : {}, i2 = t2.position;
|
|
139
137
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
140
138
|
};
|
|
141
|
-
return (
|
|
139
|
+
return (e3, o2) => l(J) && l(P)(e3.configure) ? r((a(), p(c(z.value), { key: 0, ref: X, style: f(I.value), class: g(K.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
|
|
142
140
|
} });
|
|
143
141
|
export {
|
|
144
142
|
F as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
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) => (o3, n2) => (e(), t(p, { pageContext: o3.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as o, ref as e, watch as n, nextTick as t, resolveComponent as i,
|
|
1
|
+
import { defineComponent as o, ref as e, watch as n, nextTick as t, resolveComponent as i, createBlock as l, createCommentVNode as a, openBlock as p, withCtx as u, createElementVNode as s, createElementBlock as r, createTextVNode as f, normalizeClass as c, createVNode as w } from "vue";
|
|
2
2
|
import { addRequiredClassUtil as d } from "../../../../utils/common-util.js";
|
|
3
3
|
const m = { style: { "background-color": "#ffffff" } }, x = { class: "opinion-box-table-wrapper" }, k = { class: "opinion-table" }, v = { class: "opinion-label" }, g = { key: 0, class: "required-star" }, b = o({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(o2) {
|
|
4
4
|
const b2 = e(""), O = o2, C = e(), y = e("");
|
|
@@ -10,15 +10,15 @@ 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 }), (o3, e2) => {
|
|
14
14
|
var _a;
|
|
15
|
-
const
|
|
16
|
-
return ((_a =
|
|
15
|
+
const n2 = i("el-input"), t2 = i("el-affix");
|
|
16
|
+
return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (p(), l(t2, { key: 0, target: ".app-container", position: "bottom", offset: 35 }, { default: u(() => {
|
|
17
17
|
var _a2;
|
|
18
|
-
return [
|
|
18
|
+
return [s("div", m, [s("div", x, [s("table", k, [s("tbody", null, [s("tr", null, [s("td", v, [((_a2 = o3.pageContext.workflowOpinion) == null ? void 0 : _a2.isRequired) ? (p(), r("span", g, "*")) : a("", true), e2[2] || (e2[2] = f(" 处理意见 "))]), s("td", { class: c(["opinion-input-cell", y.value]) }, [w(n2, { ref_key: "opinionInputRef", ref: C, modelValue: b2.value, "onUpdate:modelValue": e2[0] || (e2[0] = (o4) => b2.value = o4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: e2[1] || (e2[1] = (o4) => {
|
|
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
|
-
}), _: 1 })) :
|
|
21
|
+
}), _: 1 })) : a("", true);
|
|
22
22
|
};
|
|
23
23
|
} });
|
|
24
24
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as o, resolveComponent as a,
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as o, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as u, createCommentVNode as r, unref as m, createElementVNode as p, createTextVNode as d } from "vue";
|
|
2
2
|
import { extractWorkflowFunc as s } from "../../../../utils/events/standard-event.js";
|
|
3
3
|
import { DepartmentUserTree as v } from "agilebuilder-ui";
|
|
4
4
|
import { Search as f, Delete as c } from "@element-plus/icons-vue";
|
|
@@ -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
|
|
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"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as a, nextTick as o, resolveComponent as n,
|
|
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
2
|
import { handleAfterInitEvent as y, handleEvent as C } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
4
4
|
import { DepartmentUserTree as k } from "agilebuilder-ui";
|
|
@@ -32,7 +32,7 @@ const N = { class: "page-runtime-header-btn" }, h = { class: "dialog-footer" },
|
|
|
32
32
|
T.value && T.value.$el.click();
|
|
33
33
|
} }), (e3, l2) => {
|
|
34
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
|
|
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 }), u(a2, { type: "primary", onClick: B }, { default: c(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 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"])]);
|
|
36
36
|
};
|
|
37
37
|
} });
|
|
38
38
|
export {
|
package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as n, resolveComponent as o,
|
|
1
|
+
import { defineComponent as e, ref as t, watch as n, resolveComponent as o, createElementBlock as i, createBlock as r, unref as s, openBlock as a, toDisplayString as l, normalizeStyle as u } from "vue";
|
|
2
2
|
import { getWorkflowId as p } from "../../../../utils/common-util.js";
|
|
3
3
|
const f = { key: 0 }, g = e({ __name: "pictureflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
4
4
|
var _a;
|
|
@@ -12,7 +12,7 @@ const f = { key: 0 }, g = e({ __name: "pictureflow-runtime", props: { pageContex
|
|
|
12
12
|
c && y.value && y.value.refresh();
|
|
13
13
|
}, { immediate: true }), (e3, t2) => {
|
|
14
14
|
const n2 = o("workflow-history");
|
|
15
|
-
return
|
|
15
|
+
return s(c) ? (a(), r(n2, { key: 1, id: s(c), ref_key: "historyGraphRef", ref: y, style: u({ maxHeight: m.value + "px" }) }, null, 8, ["id", "style"])) : (a(), i("span", f, l(e3.$t("superPageRuntimeMessage.flowNotStart")), 1));
|
|
16
16
|
};
|
|
17
17
|
} });
|
|
18
18
|
export {
|