super-page-runtime 2.3.41 → 2.3.42-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/api-util.js +7 -4
- package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +22 -22
- package/dist/es/components/runtime/utils/events/event-util.js +142 -140
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +23 -23
- package/dist/es/components/runtime/utils/events/validator-util.js +69 -72
- package/dist/es/components/runtime/utils/page-init-util.js +41 -43
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- 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 +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +95 -100
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +95 -94
- 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/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -9
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +6 -7
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +47 -48
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -9
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +63 -63
- 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 +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +155 -150
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -6,160 +6,160 @@ import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/gl
|
|
|
6
6
|
import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as M } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as V, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as S, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
9
|
+
import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as B } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as H } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
|
|
14
|
-
const
|
|
14
|
+
const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
15
15
|
var _a, _b, _c;
|
|
16
|
-
const
|
|
17
|
-
null ==
|
|
18
|
-
let
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
16
|
+
const L2 = e2;
|
|
17
|
+
null == L2.configure.style && (L2.configure.style = {});
|
|
18
|
+
let k = null;
|
|
19
|
+
const D = w(L2.configure, L2.pageContext);
|
|
20
|
+
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = D);
|
|
21
|
+
const E = R(D || "true", L2.pageContext.systemCode), J = H(L2.pageContext, L2.configure), W = E && J;
|
|
22
|
+
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
|
|
23
23
|
let q = o(null), z = o(true), G = o("");
|
|
24
|
-
if (
|
|
24
|
+
if (L2.configure && L2.configure.props) {
|
|
25
25
|
let e3 = [];
|
|
26
|
-
((_a =
|
|
26
|
+
((_a = L2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof L2.configure.props.base.showConditions ? JSON.parse(L2.configure.props.base.showConditions) : L2.configure.props.base.showConditions), z = t(() => {
|
|
27
27
|
var _a2;
|
|
28
28
|
let o2 = true;
|
|
29
29
|
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
30
|
-
else if (
|
|
30
|
+
else if (O(L2.pageContext, L2.configure)) if (e3 && e3.length > 0) o2 = V(L2.pageContext, e3);
|
|
31
31
|
else {
|
|
32
|
-
const e4 = (_a2 =
|
|
32
|
+
const e4 = (_a2 = L2.configure.props.base) == null ? void 0 : _a2.state;
|
|
33
33
|
e4 && "hidden" === e4 && (o2 = false);
|
|
34
34
|
}
|
|
35
35
|
else o2 = false;
|
|
36
36
|
else o2 = false;
|
|
37
37
|
return o2;
|
|
38
38
|
});
|
|
39
|
-
if (
|
|
40
|
-
if (
|
|
39
|
+
if (L2.configure._dynamicShowFlag = z, (_b = L2.configure.props) == null ? void 0 : _b.hiddenNotValidator) {
|
|
40
|
+
if (L2.pageContext.hiddenNotValidatorCodes || (L2.pageContext.hiddenNotValidatorCodes = /* @__PURE__ */ new Set()), "table" === L2.configure.name) k = L2.configure.code ? L2.configure.code : L2.configure.uuid;
|
|
41
41
|
else {
|
|
42
|
-
let e4 = N(
|
|
43
|
-
|
|
42
|
+
let e4 = N(L2.configure);
|
|
43
|
+
k = e4 && e4.length > 0 ? e4[1] : null;
|
|
44
44
|
}
|
|
45
45
|
n(z, (e4) => {
|
|
46
|
-
e4 ?
|
|
46
|
+
e4 ? L2.pageContext.hiddenNotValidatorCodes.delete(k) : L2.pageContext.hiddenNotValidatorCodes.add(k);
|
|
47
47
|
}, { immediate: true });
|
|
48
48
|
}
|
|
49
|
-
if ((_c =
|
|
50
|
-
const e4 =
|
|
49
|
+
if ((_c = L2.configure.props.base) == null ? void 0 : _c.editConditions) {
|
|
50
|
+
const e4 = L2.configure.props.base.editConditions;
|
|
51
51
|
if (e4.length > 0) {
|
|
52
|
-
const o2 =
|
|
53
|
-
if (n2.rawSate = n2.state, S(
|
|
54
|
-
const e5 =
|
|
52
|
+
const o2 = L2.configure.runtime ? L2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
53
|
+
if (n2.rawSate = n2.state, S(L2.pageContext) && L2.pageContext.fieldPermissionMap) {
|
|
54
|
+
const e5 = L2.configure.props.base;
|
|
55
55
|
if (e5 && e5.prop) {
|
|
56
56
|
let o3 = e5.prop;
|
|
57
57
|
o3 = _(o3);
|
|
58
|
-
const t2 =
|
|
58
|
+
const t2 = L2.pageContext.fieldPermissionMap.get(o3);
|
|
59
59
|
t2 && false === t2.canEdit && (G.value = "disabled");
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
n2.state = t({ get() {
|
|
63
63
|
if ("disabled" === G.value) return G.value;
|
|
64
|
-
return V(
|
|
64
|
+
return V(L2.pageContext, e4) ? "" : "disabled";
|
|
65
65
|
}, set() {
|
|
66
66
|
} });
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
const I = o({});
|
|
71
|
-
I.value = i(h(
|
|
71
|
+
I.value = i(h(L2.configure.name));
|
|
72
72
|
const K = o(true);
|
|
73
73
|
null == I.value && (I.value = v, K.value = false);
|
|
74
|
-
const Q = o(null), U = o({}), X = o(""), Y = T(
|
|
74
|
+
const Q = o(null), U = o({}), X = o(""), Y = T(L2.configure);
|
|
75
75
|
Y && (X.value = Y);
|
|
76
|
-
const Z =
|
|
76
|
+
const Z = L2.configure.runtime && L2.configure.runtime.common ? L2.configure.runtime.common : {};
|
|
77
77
|
if (Z.class && (X.value += " " + Z.class), Z.style) {
|
|
78
78
|
Object.assign(U.value, Z.style);
|
|
79
|
-
const e3 =
|
|
79
|
+
const e3 = L2.pageContext && L2.pageContext.dimensions ? L2.pageContext.dimensions : b.PC, o2 = Z.style[e3 + "_style"];
|
|
80
80
|
o2 && Object.assign(U.value, o2);
|
|
81
81
|
const t2 = Z.style[e3 + "_class"];
|
|
82
82
|
t2 && (X.value += " " + t2);
|
|
83
83
|
}
|
|
84
|
-
const ee =
|
|
85
|
-
|
|
84
|
+
const ee = B();
|
|
85
|
+
let oe = false;
|
|
86
|
+
function te(e3) {
|
|
87
|
+
var _a2, _b2, _c2;
|
|
88
|
+
if (!e3) return;
|
|
86
89
|
if (Q.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
87
90
|
q.value = "show";
|
|
88
91
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
89
92
|
q.value = "hide";
|
|
90
93
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
91
|
-
return
|
|
92
|
-
}),
|
|
93
|
-
else if ("table" ===
|
|
94
|
-
else if (
|
|
95
|
-
const e4 =
|
|
94
|
+
return L2.configure;
|
|
95
|
+
}), L2.configure.uuid && x(L2.pageContext, L2.configure.uuid, Q), L2.configure.code) y(L2.pageContext, L2.configure.code, Q);
|
|
96
|
+
else if ("table" === L2.configure.name) y(L2.pageContext, L2.configure.uuid, Q);
|
|
97
|
+
else if (L2.configure.props && L2.configure.props.base) {
|
|
98
|
+
const e4 = L2.configure.props.base;
|
|
96
99
|
if (e4.prop) {
|
|
97
100
|
let o3 = e4.prop;
|
|
98
|
-
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(
|
|
101
|
+
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), y(L2.pageContext, o3, Q);
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
|
-
const o2 =
|
|
104
|
+
const o2 = L2.configure.props ? L2.configure.props.base : null;
|
|
102
105
|
if (o2 && o2.prop) {
|
|
103
106
|
let e4 = o2.prop;
|
|
104
|
-
e4 = _(e4), M(
|
|
107
|
+
e4 = _(e4), M(L2.pageContext, e4), L2.pageContext.propTitleMap = L2.pageContext.propTitleMap || {}, L2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
105
108
|
}
|
|
106
109
|
!function() {
|
|
107
110
|
if (!Q.value) return;
|
|
108
|
-
const e4 = A(
|
|
109
|
-
"table" !==
|
|
110
|
-
var
|
|
111
|
-
if (!(((
|
|
111
|
+
const e4 = A(L2.pageContext, L2.configure);
|
|
112
|
+
"table" !== L2.configure.name && e4 && e4.isCalcHeight && C(() => {
|
|
113
|
+
var _a3;
|
|
114
|
+
if (!(((_a3 = Q.value) == null ? void 0 : _a3.$el) || Q.value)) return;
|
|
112
115
|
const e5 = (o3 = 0) => {
|
|
113
116
|
if (!Q.value) return;
|
|
114
117
|
let t2 = Q.value.$el || Q.value;
|
|
115
118
|
if (!t2) return;
|
|
116
119
|
const n2 = t2.getBoundingClientRect();
|
|
117
|
-
null !==
|
|
120
|
+
null !== ie && Math.abs(n2.y - ie) < 1 ? ne() : o3 < 10 ? (ie = n2.y, re = setTimeout(() => {
|
|
118
121
|
e5(o3 + 1);
|
|
119
|
-
}, 50)) :
|
|
122
|
+
}, 50)) : ne();
|
|
120
123
|
};
|
|
121
|
-
|
|
124
|
+
ie = null, e5();
|
|
122
125
|
});
|
|
123
|
-
}();
|
|
126
|
+
}(), se(), oe || (oe = true, ee.countComponentsLoadedNumber(), ((_c2 = (_b2 = (_a2 = L2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c2.length) > 0 && ee.setAutoAnchorComponentConditions(L2.configure.uuid, L2.configure.props.base.autoAnchorConditions));
|
|
124
127
|
}
|
|
125
|
-
function
|
|
128
|
+
function ne() {
|
|
126
129
|
if (!Q.value) return;
|
|
127
130
|
let e3 = Q.value.$el;
|
|
128
131
|
e3 || (e3 = Q.value);
|
|
129
132
|
const o2 = e3.parentNode;
|
|
130
133
|
if (!e3 || !o2) return;
|
|
131
134
|
const t2 = e3.getBoundingClientRect();
|
|
132
|
-
let n2 = window.innerHeight - t2.y - 30;
|
|
133
|
-
|
|
134
|
-
let i2 = n2 + "";
|
|
135
|
-
if ("tabs" === k2.configure.name && k2.pageContext.isDialog && !F()) {
|
|
135
|
+
let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
|
|
136
|
+
if ("tabs" === L2.configure.name && L2.pageContext.isDialog && !F()) {
|
|
136
137
|
const o3 = e3.closest(".runtime-page-container");
|
|
137
138
|
if (o3) {
|
|
138
139
|
const e4 = o3.getBoundingClientRect(), r2 = t2.y - e4.y;
|
|
139
140
|
n2 = e4.height - r2 - 30, i2 = n2 + "px";
|
|
140
141
|
}
|
|
141
142
|
} else $(n2) && (i2 = n2 + "px");
|
|
142
|
-
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden",
|
|
143
|
+
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", L2.configure.sytle || (L2.configure.sytle = {}), L2.configure.sytle._heightStyle = i2;
|
|
143
144
|
}
|
|
144
145
|
r(() => {
|
|
145
|
-
|
|
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);
|
|
146
|
+
W && P(L2.configure) || ee.countComponentsLoadedNumber();
|
|
147
147
|
}), s(() => {
|
|
148
148
|
var _a2;
|
|
149
|
-
|
|
149
|
+
re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
|
|
150
150
|
});
|
|
151
|
-
let
|
|
152
|
-
const
|
|
151
|
+
let ie = null, re = null;
|
|
152
|
+
const se = () => {
|
|
153
153
|
if (!Q.value) return;
|
|
154
154
|
let e3 = Q.value.$el;
|
|
155
155
|
e3 || (e3 = Q.value);
|
|
156
156
|
const o2 = e3.parentNode;
|
|
157
157
|
if (!e3 || !o2) return;
|
|
158
|
-
const t2 =
|
|
158
|
+
const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
|
|
159
159
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
160
160
|
};
|
|
161
|
-
return (
|
|
161
|
+
return (e3, o2) => a(W) && a(P)(e3.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
162
162
|
} });
|
|
163
163
|
export {
|
|
164
|
-
|
|
164
|
+
L as default
|
|
165
165
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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 a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (
|
|
3
|
+
const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (o3, a2) => {
|
|
4
4
|
var _a;
|
|
5
|
-
return ((_a =
|
|
5
|
+
return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (n(), e(p, { key: 0, pageContext: o3.pageContext }, null, 8, ["pageContext"])) : t("", true);
|
|
6
6
|
} });
|
|
7
7
|
export {
|
|
8
8
|
a as default
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js
CHANGED
|
@@ -42,10 +42,10 @@ const h = { class: "opinion-box-table-wrapper" }, C = { class: "opinion-table" }
|
|
|
42
42
|
}, hide: function() {
|
|
43
43
|
I.pageContext.workflowOpinion && (W.value = false);
|
|
44
44
|
} };
|
|
45
|
-
return E2(G), (
|
|
45
|
+
return E2(G), (e3, n2) => {
|
|
46
46
|
var _a, _b, _c;
|
|
47
|
-
const
|
|
48
|
-
return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" } }, null, 512), ((_a =
|
|
47
|
+
const o2 = u("el-input");
|
|
48
|
+
return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" } }, null, 512), ((_a = e3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: c({ height: V.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (s(), v(d, { to: "body" }, [((_b = e3.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? x((s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: H, class: "opinion-fixed-bar", style: c(A.value) }, [w("div", h, [w("table", C, [w("tbody", null, [w("tr", null, [w("td", y, [((_c = e3.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", R, "*")) : f("", true), n2[2] || (n2[2] = g(" 处理意见 "))]), w("td", { class: m(["opinion-input-cell", _.value]) }, [k(o2, { ref_key: "opinionInputRef", ref: L, modelValue: z.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => z.value = e4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: n2[1] || (n2[1] = (e4) => {
|
|
49
49
|
I.pageContext.workflowOpinion && (I.pageContext.workflowOpinion.opinion = z.value.trim(), I.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
50
50
|
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)), [[b, W.value]]) : f("", true)]))], 64);
|
|
51
51
|
};
|
|
@@ -20,7 +20,7 @@ const g = { class: "dialog-footer" }, _ = e({ __name: "extract-workflow-runtime-
|
|
|
20
20
|
return w.props && (true === w.props.requireExtractTransactor && (h.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === w.props.isMustOpinion && (h.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }])), o(() => {
|
|
21
21
|
}), (e3, l2) => {
|
|
22
22
|
const o2 = a("el-icon"), s2 = a("el-input"), _3 = a("el-form-item"), x2 = a("el-form"), y2 = a("el-button"), w2 = a("el-dialog");
|
|
23
|
-
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() =>
|
|
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 {
|
|
@@ -37,7 +37,7 @@ const w = { class: "page-runtime-header-btn" }, V = { class: "dialog-footer" },
|
|
|
37
37
|
_(l3).then((e6) => {
|
|
38
38
|
e6.canExecute && (j.value = true);
|
|
39
39
|
});
|
|
40
|
-
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() =>
|
|
40
|
+
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => l2[7] || (l2[7] = [d("取消")])), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
|
|
41
41
|
};
|
|
42
42
|
} });
|
|
43
43
|
export {
|
|
@@ -25,7 +25,7 @@ const c = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
|
|
|
25
25
|
if (!o2 || o2.startsWith("initVal")) return;
|
|
26
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
27
|
}(t3), k.value.push(t3));
|
|
28
|
-
}), (
|
|
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))]));
|
|
29
29
|
} });
|
|
30
30
|
export {
|
|
31
31
|
l as default
|
|
@@ -7,12 +7,12 @@ import { initPageEvents as f } from "../utils/events/event-util.js";
|
|
|
7
7
|
import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
|
|
8
8
|
import { useI18n as C } from "vue-i18n";
|
|
9
9
|
const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartUuid: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
|
|
10
|
-
const { t: b2 } = C(), I = e2, U = t(true),
|
|
10
|
+
const { t: b2 } = C(), I = e2, U = t(true), w = t(false), H = t(null);
|
|
11
11
|
let x, A = t(null);
|
|
12
12
|
return I.chartUuid && c.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + I.chartUuid).then((e3) => {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
if (e3 && e3.designJson) {
|
|
15
|
-
|
|
15
|
+
H.value = {};
|
|
16
16
|
const t2 = JSON.parse(e3.designJson);
|
|
17
17
|
let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
|
|
18
18
|
if (a2) {
|
|
@@ -20,26 +20,26 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
|
|
|
20
20
|
e4[I.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[I.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[I.homeChartSettingUserId] });
|
|
21
21
|
}
|
|
22
22
|
const i2 = window.frameElement;
|
|
23
|
-
|
|
23
|
+
H.value = t2.chartJson, H.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (H.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
|
|
24
24
|
const n2 = { showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
|
|
25
|
-
if (((_a =
|
|
25
|
+
if (((_a = H.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = H.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
|
|
26
26
|
const e4 = n2.entity.page;
|
|
27
27
|
for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
|
|
28
28
|
}
|
|
29
|
-
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(
|
|
29
|
+
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(H.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
|
|
30
30
|
!function(e4, t3) {
|
|
31
31
|
if (!t3 || 0 == t3.length) return;
|
|
32
32
|
e4.initChartData = {}, e4.initChartData.data = h(e4.entity.data), e4.initChartData.page = h(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
|
|
33
33
|
}(A.value, [t2.initChartServiceConfigs]);
|
|
34
34
|
}, 200);
|
|
35
|
-
} else
|
|
35
|
+
} else w.value = true, U.value = false;
|
|
36
36
|
}).finally(() => {
|
|
37
37
|
U.value = false;
|
|
38
38
|
}), a(() => {
|
|
39
39
|
x && clearTimeout(x);
|
|
40
40
|
}), (e3, t2) => {
|
|
41
41
|
const a2 = i("loading");
|
|
42
|
-
return n((o(), r("div", y, [!U.value &&
|
|
42
|
+
return n((o(), r("div", y, [!U.value && H.value ? (o(), s(g, { key: 0, configure: H.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || H.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|
|
@@ -10,7 +10,6 @@ const d = ["src"], s = ["src"], g = e({ __name: "super-page-dialog", props: { pa
|
|
|
10
10
|
const e4 = JSON.parse(JSON.stringify(v.parentPageEventParams));
|
|
11
11
|
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(j.value, e4);
|
|
12
12
|
} catch (e4) {
|
|
13
|
-
console.error(e4);
|
|
14
13
|
}
|
|
15
14
|
null !== w.value && void 0 !== w.value || (w.value = v.parentPageEventParams.id);
|
|
16
15
|
}
|
|
@@ -3,6 +3,7 @@ import { PageDesign } from '../utils/interfaces/page-design-types';
|
|
|
3
3
|
|
|
4
4
|
declare function pickFileDone(data: any): void;
|
|
5
5
|
declare function uploadFileDone(data: any): void;
|
|
6
|
+
declare function uploadFileError(data: any): void;
|
|
6
7
|
declare function scanDone(data: any): void;
|
|
7
8
|
declare function getFormFormatData(): any;
|
|
8
9
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -61,6 +62,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
61
62
|
}>, {
|
|
62
63
|
pickFileDone: typeof pickFileDone;
|
|
63
64
|
uploadFileDone: typeof uploadFileDone;
|
|
65
|
+
uploadFileError: typeof uploadFileError;
|
|
64
66
|
scanDone: typeof scanDone;
|
|
65
67
|
getFormFormatData: typeof getFormFormatData;
|
|
66
68
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|