super-page-runtime 2.3.36-sit2 → 2.3.37-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/events/validator-util.js +125 -87
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +3 -1
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -11
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +35 -35
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +41 -41
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +59 -59
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +36 -36
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +57 -57
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +19 -19
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +59 -59
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +24 -24
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +25 -25
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +48 -48
- 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 +106 -106
- 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 +87 -87
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +19 -19
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +94 -90
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +30 -18
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +9 -3
- package/dist/es/style.css +166 -158
- package/package.json +2 -2
|
@@ -1,151 +1,155 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t,
|
|
2
|
-
import
|
|
3
|
-
import { getRuntimeComponentByName as
|
|
4
|
-
import { PageDimensions as
|
|
5
|
-
import { addComponentRef as
|
|
6
|
-
import { getPermissionCodes as
|
|
7
|
-
import { caculateShowCondition as
|
|
8
|
-
import { isWorkflowPage as
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as s, onUnmounted as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as g, resolveDynamicComponent as c, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as C } from "vue";
|
|
2
|
+
import v from "./error-render.vue.js";
|
|
3
|
+
import { getRuntimeComponentByName as h } from "../../utils/assemblys-config.js";
|
|
4
|
+
import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
+
import { addComponentRef as b, addComponentRefByCode as y } from "../../utils/global-refs.js";
|
|
6
|
+
import { getModelFields as w, getPermissionCodes as j, packageFormRules as N, controlObjectRenderState as M } from "../../utils/page-init-util.js";
|
|
7
|
+
import { caculateShowCondition as V, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
|
+
import { isWorkflowPage as S, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
9
|
import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
12
|
-
import { checkPermission as
|
|
13
|
-
import { isMobileBrowser as
|
|
14
|
-
const
|
|
15
|
-
var _a, _b;
|
|
16
|
-
const
|
|
17
|
-
null ==
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
import { usePageContextStore as B } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as H } from "../../utils/table-utils.js";
|
|
12
|
+
import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
|
+
import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
|
|
14
|
+
const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
const k2 = e2;
|
|
17
|
+
null == k2.configure.style && (k2.configure.style = {}), k2.pageContext.hiddenNotValidatorCodes || (k2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set());
|
|
18
|
+
let D = w(k2.configure);
|
|
19
|
+
const E = D && D.length > 0 ? D[1] : null, J = j(k2.configure, k2.pageContext);
|
|
20
|
+
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = J);
|
|
21
|
+
const L = R(J || "true", k2.pageContext.systemCode), W = H(k2.pageContext, k2.configure), q = L && W;
|
|
22
|
+
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.isHasFieldAuthPermission = q), N(k2.pageContext, k2.configure, q);
|
|
23
|
+
let z = o(null), G = o(true), I = o("");
|
|
24
|
+
if (k2.configure && k2.configure.props) {
|
|
24
25
|
let e3 = [];
|
|
25
|
-
((_a =
|
|
26
|
+
((_a = k2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof k2.configure.props.base.showConditions ? JSON.parse(k2.configure.props.base.showConditions) : k2.configure.props.base.showConditions), G = t(() => {
|
|
26
27
|
var _a2;
|
|
27
28
|
let o2 = true;
|
|
28
|
-
if (
|
|
29
|
-
else if (O(
|
|
29
|
+
if (q) if (z.value && null !== z.value) o2 = "show" === z.value;
|
|
30
|
+
else if (O(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = V(k2.pageContext, e3);
|
|
30
31
|
else {
|
|
31
|
-
const e4 = (_a2 =
|
|
32
|
+
const e4 = (_a2 = k2.configure.props.base) == null ? void 0 : _a2.state;
|
|
32
33
|
e4 && "hidden" === e4 && (o2 = false);
|
|
33
34
|
}
|
|
34
35
|
else o2 = false;
|
|
35
36
|
else o2 = false;
|
|
36
37
|
return o2;
|
|
37
38
|
});
|
|
38
|
-
if (
|
|
39
|
-
|
|
39
|
+
if (k2.configure._dynamicShowFlag = G, E && ((_b = k2.configure.props) == null ? void 0 : _b.hiddenNotValidator) && n(G, (e4) => {
|
|
40
|
+
e4 ? k2.pageContext.hiddenNotValidatorCodes.delete(E) : k2.pageContext.hiddenNotValidatorCodes.add(E);
|
|
41
|
+
}, { immediate: true }), (_c = k2.configure.props.base) == null ? void 0 : _c.editConditions) {
|
|
42
|
+
const e4 = k2.configure.props.base.editConditions;
|
|
40
43
|
if (e4.length > 0) {
|
|
41
|
-
const o2 =
|
|
42
|
-
if (n2.rawSate = n2.state,
|
|
43
|
-
const e5 =
|
|
44
|
+
const o2 = k2.configure.runtime ? k2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
45
|
+
if (n2.rawSate = n2.state, S(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
|
|
46
|
+
const e5 = k2.configure.props.base;
|
|
44
47
|
if (e5 && e5.prop) {
|
|
45
48
|
let o3 = e5.prop;
|
|
46
49
|
o3 = _(o3);
|
|
47
|
-
const t2 =
|
|
48
|
-
t2 && false === t2.canEdit && (
|
|
50
|
+
const t2 = k2.pageContext.fieldPermissionMap.get(o3);
|
|
51
|
+
t2 && false === t2.canEdit && (I.value = "disabled");
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
n2.state = t({ get() {
|
|
52
|
-
if ("disabled" ===
|
|
53
|
-
return
|
|
55
|
+
if ("disabled" === I.value) return I.value;
|
|
56
|
+
return V(k2.pageContext, e4) ? "" : "disabled";
|
|
54
57
|
}, set() {
|
|
55
58
|
} });
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
61
|
}
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
null ==
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
Object.assign(
|
|
68
|
-
const e3 =
|
|
69
|
-
o2 && Object.assign(
|
|
70
|
-
const t2 =
|
|
71
|
-
t2 && (
|
|
62
|
+
const K = o({});
|
|
63
|
+
K.value = i(h(k2.configure.name));
|
|
64
|
+
const Q = o(true);
|
|
65
|
+
null == K.value && (K.value = v, Q.value = false);
|
|
66
|
+
const U = o(null), X = o({}), Y = o(""), Z = T(k2.configure);
|
|
67
|
+
Z && (Y.value = Z);
|
|
68
|
+
const ee = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
|
|
69
|
+
if (ee.class && (Y.value += " " + ee.class), ee.style) {
|
|
70
|
+
Object.assign(X.value, ee.style);
|
|
71
|
+
const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : x.PC, o2 = ee.style[e3 + "_style"];
|
|
72
|
+
o2 && Object.assign(X.value, o2);
|
|
73
|
+
const t2 = ee.style[e3 + "_class"];
|
|
74
|
+
t2 && (Y.value += " " + t2);
|
|
72
75
|
}
|
|
73
|
-
const
|
|
74
|
-
function
|
|
75
|
-
if (
|
|
76
|
-
|
|
76
|
+
const oe = B();
|
|
77
|
+
function te(e3) {
|
|
78
|
+
if (U.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
79
|
+
z.value = "show";
|
|
77
80
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
78
|
-
|
|
81
|
+
z.value = "hide";
|
|
79
82
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
80
|
-
return
|
|
81
|
-
}),
|
|
82
|
-
else if ("table" ===
|
|
83
|
-
else if (
|
|
84
|
-
const e4 =
|
|
83
|
+
return k2.configure;
|
|
84
|
+
}), k2.configure.uuid && b(k2.pageContext, k2.configure.uuid, U), k2.configure.code) y(k2.pageContext, k2.configure.code, U);
|
|
85
|
+
else if ("table" === k2.configure.name) y(k2.pageContext, k2.configure.uuid, U);
|
|
86
|
+
else if (k2.configure.props && k2.configure.props.base) {
|
|
87
|
+
const e4 = k2.configure.props.base;
|
|
85
88
|
if (e4.prop) {
|
|
86
89
|
let o3 = e4.prop;
|
|
87
|
-
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)),
|
|
90
|
+
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(k2.pageContext, o3, U);
|
|
88
91
|
}
|
|
89
92
|
}
|
|
90
|
-
const o2 =
|
|
93
|
+
const o2 = k2.configure.props ? k2.configure.props.base : null;
|
|
91
94
|
if (o2 && o2.prop) {
|
|
92
95
|
let e4 = o2.prop;
|
|
93
|
-
e4 = _(e4),
|
|
96
|
+
e4 = _(e4), M(k2.pageContext, e4), k2.pageContext.propTitleMap = k2.pageContext.propTitleMap || {}, k2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
94
97
|
}
|
|
95
98
|
!function() {
|
|
96
|
-
if (!
|
|
97
|
-
const e4 = A(
|
|
98
|
-
"table" !==
|
|
99
|
+
if (!U.value) return;
|
|
100
|
+
const e4 = A(k2.pageContext, k2.configure);
|
|
101
|
+
"table" !== k2.configure.name && e4 && e4.isCalcHeight && C(() => {
|
|
99
102
|
var _a2;
|
|
100
|
-
if (!(((_a2 =
|
|
103
|
+
if (!(((_a2 = U.value) == null ? void 0 : _a2.$el) || U.value)) return;
|
|
101
104
|
const e5 = (o3 = 0) => {
|
|
102
|
-
if (!
|
|
103
|
-
let t2 =
|
|
105
|
+
if (!U.value) return;
|
|
106
|
+
let t2 = U.value.$el || U.value;
|
|
104
107
|
if (!t2) return;
|
|
105
108
|
const n2 = t2.getBoundingClientRect();
|
|
106
|
-
null !==
|
|
109
|
+
null !== ie && Math.abs(n2.y - ie) < 1 ? ne() : o3 < 10 ? (ie = n2.y, se = setTimeout(() => {
|
|
107
110
|
e5(o3 + 1);
|
|
108
|
-
}, 50)) :
|
|
111
|
+
}, 50)) : ne();
|
|
109
112
|
};
|
|
110
|
-
|
|
113
|
+
ie = null, e5();
|
|
111
114
|
});
|
|
112
115
|
}();
|
|
113
116
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!
|
|
116
|
-
let e3 =
|
|
117
|
-
e3 || (e3 =
|
|
117
|
+
function ne() {
|
|
118
|
+
if (!U.value) return;
|
|
119
|
+
let e3 = U.value.$el;
|
|
120
|
+
e3 || (e3 = U.value);
|
|
118
121
|
const o2 = e3.parentNode;
|
|
119
122
|
if (!e3 || !o2) return;
|
|
120
123
|
const t2 = e3.getBoundingClientRect();
|
|
121
124
|
let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
|
|
122
|
-
if ("tabs" ===
|
|
125
|
+
if ("tabs" === k2.configure.name && k2.pageContext.isDialog && !F()) {
|
|
123
126
|
const o3 = e3.closest(".runtime-page-container");
|
|
124
127
|
if (o3) {
|
|
125
128
|
const e4 = o3.getBoundingClientRect(), s2 = t2.y - e4.y;
|
|
126
129
|
n2 = e4.height - s2 - 30, i2 = n2 + "px";
|
|
127
130
|
}
|
|
128
|
-
} else
|
|
129
|
-
|
|
131
|
+
} else $(n2) && (i2 = n2 + "px");
|
|
132
|
+
X.value.height = i2, X.value["overflow-y"] = "auto", X.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
|
|
130
133
|
}
|
|
131
|
-
|
|
132
|
-
var _a2, _b2,
|
|
133
|
-
|
|
134
|
-
}),
|
|
135
|
-
|
|
134
|
+
s(() => {
|
|
135
|
+
var _a2, _b2, _c2;
|
|
136
|
+
re(), oe.countComponentsLoadedNumber(), ((_c2 = (_b2 = (_a2 = k2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c2.length) > 0 && oe.setAutoAnchorComponentConditions(k2.configure.uuid, k2.configure.props.base.autoAnchorConditions);
|
|
137
|
+
}), r(() => {
|
|
138
|
+
var _a2;
|
|
139
|
+
se && clearTimeout(se), E && ((_a2 = k2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(E));
|
|
136
140
|
});
|
|
137
|
-
let
|
|
138
|
-
const
|
|
139
|
-
if (!
|
|
140
|
-
let e3 =
|
|
141
|
-
e3 || (e3 =
|
|
141
|
+
let ie = null, se = null;
|
|
142
|
+
const re = () => {
|
|
143
|
+
if (!U.value) return;
|
|
144
|
+
let e3 = U.value.$el;
|
|
145
|
+
e3 || (e3 = U.value);
|
|
142
146
|
const o2 = e3.parentNode;
|
|
143
147
|
if (!e3 || !o2) return;
|
|
144
|
-
const t2 =
|
|
148
|
+
const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
|
|
145
149
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
146
150
|
};
|
|
147
|
-
return (e3, o2) =>
|
|
151
|
+
return (e3, o2) => a(q) && a(P)(e3.configure) ? u((g(), p(c(K.value), { key: 0, ref: te, style: d(X.value), class: f(Y.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(G)]]) : l("", true);
|
|
148
152
|
} });
|
|
149
153
|
export {
|
|
150
|
-
|
|
154
|
+
k as default
|
|
151
155
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./workflow-opinion-box.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = r(o, [["__scopeId", "data-v-39a9ecda"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { addRequiredClassUtil as
|
|
3
|
-
const
|
|
4
|
-
const b2 =
|
|
1
|
+
import { defineComponent as e, ref as o, onMounted as n, onUnmounted as l, watch as i, nextTick as t, resolveComponent as a, createElementBlock as s, openBlock as p, Fragment as u, createElementVNode as r, createCommentVNode as f, createBlock as c, normalizeStyle as v, Teleport as d, createTextVNode as w, normalizeClass as m, createVNode as x } from "vue";
|
|
2
|
+
import { addRequiredClassUtil as k } from "../../../../utils/common-util.js";
|
|
3
|
+
const y = { class: "opinion-box-table-wrapper" }, g = { class: "opinion-table" }, O = { class: "opinion-label" }, C = { key: 0, class: "required-star" }, b = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2) {
|
|
4
|
+
const b2 = e2, h = o(""), R = o(), _ = o(""), B = o(null), I = o(null), S = o(null), V = o(0);
|
|
5
|
+
let q = null;
|
|
5
6
|
return n(() => {
|
|
6
7
|
var _a;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
8
|
+
let e3 = ((_a = B.value) == null ? void 0 : _a.parentElement) ?? null, o2 = null;
|
|
9
|
+
for (; e3; ) {
|
|
10
|
+
if (e3.classList.contains("el-dialog")) return "static" === getComputedStyle(e3).position && (e3.style.position = "relative"), void (S.value = e3);
|
|
11
|
+
e3.classList.contains("app-container") && (o2 = e3), e3 = e3.parentElement;
|
|
12
|
+
}
|
|
13
|
+
o2 && ("static" === getComputedStyle(o2).position && (o2.style.position = "relative"), S.value = o2);
|
|
14
|
+
}), l(() => {
|
|
15
|
+
q == null ? void 0 : q.disconnect(), q = null;
|
|
16
|
+
}), i(I, (e3) => {
|
|
17
|
+
q == null ? void 0 : q.disconnect(), q = null, e3 ? (V.value = e3.offsetHeight, q = new ResizeObserver(() => {
|
|
18
|
+
V.value = e3.offsetHeight;
|
|
19
|
+
}), q.observe(e3)) : V.value = 0;
|
|
20
|
+
}), i(() => {
|
|
14
21
|
var _a;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
return (_a = b2.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
|
|
23
|
+
}, (e3) => {
|
|
24
|
+
e3 ? (_.value = k(), t(() => {
|
|
25
|
+
var _a;
|
|
26
|
+
((_a = R.value) == null ? void 0 : _a.focus) && R.value.focus();
|
|
27
|
+
})) : _.value = "";
|
|
28
|
+
}, { immediate: true }), (e3, o2) => {
|
|
29
|
+
var _a, _b, _c;
|
|
30
|
+
const n2 = a("el-input");
|
|
31
|
+
return p(), s(u, null, [r("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" }, id: "sentinelRef" }, null, 512), ((_a = e3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) && S.value ? (p(), s("div", { key: 0, style: v({ height: V.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), S.value ? (p(), c(d, { key: 1, to: S.value }, [((_b = e3.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? (p(), s("div", { key: 0, ref_key: "opinionBarRef", ref: I, class: "opinion-fixed-bar" }, [r("div", y, [r("table", g, [r("tbody", null, [r("tr", null, [r("td", O, [((_c = e3.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (p(), s("span", C, "*")) : f("", true), o2[2] || (o2[2] = w(" 处理意见 "))]), r("td", { class: m(["opinion-input-cell", _.value]) }, [x(n2, { ref_key: "opinionInputRef", ref: R, modelValue: h.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e4) => h.value = e4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: o2[1] || (o2[1] = (e4) => {
|
|
32
|
+
b2.pageContext.workflowOpinion && (b2.pageContext.workflowOpinion.opinion = h.value.trim(), b2.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
33
|
+
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 512)) : f("", true)], 8, ["to"])) : f("", true)], 64);
|
|
22
34
|
};
|
|
23
35
|
} });
|
|
24
36
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./workflowbutton-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = t(o, [["__scopeId", "data-v-23637db8"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as t, ref as e, createElementBlock as n, openBlock as o, Fragment as r, renderList as u, createBlock as i, createCommentVNode as a } from "vue";
|
|
2
2
|
import s from "../../object-render.vue.js";
|
|
3
|
-
import { getClickEventFuncByType as
|
|
4
|
-
import { isVisibleWorkflowButton as
|
|
5
|
-
const
|
|
3
|
+
import { getClickEventFuncByType as p } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { isVisibleWorkflowButton as m } from "../../../../utils/events/standard-event.js";
|
|
5
|
+
const c = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" }, l = t({ __name: "workflowbutton-runtime", props: { pageContext: {}, configure: {} }, setup(t2) {
|
|
6
6
|
var _a, _b;
|
|
7
|
-
const l2 =
|
|
8
|
-
|
|
9
|
-
const g = l2.pageContext.workflowButtonComponent, v = l2.pageContext.completeTaskParam,
|
|
10
|
-
|
|
11
|
-
(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
const l2 = t2, f = l2.configure.runtime ? l2.configure.runtime : {};
|
|
8
|
+
e(f.style ? f.style : {}), f.class;
|
|
9
|
+
const g = l2.pageContext.workflowButtonComponent, v = l2.pageContext.completeTaskParam, d = (_a = l2.pageContext.entity) == null ? void 0 : _a.data, k = e([]);
|
|
10
|
+
function B(t3) {
|
|
11
|
+
const e2 = p(l2.pageContext, t3, "click");
|
|
12
|
+
if (e2) {
|
|
13
|
+
if (e2.isStandard) return e2.event.eventName;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return (_b = l2.configure.items) == null ? void 0 : _b.forEach((t3) => {
|
|
17
|
+
(function(t4) {
|
|
18
|
+
const e2 = B(t4.runtime && t4.runtime.events ? t4.runtime.events : []);
|
|
19
|
+
return m(l2.pageContext, e2, g, v, t4, d);
|
|
20
|
+
})(t3) && (!function(t4) {
|
|
21
|
+
var _a2, _b2;
|
|
22
|
+
const e2 = B(t4.runtime && t4.runtime.events ? t4.runtime.events : []);
|
|
23
|
+
if (!e2 || !g) return;
|
|
24
|
+
const n2 = { workflowSave: "saveButton", submitTask: "submitButton", approve: "agreeButton", refuse: "disagreeButton", agreement: "approveButton", oppose: "opposeButton", kiken: "abstainButton", drawTask: "drawButton", addSigner: "addSignerButton", removeSigner: "removeSignerButton", retrieveTask: "backButton", readed: "readButton", assign: "appointButton", copyTask: "copyButton" }[e2], o2 = n2 ? g[n2] : void 0;
|
|
25
|
+
if (!o2 || o2.startsWith("initVal")) return;
|
|
26
|
+
((_b2 = (_a2 = t4 == null ? void 0 : t4.runtime) == null ? void 0 : _a2.props) == null ? void 0 : _b2.title) && (t4.runtime.props.title = o2);
|
|
27
|
+
}(t3), k.value.push(t3));
|
|
28
|
+
}), (t3, e2) => (o(), n("span", c, [(o(true), n(r, null, u(k.value, (e3, u2) => (o(), n(r, null, [e3.check ? (o(), i(s, { key: u2, pageContext: t3.pageContext, configure: e3 }, null, 8, ["pageContext", "configure"])) : a("", true)], 64))), 256))]));
|
|
21
29
|
} });
|
|
22
30
|
export {
|
|
23
31
|
l as default
|
|
@@ -170,7 +170,9 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
170
170
|
const e3 = Oe.value.parentNode ? Oe.value.parentNode : Oe.value;
|
|
171
171
|
if (na.value && (na.value.pageRuntimeStyle || (na.value.pageRuntimeStyle = {}), !pa)) {
|
|
172
172
|
let a2 = qe.contentHeight;
|
|
173
|
-
Number(a2) && (a2 += "px")
|
|
173
|
+
Number(a2) && (a2 += "px");
|
|
174
|
+
const t2 = a2 ?? ((_b = (_a2 = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a2.call(e3)) == null ? void 0 : _b.height) ?? 0;
|
|
175
|
+
t2 && (na.value.pageRuntimeStyle.height = t2);
|
|
174
176
|
}
|
|
175
177
|
});
|
|
176
178
|
}
|
|
@@ -249,12 +251,16 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
249
251
|
const a3 = e3.isNeedValueMapping;
|
|
250
252
|
l2 = e3.dataModel, o2 = e3.sourceTableName, a3 && te(la.value, n2, l2, o2, ta.value ? ta.value.valueMappings : null);
|
|
251
253
|
}
|
|
252
|
-
O(null, la.value, n2, "closePopup", { sourceModel: l2, sourceTableName: o2, jumpPageSetting: ta.value, entity: la.value.entity.data, targetTableName: u2, pageContext: na.value, parentPageContext: la.value, parentConfigureObj: n2, columnProp: i2 }), "function" == typeof a2
|
|
254
|
+
if (O(null, la.value, n2, "closePopup", { sourceModel: l2, sourceTableName: o2, jumpPageSetting: ta.value, entity: la.value.entity.data, targetTableName: u2, pageContext: na.value, parentPageContext: la.value, parentConfigureObj: n2, columnProp: i2 }), "function" == typeof a2) {
|
|
255
|
+
const t3 = (e3 == null ? void 0 : e3.dataModel) ? [{ dataModel: e3.dataModel }] : [];
|
|
256
|
+
a2.apply(a2, t3);
|
|
257
|
+
} else !function(e4, a3, t3) {
|
|
253
258
|
if (e4) {
|
|
254
259
|
const l3 = I(la.value, e4);
|
|
255
260
|
l3 && l3.apply(l3, [{ pageContext: na.value, parentPageContext: la.value, parentConfigureObj: t3, jumpPageSetting: ta.value, columnProp: a3 }]);
|
|
256
261
|
}
|
|
257
|
-
}(a2, i2, n2)
|
|
262
|
+
}(a2, i2, n2);
|
|
263
|
+
le(la.value, oa.value, t2, void 0 !== t2 && false === t2 ? "noOperation" : null), la.value = null, oa.value = null, ua.value = null, W.$off(He.value + "close-dialog"), aa.value = false;
|
|
258
264
|
}
|
|
259
265
|
function Ra(e3) {
|
|
260
266
|
oe(na.value, e3).then((e4) => {
|