super-page-runtime 2.3.36 → 2.3.37-cdn1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/events/standard-event.js +1 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +230 -189
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- 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/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +26 -26
- 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 +17 -12
- 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 +36 -36
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +45 -45
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +61 -61
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +35 -35
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +58 -58
- 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 +26 -26
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -49
- 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 +111 -111
- 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 +88 -88
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +5 -5
- 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 +102 -90
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -3
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +41 -20
- 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 +168 -160
- package/package.json +2 -2
|
@@ -1,153 +1,165 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t,
|
|
2
|
-
import
|
|
3
|
-
import { getRuntimeComponentByName as
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as r, onUnmounted as s, 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
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
-
import { addComponentRef as
|
|
6
|
-
import { getPermissionCodes as
|
|
7
|
-
import { caculateShowCondition as
|
|
8
|
-
import { isWorkflowPage as
|
|
9
|
-
import { isShowMobileEvent as
|
|
5
|
+
import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
|
|
6
|
+
import { getPermissionCodes as w, packageFormRules as j, getModelFields 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
|
+
import { isShowMobileEvent as H, isShowComponent as O } from "../../utils/events/event-util.js";
|
|
10
10
|
import { usePageContextStore as P } from "../../utils/page-store.js";
|
|
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
|
-
|
|
11
|
+
import { isHasFieldAuth as B } 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 = {});
|
|
18
|
+
let D = null;
|
|
19
|
+
const E = w(k2.configure, k2.pageContext);
|
|
20
|
+
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = E);
|
|
21
|
+
const J = R(E || "true", k2.pageContext.systemCode), L = B(k2.pageContext, k2.configure), W = J && L;
|
|
22
|
+
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.isHasFieldAuthPermission = W), j(k2.pageContext, k2.configure, W);
|
|
23
|
+
let q = o(null), z = o(true), G = 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), z = t(() => {
|
|
26
27
|
var _a2;
|
|
27
28
|
let o2 = true;
|
|
28
|
-
if (
|
|
29
|
-
else if (
|
|
29
|
+
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
30
|
+
else if (H(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 = z, (_b = k2.configure.props) == null ? void 0 : _b.hiddenNotValidator) {
|
|
40
|
+
if (k2.pageContext.hiddenNotValidatorCodes || (k2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === k2.configure.name) D = k2.configure.code ? k2.configure.code : k2.configure.uuid;
|
|
41
|
+
else {
|
|
42
|
+
let e4 = N(k2.configure);
|
|
43
|
+
D = e4 && e4.length > 0 ? e4[1] : null;
|
|
44
|
+
}
|
|
45
|
+
n(z, (e4) => {
|
|
46
|
+
e4 ? k2.pageContext.hiddenNotValidatorCodes.delete(D) : k2.pageContext.hiddenNotValidatorCodes.add(D);
|
|
47
|
+
}, { immediate: true });
|
|
48
|
+
}
|
|
49
|
+
if ((_c = k2.configure.props.base) == null ? void 0 : _c.editConditions) {
|
|
50
|
+
const e4 = k2.configure.props.base.editConditions;
|
|
40
51
|
if (e4.length > 0) {
|
|
41
|
-
const o2 =
|
|
42
|
-
if (n2.rawSate = n2.state,
|
|
43
|
-
const e5 =
|
|
52
|
+
const o2 = k2.configure.runtime ? k2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
53
|
+
if (n2.rawSate = n2.state, S(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
|
|
54
|
+
const e5 = k2.configure.props.base;
|
|
44
55
|
if (e5 && e5.prop) {
|
|
45
56
|
let o3 = e5.prop;
|
|
46
57
|
o3 = _(o3);
|
|
47
|
-
const t2 =
|
|
48
|
-
t2 && false === t2.canEdit && (
|
|
58
|
+
const t2 = k2.pageContext.fieldPermissionMap.get(o3);
|
|
59
|
+
t2 && false === t2.canEdit && (G.value = "disabled");
|
|
49
60
|
}
|
|
50
61
|
}
|
|
51
62
|
n2.state = t({ get() {
|
|
52
|
-
if ("disabled" ===
|
|
53
|
-
return
|
|
63
|
+
if ("disabled" === G.value) return G.value;
|
|
64
|
+
return V(k2.pageContext, e4) ? "" : "disabled";
|
|
54
65
|
}, set() {
|
|
55
66
|
} });
|
|
56
67
|
}
|
|
57
68
|
}
|
|
58
69
|
}
|
|
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 && (
|
|
70
|
+
const I = o({});
|
|
71
|
+
I.value = i(h(k2.configure.name));
|
|
72
|
+
const K = o(true);
|
|
73
|
+
null == I.value && (I.value = v, K.value = false);
|
|
74
|
+
const Q = o(null), U = o({}), X = o(""), Y = T(k2.configure);
|
|
75
|
+
Y && (X.value = Y);
|
|
76
|
+
const Z = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
|
|
77
|
+
if (Z.class && (X.value += " " + Z.class), Z.style) {
|
|
78
|
+
Object.assign(U.value, Z.style);
|
|
79
|
+
const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : b.PC, o2 = Z.style[e3 + "_style"];
|
|
80
|
+
o2 && Object.assign(U.value, o2);
|
|
81
|
+
const t2 = Z.style[e3 + "_class"];
|
|
82
|
+
t2 && (X.value += " " + t2);
|
|
72
83
|
}
|
|
73
|
-
const
|
|
74
|
-
function
|
|
75
|
-
if (
|
|
76
|
-
|
|
84
|
+
const ee = P();
|
|
85
|
+
function oe(e3) {
|
|
86
|
+
if (Q.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
87
|
+
q.value = "show";
|
|
77
88
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
78
|
-
|
|
89
|
+
q.value = "hide";
|
|
79
90
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
80
|
-
return
|
|
81
|
-
}),
|
|
82
|
-
else if ("table" ===
|
|
83
|
-
else if (
|
|
84
|
-
const e4 =
|
|
91
|
+
return k2.configure;
|
|
92
|
+
}), k2.configure.uuid && x(k2.pageContext, k2.configure.uuid, Q), k2.configure.code) y(k2.pageContext, k2.configure.code, Q);
|
|
93
|
+
else if ("table" === k2.configure.name) y(k2.pageContext, k2.configure.uuid, Q);
|
|
94
|
+
else if (k2.configure.props && k2.configure.props.base) {
|
|
95
|
+
const e4 = k2.configure.props.base;
|
|
85
96
|
if (e4.prop) {
|
|
86
97
|
let o3 = e4.prop;
|
|
87
|
-
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)),
|
|
98
|
+
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(k2.pageContext, o3, Q);
|
|
88
99
|
}
|
|
89
100
|
}
|
|
90
|
-
const o2 =
|
|
101
|
+
const o2 = k2.configure.props ? k2.configure.props.base : null;
|
|
91
102
|
if (o2 && o2.prop) {
|
|
92
103
|
let e4 = o2.prop;
|
|
93
|
-
e4 = _(e4),
|
|
104
|
+
e4 = _(e4), M(k2.pageContext, e4), k2.pageContext.propTitleMap = k2.pageContext.propTitleMap || {}, k2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
94
105
|
}
|
|
95
106
|
!function() {
|
|
96
|
-
if (!
|
|
97
|
-
const e4 = A(
|
|
98
|
-
"table" !==
|
|
107
|
+
if (!Q.value) return;
|
|
108
|
+
const e4 = A(k2.pageContext, k2.configure);
|
|
109
|
+
"table" !== k2.configure.name && e4 && e4.isCalcHeight && C(() => {
|
|
99
110
|
var _a2;
|
|
100
|
-
if (!(((_a2 =
|
|
111
|
+
if (!(((_a2 = Q.value) == null ? void 0 : _a2.$el) || Q.value)) return;
|
|
101
112
|
const e5 = (o3 = 0) => {
|
|
102
|
-
if (!
|
|
103
|
-
let t2 =
|
|
113
|
+
if (!Q.value) return;
|
|
114
|
+
let t2 = Q.value.$el || Q.value;
|
|
104
115
|
if (!t2) return;
|
|
105
116
|
const n2 = t2.getBoundingClientRect();
|
|
106
|
-
null !==
|
|
117
|
+
null !== ne && Math.abs(n2.y - ne) < 1 ? te() : o3 < 10 ? (ne = n2.y, ie = setTimeout(() => {
|
|
107
118
|
e5(o3 + 1);
|
|
108
|
-
}, 50)) :
|
|
119
|
+
}, 50)) : te();
|
|
109
120
|
};
|
|
110
|
-
|
|
121
|
+
ne = null, e5();
|
|
111
122
|
});
|
|
112
123
|
}();
|
|
113
124
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!
|
|
116
|
-
let e3 =
|
|
117
|
-
e3 || (e3 =
|
|
125
|
+
function te() {
|
|
126
|
+
if (!Q.value) return;
|
|
127
|
+
let e3 = Q.value.$el;
|
|
128
|
+
e3 || (e3 = Q.value);
|
|
118
129
|
const o2 = e3.parentNode;
|
|
119
130
|
if (!e3 || !o2) return;
|
|
120
131
|
const t2 = e3.getBoundingClientRect();
|
|
121
132
|
let n2 = window.innerHeight - t2.y - 30;
|
|
122
133
|
window.innerHeight, t2.y;
|
|
123
134
|
let i2 = n2 + "";
|
|
124
|
-
if ("tabs" ===
|
|
135
|
+
if ("tabs" === k2.configure.name && k2.pageContext.isDialog && !F()) {
|
|
125
136
|
const o3 = e3.closest(".runtime-page-container");
|
|
126
137
|
if (o3) {
|
|
127
|
-
const e4 = o3.getBoundingClientRect(),
|
|
128
|
-
n2 = e4.height -
|
|
138
|
+
const e4 = o3.getBoundingClientRect(), r2 = t2.y - e4.y;
|
|
139
|
+
n2 = e4.height - r2 - 30, i2 = n2 + "px";
|
|
129
140
|
}
|
|
130
|
-
} else
|
|
131
|
-
|
|
141
|
+
} else $(n2) && (i2 = n2 + "px");
|
|
142
|
+
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
|
|
132
143
|
}
|
|
133
|
-
|
|
134
|
-
var _a2, _b2,
|
|
135
|
-
|
|
144
|
+
r(() => {
|
|
145
|
+
var _a2, _b2, _c2;
|
|
146
|
+
re(), ee.countComponentsLoadedNumber(), ((_c2 = (_b2 = (_a2 = k2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c2.length) > 0 && ee.setAutoAnchorComponentConditions(k2.configure.uuid, k2.configure.props.base.autoAnchorConditions);
|
|
136
147
|
}), s(() => {
|
|
137
|
-
|
|
148
|
+
var _a2;
|
|
149
|
+
ie && clearTimeout(ie), D && ((_a2 = k2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(D));
|
|
138
150
|
});
|
|
139
|
-
let
|
|
140
|
-
const
|
|
141
|
-
if (!
|
|
142
|
-
let e3 =
|
|
143
|
-
e3 || (e3 =
|
|
151
|
+
let ne = null, ie = null;
|
|
152
|
+
const re = () => {
|
|
153
|
+
if (!Q.value) return;
|
|
154
|
+
let e3 = Q.value.$el;
|
|
155
|
+
e3 || (e3 = Q.value);
|
|
144
156
|
const o2 = e3.parentNode;
|
|
145
157
|
if (!e3 || !o2) return;
|
|
146
|
-
const t2 =
|
|
158
|
+
const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
|
|
147
159
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
148
160
|
};
|
|
149
|
-
return (o2, t2) =>
|
|
161
|
+
return (o2, t2) => a(W) && a(O)(e2.configure) ? u((g(), p(c(I.value), { key: 0, ref: oe, style: d(U.value), class: f(X.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
150
162
|
} });
|
|
151
163
|
export {
|
|
152
|
-
|
|
164
|
+
k as default
|
|
153
165
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { defineComponent as o, createBlock as t, openBlock as
|
|
1
|
+
import { defineComponent as o, createBlock as e, createCommentVNode as t, openBlock as n } from "vue";
|
|
2
2
|
import p from "./workflow/component/workflow-opinion-box.vue.js";
|
|
3
|
-
const
|
|
3
|
+
const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (a2, r) => {
|
|
4
|
+
var _a;
|
|
5
|
+
return ((_a = o2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (n(), e(p, { key: 0, pageContext: o2.pageContext }, null, 8, ["pageContext"])) : t("", true);
|
|
6
|
+
} });
|
|
4
7
|
export {
|
|
5
|
-
|
|
8
|
+
a as default
|
|
6
9
|
};
|
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 p = r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = r(o, [["__scopeId", "data-v-8f093cc2"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js
CHANGED
|
@@ -1,26 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { addRequiredClassUtil as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { defineComponent as e, ref as n, computed as o, onMounted as l, onUnmounted as i, watch as t, nextTick as a, resolveComponent as u, createElementBlock as r, openBlock as s, Fragment as p, createElementVNode as d, createCommentVNode as f, createBlock as v, normalizeStyle as w, Teleport as c, createTextVNode as m, normalizeClass as x, createVNode as g } from "vue";
|
|
2
|
+
import { addRequiredClassUtil as b } from "../../../../utils/common-util.js";
|
|
3
|
+
const h = { class: "opinion-box-table-wrapper" }, k = { class: "opinion-table" }, y = { class: "opinion-label" }, O = { key: 0, class: "required-star" }, C = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2) {
|
|
4
|
+
const C2 = e2, R = n(""), E = n(), z = n(""), L = n(null), _ = n(null), B = n(0), H = n(null), I = n(null);
|
|
5
|
+
let V = null, q = null;
|
|
6
|
+
const j = o(() => {
|
|
7
|
+
const e3 = I.value;
|
|
8
|
+
return e3 ? { left: e3.left + "px", right: window.innerWidth - e3.right + "px", bottom: window.innerHeight - e3.bottom + "px" } : { left: "0", right: "0", bottom: "0" };
|
|
9
|
+
});
|
|
10
|
+
function S() {
|
|
11
|
+
H.value && (I.value = H.value.getBoundingClientRect());
|
|
12
|
+
}
|
|
13
|
+
function U(e3) {
|
|
14
|
+
H.value = e3, S(), q = new ResizeObserver(S), q.observe(e3), window.addEventListener("scroll", S, true), window.addEventListener("resize", S);
|
|
15
|
+
}
|
|
16
|
+
return l(() => {
|
|
6
17
|
var _a;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
let e3 = ((_a = L.value) == null ? void 0 : _a.parentElement) ?? null;
|
|
19
|
+
for (; e3; ) {
|
|
20
|
+
if (e3.classList.contains("el-dialog")) return void U(e3);
|
|
21
|
+
e3 = e3.parentElement;
|
|
22
|
+
}
|
|
23
|
+
}), i(() => {
|
|
24
|
+
V == null ? void 0 : V.disconnect(), V = null, q == null ? void 0 : q.disconnect(), q = null, window.removeEventListener("scroll", S, true), window.removeEventListener("resize", S), H.value = null, I.value = null;
|
|
25
|
+
}), t(_, (e3) => {
|
|
26
|
+
V == null ? void 0 : V.disconnect(), V = null, e3 ? (B.value = e3.offsetHeight, V = new ResizeObserver(() => {
|
|
27
|
+
B.value = e3.offsetHeight;
|
|
28
|
+
}), V.observe(e3)) : B.value = 0;
|
|
29
|
+
}), t(() => {
|
|
14
30
|
var _a;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
31
|
+
return (_a = C2.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
|
|
32
|
+
}, (e3) => {
|
|
33
|
+
e3 ? (z.value = b(), a(() => {
|
|
34
|
+
var _a;
|
|
35
|
+
((_a = E.value) == null ? void 0 : _a.focus) && E.value.focus();
|
|
36
|
+
})) : z.value = "";
|
|
37
|
+
}, { immediate: true }), (n2, o2) => {
|
|
38
|
+
var _a, _b, _c;
|
|
39
|
+
const l2 = u("el-input");
|
|
40
|
+
return s(), r(p, null, [d("div", { ref_key: "sentinelRef", ref: L, style: { display: "none" } }, null, 512), ((_a = e2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: w({ height: B.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (s(), v(c, { to: "body" }, [((_b = e2.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? (s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: _, class: "opinion-fixed-bar", style: w(j.value) }, [d("div", h, [d("table", k, [d("tbody", null, [d("tr", null, [d("td", y, [((_c = e2.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", O, "*")) : f("", true), o2[2] || (o2[2] = m(" 处理意见 ", -1))]), d("td", { class: x(["opinion-input-cell", z.value]) }, [g(l2, { ref_key: "opinionInputRef", ref: E, modelValue: R.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => R.value = e3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: o2[1] || (o2[1] = (e3) => {
|
|
41
|
+
C2.pageContext.workflowOpinion && (C2.pageContext.workflowOpinion.opinion = R.value.trim(), C2.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
42
|
+
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)) : f("", true)]))], 64);
|
|
22
43
|
};
|
|
23
44
|
} });
|
|
24
45
|
export {
|
|
25
|
-
|
|
46
|
+
C as default
|
|
26
47
|
};
|
|
@@ -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
|
+
}), (e2, p2) => (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: t2.pageContext, configure: e3 }, null, 8, ["pageContext", "configure"])) : a("", true)], 64))), 256))]));
|
|
21
29
|
} });
|
|
22
30
|
export {
|
|
23
31
|
l as default
|
|
@@ -171,7 +171,9 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
171
171
|
const e3 = Oe.value.parentNode ? Oe.value.parentNode : Oe.value;
|
|
172
172
|
if (na.value && (na.value.pageRuntimeStyle || (na.value.pageRuntimeStyle = {}), !pa)) {
|
|
173
173
|
let a2 = qe.contentHeight;
|
|
174
|
-
Number(a2) && (a2 += "px")
|
|
174
|
+
Number(a2) && (a2 += "px");
|
|
175
|
+
const t2 = a2 ?? ((_b = (_a2 = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a2.call(e3)) == null ? void 0 : _b.height) ?? 0;
|
|
176
|
+
t2 && (na.value.pageRuntimeStyle.height = t2);
|
|
175
177
|
}
|
|
176
178
|
});
|
|
177
179
|
}
|
|
@@ -250,12 +252,16 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
250
252
|
const a3 = e3.isNeedValueMapping;
|
|
251
253
|
l2 = e3.dataModel, o2 = e3.sourceTableName, a3 && te(la.value, n2, l2, o2, ta.value ? ta.value.valueMappings : null);
|
|
252
254
|
}
|
|
253
|
-
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
|
+
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) {
|
|
256
|
+
const t3 = (e3 == null ? void 0 : e3.dataModel) ? [{ dataModel: e3.dataModel }] : [];
|
|
257
|
+
a2.apply(a2, t3);
|
|
258
|
+
} else !function(e4, a3, t3) {
|
|
254
259
|
if (e4) {
|
|
255
260
|
const l3 = I(la.value, e4);
|
|
256
261
|
l3 && l3.apply(l3, [{ pageContext: na.value, parentPageContext: la.value, parentConfigureObj: t3, jumpPageSetting: ta.value, columnProp: a3 }]);
|
|
257
262
|
}
|
|
258
|
-
}(a2, i2, n2)
|
|
263
|
+
}(a2, i2, n2);
|
|
264
|
+
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;
|
|
259
265
|
}
|
|
260
266
|
function Ra(e3) {
|
|
261
267
|
oe(na.value, e3).then((e4) => {
|