super-page-runtime 2.3.17-sit3 → 2.3.17
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 +73 -73
- 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 +7 -5
- 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/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.vue.js +1 -1
- 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 +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +78 -76
- 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 +13 -11
- 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.vue2.js +27 -26
- package/dist/es/style.css +14 -14
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getOptionDatasSourceMap as e, getComponentOptionDatasFromPage as t, getVariableValue as n, setVariableValue as
|
|
2
|
-
import { getComponentRef as a, getComponentRefByCode as
|
|
3
|
-
import
|
|
1
|
+
import { getOptionDatasSourceMap as e, getComponentOptionDatasFromPage as t, getVariableValue as n, setVariableValue as o, setValueForVariableName as i } from "../page-helper-util.js";
|
|
2
|
+
import { getComponentRef as a, getComponentRefByCode as r } from "../global-refs.js";
|
|
3
|
+
import s from "../eventBus.js";
|
|
4
4
|
import l from "agilebuilder-ui/src/utils/request";
|
|
5
5
|
import { getFormData as c, getAdditionalParamMap as u, refreshPage as m } from "../events/standard-event.js";
|
|
6
6
|
import { dynamicControlTableEdit as f, disabledAllFields as p, updateFormItemEditState as d } from "../events/validator-util.js";
|
|
@@ -10,116 +10,116 @@ import { getFormModelFields as E, getModelFields as P } from "../page-init-util.
|
|
|
10
10
|
import { getCustomFunc as C } from "../events/event-util.js";
|
|
11
11
|
import { isHasFieldPermissionAuth as k } from "../table-utils.js";
|
|
12
12
|
import "dayjs";
|
|
13
|
-
const
|
|
14
|
-
n2 ?
|
|
15
|
-
const n3 =
|
|
16
|
-
n3
|
|
13
|
+
const T = { showElement: function(e2, t2, n2) {
|
|
14
|
+
n2 ? O(e2, "showElement", t2) : t2.forEach((t3) => {
|
|
15
|
+
const n3 = r(e2, t3);
|
|
16
|
+
n3 ? n3.show() : console.error(`未找到code为${t3}的组件`);
|
|
17
17
|
});
|
|
18
18
|
}, hideElement: function(e2, t2, n2) {
|
|
19
|
-
n2 ?
|
|
20
|
-
const n3 =
|
|
21
|
-
n3
|
|
19
|
+
n2 ? O(e2, "hideElement", t2) : t2.forEach((t3) => {
|
|
20
|
+
const n3 = r(e2, t3);
|
|
21
|
+
n3 ? n3.hide() : console.error(`未找到code为${t3}的组件`);
|
|
22
22
|
});
|
|
23
23
|
}, enableElement: function(e2, t2, n2) {
|
|
24
|
-
n2 ?
|
|
25
|
-
const n3 =
|
|
24
|
+
n2 ? O(e2, "enableElement", t2) : t2.forEach((t3) => {
|
|
25
|
+
const n3 = r(e2, t3);
|
|
26
26
|
if (n3) {
|
|
27
27
|
const e3 = n3.getConfigure();
|
|
28
28
|
e3 && e3.runtime.props && (e3.runtime.props.state = "enabled");
|
|
29
|
-
}
|
|
29
|
+
} else console.error(`未找到code为${t3}的组件`);
|
|
30
30
|
});
|
|
31
31
|
}, disableElement: function(e2, t2, n2) {
|
|
32
|
-
n2 ?
|
|
33
|
-
const n3 =
|
|
32
|
+
n2 ? O(e2, "disableElement", t2) : t2.forEach((t3) => {
|
|
33
|
+
const n3 = r(e2, t3);
|
|
34
34
|
if (n3) {
|
|
35
35
|
const e3 = n3.getConfigure();
|
|
36
36
|
e3 && e3.runtime.props && (e3.runtime.props.state = "disabled");
|
|
37
|
-
}
|
|
37
|
+
} else console.error(`未找到code为${t3}的组件`);
|
|
38
38
|
});
|
|
39
39
|
}, setEntityDataValue: function(e2, t2) {
|
|
40
40
|
Object.keys(t2).forEach((n2) => {
|
|
41
|
-
|
|
41
|
+
i(e2.entity, n2.startsWith("${") ? n2 : "${data." + n2 + "}", t2[n2]);
|
|
42
42
|
});
|
|
43
43
|
}, setEntityPageValue: function(e2, t2) {
|
|
44
44
|
Object.keys(t2).forEach((n2) => {
|
|
45
|
-
|
|
45
|
+
i(e2.entity, n2.startsWith("${") ? n2 : "${page." + n2 + "}", t2[n2]);
|
|
46
46
|
});
|
|
47
47
|
}, setEntityValueByType: function(e2, t2, n2) {
|
|
48
|
-
Object.keys(n2).forEach((
|
|
49
|
-
|
|
48
|
+
Object.keys(n2).forEach((o2) => {
|
|
49
|
+
i(e2.entity, o2.startsWith("${") ? o2 : "${" + t2 + "." + o2 + "}", n2[o2]);
|
|
50
50
|
});
|
|
51
51
|
}, dynamicControlFormEdit: function(e2, t2, n2) {
|
|
52
|
-
n2 ?
|
|
52
|
+
n2 ? O(e2, "dynamicControlFormEdit", t2) : d(e2, t2);
|
|
53
53
|
}, disabledAllFields(e2) {
|
|
54
54
|
p(e2);
|
|
55
55
|
}, dynamicControlTableEdit(e2, t2, n2) {
|
|
56
56
|
f(e2, t2, n2);
|
|
57
57
|
}, executeServiceFlow: function(e2, t2, n2) {
|
|
58
|
-
const
|
|
58
|
+
const o2 = e2.code;
|
|
59
59
|
n2 || (n2 = { entity: e2.entity.data, serviceVariables: {}, requestParams: u(e2), taskParamMap: e2.entity.task, dynamicDimensionValue: [], dynamicSortValue: "" }), n2.entity || (n2.entity = e2.entity.data), n2.requestParams || (n2.requestParams = u(e2)), n2.taskParamMap || (n2.taskParamMap = e2.entity.task);
|
|
60
|
-
const
|
|
61
|
-
return l.post(`${a2}/dsc/service-flow/execute/${
|
|
60
|
+
const i2 = e2.backendUrl, a2 = y(i2, e2.isTest);
|
|
61
|
+
return l.post(`${a2}/dsc/service-flow/execute/${o2}/${t2}`, n2);
|
|
62
62
|
}, openPage: function(e2, t2) {
|
|
63
|
-
|
|
63
|
+
s.$emit(e2.code + "_open-dialog", { pageContext: e2, eventParams: t2.eventParams, configureObj: { props: { linkPage: t2 } } });
|
|
64
64
|
}, refreshPage: function(e2, t2) {
|
|
65
65
|
m(e2, t2);
|
|
66
66
|
}, refreshSubTableHandle: function(e2, t2) {
|
|
67
67
|
let n2;
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
70
|
-
const e3 =
|
|
68
|
+
const o2 = r(e2, t2);
|
|
69
|
+
if (o2) {
|
|
70
|
+
const e3 = o2.getConfigure();
|
|
71
71
|
e3 && e3.uuid && e3.name && "table" === e3.name && (n2 = e3.uuid);
|
|
72
72
|
}
|
|
73
|
-
n2
|
|
73
|
+
n2 ? s.$emit("_refreshSubTableHandle_" + n2) : console.error("tableUUid is undefined");
|
|
74
74
|
}, refreshChildData(e2, t2, n2) {
|
|
75
|
-
let
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
78
|
-
const e3 =
|
|
79
|
-
e3 && e3.uuid && e3.name && "table" === e3.name && (
|
|
75
|
+
let o2;
|
|
76
|
+
const i2 = r(e2, t2);
|
|
77
|
+
if (i2) {
|
|
78
|
+
const e3 = i2.getConfigure();
|
|
79
|
+
e3 && e3.uuid && e3.name && "table" === e3.name && (o2 = e3.uuid);
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
o2 ? s.$emit("_refreshChildData_" + o2, n2) : console.error("tableUUid is undefined");
|
|
82
82
|
}, getServerConfigValue: (e2) => window.$vueApp.config.globalProperties[e2], getBackendUrl: (e2) => y(e2.backendUrl, false), getPlateBackendUrl: () => window.$vueApp.config.globalProperties.baseAPI, getEntity: (e2) => e2.entity.data, getEntityValue: (e2, t2) => e2.entity.data ? e2.entity.data[t2] : null, getPageData: (e2) => e2.entity.page, getPageDataValue: (e2, t2) => e2.entity.page ? e2.entity.page[t2] : null, getAdditionalParams: (e2) => u(e2), getAdditionalParamValue(e2, t2) {
|
|
83
83
|
const n2 = u(e2);
|
|
84
84
|
return n2 ? n2[t2] : null;
|
|
85
|
-
}, isMobile: () => h(), getComponentRefByProp: (e2, t2) =>
|
|
85
|
+
}, isMobile: () => h(), getComponentRefByProp: (e2, t2) => r(e2, t2), getComponentRefByCode: (e2, t2) => a(e2, t2), getFormViewData(i2) {
|
|
86
86
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
87
|
-
const
|
|
87
|
+
const r2 = i2.entity ? i2.entity : {}, s2 = g(r2), l2 = e(i2);
|
|
88
88
|
for (const e2 in l2) {
|
|
89
|
-
const
|
|
89
|
+
const r3 = t(i2, e2), l3 = a(i2, e2);
|
|
90
90
|
if (l3) {
|
|
91
91
|
const e3 = l3.getConfigure();
|
|
92
92
|
if (e3) if (!((_b = (_a = e3.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.optionValueSetType) || "static" !== ((_d = (_c = e3.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.optionValueSetType) && "optionGroup" !== ((_f = (_e = e3.props) == null ? void 0 : _e.dataOrigin) == null ? void 0 : _f.optionValueSetType)) {
|
|
93
93
|
if ("dynamicData" === ((_h = (_g = e3 == null ? void 0 : e3.props) == null ? void 0 : _g.dataOrigin) == null ? void 0 : _h.optionValueSetType) && ("select" === (e3 == null ? void 0 : e3.name) || "checkbox" === (e3 == null ? void 0 : e3.name) || "radio" === (e3 == null ? void 0 : e3.name))) {
|
|
94
|
-
const t2 = E(
|
|
95
|
-
|
|
94
|
+
const t2 = E(i2, e3), a2 = l3.getSelectItemsTitle(), r4 = a2 && a2.length > 0 ? a2 : n(s2, t2);
|
|
95
|
+
o(s2, t2, r4);
|
|
96
96
|
}
|
|
97
97
|
} else if (e3.name && ("select" === e3.name && ((_j = (_i = e3.props) == null ? void 0 : _i.base) == null ? void 0 : _j.multiple) || "checkbox" === e3.name)) {
|
|
98
|
-
const t2 = E(
|
|
98
|
+
const t2 = E(i2, e3), a2 = n(s2, t2);
|
|
99
99
|
if (a2) {
|
|
100
|
-
const e4 =
|
|
101
|
-
|
|
100
|
+
const e4 = v(a2.split(","), r3);
|
|
101
|
+
o(s2, t2, e4);
|
|
102
102
|
}
|
|
103
103
|
} else {
|
|
104
|
-
const t2 = E(
|
|
105
|
-
|
|
104
|
+
const t2 = E(i2, e3), a2 = v(n(s2, t2), r3);
|
|
105
|
+
o(s2, t2, a2);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
const c2 =
|
|
109
|
+
const c2 = i2.listCodesMap;
|
|
110
110
|
for (const e2 in c2) {
|
|
111
111
|
let t2;
|
|
112
112
|
if (e2.indexOf("__") > 0 && (t2 = e2.substring(e2.lastIndexOf("__") + 2)), t2) {
|
|
113
|
-
const
|
|
114
|
-
if (
|
|
115
|
-
const t3 =
|
|
113
|
+
const o2 = a(i2, t2);
|
|
114
|
+
if (o2) {
|
|
115
|
+
const t3 = o2.getConfigure(), i3 = t3.code ? t3.code : e2, a2 = P(t3, i3), r3 = n(s2, a2), l3 = o2.getTableSelectOptions(e2), c3 = o2.getColumns(), u2 = {}, m2 = {};
|
|
116
116
|
c3 && c3.length > 0 && c3.forEach((e3) => {
|
|
117
|
-
"DATE"
|
|
118
|
-
}), u2.formatDateColumns = m2,
|
|
117
|
+
"DATE" !== e3.dataType && "TIME" !== e3.dataType || (m2[e3.prop] = e3);
|
|
118
|
+
}), u2.formatDateColumns = m2, $(l3, r3, u2, o2);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return s2.data;
|
|
123
123
|
}, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) => C(e2, t2), replaceUrlPrefix: (e2) => b(e2), isHasFieldAuthPermission: (e2) => {
|
|
124
124
|
var _a, _b, _c, _d;
|
|
125
125
|
return !(void 0 !== ((_b = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isHasFieldAuthPermission) && !((_d = (_c = e2 == null ? void 0 : e2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.isHasFieldAuthPermission));
|
|
@@ -128,50 +128,50 @@ const v = { showElement: function(e2, t2, n2) {
|
|
|
128
128
|
}, isHasFieldAuthWithTable(e2, t2, n2) {
|
|
129
129
|
k(e2, t2, n2);
|
|
130
130
|
} };
|
|
131
|
-
function
|
|
131
|
+
function $(e2, t2, n2, o2) {
|
|
132
132
|
if (e2 && t2) {
|
|
133
|
-
const
|
|
133
|
+
const i2 = o2.getSuperGridRef();
|
|
134
134
|
t2.forEach((t3) => {
|
|
135
135
|
if (n2 == null ? void 0 : n2.formatDateColumns) {
|
|
136
136
|
const e3 = n2.formatDateColumns;
|
|
137
137
|
Object.keys(e3).forEach((n3) => {
|
|
138
|
-
const
|
|
139
|
-
t3[n3] && (t3[n3] =
|
|
138
|
+
const o3 = e3[n3];
|
|
139
|
+
t3[n3] && (t3[n3] = i2.rowDoFormat(o3, t3[n3]));
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
Object.keys(e2).forEach((n3) => {
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
if (
|
|
146
|
-
if (
|
|
147
|
-
|
|
143
|
+
const o3 = t3[n3], i3 = e2[n3], a2 = i3.options, r2 = i3.column;
|
|
144
|
+
let s2;
|
|
145
|
+
if (r2 && r2.componentType && ("multiselect" === r2.componentType || "checkbox" === r2.componentType)) {
|
|
146
|
+
if (o3) {
|
|
147
|
+
s2 = v(o3.split(","), a2);
|
|
148
148
|
}
|
|
149
|
-
} else
|
|
150
|
-
t3[n3] =
|
|
149
|
+
} else s2 = v(o3, a2);
|
|
150
|
+
t3[n3] = s2;
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function v(e2, t2) {
|
|
156
156
|
let n2;
|
|
157
|
-
return null != e2 && t2 && (Array.isArray(e2) ? (n2 = "", e2.forEach((
|
|
158
|
-
n2 = n2 +
|
|
159
|
-
}), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 =
|
|
157
|
+
return null != e2 && t2 && (Array.isArray(e2) ? (n2 = "", e2.forEach((o2) => {
|
|
158
|
+
n2 = n2 + j(e2, t2) + ",";
|
|
159
|
+
}), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 = j(e2, t2))), n2;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function j(e2, t2) {
|
|
162
162
|
let n2 = e2;
|
|
163
|
-
if (null != e2 && t2) for (let
|
|
164
|
-
const
|
|
165
|
-
if (e2 + "" ==
|
|
163
|
+
if (null != e2 && t2) for (let o2 = 0; o2 < t2.length; o2++) {
|
|
164
|
+
const i2 = t2[o2].value, a2 = t2[o2].label ? t2[o2].label : t2[o2].name;
|
|
165
|
+
if (e2 + "" == i2 + "" && null != a2) {
|
|
166
166
|
n2 = a2;
|
|
167
167
|
break;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
return n2;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function O(e2, t2, n2) {
|
|
173
173
|
e2.initInfo || (e2.initInfo = {}), e2.initInfo[t2] = n2;
|
|
174
174
|
}
|
|
175
175
|
export {
|
|
176
|
-
|
|
176
|
+
T as functions
|
|
177
177
|
};
|
|
@@ -146,10 +146,10 @@ function T(e2, t2, i2) {
|
|
|
146
146
|
r3 ? n(r3) ? r3.then((n2) => {
|
|
147
147
|
n2 ? A(e2, t2, c2, i2) : e2.canClick = true;
|
|
148
148
|
}).catch((n2) => {
|
|
149
|
-
e2.canClick = true;
|
|
149
|
+
console.error(n2), e2.canClick = true;
|
|
150
150
|
}) : A(e2, t2, c2, i2) : e2.canClick = true;
|
|
151
151
|
}).catch((n2) => {
|
|
152
|
-
e2.canClick = true;
|
|
152
|
+
console.error(n2), e2.canClick = true;
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
function F(e2, n2, t2, i2, o2) {
|
|
@@ -214,7 +214,7 @@ function A(e2, t2, i2, o2) {
|
|
|
214
214
|
n(a2) ? a2.then((n2) => {
|
|
215
215
|
n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
|
|
216
216
|
}).catch((n2) => {
|
|
217
|
-
e3.canClick = true;
|
|
217
|
+
console.error(n2), e3.canClick = true;
|
|
218
218
|
}) : q(e3, t3, o3, c2, a2, u3);
|
|
219
219
|
} else q(e3, t3, o3, false, null, u3);
|
|
220
220
|
}(e2, t2, i2, o2);
|
|
@@ -3,26 +3,27 @@ import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
|
|
|
3
3
|
import { generateCodeByRule as o } from "../barcode-util.js";
|
|
4
4
|
function a(n2, a2) {
|
|
5
5
|
e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [a2]).then((e2) => {
|
|
6
|
-
const a3 = JSON.parse(e2[0].template),
|
|
6
|
+
const a3 = JSON.parse(e2[0].template), r2 = [];
|
|
7
7
|
a3.panels.forEach((e3) => {
|
|
8
8
|
e3.printElements.forEach((e4) => {
|
|
9
|
-
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType ||
|
|
9
|
+
"barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || r2.push(e4.options);
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
const
|
|
12
|
+
const i = new t.PrintTemplate({ template: a3 }), l = { callback: () => {
|
|
13
13
|
}, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
|
|
14
14
|
a3.panels[0].printElements.forEach((e3) => {
|
|
15
15
|
if ("datetime" === e3.options.dataType && e3.options.field) {
|
|
16
16
|
const t2 = e3.options.field.substring(6);
|
|
17
17
|
f[t2] = e3.options.dateFormat;
|
|
18
18
|
}
|
|
19
|
-
}), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2,
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
19
|
+
}), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, r3) {
|
|
20
|
+
const i2 = JSON.parse(JSON.stringify(e3.selections));
|
|
21
|
+
if (i2.forEach((e4) => {
|
|
22
22
|
Object.keys(t2).forEach((t3) => {
|
|
23
23
|
if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
|
|
24
24
|
e4[t3] = new Date(e4[t3]);
|
|
25
25
|
} catch (e5) {
|
|
26
|
+
console.error(`日期格式化失败: ${e5}`);
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
}), n3.length > 0) {
|
|
@@ -30,51 +31,51 @@ function a(n2, a2) {
|
|
|
30
31
|
n3.forEach((t3) => {
|
|
31
32
|
e4.push(function(e5, t4) {
|
|
32
33
|
return new Promise((n4, a5) => {
|
|
33
|
-
const s3 = e5.field.split("."),
|
|
34
|
+
const s3 = e5.field.split("."), r4 = [];
|
|
34
35
|
s3.length < 2 && n4([]);
|
|
35
36
|
try {
|
|
36
37
|
p(s3[1]).then((e6) => {
|
|
37
38
|
t4.forEach((t5, n5) => {
|
|
38
39
|
const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
|
|
39
|
-
a6.value = o(JSON.parse(e6.barcodeModelItems), t5),
|
|
40
|
-
}), n4(
|
|
40
|
+
a6.value = o(JSON.parse(e6.barcodeModelItems), t5), r4.push(a6);
|
|
41
|
+
}), n4(r4);
|
|
41
42
|
});
|
|
42
43
|
} catch (e6) {
|
|
43
|
-
n4([]);
|
|
44
|
+
console.error("获取条码规则失败:", e6), n4([]);
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
|
-
}(t3,
|
|
47
|
+
}(t3, i2));
|
|
47
48
|
}), Promise.all(e4).then((e5) => {
|
|
48
49
|
e5.forEach((e6) => {
|
|
49
50
|
e6.forEach((e7) => {
|
|
50
|
-
const t3 = e7.index, n4 =
|
|
51
|
+
const t3 = e7.index, n4 = i2[t3];
|
|
51
52
|
n4[e7.type] || (n4[e7.type] = {}), n4[e7.type][e7.name] = e7.value;
|
|
52
53
|
});
|
|
53
|
-
}), a4.print(
|
|
54
|
+
}), a4.print(i2, s2, r3);
|
|
54
55
|
});
|
|
55
|
-
} else a4.print(
|
|
56
|
-
}(n2, f,
|
|
56
|
+
} else a4.print(i2, s2, r3);
|
|
57
|
+
}(n2, f, r2, i, c, l) : "form" === n2.pageContext.pageType && s(n2, r2, i, c, l) : s(n2, r2, i, c, l);
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
60
|
function s(e2, t2, n2, a2, s2) {
|
|
60
61
|
if (t2.length > 0) {
|
|
61
|
-
const
|
|
62
|
+
const r2 = [];
|
|
62
63
|
t2.forEach((t3) => {
|
|
63
|
-
|
|
64
|
+
r2.push(function(e3, t4) {
|
|
64
65
|
return new Promise((n3, a3) => {
|
|
65
|
-
const s3 = t4.field.split("."),
|
|
66
|
-
s3.length < 2 && n3(
|
|
66
|
+
const s3 = t4.field.split("."), r3 = { type: null, name: null, value: null };
|
|
67
|
+
s3.length < 2 && n3(r3), r3.type = s3[0], r3.name = s3[1];
|
|
67
68
|
try {
|
|
68
|
-
p(
|
|
69
|
+
p(r3.name).then((t5) => {
|
|
69
70
|
const a4 = JSON.parse(t5.barcodeModelItems);
|
|
70
|
-
|
|
71
|
+
r3.value = o(a4, e3.entity.data), n3(r3);
|
|
71
72
|
});
|
|
72
73
|
} catch (e4) {
|
|
73
|
-
n3(
|
|
74
|
+
console.error("获取条码规则失败:", e4), n3(r3);
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
77
|
}(e2.pageContext, t3));
|
|
77
|
-
}), Promise.all(
|
|
78
|
+
}), Promise.all(r2).then((t3) => {
|
|
78
79
|
const o2 = {};
|
|
79
80
|
t3.forEach((e3) => {
|
|
80
81
|
e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
|
|
@@ -92,8 +93,8 @@ function p(t2) {
|
|
|
92
93
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
|
|
93
94
|
}
|
|
94
95
|
n();
|
|
95
|
-
const
|
|
96
|
+
const r = { printLabel: a };
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
r as default,
|
|
98
99
|
a as printLabel
|
|
99
100
|
};
|
|
@@ -279,7 +279,8 @@ const D = { save: function(e2) {
|
|
|
279
279
|
let t2 = null;
|
|
280
280
|
try {
|
|
281
281
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
282
|
-
} catch (
|
|
282
|
+
} catch (t3) {
|
|
283
|
+
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
283
284
|
}
|
|
284
285
|
A.printLabel(e3, t2);
|
|
285
286
|
}(e2);
|
|
@@ -447,11 +448,10 @@ function H(t2, s2, n2, o2, a2) {
|
|
|
447
448
|
let a3 = s3.props.base.successOperation;
|
|
448
449
|
const i3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
|
|
449
450
|
a3 || K.includes(s3.name) || (a3 = "refresh");
|
|
450
|
-
if ("refresh" === a3) {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
451
|
+
if ("refresh" === a3) if (r2) {
|
|
452
|
+
b(t3, r2).refresh();
|
|
453
|
+
} else console.error("tableUuid is empty");
|
|
454
|
+
else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
455
455
|
const o4 = e(t3.entity.page);
|
|
456
456
|
let a4 = n3;
|
|
457
457
|
a4 || (a4 = {}), Object.assign(o4, a4), Y(t3, s3, o4, i3);
|
|
@@ -523,7 +523,7 @@ function X(e2, t2, s2, n2) {
|
|
|
523
523
|
const s3 = h(e2, t2);
|
|
524
524
|
if (s3) {
|
|
525
525
|
b(e2, s3).refresh();
|
|
526
|
-
}
|
|
526
|
+
} else console.error("tableUuid is empty");
|
|
527
527
|
} else if (a2 && "form" === a2) {
|
|
528
528
|
const t3 = e2.entity.data;
|
|
529
529
|
he(e2, t3.ID ? t3.ID : t3.id);
|
|
@@ -624,7 +624,7 @@ function te(e2) {
|
|
|
624
624
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
625
625
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
626
626
|
const d2 = ce(t2);
|
|
627
|
-
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids
|
|
627
|
+
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids ? c2.ids = [d2.ids] : console.error("ids参数类型错误"));
|
|
628
628
|
const m2 = n2.props.base.successOperation;
|
|
629
629
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
630
630
|
}
|
|
@@ -961,7 +961,7 @@ function ye(e2, s2, o2) {
|
|
|
961
961
|
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
962
962
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
963
963
|
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
964
|
-
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
964
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
965
965
|
const t3 = {};
|
|
966
966
|
e3.tableUuids.forEach((e4) => {
|
|
967
967
|
const s4 = r(u2, l2, e4);
|
|
@@ -1015,7 +1015,7 @@ function ye(e2, s2, o2) {
|
|
|
1015
1015
|
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
1016
1016
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1017
1017
|
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1018
|
-
if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = Pe(m2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1018
|
+
if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = Pe(m2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1019
1019
|
const t3 = {};
|
|
1020
1020
|
e3.tableUuids.forEach((e4) => {
|
|
1021
1021
|
const s4 = r(u2, l2, e4);
|
|
@@ -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
|
-
e6(false);
|
|
188
|
+
console.error(t3), e6(false);
|
|
189
189
|
}) : e6(true);
|
|
190
190
|
});
|
|
191
191
|
return null;
|
|
@@ -71,9 +71,10 @@ function b(e2) {
|
|
|
71
71
|
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
72
72
|
}), e2.props.judgeHeavyList) : null;
|
|
73
73
|
} catch (e3) {
|
|
74
|
+
console.error("getJudgeHeavyList error:", e3);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function y(e2) {
|
|
77
78
|
let t2 = decodeURI(window.location.href);
|
|
78
79
|
try {
|
|
79
80
|
window.top && !Array.isArray(window.top) && (t2 = decodeURI(window.top.location.href));
|
|
@@ -93,14 +94,14 @@ function w(e2) {
|
|
|
93
94
|
}
|
|
94
95
|
e2._t_;
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function w(e2, t2) {
|
|
97
98
|
if (e2) {
|
|
98
99
|
Object.assign(t2, e2);
|
|
99
100
|
P(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
function h(e2, t2) {
|
|
103
|
-
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
104
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query, e2.query)) {
|
|
104
105
|
Object.assign(t2, e2.query);
|
|
105
106
|
P(e2.query.paramStoreId, t2);
|
|
106
107
|
}
|
|
@@ -143,6 +144,7 @@ function v(e2, t2, i2) {
|
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
} catch (e3) {
|
|
147
|
+
console.error("设置默认值出错:", n2, e3);
|
|
146
148
|
}
|
|
147
149
|
}
|
|
148
150
|
}
|
|
@@ -242,8 +244,8 @@ export {
|
|
|
242
244
|
v as getFormModelFields,
|
|
243
245
|
E as getModelFields,
|
|
244
246
|
M as getPermissionCodes,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
y as packageAdditionalMapWithLocationSearch,
|
|
248
|
+
w as packageAdditionalMapWithPageRequest,
|
|
247
249
|
h as packageAdditionalMapWithRoute,
|
|
248
250
|
j as packageFormRules,
|
|
249
251
|
f as queryPageDesignByCode,
|
|
@@ -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
|
};
|