super-page-runtime 2.3.37-sit3 → 2.3.37-sit5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +47 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
- package/dist/es/components/runtime/utils/events/event-util.js +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +35 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +600 -588
- package/dist/es/components/runtime/utils/events/validator-util.js +154 -150
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +125 -120
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +16 -15
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +100 -95
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +67 -67
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +27 -23
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +22 -20
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -120
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -38
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +36 -35
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +55 -54
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +8 -6
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +41 -41
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +28 -27
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +25 -23
- 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 +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +35 -26
- package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +5 -4
- package/dist/es/components/runtime/views/super-page.vue2.js +191 -190
- package/dist/es/style.css +9 -9
- package/package.json +1 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import e from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { getAdditionalParamMap as t } from "./events/standard-event.js";
|
|
3
|
-
import { PageDimensions as
|
|
4
|
-
import { getFormPropName as i, getVariableValue as
|
|
3
|
+
import { PageDimensions as o } from "./interfaces/page-design-types.js";
|
|
4
|
+
import { getFormPropName as i, getVariableValue as n, formatVariableValue as r, setVariableValue as s } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as a } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as l } from "./api/page-expose-util.js";
|
|
7
|
-
import { isWorkflowPage as
|
|
7
|
+
import { isWorkflowPage as u, deepCopy as p } from "./common-util.js";
|
|
8
8
|
import { packageCustomValidator as d } from "./events/validator-util.js";
|
|
9
9
|
import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
|
|
10
10
|
function f(t2) {
|
|
11
|
-
return new Promise((
|
|
11
|
+
return new Promise((o2, i2) => {
|
|
12
12
|
(function(t3) {
|
|
13
13
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
|
|
14
14
|
})(t2).then((e2) => {
|
|
15
15
|
e2 ? b().then((t3) => {
|
|
16
16
|
t3 && (e2.systemParam = h(t3)), g(e2.listViewTableName, e2.listViewTablePublishVersion).then((t4) => {
|
|
17
|
-
t4 ? (e2.contextParam = h(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps,
|
|
17
|
+
t4 ? (e2.contextParam = h(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, o2(e2)) : o2(null);
|
|
18
18
|
});
|
|
19
19
|
}).catch(() => {
|
|
20
|
-
|
|
21
|
-
}) :
|
|
20
|
+
o2(e2);
|
|
21
|
+
}) : o2(null);
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function m(e2, t2) {
|
|
26
|
-
return new Promise((
|
|
27
|
-
e2 ? b().then((
|
|
28
|
-
|
|
29
|
-
e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids,
|
|
26
|
+
return new Promise((o2, i2) => {
|
|
27
|
+
e2 ? b().then((n2) => {
|
|
28
|
+
n2 && (e2.systemParam = h(n2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? T(e2, t2, e2.systemVersion).then((t3) => {
|
|
29
|
+
e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, o2(e2);
|
|
30
30
|
}).catch((e3) => {
|
|
31
|
-
i2(e3);
|
|
31
|
+
console.log("queryPageSuperGrids error", e3), i2(e3);
|
|
32
32
|
}) : g("", "").then((t3) => {
|
|
33
|
-
t3 ? (e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps,
|
|
33
|
+
t3 ? (e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, o2(e2)) : o2(null);
|
|
34
34
|
}).catch((e3) => {
|
|
35
|
-
i2(e3);
|
|
35
|
+
console.log("queryPageRuntimeParam error", e3), i2(e3);
|
|
36
36
|
});
|
|
37
|
-
}) :
|
|
37
|
+
}) : o2(null);
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function g(t2,
|
|
40
|
+
function g(t2, o2) {
|
|
41
41
|
let i2 = "";
|
|
42
|
-
return t2 &&
|
|
42
|
+
return t2 && o2 && (i2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + o2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + i2);
|
|
43
43
|
}
|
|
44
44
|
function b() {
|
|
45
45
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param");
|
|
@@ -49,12 +49,12 @@ function y(e2) {
|
|
|
49
49
|
if (null == e2) return null;
|
|
50
50
|
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: w(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
|
|
51
51
|
if (e2.props && e2.props.notIdInitializationList) {
|
|
52
|
-
let
|
|
53
|
-
"string" == typeof
|
|
52
|
+
let o2 = e2.props.notIdInitializationList;
|
|
53
|
+
"string" == typeof o2 && (o2 = JSON.parse(o2)), o2.length > 0 && (t2.notIdInitializationList = o2);
|
|
54
54
|
}
|
|
55
55
|
if (e2.variables) {
|
|
56
|
-
const
|
|
57
|
-
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ?
|
|
56
|
+
const o2 = t2.entity.page;
|
|
57
|
+
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? o2[t3.name] = [] : t3.defaultValue ? o2[t3.name] = t3.defaultValue : o2[t3.name] = void 0);
|
|
58
58
|
}
|
|
59
59
|
return function(e3) {
|
|
60
60
|
if (c()) {
|
|
@@ -64,8 +64,8 @@ function y(e2) {
|
|
|
64
64
|
} else e3.entity.page._isMobile = "false";
|
|
65
65
|
}(t2), Object.assign(t2, e2), t2.isWorkflowEntity = void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, t2.dimensions = function() {
|
|
66
66
|
const e3 = window.outerWidth;
|
|
67
|
-
if (!e3) return
|
|
68
|
-
return e3 > 768 ?
|
|
67
|
+
if (!e3) return o.PC;
|
|
68
|
+
return e3 > 768 ? o.PC : e3 > 414 ? o.IPAD : o.PHONE;
|
|
69
69
|
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
70
70
|
}
|
|
71
71
|
function h(e2) {
|
|
@@ -73,8 +73,8 @@ function h(e2) {
|
|
|
73
73
|
const t2 = function(e3) {
|
|
74
74
|
if (!e3) return e3;
|
|
75
75
|
try {
|
|
76
|
-
const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"),
|
|
77
|
-
return window.CryptoJS.AES.decrypt(e3, t3, { iv:
|
|
76
|
+
const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), o2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
|
|
77
|
+
return window.CryptoJS.AES.decrypt(e3, t3, { iv: o2, mode: window.CryptoJS.mode.CBC, padding: window.CryptoJS.pad.ZeroPadding }).toString(CryptoJS.enc.Utf8);
|
|
78
78
|
} catch (t3) {
|
|
79
79
|
return e3;
|
|
80
80
|
}
|
|
@@ -91,6 +91,7 @@ function w(e2) {
|
|
|
91
91
|
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
92
92
|
}), e2.props.judgeHeavyList) : null;
|
|
93
93
|
} catch (e3) {
|
|
94
|
+
console.error("getJudgeHeavyList error:", e3);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
function P(e2) {
|
|
@@ -101,12 +102,12 @@ function P(e2) {
|
|
|
101
102
|
}
|
|
102
103
|
if (t2 && t2.includes("?")) {
|
|
103
104
|
t2 = t2.substring(t2.lastIndexOf("?") + 1);
|
|
104
|
-
const
|
|
105
|
-
for (const t3 of
|
|
106
|
-
const
|
|
107
|
-
let i2 =
|
|
105
|
+
const o2 = t2.split("&");
|
|
106
|
+
for (const t3 of o2) {
|
|
107
|
+
const o3 = t3.split("=");
|
|
108
|
+
let i2 = o3[0];
|
|
108
109
|
if (i2) {
|
|
109
|
-
const t4 =
|
|
110
|
+
const t4 = o3.length > 1 ? o3[1] : "";
|
|
110
111
|
i2.indexOf("ai__") >= 0 && (i2 = i2.substring(i2.indexOf("ai__") + 4)), e2[i2] = t4;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
@@ -115,164 +116,168 @@ function P(e2) {
|
|
|
115
116
|
}
|
|
116
117
|
function E(e2, t2) {
|
|
117
118
|
if (e2) {
|
|
118
|
-
Object.assign(t2, e2);
|
|
119
|
-
|
|
119
|
+
console.log("packageAdditionalMapWithPageRequest----pageRequest=", e2), Object.assign(t2, e2);
|
|
120
|
+
v(e2.paramStoreId, t2), delete e2.paramStoreId, console.log("packageAdditionalMapWithPageRequest----requestObj=", t2), e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
-
if (
|
|
124
|
-
Object.assign(t2, e2.query)
|
|
125
|
-
|
|
123
|
+
function k(e2, t2) {
|
|
124
|
+
if (console.log("packageAdditionalMapWithRoute----route=", e2), e2) {
|
|
125
|
+
if (e2.params && Object.assign(t2, e2.params), console.log("packageAdditionalMapWithRoute----route.query=", e2.query), e2.query) {
|
|
126
|
+
Object.assign(t2, e2.query);
|
|
127
|
+
v(e2.query.paramStoreId, t2);
|
|
128
|
+
}
|
|
129
|
+
console.log("packageAdditionalMapWithRoute----requestObj=", t2);
|
|
126
130
|
}
|
|
127
131
|
}
|
|
128
|
-
function
|
|
132
|
+
function v(e2, t2) {
|
|
129
133
|
if (e2) {
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
132
|
-
const e3 = JSON.parse(
|
|
133
|
-
Object.assign(t2, e3);
|
|
134
|
+
const o2 = a(e2);
|
|
135
|
+
if (o2) {
|
|
136
|
+
const e3 = JSON.parse(o2);
|
|
137
|
+
Object.assign(t2, e3), console.log("已获取到附加参数", e3);
|
|
134
138
|
}
|
|
135
139
|
}
|
|
136
140
|
}
|
|
137
|
-
function
|
|
138
|
-
let
|
|
139
|
-
t2 || (
|
|
140
|
-
let
|
|
141
|
-
return t2 && !t2.startsWith("${") ?
|
|
141
|
+
function A(e2, t2) {
|
|
142
|
+
let o2, i2 = t2;
|
|
143
|
+
t2 || (o2 = e2.props.base ? e2.props.base : {}, i2 = o2.prop);
|
|
144
|
+
let n2 = null;
|
|
145
|
+
return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), n2 = i2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
|
|
142
146
|
}
|
|
143
|
-
function
|
|
147
|
+
function M(e2, t2, o2) {
|
|
144
148
|
var _a, _b;
|
|
145
|
-
const i2 =
|
|
146
|
-
if (null ==
|
|
147
|
-
let
|
|
148
|
-
t2 && (
|
|
149
|
-
const l2 =
|
|
149
|
+
const i2 = A(t2, o2), r2 = e2.entity;
|
|
150
|
+
if (null == r2.data.ID && null == r2.data.id) {
|
|
151
|
+
let o3, s2, a2 = false;
|
|
152
|
+
t2 && (o3 = t2.props.base ? t2.props.base : {}, s2 = t2.name, a2 = o3.multiple);
|
|
153
|
+
const l2 = n(r2, i2);
|
|
150
154
|
if (null == l2) {
|
|
151
|
-
const
|
|
152
|
-
if (
|
|
153
|
-
const t3 =
|
|
154
|
-
if (
|
|
155
|
-
else if (((_b =
|
|
156
|
-
const t4 =
|
|
157
|
-
for (let
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
160
|
-
|
|
155
|
+
const n2 = o3 ? o3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
|
|
156
|
+
if (n2) try {
|
|
157
|
+
const t3 = I(e2, n2, s2, a2);
|
|
158
|
+
if (C(t3)) R(r2, i2, t3, l3);
|
|
159
|
+
else if (((_b = o3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
|
|
160
|
+
const t4 = o3.moreDefaultValue;
|
|
161
|
+
for (let o4 = 0; o4 < t4.length; o4++) {
|
|
162
|
+
const n3 = I(e2, t4[o4], s2, a2);
|
|
163
|
+
if (C(n3)) {
|
|
164
|
+
R(r2, i2, n3, l3);
|
|
161
165
|
break;
|
|
162
166
|
}
|
|
163
167
|
}
|
|
164
168
|
}
|
|
165
169
|
} catch (e3) {
|
|
170
|
+
console.error("设置默认值出错:", i2, e3);
|
|
166
171
|
}
|
|
167
172
|
}
|
|
168
173
|
}
|
|
169
174
|
return i2;
|
|
170
175
|
}
|
|
171
|
-
function
|
|
176
|
+
function C(e2) {
|
|
172
177
|
return null != e2 && "" !== e2;
|
|
173
178
|
}
|
|
174
|
-
function
|
|
175
|
-
!Array.isArray(
|
|
179
|
+
function R(e2, t2, o2, i2) {
|
|
180
|
+
!Array.isArray(o2) || i2 ? s(e2, t2, o2) : s(e2, t2, o2.join(","));
|
|
176
181
|
}
|
|
177
|
-
function
|
|
178
|
-
let
|
|
179
|
-
if (t2 && (
|
|
182
|
+
function I(e2, t2, o2, i2) {
|
|
183
|
+
let n2;
|
|
184
|
+
if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && o2)) {
|
|
180
185
|
let e3 = false;
|
|
181
|
-
"checkbox" ==
|
|
186
|
+
"checkbox" == o2 ? e3 = true : "select" == o2 && (e3 = i2), e3 && (n2 = (n2 + "").split(","));
|
|
182
187
|
}
|
|
183
|
-
return
|
|
188
|
+
return n2;
|
|
184
189
|
}
|
|
185
190
|
function j(e2, t2) {
|
|
186
191
|
var _a, _b;
|
|
187
192
|
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
188
|
-
const
|
|
189
|
-
if (e2.autoPermissions) for (const i2 of e2.autoPermissions)
|
|
193
|
+
const o2 = [];
|
|
194
|
+
if (e2.autoPermissions) for (const i2 of e2.autoPermissions) o2.push(t2.code + "." + i2.simpleCode);
|
|
190
195
|
if (e2.functionCodes) {
|
|
191
|
-
const i2 = e2.sourceTypes ? e2.sourceTypes : [],
|
|
192
|
-
for (let e3 = 0; e3 <
|
|
193
|
-
const
|
|
196
|
+
const i2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
|
|
197
|
+
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
198
|
+
const r2 = n2[e3], s2 = e3 < i2.length ? i2[e3] : "";
|
|
194
199
|
let a2 = "";
|
|
195
|
-
if ("service" ==
|
|
196
|
-
else if ("standard" ===
|
|
200
|
+
if ("service" == s2) a2 = r2;
|
|
201
|
+
else if ("standard" === s2) a2 = t2.code + "." + r2;
|
|
197
202
|
else {
|
|
198
|
-
a2 = "custom" === O(
|
|
203
|
+
a2 = "custom" === O(r2, t2).type ? r2 : t2.code + "." + r2;
|
|
199
204
|
}
|
|
200
|
-
|
|
205
|
+
o2.includes(a2) || o2.push(a2);
|
|
201
206
|
}
|
|
202
207
|
}
|
|
203
|
-
return
|
|
208
|
+
return o2.join(",");
|
|
204
209
|
}
|
|
205
210
|
function O(e2, t2) {
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
208
|
-
for (let t3 = 0; t3 <
|
|
211
|
+
const o2 = t2.pagePermissions;
|
|
212
|
+
if (o2 && o2.length > 0) {
|
|
213
|
+
for (let t3 = 0; t3 < o2.length; t3++) if (o2[t3].simpleCode === e2) return o2[t3];
|
|
209
214
|
}
|
|
210
215
|
return null;
|
|
211
216
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
217
|
+
function T(o2, i2, n2) {
|
|
218
|
+
const r2 = o2.tableRuntimes, s2 = t(i2);
|
|
214
219
|
let a2;
|
|
215
|
-
const l2 =
|
|
216
|
-
return
|
|
220
|
+
const l2 = o2.code;
|
|
221
|
+
return s2 && Object.keys(s2) > 0 && (a2 = JSON.stringify(s2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: r2, additionalParamMapJson: a2, pageCode: l2, publishVersion: n2, pageType: o2.pageType });
|
|
217
222
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
223
|
+
const q = ["button-detail", "print-label"];
|
|
224
|
+
function W(e2, t2, o2) {
|
|
220
225
|
var _a, _b;
|
|
221
|
-
const
|
|
222
|
-
let
|
|
223
|
-
if (
|
|
224
|
-
const
|
|
225
|
-
false === (
|
|
226
|
+
const n2 = t2.props && t2.props.base ? t2.props.base.prop : null, r2 = u(e2);
|
|
227
|
+
let s2 = false;
|
|
228
|
+
if (r2 && q.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
229
|
+
const o3 = e2.fieldPermissionMap.get("all_fields");
|
|
230
|
+
false === (o3 == null ? void 0 : o3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", s2 = true);
|
|
226
231
|
}
|
|
227
|
-
if (
|
|
228
|
-
const a2 = i(
|
|
232
|
+
if (n2) {
|
|
233
|
+
const a2 = i(n2);
|
|
229
234
|
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[a2] || (e2.rules[a2] = []), t2.props.rules.forEach((e3) => {
|
|
230
|
-
d(e3), !
|
|
231
|
-
}), e2.rules[a2] = t2.props.rules),
|
|
235
|
+
d(e3), !o2 && e3 && e3.required && (e3.required = false);
|
|
236
|
+
}), e2.rules[a2] = t2.props.rules), r2 && !s2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
232
237
|
const i2 = e2.fieldPermissionMap.get(a2);
|
|
233
|
-
if (!
|
|
238
|
+
if (!o2 && e2.workflowRules && (e2.workflowRules[a2] || e2.workflowRules.rules && e2.workflowRules.rules[a2])) {
|
|
234
239
|
let t3 = e2.workflowRules[a2];
|
|
235
240
|
if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[a2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
|
|
236
|
-
const
|
|
237
|
-
if (
|
|
238
|
-
|
|
241
|
+
const o3 = t3[e3];
|
|
242
|
+
if (o3 && o3.required) {
|
|
243
|
+
o3.required = false;
|
|
239
244
|
break;
|
|
240
245
|
}
|
|
241
246
|
}
|
|
242
247
|
else t3 && t3.required && (t3.required = false);
|
|
243
248
|
}
|
|
244
|
-
t2.runtime.props || (t2.runtime.props = {}), i2 ? (!
|
|
249
|
+
t2.runtime.props || (t2.runtime.props = {}), i2 ? (!o2 && i2.canEdit && (i2.canEdit = false), false === i2.canEdit ? t2.runtime.props.state = "disabled" : i2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
|
|
245
250
|
}
|
|
246
251
|
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
|
|
247
252
|
}
|
|
248
253
|
}
|
|
249
|
-
function
|
|
254
|
+
function x(e2, t2) {
|
|
250
255
|
if (e2.initInfo) {
|
|
251
|
-
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((
|
|
252
|
-
const i2 = e2.initInfo[
|
|
253
|
-
if (i2) if ("dynamicControlFormEdit" ===
|
|
254
|
-
let
|
|
255
|
-
if (
|
|
256
|
-
const e3 =
|
|
257
|
-
e3.name = t2,
|
|
256
|
+
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((o2) => {
|
|
257
|
+
const i2 = e2.initInfo[o2];
|
|
258
|
+
if (i2) if ("dynamicControlFormEdit" === o2) {
|
|
259
|
+
let o3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
260
|
+
if (o3 && o3.length > 0 && (o3 = o3.filter((e3) => "_all_fields" === e3.name), o3 && o3.length > 0)) {
|
|
261
|
+
const e3 = p(o3[0]);
|
|
262
|
+
e3.name = t2, o3 = [e3];
|
|
258
263
|
}
|
|
259
|
-
l.dynamicControlFormEdit(e2,
|
|
260
|
-
} else "disableElement" ===
|
|
264
|
+
l.dynamicControlFormEdit(e2, o3, false);
|
|
265
|
+
} else "disableElement" === o2 ? i2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === o2 ? i2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === o2 ? i2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === o2 && i2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
|
|
261
266
|
});
|
|
262
267
|
}
|
|
263
268
|
}
|
|
264
269
|
export {
|
|
265
|
-
|
|
270
|
+
x as controlObjectRenderState,
|
|
266
271
|
y as convertToPageContext,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
272
|
+
I as getDefaultValue,
|
|
273
|
+
M as getFormModelFields,
|
|
274
|
+
A as getModelFields,
|
|
270
275
|
j as getPermissionCodes,
|
|
271
276
|
P as packageAdditionalMapWithLocationSearch,
|
|
272
277
|
E as packageAdditionalMapWithPageRequest,
|
|
273
|
-
|
|
274
|
-
|
|
278
|
+
k as packageAdditionalMapWithRoute,
|
|
279
|
+
W as packageFormRules,
|
|
275
280
|
f as queryPageDesignByCode,
|
|
276
281
|
m as queryPageDesignWhenPreview,
|
|
277
|
-
|
|
282
|
+
T as queryPageSuperGrids
|
|
278
283
|
};
|
|
@@ -2,50 +2,50 @@ import { ref as e, nextTick as o } from "vue";
|
|
|
2
2
|
import { defineStore as t } from "pinia";
|
|
3
3
|
import n from "./eventBus.js";
|
|
4
4
|
const u = t("pageContextUtil", () => {
|
|
5
|
-
const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false),
|
|
6
|
-
let
|
|
7
|
-
function
|
|
8
|
-
|
|
5
|
+
const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false), l = e(false), i = e([]), r = e(0), s = e(0);
|
|
6
|
+
let d = null, c = -1, v = -1, m = 0;
|
|
7
|
+
function p() {
|
|
8
|
+
d && clearTimeout(d), d = setTimeout(() => {
|
|
9
9
|
o(() => {
|
|
10
10
|
!function() {
|
|
11
11
|
const e2 = r.value, o2 = s.value;
|
|
12
|
-
if (m++, m >= 100) return void (e2 > 0 && e2 === o2 &&
|
|
12
|
+
if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && f(true));
|
|
13
13
|
if (e2 > 0 && e2 === o2) {
|
|
14
|
-
if (e2 === c && o2 ===
|
|
15
|
-
c = e2,
|
|
16
|
-
} else c = -1,
|
|
14
|
+
if (e2 === c && o2 === v && !u2.value) return console.log(`pageComponentsLoaded: total=${e2}, loaded=${o2}, checkCount=${m}`), void f(true);
|
|
15
|
+
c = e2, v = o2, p();
|
|
16
|
+
} else c = -1, v = -1, p();
|
|
17
17
|
}();
|
|
18
18
|
});
|
|
19
19
|
}, 30);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function f(e2) {
|
|
22
22
|
u2.value = e2, C();
|
|
23
23
|
}
|
|
24
24
|
function C() {
|
|
25
|
-
u2.value && a.value && !
|
|
25
|
+
u2.value && a.value && !l.value && (n.$emit("pageLoaded"), l.value = true);
|
|
26
26
|
}
|
|
27
27
|
return { pageContext: t2, setPageContext: function(e2) {
|
|
28
28
|
t2.value = e2;
|
|
29
29
|
}, countComponentsTotalNmber: function() {
|
|
30
|
-
r.value++, u2.value = false,
|
|
30
|
+
r.value++, u2.value = false, l.value = false;
|
|
31
31
|
}, countComponentsLoadedNumber: function() {
|
|
32
|
-
s.value++,
|
|
33
|
-
}, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded:
|
|
32
|
+
s.value++, p();
|
|
33
|
+
}, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: f, setFormPageDataLoadState: function(e2) {
|
|
34
34
|
a.value = e2, C();
|
|
35
35
|
}, formPageDataLoaded: a, pageComponentsLoaded: u2, restorePageLoadState: function() {
|
|
36
|
-
u2.value = false, a.value = false,
|
|
37
|
-
}, pageLoaded:
|
|
38
|
-
return
|
|
36
|
+
u2.value = false, a.value = false, l.value = false;
|
|
37
|
+
}, pageLoaded: l, getPageLoaded: function() {
|
|
38
|
+
return l.value;
|
|
39
39
|
}, setPageLoaded: function(e2) {
|
|
40
|
-
|
|
40
|
+
l.value = e2;
|
|
41
41
|
}, setAutoAnchorComponentConditions: function(e2, o2) {
|
|
42
|
-
|
|
42
|
+
i.value.push({ uuid: e2, conditions: o2 });
|
|
43
43
|
}, getAutoAnchorComponentConditions: function() {
|
|
44
|
-
return
|
|
44
|
+
return i.value;
|
|
45
45
|
}, resetAutoAnchorComponentConditions: function() {
|
|
46
|
-
|
|
46
|
+
i.value = [];
|
|
47
47
|
}, resetComponentCounters: function() {
|
|
48
|
-
r.value = 0, s.value = 0, u2.value = false,
|
|
48
|
+
r.value = 0, s.value = 0, u2.value = false, l.value = false, c = -1, v = -1, m = 0, d && (clearTimeout(d), d = null);
|
|
49
49
|
} };
|
|
50
50
|
});
|
|
51
51
|
export {
|
|
@@ -8,7 +8,7 @@ import { ExpressionEvaluator as r } from "../views/assemblys/chart/table/chart-t
|
|
|
8
8
|
import { getFormPropName as u } from "./page-helper-util.js";
|
|
9
9
|
function a(t2) {
|
|
10
10
|
const e2 = t2.pageContext && t2.pageContext.code;
|
|
11
|
-
o.$emit(e2 + "_open-dialog", t2);
|
|
11
|
+
console.log("弹框显示页面--popupToPage====params=", t2), o.$emit(e2 + "_open-dialog", t2);
|
|
12
12
|
}
|
|
13
13
|
function p(t2, e2) {
|
|
14
14
|
const o2 = t2.tableName;
|
|
@@ -18,7 +18,7 @@ function p(t2, e2) {
|
|
|
18
18
|
}
|
|
19
19
|
function l(t2, e2, o2, i2) {
|
|
20
20
|
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
21
|
-
r2 && u2 && u2.forEach((e3) => {
|
|
21
|
+
console.log("configure.btnList===", e2.btnList, "configure====", e2), r2 && u2 && u2.forEach((e3) => {
|
|
22
22
|
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
23
23
|
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
24
24
|
const o3 = n(e3, t2);
|
|
@@ -73,7 +73,7 @@ function b(o2, n2, i2) {
|
|
|
73
73
|
const s2 = t(o2, i2);
|
|
74
74
|
return e.get(s2 + "/common/last-unread-file-task/" + n2);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function g(o2, n2, i2) {
|
|
77
77
|
const s2 = t(o2, i2);
|
|
78
78
|
return e.put(s2 + "/common/file-task-read/" + n2);
|
|
79
79
|
}
|
|
@@ -85,5 +85,5 @@ export {
|
|
|
85
85
|
m as isHasFieldAuth,
|
|
86
86
|
f as isHasFieldPermissionAuth,
|
|
87
87
|
a as popupToPage,
|
|
88
|
-
|
|
88
|
+
g as setFileTaskRead
|
|
89
89
|
};
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as i, normalizeStyle as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as i, normalizeStyle as l, unref as s, withDirectives as u, createVNode as c, vShow as p } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as m, clearChartSelected as h, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as v, updateChartDatasources as x, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { updateChartOption as
|
|
5
|
-
import { doClickJumpPageEvent as
|
|
4
|
+
import { updateChartOption as k } from "../../../../utils/charts/chart-columnline-util.js";
|
|
5
|
+
import { doClickJumpPageEvent as I } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import y from "../common/common-chart-header.vue.js";
|
|
7
7
|
import { use as R } from "echarts/core";
|
|
8
8
|
import { CanvasRenderer as j } from "echarts/renderers";
|
|
@@ -18,11 +18,14 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
18
18
|
"clearDrill" == F ? U.value && U.value.closeDrill && U.value.closeDrill(0) : "clickEvent" === F && Z(e3);
|
|
19
19
|
}
|
|
20
20
|
function Z(e3) {
|
|
21
|
-
if (e3.seriesIndex >= Q.series.length) return;
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
if (console.log("clik0", e3), e3.seriesIndex >= Q.series.length) return;
|
|
22
|
+
console.log("clik1", e3);
|
|
23
|
+
const r2 = Q.series[e3.seriesIndex].uuid;
|
|
24
|
+
console.log("clik2", r2);
|
|
25
|
+
const o2 = B[r2];
|
|
26
|
+
if (console.log("clik3", o2), !o2) return;
|
|
24
27
|
const t2 = { data: e3.data, dataIndex: e3.dataIndex, name: e3.name, seriesId: e3.seriesId, seriesIndex: e3.seriesIndex, seriesName: e3.seriesName, seriesType: e3.seriesType, value: e3.value };
|
|
25
|
-
|
|
28
|
+
I(H.pageContext, o2, t2);
|
|
26
29
|
}
|
|
27
30
|
g(H.configure, Q), o(() => {
|
|
28
31
|
const e3 = v(H.pageContext, H.configure);
|
|
@@ -32,7 +35,7 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
32
35
|
});
|
|
33
36
|
let $ = M.groupValue;
|
|
34
37
|
function ee(e3) {
|
|
35
|
-
L
|
|
38
|
+
L ? (true !== e3 && (L.autoRefresh = true), x(H.pageContext, [L], M.drillParams)) : console.log("无数据源配置,不需要查询!");
|
|
36
39
|
}
|
|
37
40
|
t(M, () => {
|
|
38
41
|
$ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
|
|
@@ -40,13 +43,14 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
40
43
|
const re = M.monitorFields;
|
|
41
44
|
function oe(e3) {
|
|
42
45
|
var _a;
|
|
43
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender
|
|
46
|
+
if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
|
|
47
|
+
e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && z || h(H.pageContext, H.configure, (_a = S.value) == null ? void 0 : _a.chart), L.autoRefresh = false, k(H.pageContext, H.configure, Q, e3), S.value && S.value.setOption(Q, true);
|
|
44
48
|
}
|
|
45
49
|
return C(H.pageContext, re, () => {
|
|
46
50
|
ee(true);
|
|
47
51
|
}), A2({ updateChartDatas: oe, exportChart: function() {
|
|
48
52
|
return d(S.value, M);
|
|
49
|
-
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style:
|
|
53
|
+
}, chartOption: Q }), (e3, r2) => (a(), n("div", { style: l(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [u(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(E), { ref_key: "chartRef", ref: S, class: "amb-chart-content", theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
50
54
|
} });
|
|
51
55
|
export {
|
|
52
56
|
A as default
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as
|
|
2
|
-
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
})
|
|
1
|
+
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as n, Fragment as d, renderList as p } from "vue";
|
|
2
|
+
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(e2) {
|
|
3
|
+
const t2 = e2;
|
|
4
|
+
return l(t2.headerInfo, () => {
|
|
5
|
+
console.log("props.headerInfo", t2.headerInfo);
|
|
6
|
+
}), (l2, t3) => {
|
|
7
|
+
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), I = o("el-radio-button"), V = o("el-radio-group");
|
|
8
|
+
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[0] || (t3[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(d, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[1] || (t3[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(V, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[2] || (t3[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(I, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
9
|
+
};
|
|
10
|
+
} });
|
|
7
11
|
export {
|
|
8
12
|
t as default
|
|
9
13
|
};
|