super-page-runtime 2.3.19 → 2.3.20-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/anchor-util.d.ts +13 -0
- package/dist/es/components/runtime/utils/anchor-util.js +69 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +55 -51
- package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +605 -549
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +9 -11
- package/dist/es/components/runtime/utils/page-store.d.ts +13 -1
- package/dist/es/components/runtime/utils/page-store.js +46 -19
- package/dist/es/components/runtime/utils/table-utils.d.ts +2 -0
- package/dist/es/components/runtime/utils/table-utils.js +64 -55
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +20 -18
- 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 +10 -11
- 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 +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- 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/file-task-notice.vue.d.ts +27 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +59 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +32 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +4 -0
- 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 +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 +10 -12
- 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 +176 -156
- 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 +40 -40
- 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 +37 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
- 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 +4 -5
- 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 +37 -41
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
- 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/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
- 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.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +173 -173
- 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
|
@@ -185,7 +185,7 @@ function h(e2, s2, r2) {
|
|
|
185
185
|
}), r3.includes(false) && e6(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
|
|
186
186
|
t3.includes(false) ? e6(false) : e6(true);
|
|
187
187
|
}).catch((t3) => {
|
|
188
|
-
|
|
188
|
+
e6(false);
|
|
189
189
|
}) : e6(true);
|
|
190
190
|
});
|
|
191
191
|
return null;
|
|
@@ -13,8 +13,8 @@ function f(t2) {
|
|
|
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
|
-
t3 && (e2.systemParam =
|
|
17
|
-
t4 ? (e2.contextParam =
|
|
16
|
+
t3 && (e2.systemParam = y(t3)), g(e2.listViewTableName, e2.listViewTablePublishVersion).then((t4) => {
|
|
17
|
+
t4 ? (e2.contextParam = y(t4.contextParam), e2.branchFieldAuth = t4.branchFieldAuth, e2.isWorkflowEntity = t4.isWorkflowEntity, e2.dataTypeMaps = t4.dataTypeMaps, i2(e2)) : i2(null);
|
|
18
18
|
});
|
|
19
19
|
}).catch(() => {
|
|
20
20
|
i2(e2);
|
|
@@ -25,12 +25,12 @@ function f(t2) {
|
|
|
25
25
|
function m(e2, t2) {
|
|
26
26
|
return new Promise((i2, n2) => {
|
|
27
27
|
e2 ? b().then((s2) => {
|
|
28
|
-
s2 && (e2.systemParam =
|
|
29
|
-
e2.contextParam =
|
|
28
|
+
s2 && (e2.systemParam = y(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? j(e2, t2, e2.systemVersion).then((t3) => {
|
|
29
|
+
e2.contextParam = y(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, i2(e2);
|
|
30
30
|
}).catch((e3) => {
|
|
31
31
|
n2(e3);
|
|
32
32
|
}) : g("", "").then((t3) => {
|
|
33
|
-
t3 ? (e2.contextParam =
|
|
33
|
+
t3 ? (e2.contextParam = y(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, i2(e2)) : i2(null);
|
|
34
34
|
}).catch((e3) => {
|
|
35
35
|
n2(e3);
|
|
36
36
|
});
|
|
@@ -44,7 +44,7 @@ function g(t2, i2) {
|
|
|
44
44
|
function b() {
|
|
45
45
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/system-param");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function h(e2) {
|
|
48
48
|
var _a, _b, _c;
|
|
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, 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: {} };
|
|
@@ -68,7 +68,7 @@ function y(e2) {
|
|
|
68
68
|
return e3 > 768 ? i.PC : e3 > 414 ? i.IPAD : i.PHONE;
|
|
69
69
|
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function y(e2) {
|
|
72
72
|
try {
|
|
73
73
|
const t2 = function(e3) {
|
|
74
74
|
if (!e3) return e3;
|
|
@@ -91,7 +91,6 @@ 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);
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
function P(e2) {
|
|
@@ -121,7 +120,7 @@ function E(e2, t2) {
|
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
122
|
function v(e2, t2) {
|
|
124
|
-
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query
|
|
123
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
125
124
|
Object.assign(t2, e2.query);
|
|
126
125
|
C(e2.query.paramStoreId, t2);
|
|
127
126
|
}
|
|
@@ -164,7 +163,6 @@ function M(e2, t2, i2) {
|
|
|
164
163
|
}
|
|
165
164
|
}
|
|
166
165
|
} catch (e3) {
|
|
167
|
-
console.error("设置默认值出错:", n2, e3);
|
|
168
166
|
}
|
|
169
167
|
}
|
|
170
168
|
}
|
|
@@ -259,7 +257,7 @@ function R(e2, t2) {
|
|
|
259
257
|
}
|
|
260
258
|
export {
|
|
261
259
|
R as controlObjectRenderState,
|
|
262
|
-
|
|
260
|
+
h as convertToPageContext,
|
|
263
261
|
A as getDefaultValue,
|
|
264
262
|
M as getFormModelFields,
|
|
265
263
|
k as getModelFields,
|
|
@@ -13,6 +13,10 @@ export declare const usePageContextStore: import('pinia').StoreDefinition<"pageC
|
|
|
13
13
|
pageLoaded: import('vue').Ref<boolean, boolean>;
|
|
14
14
|
getPageLoaded: () => boolean;
|
|
15
15
|
setPageLoaded: (state: boolean) => void;
|
|
16
|
+
setAutoAnchorComponentConditions: (uuid: any, conditions: any) => void;
|
|
17
|
+
getAutoAnchorComponentConditions: () => any[];
|
|
18
|
+
resetAutoAnchorComponentConditions: () => void;
|
|
19
|
+
resetComponentCounters: () => void;
|
|
16
20
|
}, "pageContext" | "componentsTotalNmber" | "componentsLoadedNumber" | "formPageDataLoaded" | "pageComponentsLoaded" | "pageLoaded">, Pick<{
|
|
17
21
|
pageContext: any;
|
|
18
22
|
setPageContext: (newPageContext: any) => void;
|
|
@@ -28,6 +32,10 @@ export declare const usePageContextStore: import('pinia').StoreDefinition<"pageC
|
|
|
28
32
|
pageLoaded: import('vue').Ref<boolean, boolean>;
|
|
29
33
|
getPageLoaded: () => boolean;
|
|
30
34
|
setPageLoaded: (state: boolean) => void;
|
|
35
|
+
setAutoAnchorComponentConditions: (uuid: any, conditions: any) => void;
|
|
36
|
+
getAutoAnchorComponentConditions: () => any[];
|
|
37
|
+
resetAutoAnchorComponentConditions: () => void;
|
|
38
|
+
resetComponentCounters: () => void;
|
|
31
39
|
}, "pageContext">, Pick<{
|
|
32
40
|
pageContext: any;
|
|
33
41
|
setPageContext: (newPageContext: any) => void;
|
|
@@ -43,4 +51,8 @@ export declare const usePageContextStore: import('pinia').StoreDefinition<"pageC
|
|
|
43
51
|
pageLoaded: import('vue').Ref<boolean, boolean>;
|
|
44
52
|
getPageLoaded: () => boolean;
|
|
45
53
|
setPageLoaded: (state: boolean) => void;
|
|
46
|
-
|
|
54
|
+
setAutoAnchorComponentConditions: (uuid: any, conditions: any) => void;
|
|
55
|
+
getAutoAnchorComponentConditions: () => any[];
|
|
56
|
+
resetAutoAnchorComponentConditions: () => void;
|
|
57
|
+
resetComponentCounters: () => void;
|
|
58
|
+
}, "pageContext" | "setPageContext" | "countComponentsTotalNmber" | "countComponentsLoadedNumber" | "setPageComponentsLoaded" | "setFormPageDataLoadState" | "restorePageLoadState" | "getPageLoaded" | "setPageLoaded" | "setAutoAnchorComponentConditions" | "getAutoAnchorComponentConditions" | "resetAutoAnchorComponentConditions" | "resetComponentCounters">>;
|
|
@@ -1,26 +1,53 @@
|
|
|
1
|
-
import { ref as e } from "vue";
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { ref as e, nextTick as o } from "vue";
|
|
2
|
+
import { defineStore as t } from "pinia";
|
|
3
|
+
import n from "./eventBus.js";
|
|
4
|
+
const u = t("pageContextUtil", () => {
|
|
5
|
+
const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false), i = e(false), l = e([]), r = e(0), s = e(0);
|
|
6
|
+
let v = null, c = -1, d = -1, m = 0;
|
|
7
|
+
function f() {
|
|
8
|
+
v && clearTimeout(v), v = setTimeout(() => {
|
|
9
|
+
o(() => {
|
|
10
|
+
!function() {
|
|
11
|
+
const e2 = r.value, o2 = s.value;
|
|
12
|
+
if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && p(true));
|
|
13
|
+
if (e2 > 0 && e2 === o2) {
|
|
14
|
+
if (e2 === c && o2 === d && !u2.value) return void p(true);
|
|
15
|
+
c = e2, d = o2, f();
|
|
16
|
+
} else c = -1, d = -1, f();
|
|
17
|
+
}();
|
|
18
|
+
});
|
|
19
|
+
}, 30);
|
|
20
|
+
}
|
|
21
|
+
function p(e2) {
|
|
22
|
+
u2.value = e2, C();
|
|
23
|
+
}
|
|
24
|
+
function C() {
|
|
25
|
+
u2.value && a.value && !i.value && (n.$emit("pageLoaded"), i.value = true);
|
|
26
|
+
}
|
|
27
|
+
return { pageContext: t2, setPageContext: function(e2) {
|
|
28
|
+
t2.value = e2;
|
|
8
29
|
}, countComponentsTotalNmber: function() {
|
|
9
|
-
|
|
30
|
+
r.value++, u2.value = false, i.value = false;
|
|
10
31
|
}, countComponentsLoadedNumber: function() {
|
|
11
|
-
|
|
12
|
-
}, componentsTotalNmber:
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
}, pageLoaded: u, getPageLoaded: function() {
|
|
19
|
-
return u.value;
|
|
32
|
+
s.value++, f();
|
|
33
|
+
}, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: p, setFormPageDataLoadState: function(e2) {
|
|
34
|
+
a.value = e2, C();
|
|
35
|
+
}, formPageDataLoaded: a, pageComponentsLoaded: u2, restorePageLoadState: function() {
|
|
36
|
+
u2.value = false, a.value = false, i.value = false;
|
|
37
|
+
}, pageLoaded: i, getPageLoaded: function() {
|
|
38
|
+
return i.value;
|
|
20
39
|
}, setPageLoaded: function(e2) {
|
|
21
|
-
|
|
40
|
+
i.value = e2;
|
|
41
|
+
}, setAutoAnchorComponentConditions: function(e2, o2) {
|
|
42
|
+
l.value.push({ uuid: e2, conditions: o2 });
|
|
43
|
+
}, getAutoAnchorComponentConditions: function() {
|
|
44
|
+
return l.value;
|
|
45
|
+
}, resetAutoAnchorComponentConditions: function() {
|
|
46
|
+
l.value = [];
|
|
47
|
+
}, resetComponentCounters: function() {
|
|
48
|
+
r.value = 0, s.value = 0, u2.value = false, i.value = false, c = -1, d = -1, m = 0, v && (clearTimeout(v), v = null);
|
|
22
49
|
} };
|
|
23
50
|
});
|
|
24
51
|
export {
|
|
25
|
-
|
|
52
|
+
u as usePageContextStore
|
|
26
53
|
};
|
|
@@ -32,3 +32,5 @@ export declare function isHasFieldAuth(pageContext: any, configure: any): boolea
|
|
|
32
32
|
* @returns
|
|
33
33
|
*/
|
|
34
34
|
export declare function isHasFieldPermissionAuth(pageContext: any, tableName: any, fieldName: any): boolean;
|
|
35
|
+
export declare function getCurrentUserFileTasks(backendUrl: any, pageCode: any, isTest?: any): any;
|
|
36
|
+
export declare function setFileTaskRead(backendUrl: any, taskId: any, isTest?: any): any;
|
|
@@ -1,80 +1,89 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "agilebuilder-ui/src/utils/
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
function r(t2) {
|
|
1
|
+
import { getBaseUrl as t } from "./common-util.js";
|
|
2
|
+
import e from "agilebuilder-ui/src/utils/request";
|
|
3
|
+
import o from "./eventBus.js";
|
|
4
|
+
import { getPermissionCodes as n } from "./page-init-util.js";
|
|
5
|
+
import { getCustomFunc as i } from "./events/event-util.js";
|
|
6
|
+
import { $t as s } from "./i18n-util.js";
|
|
7
|
+
import { ExpressionEvaluator as r } from "../views/assemblys/chart/table/chart-table-util.js";
|
|
8
|
+
import { getFormPropName as u } from "./page-helper-util.js";
|
|
9
|
+
function a(t2) {
|
|
11
10
|
const e2 = t2.pageContext && t2.pageContext.code;
|
|
12
|
-
|
|
11
|
+
o.$emit(e2 + "_open-dialog", t2);
|
|
13
12
|
}
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
if (!e2 &&
|
|
17
|
-
let
|
|
18
|
-
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (
|
|
13
|
+
function p(t2, e2) {
|
|
14
|
+
const o2 = t2.tableName;
|
|
15
|
+
if (!e2 && o2) return o2;
|
|
16
|
+
let n2;
|
|
17
|
+
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (n2 = JSON.parse(t2.tableRuntimes[e2].configure)), n2 && n2.props && n2.props.dataOrigin ? n2.props.dataOrigin.tableName : null;
|
|
19
18
|
}
|
|
20
|
-
function l(t2, e2,
|
|
19
|
+
function l(t2, e2, o2, i2) {
|
|
21
20
|
const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
|
|
22
|
-
|
|
21
|
+
r2 && u2 && u2.forEach((e3) => {
|
|
23
22
|
const r3 = {}, u3 = Object.assign({}, e3.props.base);
|
|
24
23
|
if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
|
|
25
|
-
const
|
|
26
|
-
|
|
24
|
+
const o3 = n(e3, t2);
|
|
25
|
+
o3 && (u3.permission = o3);
|
|
27
26
|
}
|
|
28
|
-
if (u3.label =
|
|
29
|
-
const t3 =
|
|
27
|
+
if (u3.label = s(u3.title), u3.sourceButton = { uuid: e3.uuid }, r3.props = u3, void 0 !== i2) {
|
|
28
|
+
const t3 = i2(e3);
|
|
30
29
|
r3.onClick = (t3 == null ? void 0 : t3.onClick) ?? t3, r3.eventName = t3 == null ? void 0 : t3.eventName;
|
|
31
30
|
}
|
|
32
|
-
|
|
31
|
+
o2.push(r3);
|
|
33
32
|
});
|
|
34
33
|
}
|
|
35
|
-
function
|
|
36
|
-
let
|
|
37
|
-
const u2 =
|
|
34
|
+
function c(t2, e2, o2, n2) {
|
|
35
|
+
let s2;
|
|
36
|
+
const u2 = o2 == null ? void 0 : o2.some((o3) => {
|
|
38
37
|
let u3 = false;
|
|
39
|
-
if (
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
|
|
38
|
+
if (o3.scopeFunc) {
|
|
39
|
+
const s3 = i(t2, o3.scopeFunc);
|
|
40
|
+
if (s3) {
|
|
41
|
+
s3.apply(s3, [{ pageContext: t2, configureObj: e2, row: n2 }]) && (u3 = true);
|
|
43
42
|
}
|
|
44
|
-
} else if (
|
|
45
|
-
|
|
43
|
+
} else if (o3.showCondition && o3.showCondition.length > 0) {
|
|
44
|
+
r.evaluate(t2, o3.showCondition, n2) && (u3 = true);
|
|
46
45
|
} else u3 = true;
|
|
47
|
-
if (u3) return
|
|
46
|
+
if (u3) return s2 = o3, true;
|
|
48
47
|
});
|
|
49
|
-
return { show: u2, toPage:
|
|
48
|
+
return { show: u2, toPage: s2 };
|
|
50
49
|
}
|
|
51
|
-
function
|
|
50
|
+
function m(t2, e2) {
|
|
52
51
|
var _a;
|
|
53
|
-
const
|
|
54
|
-
let
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
-
const t3 =
|
|
58
|
-
|
|
52
|
+
const o2 = t2.tableName;
|
|
53
|
+
let n2 = "";
|
|
54
|
+
const i2 = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base;
|
|
55
|
+
if (i2 && i2.prop) {
|
|
56
|
+
const t3 = i2.prop;
|
|
57
|
+
n2 = u(t3);
|
|
59
58
|
}
|
|
60
|
-
return
|
|
59
|
+
return f(t2, o2, n2);
|
|
61
60
|
}
|
|
62
|
-
function
|
|
63
|
-
if (!
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
const t3 =
|
|
67
|
-
if (t3 && t3[e2] && t3[e2].indexOf(
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
61
|
+
function f(t2, e2, o2) {
|
|
62
|
+
if (!o2 || !e2) return true;
|
|
63
|
+
const n2 = t2.branchFieldAuth;
|
|
64
|
+
if (n2) {
|
|
65
|
+
const t3 = n2.hasAuthFields;
|
|
66
|
+
if (t3 && t3[e2] && t3[e2].indexOf(o2) >= 0) return true;
|
|
67
|
+
const i2 = n2.allAuthFields;
|
|
68
|
+
if (i2 && i2[e2] && i2[e2].indexOf(o2) >= 0) return false;
|
|
70
69
|
}
|
|
71
70
|
return true;
|
|
72
71
|
}
|
|
72
|
+
function b(o2, n2, i2) {
|
|
73
|
+
const s2 = t(o2, i2);
|
|
74
|
+
return e.get(s2 + "/common/last-unread-file-task/" + n2);
|
|
75
|
+
}
|
|
76
|
+
function d(o2, n2, i2) {
|
|
77
|
+
const s2 = t(o2, i2);
|
|
78
|
+
return e.put(s2 + "/common/file-task-read/" + n2);
|
|
79
|
+
}
|
|
73
80
|
export {
|
|
74
|
-
|
|
81
|
+
c as expressJump,
|
|
82
|
+
b as getCurrentUserFileTasks,
|
|
75
83
|
l as getOperationButtons,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
p as getTableNameByTableUuid,
|
|
85
|
+
m as isHasFieldAuth,
|
|
86
|
+
f as isHasFieldPermissionAuth,
|
|
87
|
+
a as popupToPage,
|
|
88
|
+
d as setFileTaskRead
|
|
80
89
|
};
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as i, onUnmounted as n, resolveComponent as o, createElementBlock as a, openBlock as u, createBlock as c, unref as p, normalizeStyle as r, normalizeClass as s, withCtx as v, createCommentVNode as y, Fragment as g, createTextVNode as d, toDisplayString as f } from "vue";
|
|
2
2
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
|
-
import { handleAfterInitEvent as
|
|
4
|
-
import { $t as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
3
|
+
import { handleAfterInitEvent as x, handleEvent as C } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { $t as m } from "../../../../utils/i18n-util.js";
|
|
5
|
+
const V = { class: "page-runtime-header-btn" }, T = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: T2 }) {
|
|
6
|
+
const b = e2, I = b.configure.runtime ? b.configure.runtime : {}, z = t(I.props ? I.props : {}), _ = I.style, h = I.class;
|
|
7
7
|
function P() {
|
|
8
|
-
return "disabled" === z.value.state ||
|
|
8
|
+
return "disabled" === z.value.state || N();
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return void 0 !==
|
|
10
|
+
function N() {
|
|
11
|
+
return void 0 !== b.pageContext.canClick && void 0 !== b.pageContext.clickUuid && (!b.pageContext.canClick && b.pageContext.clickUuid === b.configure.uuid);
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
const R = t(null);
|
|
14
|
+
return l(() => {
|
|
15
|
+
i(() => {
|
|
16
|
+
x(null, b.pageContext, b.configure, { componentRef: R.value, entity: b.pageContext.entity.data, pageData: b.pageContext.entity.page });
|
|
17
17
|
});
|
|
18
|
-
}),
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
}), n(() => {
|
|
19
|
+
b.pageContext.exportNoticeInfo && b.pageContext.exportNoticeInfo.noticeInterval && clearInterval(b.pageContext.exportNoticeInfo.noticeInterval);
|
|
20
|
+
}), T2({ click: function() {
|
|
21
|
+
R.value && R.value.$el.click();
|
|
22
|
+
} }), (e3, t2) => {
|
|
23
|
+
const l2 = o("el-link"), i2 = o("el-button");
|
|
24
|
+
return u(), a("span", V, [z.value.text ? (u(), c(l2, { key: 0, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, loading: N(), onClick: t2[0] || (t2[0] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d(" ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d(" ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), c(i2, { key: 1, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: N(), onClick: t2[1] || (t2[1] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d(" ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d(" ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
|
|
23
25
|
};
|
|
24
26
|
} });
|
|
25
27
|
export {
|
|
26
|
-
|
|
28
|
+
T as default
|
|
27
29
|
};
|
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
|
+
}), (e3, t2) => {
|
|
15
|
+
const n2 = r("el-button-group");
|
|
16
|
+
return p(), a(n2, { ref_key: "componentRef", ref: _, class: i(["amb-button-group-main", s(b)]), style: g(d.value) }, { default: l(() => [(p(true), c(f, null, m(e3.configure.items, (t3, n3) => (p(), a(x, { key: t3.uuid, pageContext: e3.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
|
+
}), (e3, t2) => {
|
|
35
|
+
const l2 = u("el-button"), n2 = u("el-icon"), o2 = u("el-text"), C2 = u("el-dropdown-item"), k2 = u("el-dropdown-menu"), _2 = u("el-dropdown");
|
|
36
|
+
return a(), i(_2, { 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(k2, null, { default: c(() => [(a(true), g(f, null, y(s(O), (t3, l3) => (a(), i(C2, { key: t3, onClick: (l4) => s(x)(l4, e3.pageContext, e3.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(l2, { 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(o2, { key: 1 }, { default: c(() => [d(m(s(w)(B.value.title)) + " ", 1), v(n2, 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) => (e3, r2) => (o(), t(n, { configure: e3.configure, pageContext: e3.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
|
+
}), (e3, t2) => {
|
|
15
|
+
const l2 = u("el-button"), n2 = u("ArrowDown"), y2 = u("el-icon"), _3 = u("el-text"), w2 = u("el-dropdown-item"), T = u("el-dropdown-menu"), h = u("el-dropdown");
|
|
16
|
+
return j.value ? (a(), o(h, { 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(T, null, { default: s(() => [(a(true), g(c, null, d(z.value.template, (t3, l3) => (a(), o(w2, { key: t3, onClick: (l4) => r(b)(l4, e3.pageContext, e3.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(l2, { key: 0, size: z.value.size, type: z.value.buttonType, onClick: t2[0] || (t2[0] = (t3) => r(b)(t3, e3.pageContext, e3.configure, "menuClick")) }, { default: s(() => [m(f(r(C)(z.value.title)), 1)]), _: 1 }, 8, ["size", "type"]))], 64)) : (a(), o(_3, { key: 1 }, { default: s(() => [m(f(r(C)(z.value.title)) + " ", 1), v(y2, null, { default: s(() => [v(n2)]), _: 1 })]), _: 1 }))]), _: 1 }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"])) : (a(), o(k, { key: 0, configure: e3.configure, pageContext: e3.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, M);
|
|
49
|
-
}, chartOption: Q }), (
|
|
49
|
+
}, chartOption: Q }), (e3, r2) => (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: 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
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,13 +1,9 @@
|
|
|
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(e2) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
} });
|
|
1
|
+
import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as d, Fragment as n, renderList as p } from "vue";
|
|
2
|
+
const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
|
|
3
|
+
}), (l2, t2) => {
|
|
4
|
+
const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
|
|
5
|
+
return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, 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(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[1] || (t2[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": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
|
|
6
|
+
}) });
|
|
11
7
|
export {
|
|
12
8
|
t as default
|
|
13
9
|
};
|
|
@@ -3,13 +3,12 @@ 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 w } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
const x = { class: "amb-widget-chart-header" }, O = { 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 (e3 >= o2)
|
|
12
|
-
else {
|
|
11
|
+
if (!(e3 >= o2)) {
|
|
13
12
|
for (let r2 = o2 - 1; r2 >= e3; r2--) N.headerInfo.drillOptions.splice(r2, 1);
|
|
14
13
|
q(e3);
|
|
15
14
|
}
|
|
@@ -35,7 +34,7 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
35
34
|
for (let e4 of o2.variables) {
|
|
36
35
|
if (!e4.fieldName || !e4.variable) continue;
|
|
37
36
|
const o3 = y(r2, e4.fieldName, void 0);
|
|
38
|
-
|
|
37
|
+
w(N.pageContext.entity, e4.variable, o3);
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
N.headerInfo.drillOptions || (N.headerInfo.drillOptions = []);
|
|
@@ -47,12 +46,11 @@ const w = { class: "amb-widget-chart-header" }, x = { class: "amb-widget-chart-h
|
|
|
47
46
|
if (r2 + 1 >= N.headerInfo.options.length) {
|
|
48
47
|
return F(o2 && e3.dataIndex < o2.length ? o2[e3.dataIndex] : void 0), void R("drill-end", e3);
|
|
49
48
|
}
|
|
50
|
-
N.headerInfo.options;
|
|
51
49
|
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 };
|
|
52
50
|
N.headerInfo.drillOptions.push(a2), q(r2 + 1);
|
|
53
51
|
}, closeDrill: S }), (o2, v2) => {
|
|
54
|
-
const y2 = r("el-icon"),
|
|
55
|
-
return t(), n("div",
|
|
52
|
+
const y2 = r("el-icon"), w2 = r("el-tooltip");
|
|
53
|
+
return t(), n("div", x, [a("div", O, [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(w2, { 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)]);
|
|
56
54
|
};
|
|
57
55
|
} });
|
|
58
56
|
export {
|