super-page-runtime 2.3.33-sit2 → 2.3.33
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 +116 -116
- package/dist/es/components/runtime/utils/events/print-label.js +27 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +738 -726
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- 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 +130 -125
- 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/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 +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/common/common-homepage-search.vue2.js +1 -1
- 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 +15 -14
- 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 +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
- 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/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 +3 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- 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 +22 -20
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +119 -116
- 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 +46 -45
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -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 +28 -28
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
- 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 +9 -9
- 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 +57 -56
- 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 +12 -11
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +19 -18
- 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 +18 -16
- 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/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 +183 -182
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
3
|
+
import { PageDimensions as i } from "./interfaces/page-design-types.js";
|
|
4
|
+
import { getFormPropName as o, 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((i2, o2) => {
|
|
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, i2(e2)) : i2(null);
|
|
18
18
|
});
|
|
19
19
|
}).catch(() => {
|
|
20
|
-
|
|
21
|
-
}) :
|
|
20
|
+
i2(e2);
|
|
21
|
+
}) : i2(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((i2, o2) => {
|
|
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, i2(e2);
|
|
30
30
|
}).catch((e3) => {
|
|
31
|
-
|
|
31
|
+
console.log("queryPageSuperGrids error", e3), o2(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, i2(e2)) : i2(null);
|
|
34
34
|
}).catch((e3) => {
|
|
35
|
-
|
|
35
|
+
console.log("queryPageRuntimeParam error", e3), o2(e3);
|
|
36
36
|
});
|
|
37
|
-
}) :
|
|
37
|
+
}) : i2(null);
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function g(t2,
|
|
41
|
-
let
|
|
42
|
-
return t2 &&
|
|
40
|
+
function g(t2, i2) {
|
|
41
|
+
let o2 = "";
|
|
42
|
+
return t2 && i2 && (o2 = "?listViewTableName=" + t2 + "&listViewTablePublishVersion=" + i2), e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime-param" + o2);
|
|
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 i2 = e2.props.notIdInitializationList;
|
|
53
|
+
"string" == typeof i2 && (i2 = JSON.parse(i2)), i2.length > 0 && (t2.notIdInitializationList = i2);
|
|
54
54
|
}
|
|
55
55
|
if (e2.variables) {
|
|
56
|
-
const
|
|
57
|
-
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ?
|
|
56
|
+
const i2 = t2.entity.page;
|
|
57
|
+
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? i2[t3.name] = [] : t3.defaultValue ? i2[t3.name] = t3.defaultValue : i2[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 i.PC;
|
|
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
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"), i2 = window.CryptoJS.enc.Latin1.parse("1234567812345678");
|
|
77
|
+
return window.CryptoJS.AES.decrypt(e3, t3, { iv: i2, 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,13 +102,13 @@ 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
|
|
108
|
-
if (
|
|
109
|
-
const t4 =
|
|
110
|
-
|
|
105
|
+
const i2 = t2.split("&");
|
|
106
|
+
for (const t3 of i2) {
|
|
107
|
+
const i3 = t3.split("=");
|
|
108
|
+
let o2 = i3[0];
|
|
109
|
+
if (o2) {
|
|
110
|
+
const t4 = i3.length > 1 ? i3[1] : "";
|
|
111
|
+
o2.indexOf("ai__") >= 0 && (o2 = o2.substring(o2.indexOf("ai__") + 4)), e2[o2] = t4;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
}
|
|
@@ -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 i2 = a(e2);
|
|
135
|
+
if (i2) {
|
|
136
|
+
const e3 = JSON.parse(i2);
|
|
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 i2, o2 = t2;
|
|
143
|
+
t2 || (i2 = e2.props.base ? e2.props.base : {}, o2 = i2.prop);
|
|
144
|
+
let n2 = null;
|
|
145
|
+
return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || o2 && o2.startsWith("${") ? o2.startsWith("${") ? (o2 = o2.substring(2, o2.length - 1), n2 = o2.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, i2) {
|
|
144
148
|
var _a, _b;
|
|
145
|
-
const
|
|
146
|
-
if (null ==
|
|
147
|
-
let
|
|
148
|
-
t2 && (
|
|
149
|
-
const l2 =
|
|
149
|
+
const o2 = A(t2, i2), r2 = e2.entity;
|
|
150
|
+
if (null == r2.data.ID && null == r2.data.id) {
|
|
151
|
+
let i3, s2, a2 = false;
|
|
152
|
+
t2 && (i3 = t2.props.base ? t2.props.base : {}, s2 = t2.name, a2 = i3.multiple);
|
|
153
|
+
const l2 = n(r2, o2);
|
|
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 = i3 ? i3.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, o2, t3, l3);
|
|
159
|
+
else if (((_b = i3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
|
|
160
|
+
const t4 = i3.moreDefaultValue;
|
|
161
|
+
for (let i4 = 0; i4 < t4.length; i4++) {
|
|
162
|
+
const n3 = I(e2, t4[i4], s2, a2);
|
|
163
|
+
if (C(n3)) {
|
|
164
|
+
R(r2, o2, n3, l3);
|
|
161
165
|
break;
|
|
162
166
|
}
|
|
163
167
|
}
|
|
164
168
|
}
|
|
165
169
|
} catch (e3) {
|
|
170
|
+
console.error("设置默认值出错:", o2, e3);
|
|
166
171
|
}
|
|
167
172
|
}
|
|
168
173
|
}
|
|
169
|
-
return
|
|
174
|
+
return o2;
|
|
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, i2, o2) {
|
|
180
|
+
!Array.isArray(i2) || o2 ? s(e2, t2, i2) : s(e2, t2, i2.join(","));
|
|
176
181
|
}
|
|
177
|
-
function
|
|
178
|
-
let
|
|
179
|
-
if (t2 && (
|
|
182
|
+
function I(e2, t2, i2, o2) {
|
|
183
|
+
let n2;
|
|
184
|
+
if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && i2)) {
|
|
180
185
|
let e3 = false;
|
|
181
|
-
"checkbox" ==
|
|
186
|
+
"checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = o2), 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
|
|
193
|
+
const i2 = [];
|
|
194
|
+
if (e2.autoPermissions) for (const o2 of e2.autoPermissions) i2.push(t2.code + "." + o2.simpleCode);
|
|
190
195
|
if (e2.functionCodes) {
|
|
191
|
-
const
|
|
192
|
-
for (let e3 = 0; e3 <
|
|
193
|
-
const
|
|
196
|
+
const o2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
|
|
197
|
+
for (let e3 = 0; e3 < n2.length; e3++) {
|
|
198
|
+
const r2 = n2[e3], s2 = e3 < o2.length ? o2[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
|
+
i2.includes(a2) || i2.push(a2);
|
|
201
206
|
}
|
|
202
207
|
}
|
|
203
|
-
return
|
|
208
|
+
return i2.join(",");
|
|
204
209
|
}
|
|
205
210
|
function O(e2, t2) {
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
208
|
-
for (let t3 = 0; t3 <
|
|
211
|
+
const i2 = t2.pagePermissions;
|
|
212
|
+
if (i2 && i2.length > 0) {
|
|
213
|
+
for (let t3 = 0; t3 < i2.length; t3++) if (i2[t3].simpleCode === e2) return i2[t3];
|
|
209
214
|
}
|
|
210
215
|
return null;
|
|
211
216
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
217
|
+
function T(i2, o2, n2) {
|
|
218
|
+
const r2 = i2.tableRuntimes, s2 = t(o2);
|
|
214
219
|
let a2;
|
|
215
|
-
const l2 =
|
|
216
|
-
return
|
|
220
|
+
const l2 = i2.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: i2.pageType });
|
|
217
222
|
}
|
|
218
|
-
const
|
|
219
|
-
function
|
|
223
|
+
const q = ["button-detail", "print-label"];
|
|
224
|
+
function W(e2, t2, i2) {
|
|
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 i3 = e2.fieldPermissionMap.get("all_fields");
|
|
230
|
+
false === (i3 == null ? void 0 : i3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", s2 = true);
|
|
226
231
|
}
|
|
227
|
-
if (
|
|
228
|
-
const a2 =
|
|
232
|
+
if (n2) {
|
|
233
|
+
const a2 = o(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),
|
|
232
|
-
const
|
|
233
|
-
if (!
|
|
235
|
+
d(e3), !i2 && e3 && e3.required && (e3.required = false);
|
|
236
|
+
}), e2.rules[a2] = t2.props.rules), r2 && !s2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
237
|
+
const o2 = e2.fieldPermissionMap.get(a2);
|
|
238
|
+
if (!i2 && 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 i3 = t3[e3];
|
|
242
|
+
if (i3 && i3.required) {
|
|
243
|
+
i3.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 = {}),
|
|
249
|
+
t2.runtime.props || (t2.runtime.props = {}), o2 ? (!i2 && o2.canEdit && (o2.canEdit = false), false === o2.canEdit ? t2.runtime.props.state = "disabled" : o2.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
|
|
253
|
-
if (
|
|
254
|
-
let
|
|
255
|
-
if (
|
|
256
|
-
const e3 =
|
|
257
|
-
e3.name = t2,
|
|
256
|
+
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((i2) => {
|
|
257
|
+
const o2 = e2.initInfo[i2];
|
|
258
|
+
if (o2) if ("dynamicControlFormEdit" === i2) {
|
|
259
|
+
let i3 = o2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
260
|
+
if (i3 && i3.length > 0 && (i3 = i3.filter((e3) => "_all_fields" === e3.name), i3 && i3.length > 0)) {
|
|
261
|
+
const e3 = p(i3[0]);
|
|
262
|
+
e3.name = t2, i3 = [e3];
|
|
258
263
|
}
|
|
259
|
-
l.dynamicControlFormEdit(e2,
|
|
260
|
-
} else "disableElement" ===
|
|
264
|
+
l.dynamicControlFormEdit(e2, i3, false);
|
|
265
|
+
} else "disableElement" === i2 ? o2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === i2 ? o2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === i2 ? o2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === i2 && o2.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
|
};
|
|
@@ -19,9 +19,9 @@ const V = { class: "page-runtime-header-btn" }, T = e({ __name: "button-runtime"
|
|
|
19
19
|
b.pageContext.exportNoticeInfo && b.pageContext.exportNoticeInfo.noticeInterval && clearInterval(b.pageContext.exportNoticeInfo.noticeInterval);
|
|
20
20
|
}), T2({ click: function() {
|
|
21
21
|
R.value && R.value.$el.click();
|
|
22
|
-
} }), (
|
|
23
|
-
const
|
|
24
|
-
return u(), a("span", V, [z.value.text ? (u(), c(
|
|
22
|
+
} }), (t2, l2) => {
|
|
23
|
+
const i2 = o("el-link"), n2 = o("el-button");
|
|
24
|
+
return u(), a("span", V, [z.value.text ? (u(), c(i2, { 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: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.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(n2, { 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: l2[1] || (l2[1] = (t3) => p(C)(t3, e2.pageContext, e2.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"]))]);
|
|
25
25
|
};
|
|
26
26
|
} });
|
|
27
27
|
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 {
|