super-page-runtime 2.3.16-sit3 → 2.3.16
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 +50 -50
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +10 -10
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +100 -129
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- 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 +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- 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 +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- 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 +2 -0
- 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 +1 -1
- 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 +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +9 -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 +37 -37
- 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 +4 -4
- 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 +38 -37
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -3
- 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 +1 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -3
- 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 +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 +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +74 -73
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,79 +1,49 @@
|
|
|
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
|
|
3
|
+
import { PageDimensions as s } from "./interfaces/page-design-types.js";
|
|
4
|
+
import { getFormPropName as i, getVariableValue as o, setVariableValue as n, formatVariableValue as r } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as a } from "./api/page-expose-util.js";
|
|
7
7
|
import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
|
|
8
8
|
import { packageCustomValidator as d } from "./events/validator-util.js";
|
|
9
|
-
import { isMobileBrowser as
|
|
10
|
-
function
|
|
11
|
-
return
|
|
12
|
-
(function(t3) {
|
|
13
|
-
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t3);
|
|
14
|
-
})(t2).then((t3) => {
|
|
15
|
-
t3 ? e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param").then((n3) => {
|
|
16
|
-
n3 && (t3.systemParam = g(n3)), function(t4, i3) {
|
|
17
|
-
let n4 = "";
|
|
18
|
-
t4 && i3 && (n4 = "?listViewTableName=" + t4 + "&listViewTablePublishVersion=" + i3);
|
|
19
|
-
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + n4);
|
|
20
|
-
}(t3.listViewTableName, t3.listViewTablePublishVersion).then((e2) => {
|
|
21
|
-
e2 ? (t3.contextParam = g(e2.contextParam), t3.branchFieldAuth = e2.branchFieldAuth, t3.isWorkflowEntity = e2.isWorkflowEntity, t3.dataTypeMaps = e2.dataTypeMaps, i2(t3)) : i2(null);
|
|
22
|
-
});
|
|
23
|
-
}) : i2(null);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
9
|
+
import { isMobileBrowser as f } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
+
function c(t2) {
|
|
11
|
+
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t2);
|
|
26
12
|
}
|
|
27
13
|
function m(e2) {
|
|
28
14
|
var _a, _b, _c;
|
|
29
15
|
if (null == e2) return null;
|
|
30
|
-
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:
|
|
16
|
+
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: g(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, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
|
|
31
17
|
if (e2.props && e2.props.notIdInitializationList) {
|
|
32
|
-
let
|
|
33
|
-
"string" == typeof
|
|
18
|
+
let s2 = e2.props.notIdInitializationList;
|
|
19
|
+
"string" == typeof s2 && (s2 = JSON.parse(s2)), s2.length > 0 && (t2.notIdInitializationList = s2);
|
|
34
20
|
}
|
|
35
21
|
if (e2.variables) {
|
|
36
|
-
const
|
|
37
|
-
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ?
|
|
22
|
+
const s2 = t2.entity.page;
|
|
23
|
+
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? s2[t3.name] = [] : t3.defaultValue ? s2[t3.name] = t3.defaultValue : s2[t3.name] = void 0);
|
|
38
24
|
}
|
|
39
25
|
return function(e3) {
|
|
40
|
-
if (
|
|
26
|
+
if (f()) {
|
|
41
27
|
e3.entity.page._isMobile = "true";
|
|
42
28
|
const t3 = navigator ? navigator.userAgent : null;
|
|
43
29
|
t3 ? t3.indexOf(" uni-app ") > 0 ? (e3.entity.page._isMobileApp = "true", e3.entity.page._isMobileBrowser = "false") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "true") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "false");
|
|
44
30
|
} else e3.entity.page._isMobile = "false";
|
|
45
31
|
}(t2), Object.assign(t2, e2), t2.dimensions = function() {
|
|
46
32
|
const e3 = window.outerWidth;
|
|
47
|
-
if (!e3) return
|
|
48
|
-
return e3 > 768 ?
|
|
33
|
+
if (!e3) return s.PC;
|
|
34
|
+
return e3 > 768 ? s.PC : e3 > 414 ? s.IPAD : s.PHONE;
|
|
49
35
|
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
50
36
|
}
|
|
51
37
|
function g(e2) {
|
|
52
|
-
try {
|
|
53
|
-
const t2 = function(e3) {
|
|
54
|
-
if (!e3) return e3;
|
|
55
|
-
try {
|
|
56
|
-
const t3 = window.CryptoJS.enc.Latin1.parse("qwertyuasdfgh456"), i2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
|
|
57
|
-
return window.CryptoJS.AES.decrypt(e3, t3, { iv: i2, mode: window.CryptoJS.mode.CBC, padding: window.CryptoJS.pad.ZeroPadding }).toString(CryptoJS.enc.Utf8);
|
|
58
|
-
} catch (t3) {
|
|
59
|
-
return e3;
|
|
60
|
-
}
|
|
61
|
-
}(e2);
|
|
62
|
-
if (!t2) return {};
|
|
63
|
-
return JSON.parse(t2);
|
|
64
|
-
} catch (t2) {
|
|
65
|
-
return e2;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function b(e2) {
|
|
69
38
|
try {
|
|
70
39
|
return e2.props && e2.props.judgeHeavyList.length > 0 ? (e2.props.judgeHeavyList.forEach((e3) => {
|
|
71
40
|
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
72
41
|
}), e2.props.judgeHeavyList) : null;
|
|
73
42
|
} catch (e3) {
|
|
43
|
+
console.error("getJudgeHeavyList error:", e3);
|
|
74
44
|
}
|
|
75
45
|
}
|
|
76
|
-
function
|
|
46
|
+
function b(e2) {
|
|
77
47
|
let t2 = decodeURI(window.location.href);
|
|
78
48
|
try {
|
|
79
49
|
window.top && !Array.isArray(window.top) && (t2 = decodeURI(window.top.location.href));
|
|
@@ -81,13 +51,13 @@ function w(e2) {
|
|
|
81
51
|
}
|
|
82
52
|
if (t2 && t2.includes("?")) {
|
|
83
53
|
t2 = t2.substring(t2.lastIndexOf("?") + 1);
|
|
84
|
-
const
|
|
85
|
-
for (const t3 of
|
|
86
|
-
const
|
|
87
|
-
let
|
|
88
|
-
if (
|
|
89
|
-
const t4 =
|
|
90
|
-
|
|
54
|
+
const s2 = t2.split("&");
|
|
55
|
+
for (const t3 of s2) {
|
|
56
|
+
const s3 = t3.split("=");
|
|
57
|
+
let i2 = s3[0];
|
|
58
|
+
if (i2) {
|
|
59
|
+
const t4 = s3.length > 1 ? s3[1] : "";
|
|
60
|
+
i2.indexOf("ai__") >= 0 && (i2 = i2.substring(i2.indexOf("ai__") + 4)), e2[i2] = t4;
|
|
91
61
|
}
|
|
92
62
|
}
|
|
93
63
|
}
|
|
@@ -96,156 +66,157 @@ function w(e2) {
|
|
|
96
66
|
function y(e2, t2) {
|
|
97
67
|
if (e2) {
|
|
98
68
|
Object.assign(t2, e2);
|
|
99
|
-
|
|
69
|
+
w(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
100
70
|
}
|
|
101
71
|
}
|
|
102
72
|
function h(e2, t2) {
|
|
103
|
-
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
73
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
|
|
104
74
|
Object.assign(t2, e2.query);
|
|
105
|
-
|
|
75
|
+
w(e2.query.paramStoreId, t2);
|
|
106
76
|
}
|
|
107
77
|
}
|
|
108
|
-
function
|
|
78
|
+
function w(e2, t2) {
|
|
109
79
|
if (e2) {
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
112
|
-
const e3 = JSON.parse(
|
|
80
|
+
const s2 = l(e2);
|
|
81
|
+
if (s2) {
|
|
82
|
+
const e3 = JSON.parse(s2);
|
|
113
83
|
Object.assign(t2, e3);
|
|
114
84
|
}
|
|
115
85
|
}
|
|
116
86
|
}
|
|
117
87
|
function E(e2, t2) {
|
|
118
|
-
let
|
|
119
|
-
t2 || (
|
|
120
|
-
let
|
|
121
|
-
return t2 && !t2.startsWith("${") ?
|
|
88
|
+
let s2, i2 = t2;
|
|
89
|
+
t2 || (s2 = e2.props.base ? e2.props.base : {}, i2 = s2.prop);
|
|
90
|
+
let o2 = null;
|
|
91
|
+
return t2 && !t2.startsWith("${") ? o2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), o2 = i2.split("."), e2 && o2.length < 2 && (o2 = [e2.uuid])) : e2 && (o2 = ["page", e2.uuid]) : o2 = ["page", e2.uuid], o2 || e2 ? o2 : ["temp"];
|
|
122
92
|
}
|
|
123
|
-
function v(e2, t2,
|
|
93
|
+
function v(e2, t2, s2) {
|
|
124
94
|
var _a;
|
|
125
|
-
const
|
|
95
|
+
const i2 = E(t2, s2), r2 = e2.entity;
|
|
126
96
|
if (null == r2.data.ID && null == r2.data.id) {
|
|
127
|
-
let
|
|
128
|
-
t2 && (
|
|
129
|
-
const p2 =
|
|
97
|
+
let s3, l2, a2 = false;
|
|
98
|
+
t2 && (s3 = t2.props.base ? t2.props.base : {}, l2 = t2.name, a2 = s3.multiple);
|
|
99
|
+
const p2 = o(r2, i2);
|
|
130
100
|
if (null == p2) {
|
|
131
|
-
const t3 =
|
|
101
|
+
const t3 = s3 ? s3.defaultValue : null;
|
|
132
102
|
if (t3) try {
|
|
133
|
-
const
|
|
134
|
-
if (null !=
|
|
135
|
-
else if (((_a =
|
|
136
|
-
const t4 =
|
|
137
|
-
for (let
|
|
138
|
-
const
|
|
139
|
-
if (null !=
|
|
140
|
-
|
|
103
|
+
const o2 = P(e2, t3, l2, a2);
|
|
104
|
+
if (null != o2 && "" !== o2) n(r2, i2, o2);
|
|
105
|
+
else if (((_a = s3.moreDefaultValue) == null ? void 0 : _a.length) > 0) {
|
|
106
|
+
const t4 = s3.moreDefaultValue;
|
|
107
|
+
for (let s4 = 0; s4 < t4.length; s4++) {
|
|
108
|
+
const o3 = P(e2, t4[s4], l2, a2);
|
|
109
|
+
if (null != o3 && "" !== o3) {
|
|
110
|
+
n(r2, i2, o3);
|
|
141
111
|
break;
|
|
142
112
|
}
|
|
143
113
|
}
|
|
144
114
|
}
|
|
145
115
|
} catch (e3) {
|
|
116
|
+
console.error("设置默认值出错:", i2, e3);
|
|
146
117
|
}
|
|
147
118
|
}
|
|
148
119
|
}
|
|
149
|
-
return
|
|
120
|
+
return i2;
|
|
150
121
|
}
|
|
151
|
-
function
|
|
152
|
-
let
|
|
153
|
-
if (t2 && (
|
|
122
|
+
function P(e2, t2, s2, i2) {
|
|
123
|
+
let o2;
|
|
124
|
+
if (t2 && (o2 = r(e2, t2), null != o2 && null != o2 && s2)) {
|
|
154
125
|
let e3 = false;
|
|
155
|
-
"checkbox" ==
|
|
126
|
+
"checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = i2), e3 && (o2 = (o2 + "").split(","));
|
|
156
127
|
}
|
|
157
|
-
return
|
|
128
|
+
return o2;
|
|
158
129
|
}
|
|
159
130
|
function M(e2, t2) {
|
|
160
131
|
var _a, _b;
|
|
161
132
|
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
162
|
-
const
|
|
163
|
-
if (e2.autoPermissions) for (const
|
|
133
|
+
const s2 = [];
|
|
134
|
+
if (e2.autoPermissions) for (const i2 of e2.autoPermissions) s2.push(t2.code + "." + i2.simpleCode);
|
|
164
135
|
if (e2.functionCodes) {
|
|
165
|
-
const
|
|
166
|
-
for (let e3 = 0; e3 <
|
|
167
|
-
const
|
|
136
|
+
const i2 = e2.sourceTypes ? e2.sourceTypes : [], o2 = e2.functionCodes;
|
|
137
|
+
for (let e3 = 0; e3 < o2.length; e3++) {
|
|
138
|
+
const n2 = o2[e3], r2 = e3 < i2.length ? i2[e3] : "";
|
|
168
139
|
let l2 = "";
|
|
169
|
-
if ("service" == r2) l2 =
|
|
170
|
-
else if ("standard" === r2) l2 = t2.code + "." +
|
|
140
|
+
if ("service" == r2) l2 = n2;
|
|
141
|
+
else if ("standard" === r2) l2 = t2.code + "." + n2;
|
|
171
142
|
else {
|
|
172
|
-
l2 = "custom" === k(
|
|
143
|
+
l2 = "custom" === k(n2, t2).type ? n2 : t2.code + "." + n2;
|
|
173
144
|
}
|
|
174
|
-
|
|
145
|
+
s2.includes(l2) || s2.push(l2);
|
|
175
146
|
}
|
|
176
147
|
}
|
|
177
|
-
return
|
|
148
|
+
return s2.join(",");
|
|
178
149
|
}
|
|
179
150
|
function k(e2, t2) {
|
|
180
|
-
const
|
|
181
|
-
if (
|
|
182
|
-
for (let t3 = 0; t3 <
|
|
151
|
+
const s2 = t2.pagePermissions;
|
|
152
|
+
if (s2 && s2.length > 0) {
|
|
153
|
+
for (let t3 = 0; t3 < s2.length; t3++) if (s2[t3].simpleCode === e2) return s2[t3];
|
|
183
154
|
}
|
|
184
155
|
return null;
|
|
185
156
|
}
|
|
186
|
-
function
|
|
187
|
-
const
|
|
157
|
+
function C(s2, i2, o2) {
|
|
158
|
+
const n2 = s2.tableRuntimes, r2 = t(i2);
|
|
188
159
|
let l2;
|
|
189
|
-
const a2 =
|
|
190
|
-
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes:
|
|
160
|
+
const a2 = i2.code;
|
|
161
|
+
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: n2, additionalParamMapJson: l2, pageCode: a2, publishVersion: o2, pageType: s2.pageType });
|
|
191
162
|
}
|
|
192
|
-
const
|
|
193
|
-
function j(e2, t2,
|
|
163
|
+
const I = ["button-detail", "print-label"];
|
|
164
|
+
function j(e2, t2, s2) {
|
|
194
165
|
var _a, _b;
|
|
195
|
-
const
|
|
166
|
+
const o2 = t2.props && t2.props.base ? t2.props.base.prop : null, n2 = p(e2);
|
|
196
167
|
let r2 = false;
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
false === (
|
|
168
|
+
if (n2 && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
169
|
+
const s3 = e2.fieldPermissionMap.get("all_fields");
|
|
170
|
+
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
|
|
200
171
|
}
|
|
201
|
-
if (
|
|
202
|
-
const l2 =
|
|
172
|
+
if (o2) {
|
|
173
|
+
const l2 = i(o2);
|
|
203
174
|
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[l2] || (e2.rules[l2] = []), t2.props.rules.forEach((e3) => {
|
|
204
|
-
d(e3), !
|
|
205
|
-
}), e2.rules[l2] = t2.props.rules),
|
|
206
|
-
const
|
|
207
|
-
if (!
|
|
175
|
+
d(e3), !s2 && e3 && e3.required && (e3.required = false);
|
|
176
|
+
}), e2.rules[l2] = t2.props.rules), n2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
177
|
+
const i2 = e2.fieldPermissionMap.get(l2);
|
|
178
|
+
if (!s2 && e2.workflowRules && (e2.workflowRules[l2] || e2.workflowRules.rules && e2.workflowRules.rules[l2])) {
|
|
208
179
|
let t3 = e2.workflowRules[l2];
|
|
209
180
|
if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[l2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
212
|
-
|
|
181
|
+
const s3 = t3[e3];
|
|
182
|
+
if (s3 && s3.required) {
|
|
183
|
+
s3.required = false;
|
|
213
184
|
break;
|
|
214
185
|
}
|
|
215
186
|
}
|
|
216
187
|
else t3 && t3.required && (t3.required = false);
|
|
217
188
|
}
|
|
218
|
-
t2.runtime.props || (t2.runtime.props = {}),
|
|
189
|
+
t2.runtime.props || (t2.runtime.props = {}), i2 ? (!s2 && 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 = "";
|
|
219
190
|
}
|
|
220
191
|
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: l2, events: t2.props.customRuleEvents }));
|
|
221
192
|
}
|
|
222
193
|
}
|
|
223
194
|
function O(e2, t2) {
|
|
224
195
|
if (e2.initInfo) {
|
|
225
|
-
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((
|
|
226
|
-
const
|
|
227
|
-
if (
|
|
228
|
-
let
|
|
229
|
-
if (
|
|
230
|
-
const e3 = u(
|
|
231
|
-
e3.name = t2,
|
|
196
|
+
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((s2) => {
|
|
197
|
+
const i2 = e2.initInfo[s2];
|
|
198
|
+
if (i2) if ("dynamicControlFormEdit" === s2) {
|
|
199
|
+
let s3 = i2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
200
|
+
if (s3 && s3.length > 0 && (s3 = s3.filter((e3) => "_all_fields" === e3.name), s3 && s3.length > 0)) {
|
|
201
|
+
const e3 = u(s3[0]);
|
|
202
|
+
e3.name = t2, s3 = [e3];
|
|
232
203
|
}
|
|
233
|
-
a.dynamicControlFormEdit(e2,
|
|
234
|
-
} else "disableElement" ===
|
|
204
|
+
a.dynamicControlFormEdit(e2, s3, false);
|
|
205
|
+
} else "disableElement" === s2 ? i2.indexOf(t2) >= 0 && a.disableElement(e2, [t2], false) : "enableElement" === s2 ? i2.indexOf(t2) >= 0 && a.enableElement(e2, [t2], false) : "hideElement" === s2 ? i2.indexOf(t2) >= 0 && a.hideElement(e2, [t2], false) : "showElement" === s2 && i2.indexOf(t2) >= 0 && a.showElement(e2, [t2], false);
|
|
235
206
|
});
|
|
236
207
|
}
|
|
237
208
|
}
|
|
238
209
|
export {
|
|
239
210
|
O as controlObjectRenderState,
|
|
240
211
|
m as convertToPageContext,
|
|
241
|
-
|
|
212
|
+
P as getDefaultValue,
|
|
242
213
|
v as getFormModelFields,
|
|
243
214
|
E as getModelFields,
|
|
244
215
|
M as getPermissionCodes,
|
|
245
|
-
|
|
216
|
+
b as packageAdditionalMapWithLocationSearch,
|
|
246
217
|
y as packageAdditionalMapWithPageRequest,
|
|
247
218
|
h as packageAdditionalMapWithRoute,
|
|
248
219
|
j as packageFormRules,
|
|
249
|
-
|
|
250
|
-
|
|
220
|
+
c as queryPageDesignByCode,
|
|
221
|
+
C as queryPageSuperGrids
|
|
251
222
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ref as e } from "vue";
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import
|
|
4
|
-
const t =
|
|
5
|
-
const
|
|
6
|
-
return { pageContext:
|
|
7
|
-
|
|
2
|
+
import { defineStore as a } from "pinia";
|
|
3
|
+
import o from "./eventBus.js";
|
|
4
|
+
const t = a("pageContextUtil", () => {
|
|
5
|
+
const a2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), v = e(0);
|
|
6
|
+
return { pageContext: a2, setPageContext: function(e2) {
|
|
7
|
+
a2.value = e2;
|
|
8
8
|
}, countComponentsTotalNmber: function() {
|
|
9
9
|
l.value++, t2.value = false, u.value = false;
|
|
10
10
|
}, countComponentsLoadedNumber: function() {
|
|
11
|
-
|
|
12
|
-
}, componentsTotalNmber: l, componentsLoadedNumber:
|
|
13
|
-
t2.value = e2, t2.value && n.value && (
|
|
11
|
+
v.value++, u.value = false;
|
|
12
|
+
}, componentsTotalNmber: l, componentsLoadedNumber: v, setPageComponentsLoaded: function(e2) {
|
|
13
|
+
t2.value = e2, t2.value && n.value && (o.$emit("pageLoaded"), u.value = true);
|
|
14
14
|
}, setFormPageDataLoadState: function(e2) {
|
|
15
|
-
n.value = e2, t2.value && n.value && (u.value = true);
|
|
15
|
+
n.value = e2, t2.value && n.value && (t2.value, n.value, u.value = true);
|
|
16
16
|
}, formPageDataLoaded: n, pageComponentsLoaded: t2, restorePageLoadState: function() {
|
|
17
17
|
t2.value = false, n.value = false, u.value = false;
|
|
18
18
|
}, pageLoaded: u, getPageLoaded: function() {
|
|
@@ -19,7 +19,7 @@ function u(t2, e2) {
|
|
|
19
19
|
}
|
|
20
20
|
function l(t2, e2, i2, s2) {
|
|
21
21
|
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
22
|
-
r2 && u2 && u2.forEach((e3) => {
|
|
22
|
+
e2.btnList, r2 && u2 && u2.forEach((e3) => {
|
|
23
23
|
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
24
24
|
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
25
25
|
const i3 = o(e3, t2);
|
|
@@ -17,9 +17,9 @@ const C = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime"
|
|
|
17
17
|
});
|
|
18
18
|
}), V2({ click: function() {
|
|
19
19
|
j.value && j.value.$el.click();
|
|
20
|
-
} }), (
|
|
21
|
-
const
|
|
22
|
-
return u(), a("span", C, [z.value.text ? (u(), o(
|
|
20
|
+
} }), (l2, i2) => {
|
|
21
|
+
const t2 = n("el-link"), f2 = n("el-button");
|
|
22
|
+
return u(), a("span", C, [z.value.text ? (u(), o(t2, { key: 0, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, loading: R(), onClick: i2[0] || (i2[0] = (l3) => c(m)(l3, e2.pageContext, e2.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(y, { key: 0 }, [g(d(c(x)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true), g(" " + d(c(x)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), o(f2, { key: 1, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: R(), onClick: i2[1] || (i2[1] = (l3) => c(m)(l3, e2.pageContext, e2.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(y, { key: 0 }, [g(d(c(x)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g(" ")], 64)) : v("", true), g(" " + d(c(x)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
export {
|
package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js
CHANGED
|
@@ -11,9 +11,9 @@ const C = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure
|
|
|
11
11
|
u(() => {
|
|
12
12
|
y(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
|
|
13
13
|
});
|
|
14
|
-
}), (
|
|
15
|
-
const
|
|
16
|
-
return p(), a(
|
|
14
|
+
}), (t2, n2) => {
|
|
15
|
+
const o2 = r("el-button-group");
|
|
16
|
+
return p(), a(o2, { ref_key: "componentRef", ref: _, class: i(["amb-button-group-main", s(b)]), style: g(d.value) }, { default: l(() => [(p(true), c(f, null, m(e2.configure.items, (t3, n3) => (p(), a(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
|
|
17
17
|
};
|
|
18
18
|
} });
|
|
19
19
|
export {
|
|
@@ -31,9 +31,9 @@ const z = { key: 1 }, h = e({ __name: "dropdown-runtime", props: { pageContext:
|
|
|
31
31
|
o(() => {
|
|
32
32
|
k(null, h2.pageContext, h2.configure, { componentRef: V.value, entity: h2.pageContext.entity.data, pageData: h2.pageContext.entity.page });
|
|
33
33
|
});
|
|
34
|
-
}), (
|
|
35
|
-
const
|
|
36
|
-
return a(), i(
|
|
34
|
+
}), (t2, l2) => {
|
|
35
|
+
const n2 = u("el-button"), o2 = u("el-icon"), C2 = u("el-text"), k2 = u("el-dropdown-item"), _2 = u("el-dropdown-menu"), h3 = u("el-dropdown");
|
|
36
|
+
return a(), i(h3, { ref_key: "componentRef", ref: V, class: p(s(A)), style: r(s(T)), placement: B.value.placement, "split-button": B.value.splitButton, disabled: "disabled" === B.value.state, type: B.value.buttonType, size: B.value.size, trigger: B.value.trigger, onVisibleChange: S }, { dropdown: c(() => [v(_2, null, { default: c(() => [(a(true), g(f, null, y(s(O), (t3, l3) => (a(), i(k2, { key: t3, onClick: (l4) => s(x)(l4, e2.pageContext, e2.configure, "click", { menuItem: t3 }) }, { default: c(() => [d(m(s(w)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: c(() => ["button" === B.value.triggerElement ? (a(), g(f, { key: 0 }, [B.value.splitButton ? (a(), g("span", z, m(B.value.title), 1)) : (a(), i(n2, { key: 0, size: B.value.size, type: B.value.buttonType }, { default: c(() => [d(m(s(w)(B.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), i(C2, { key: 1 }, { default: c(() => [d(m(s(w)(B.value.title)) + " ", 1), v(o2, null, { default: c(() => [v(s(b))]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
|
|
37
37
|
};
|
|
38
38
|
} });
|
|
39
39
|
export {
|
package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, createBlock as t, openBlock as o } from "vue";
|
|
2
2
|
import n from "../button/button-runtime.vue2.js";
|
|
3
|
-
const r = e({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (e2) => (
|
|
3
|
+
const r = e({ __name: "exportpdf-runtime", props: { pageContext: {}, configure: {} }, setup: (e2) => (r2, u) => (o(), t(n, { configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])) });
|
|
4
4
|
export {
|
|
5
5
|
r as default
|
|
6
6
|
};
|
package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js
CHANGED
|
@@ -11,9 +11,9 @@ const x = { key: 1 }, _ = e({ __name: "printlabel-runtime", props: { pageContext
|
|
|
11
11
|
n(() => {
|
|
12
12
|
j.value && y(null, _2.pageContext, _2.configure, { componentRef: R.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
13
13
|
});
|
|
14
|
-
}), (
|
|
15
|
-
const
|
|
16
|
-
return j.value ? (a(), o(
|
|
14
|
+
}), (t2, l2) => {
|
|
15
|
+
const n2 = u("el-button"), y2 = u("ArrowDown"), _3 = u("el-icon"), w2 = u("el-text"), T = u("el-dropdown-item"), h = u("el-dropdown-menu"), A = u("el-dropdown");
|
|
16
|
+
return j.value ? (a(), o(A, { key: 1, ref_key: "componentRef", ref: R, class: p(r(D)), style: i(r(B)), placement: z.value.placement, "split-button": z.value.splitButton, disabled: "disabled" === z.value.state, type: z.value.buttonType, size: z.value.size, trigger: z.value.trigger }, { dropdown: s(() => [v(h, null, { default: s(() => [(a(true), g(c, null, d(z.value.template, (t3, l3) => (a(), o(T, { key: t3, onClick: (l4) => r(b)(l4, e2.pageContext, e2.configure, "click", { menuItem: t3 }) }, { default: s(() => [m(f(r(C)(t3.label)), 1)]), _: 2 }, 1032, ["onClick"]))), 128))]), _: 1 })]), default: s(() => ["button" === z.value.triggerElement ? (a(), g(c, { key: 0 }, [z.value.splitButton ? (a(), g("span", x, f(r(C)(z.value.title)), 1)) : (a(), o(n2, { key: 0, size: z.value.size, type: z.value.buttonType, onClick: l2[0] || (l2[0] = (t3) => r(b)(t3, e2.pageContext, e2.configure, "menuClick")) }, { default: s(() => [m(f(r(C)(z.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), o(w2, { key: 1 }, { default: s(() => [m(f(r(C)(z.value.title)) + " ", 1), v(_3, null, { default: s(() => [v(y2)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (a(), o(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]));
|
|
17
17
|
};
|
|
18
18
|
} });
|
|
19
19
|
export {
|
package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js
CHANGED
|
@@ -46,7 +46,7 @@ const A = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
|
|
|
46
46
|
ee(true);
|
|
47
47
|
}), A2({ updateChartDatas: oe, exportChart: function() {
|
|
48
48
|
return d(S.value);
|
|
49
|
-
}, chartOption: Q }), (
|
|
49
|
+
}, chartOption: Q }), (r2, o2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: N }, [l(c(y, { ref_key: "headerRef", ref: U, headerInfo: s(M), configure: e2.configure, pageContext: e2.pageContext, onDrillEnd: Y, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e2.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
50
|
} });
|
|
51
51
|
export {
|
|
52
52
|
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
|
+
t2.headerInfo;
|
|
6
|
+
}), (l2, t3) => {
|
|
7
|
+
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = 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(b, { 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(V, { 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
|
};
|
|
@@ -3,12 +3,13 @@ import { Search as p } from "@element-plus/icons-vue";
|
|
|
3
3
|
import g from "./common-chart-header-group.vue.js";
|
|
4
4
|
import m from "./common-chart-header-breadcrumb.vue.js";
|
|
5
5
|
import b from "./common-homepage-search.vue.js";
|
|
6
|
-
import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as
|
|
7
|
-
const
|
|
6
|
+
import { setVariableValueWithProp as v, getValueFromSource as y, setValueForVariableName as O } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-header-item" }, k = { class: "amb-widget-chart-header-item amb-widget-chart-header-center" }, j = { class: "amb-widget-chart-header-item" }, C = { key: 0, class: "amb-widget-chart-header-item" }, P = e({ __name: "common-chart-header", props: { headerInfo: { type: Object, required: true }, configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["drill-end"], setup(e2, { expose: P2, emit: _ }) {
|
|
8
8
|
const N = e2, D = o(null), A = o(), R = _;
|
|
9
9
|
function S(e3) {
|
|
10
10
|
const o2 = N.headerInfo.drillOptions.length;
|
|
11
|
-
if (
|
|
11
|
+
if (e3 >= o2) N.headerInfo.drillOptions;
|
|
12
|
+
else {
|
|
12
13
|
for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
|
|
13
14
|
q(e3);
|
|
14
15
|
}
|
|
@@ -34,7 +35,7 @@ const x = { class: "amb-widget-chart-header" }, O = { class: "amb-widget-chart-h
|
|
|
34
35
|
for (let e4 of o2.variables) {
|
|
35
36
|
if (!e4.fieldName || !e4.variable) continue;
|
|
36
37
|
const o3 = y(r2, e4.fieldName, void 0);
|
|
37
|
-
|
|
38
|
+
O(N.pageContext.entity, e4.variable, o3);
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
N.headerInfo.drillOptions || (N.headerInfo.drillOptions = []);
|
|
@@ -46,11 +47,12 @@ const x = { class: "amb-widget-chart-header" }, O = { class: "amb-widget-chart-h
|
|
|
46
47
|
if (r2 + 1 >= N.headerInfo.options.length) {
|
|
47
48
|
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
|
|
48
49
|
}
|
|
50
|
+
N.headerInfo.options;
|
|
49
51
|
const n2 = N.headerInfo.options[r2], t2 = o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : null, a2 = { fieldName: n2.target ? n2.target.replace(".", "_") : "", rawFieldName: n2.target ? n2.target : "", label: e3.name, value: e3.name, data: t2 };
|
|
50
52
|
N.headerInfo.drillOptions.push(a2), q(r2 + 1);
|
|
51
53
|
}, closeDrill: S }), (o2, v2) => {
|
|
52
|
-
const y2 = r("el-icon"),
|
|
53
|
-
return t(), n("div",
|
|
54
|
+
const y2 = r("el-icon"), O2 = r("el-tooltip");
|
|
55
|
+
return t(), n("div", w, [a("div", x, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && (!e2.headerInfo.textAlign || "left" == e2.headerInfo.textAlign)]]), !e2.headerInfo.showDrill || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(m, { key: 0, ref_key: "drillObjRef", ref: D, headerInfo: e2.headerInfo, onCloseDrill: S }, null, 8, ["headerInfo"])), !e2.headerInfo.showGroup || e2.headerInfo.groupPosition && "left" != e2.headerInfo.groupPosition ? l("", true) : (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"]))]), a("div", k, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "center" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "center" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "center" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), a("div", j, [i(a("label", { style: f(e2.headerInfo.style) }, h(e2.headerInfo.title) + " ", 5), [[s, e2.headerInfo.title && "right" == e2.headerInfo.textAlign]]), e2.headerInfo.showDrill && "right" == e2.headerInfo.groupPosition ? (t(), d(m, { key: 0, headerInfo: e2.headerInfo, onCloseDrill: S, ref_key: "drillObjRef", ref: D }, null, 8, ["headerInfo"])) : l("", true), e2.headerInfo.showGroup && "right" == e2.headerInfo.groupPosition ? (t(), d(g, { key: 1, headerInfo: e2.headerInfo }, null, 8, ["headerInfo"])) : l("", true)]), e2.pageContext.showHomepageSearch ? (t(), n("div", C, [c(O2, { content: "打开查询弹窗", effect: "light" }, { default: I(() => [c(y2, { onClick: G }, { default: I(() => [c(u(p))]), _: 1 })]), _: 1 }), c(b, { ref_key: "commonHomepageSearchRef", ref: A, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"])])) : l("", true)]);
|
|
54
56
|
};
|
|
55
57
|
} });
|
|
56
58
|
export {
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js
CHANGED
|
@@ -56,7 +56,7 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
|
|
|
56
56
|
_.value = true, k.value = N.configure.pushHomepage.searchConditions;
|
|
57
57
|
} }), (t2, i2) => {
|
|
58
58
|
const o2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
|
|
59
|
-
return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
|
|
59
|
+
return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => [...i2[1] || (i2[1] = [p(" 确定 ", -1)])]), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => [...i2[2] || (i2[2] = [p("重置", -1)])]), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => [...i2[3] || (i2[3] = [p(" 保存为默认条件 ", -1)])]), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
|
|
60
60
|
};
|
|
61
61
|
} });
|
|
62
62
|
export {
|
|
@@ -28,7 +28,7 @@ const k = e({ __name: "gauge-runtime", props: { pageContext: {}, configure: {} }
|
|
|
28
28
|
}
|
|
29
29
|
return x(A.pageContext, K, J), k2({ updateChartDatas: L, exportChart: function() {
|
|
30
30
|
return l(O.value);
|
|
31
|
-
} }), (
|
|
31
|
+
} }), (r2, t2) => (n(), a("div", { style: u(i(F)), class: s([i(P), "amb-widget-chart amb-widget-flex amb-chart-container"]), ref_key: "thisRef", ref: H }, [c(p(v, { ref_key: "headerRef", ref: z, headerInfo: i(T), configure: e2.configure, pageContext: e2.pageContext, class: "amb-chart-header" }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, i(T).showHeader || e2.pageContext.showHomepageSearch]]), p(i(I), { ref_key: "chartRef", ref: O, class: "amb-chart-content", theme: i(E), option: i(q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
k as default
|