super-page-runtime 2.3.14 → 2.3.15-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/ai-chat-util.js +16 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/events/event-util.js +29 -29
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +128 -79
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +109 -92
- package/dist/es/components/runtime/utils/page-permission-util.js +1 -1
- 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 +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 +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 +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +11 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.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 +18 -18
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
- 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 +53 -42
- 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 +14 -15
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +65 -56
- 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 +17 -17
- 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 +0 -1
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +200 -185
- 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 +3 -2
|
@@ -1,26 +1,26 @@
|
|
|
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 s, getVariableValue as o, setVariableValue as n, formatVariableValue as r } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as a } from "./api/page-expose-util.js";
|
|
7
7
|
import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
|
|
8
8
|
import { packageCustomValidator as d } from "./events/validator-util.js";
|
|
9
9
|
import { isMobileBrowser as f } from "agilebuilder-ui/src/utils/common-util";
|
|
10
|
-
function
|
|
10
|
+
function c(t2) {
|
|
11
11
|
return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t2);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function m(e2) {
|
|
14
14
|
var _a, _b, _c;
|
|
15
15
|
if (null == e2) return null;
|
|
16
|
-
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
|
|
16
|
+
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, listCodesInitSearchForm: e2.listCodesInitSearchForm, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: void 0 !== ((_b = e2.props) == null ? void 0 : _b.activeWorkflow) ? (_c = e2.props) == null ? void 0 : _c.activeWorkflow : e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, branchFieldAuth: e2.branchFieldAuth, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam }, propTitleMap: {} };
|
|
17
17
|
if (e2.props && e2.props.notIdInitializationList) {
|
|
18
|
-
let
|
|
19
|
-
"string" == typeof
|
|
18
|
+
let i2 = e2.props.notIdInitializationList;
|
|
19
|
+
"string" == typeof i2 && (i2 = JSON.parse(i2)), i2.length > 0 && (t2.notIdInitializationList = i2);
|
|
20
20
|
}
|
|
21
21
|
if (e2.variables) {
|
|
22
|
-
const
|
|
23
|
-
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ?
|
|
22
|
+
const i2 = t2.entity.page;
|
|
23
|
+
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);
|
|
24
24
|
}
|
|
25
25
|
return function(e3) {
|
|
26
26
|
if (f()) {
|
|
@@ -30,8 +30,8 @@ function c(e2) {
|
|
|
30
30
|
} else e3.entity.page._isMobile = "false";
|
|
31
31
|
}(t2), Object.assign(t2, e2), t2.dimensions = function() {
|
|
32
32
|
const e3 = window.outerWidth;
|
|
33
|
-
if (!e3) return
|
|
34
|
-
return e3 > 768 ?
|
|
33
|
+
if (!e3) return i.PC;
|
|
34
|
+
return e3 > 768 ? i.PC : e3 > 414 ? i.IPAD : i.PHONE;
|
|
35
35
|
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
36
36
|
}
|
|
37
37
|
function g(e2) {
|
|
@@ -40,164 +40,181 @@ function g(e2) {
|
|
|
40
40
|
e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
|
|
41
41
|
}), e2.props.judgeHeavyList) : null;
|
|
42
42
|
} catch (e3) {
|
|
43
|
-
console.error("getJudgeHeavyList error:", e3);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
function b(e2) {
|
|
47
46
|
let t2 = decodeURI(window.location.href);
|
|
47
|
+
try {
|
|
48
|
+
window.top && !Array.isArray(window.top) && (t2 = decodeURI(window.top.location.href));
|
|
49
|
+
} catch (e3) {
|
|
50
|
+
}
|
|
48
51
|
if (t2 && t2.includes("?")) {
|
|
49
52
|
t2 = t2.substring(t2.lastIndexOf("?") + 1);
|
|
50
|
-
const
|
|
51
|
-
for (const t3 of
|
|
52
|
-
const
|
|
53
|
-
let
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
const i2 = t2.split("&");
|
|
54
|
+
for (const t3 of i2) {
|
|
55
|
+
const i3 = t3.split("=");
|
|
56
|
+
let s2 = i3[0];
|
|
57
|
+
if (s2) {
|
|
58
|
+
const t4 = i3.length > 1 ? i3[1] : "";
|
|
59
|
+
s2.indexOf("ai__") >= 0 && (s2 = s2.substring(s2.indexOf("ai__") + 4)), e2[s2] = t4;
|
|
60
|
+
}
|
|
56
61
|
}
|
|
57
62
|
}
|
|
58
63
|
e2._t_;
|
|
59
64
|
}
|
|
60
|
-
function
|
|
65
|
+
function h(e2, t2) {
|
|
61
66
|
if (e2) {
|
|
62
67
|
Object.assign(t2, e2);
|
|
63
68
|
w(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
64
69
|
}
|
|
65
70
|
}
|
|
66
|
-
function
|
|
67
|
-
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query
|
|
71
|
+
function y(e2, t2) {
|
|
72
|
+
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
68
73
|
Object.assign(t2, e2.query);
|
|
69
74
|
w(e2.query.paramStoreId, t2);
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
77
|
function w(e2, t2) {
|
|
73
78
|
if (e2) {
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
const e3 = JSON.parse(
|
|
79
|
+
const i2 = l(e2);
|
|
80
|
+
if (i2) {
|
|
81
|
+
const e3 = JSON.parse(i2);
|
|
77
82
|
Object.assign(t2, e3);
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
85
|
}
|
|
81
86
|
function E(e2, t2) {
|
|
82
|
-
let
|
|
83
|
-
t2 || (
|
|
84
|
-
let
|
|
85
|
-
return t2 && !t2.startsWith("${") ?
|
|
87
|
+
let i2, s2 = t2;
|
|
88
|
+
t2 || (i2 = e2.props.base ? e2.props.base : {}, s2 = i2.prop);
|
|
89
|
+
let o2 = null;
|
|
90
|
+
return t2 && !t2.startsWith("${") ? o2 = ["data", t2] : !e2 || s2 && s2.startsWith("${") ? s2.startsWith("${") ? (s2 = s2.substring(2, s2.length - 1), o2 = s2.split("."), e2 && o2.length < 2 && (o2 = [e2.uuid])) : e2 && (o2 = ["page", e2.uuid]) : o2 = ["page", e2.uuid], o2 || e2 ? o2 : ["temp"];
|
|
86
91
|
}
|
|
87
|
-
function v(e2, t2,
|
|
88
|
-
|
|
92
|
+
function v(e2, t2, i2) {
|
|
93
|
+
var _a;
|
|
94
|
+
const s2 = E(t2, i2), r2 = e2.entity;
|
|
89
95
|
if (null == r2.data.ID && null == r2.data.id) {
|
|
90
|
-
let
|
|
91
|
-
t2 && (
|
|
92
|
-
const p2 =
|
|
96
|
+
let i3, l2, a2 = false;
|
|
97
|
+
t2 && (i3 = t2.props.base ? t2.props.base : {}, l2 = t2.name, a2 = i3.multiple);
|
|
98
|
+
const p2 = o(r2, s2);
|
|
93
99
|
if (null == p2) {
|
|
94
|
-
const t3 =
|
|
95
|
-
if (t3) {
|
|
96
|
-
const
|
|
97
|
-
null !=
|
|
100
|
+
const t3 = i3 ? i3.defaultValue : null;
|
|
101
|
+
if (t3) try {
|
|
102
|
+
const o2 = P(e2, t3, l2, a2);
|
|
103
|
+
if (null != o2 && "" !== o2) n(r2, s2, o2);
|
|
104
|
+
else if (((_a = i3.moreDefaultValue) == null ? void 0 : _a.length) > 0) {
|
|
105
|
+
const t4 = i3.moreDefaultValue;
|
|
106
|
+
for (let i4 = 0; i4 < t4.length; i4++) {
|
|
107
|
+
const o3 = P(e2, t4[i4], l2, a2);
|
|
108
|
+
if (null != o3 && "" !== o3) {
|
|
109
|
+
n(r2, s2, o3);
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
} catch (e3) {
|
|
98
115
|
}
|
|
99
116
|
}
|
|
100
117
|
}
|
|
101
|
-
return
|
|
118
|
+
return s2;
|
|
102
119
|
}
|
|
103
|
-
function P(e2, t2,
|
|
104
|
-
let
|
|
105
|
-
if (t2 && (
|
|
120
|
+
function P(e2, t2, i2, s2) {
|
|
121
|
+
let o2;
|
|
122
|
+
if (t2 && (o2 = r(e2, t2), null != o2 && null != o2 && i2)) {
|
|
106
123
|
let e3 = false;
|
|
107
|
-
"checkbox" ==
|
|
124
|
+
"checkbox" == i2 ? e3 = true : "select" == i2 && (e3 = s2), e3 && (o2 = (o2 + "").split(","));
|
|
108
125
|
}
|
|
109
|
-
return
|
|
126
|
+
return o2;
|
|
110
127
|
}
|
|
111
|
-
function
|
|
128
|
+
function M(e2, t2) {
|
|
112
129
|
var _a, _b;
|
|
113
130
|
if (false === ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isPermission)) return "true";
|
|
114
|
-
const
|
|
115
|
-
if (e2.autoPermissions) for (const
|
|
131
|
+
const i2 = [];
|
|
132
|
+
if (e2.autoPermissions) for (const s2 of e2.autoPermissions) i2.push(t2.code + "." + s2.simpleCode);
|
|
116
133
|
if (e2.functionCodes) {
|
|
117
|
-
const
|
|
118
|
-
for (let e3 = 0; e3 <
|
|
119
|
-
const
|
|
134
|
+
const s2 = e2.sourceTypes ? e2.sourceTypes : [], o2 = e2.functionCodes;
|
|
135
|
+
for (let e3 = 0; e3 < o2.length; e3++) {
|
|
136
|
+
const n2 = o2[e3], r2 = e3 < s2.length ? s2[e3] : "";
|
|
120
137
|
let l2 = "";
|
|
121
|
-
if ("service" == r2) l2 =
|
|
122
|
-
else if ("standard" === r2) l2 = t2.code + "." +
|
|
138
|
+
if ("service" == r2) l2 = n2;
|
|
139
|
+
else if ("standard" === r2) l2 = t2.code + "." + n2;
|
|
123
140
|
else {
|
|
124
|
-
l2 = "custom" ===
|
|
141
|
+
l2 = "custom" === k(n2, t2).type ? n2 : t2.code + "." + n2;
|
|
125
142
|
}
|
|
126
|
-
|
|
143
|
+
i2.includes(l2) || i2.push(l2);
|
|
127
144
|
}
|
|
128
145
|
}
|
|
129
|
-
return
|
|
146
|
+
return i2.join(",");
|
|
130
147
|
}
|
|
131
|
-
function
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
134
|
-
for (let t3 = 0; t3 <
|
|
148
|
+
function k(e2, t2) {
|
|
149
|
+
const i2 = t2.pagePermissions;
|
|
150
|
+
if (i2 && i2.length > 0) {
|
|
151
|
+
for (let t3 = 0; t3 < i2.length; t3++) if (i2[t3].simpleCode === e2) return i2[t3];
|
|
135
152
|
}
|
|
136
153
|
return null;
|
|
137
154
|
}
|
|
138
|
-
function
|
|
139
|
-
const
|
|
155
|
+
function C(i2, s2, o2) {
|
|
156
|
+
const n2 = i2.tableRuntimes, r2 = t(s2);
|
|
140
157
|
let l2;
|
|
141
|
-
const a2 =
|
|
142
|
-
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes:
|
|
158
|
+
const a2 = s2.code;
|
|
159
|
+
return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: n2, additionalParamMapJson: l2, pageCode: a2, publishVersion: o2, pageType: i2.pageType });
|
|
143
160
|
}
|
|
144
161
|
const I = ["button-detail", "print-label"];
|
|
145
|
-
function j(e2, t2,
|
|
162
|
+
function j(e2, t2, i2) {
|
|
146
163
|
var _a, _b;
|
|
147
|
-
const
|
|
164
|
+
const o2 = t2.props && t2.props.base ? t2.props.base.prop : null, n2 = p(e2);
|
|
148
165
|
let r2 = false;
|
|
149
|
-
if (
|
|
150
|
-
const
|
|
151
|
-
false === (
|
|
166
|
+
if (n2 && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
167
|
+
const i3 = e2.fieldPermissionMap.get("all_fields");
|
|
168
|
+
false === (i3 == null ? void 0 : i3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
|
|
152
169
|
}
|
|
153
|
-
if (
|
|
154
|
-
const l2 =
|
|
170
|
+
if (o2) {
|
|
171
|
+
const l2 = s(o2);
|
|
155
172
|
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[l2] || (e2.rules[l2] = []), t2.props.rules.forEach((e3) => {
|
|
156
|
-
d(e3), !
|
|
157
|
-
}), e2.rules[l2] = t2.props.rules),
|
|
158
|
-
const
|
|
159
|
-
if (!
|
|
173
|
+
d(e3), !i2 && e3 && e3.required && (e3.required = false);
|
|
174
|
+
}), e2.rules[l2] = t2.props.rules), n2 && !r2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
175
|
+
const s2 = e2.fieldPermissionMap.get(l2);
|
|
176
|
+
if (!i2 && e2.workflowRules && (e2.workflowRules[l2] || e2.workflowRules.rules && e2.workflowRules.rules[l2])) {
|
|
160
177
|
let t3 = e2.workflowRules[l2];
|
|
161
178
|
if (!t3 && e2.workflowRules.rules && (t3 = e2.workflowRules.rules[l2]), t3 && Array.isArray(t3) && t3.length > 0) for (let e3 = 0; e3 < t3.length; e3++) {
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
|
|
179
|
+
const i3 = t3[e3];
|
|
180
|
+
if (i3 && i3.required) {
|
|
181
|
+
i3.required = false;
|
|
165
182
|
break;
|
|
166
183
|
}
|
|
167
184
|
}
|
|
168
185
|
else t3 && t3.required && (t3.required = false);
|
|
169
186
|
}
|
|
170
|
-
t2.runtime.props || (t2.runtime.props = {}),
|
|
187
|
+
t2.runtime.props || (t2.runtime.props = {}), s2 ? (!i2 && s2.canEdit && (s2.canEdit = false), false === s2.canEdit ? t2.runtime.props.state = "disabled" : s2.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true)) : t2.runtime.props.state = "";
|
|
171
188
|
}
|
|
172
189
|
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: l2, events: t2.props.customRuleEvents }));
|
|
173
190
|
}
|
|
174
191
|
}
|
|
175
192
|
function O(e2, t2) {
|
|
176
193
|
if (e2.initInfo) {
|
|
177
|
-
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
180
|
-
let
|
|
181
|
-
if (
|
|
182
|
-
const e3 = u(
|
|
183
|
-
e3.name = t2,
|
|
194
|
+
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((i2) => {
|
|
195
|
+
const s2 = e2.initInfo[i2];
|
|
196
|
+
if (s2) if ("dynamicControlFormEdit" === i2) {
|
|
197
|
+
let i3 = s2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
198
|
+
if (i3 && i3.length > 0 && (i3 = i3.filter((e3) => "_all_fields" === e3.name), i3 && i3.length > 0)) {
|
|
199
|
+
const e3 = u(i3[0]);
|
|
200
|
+
e3.name = t2, i3 = [e3];
|
|
184
201
|
}
|
|
185
|
-
a.dynamicControlFormEdit(e2,
|
|
186
|
-
} else "disableElement" ===
|
|
202
|
+
a.dynamicControlFormEdit(e2, i3, false);
|
|
203
|
+
} else "disableElement" === i2 ? s2.indexOf(t2) >= 0 && a.disableElement(e2, [t2], false) : "enableElement" === i2 ? s2.indexOf(t2) >= 0 && a.enableElement(e2, [t2], false) : "hideElement" === i2 ? s2.indexOf(t2) >= 0 && a.hideElement(e2, [t2], false) : "showElement" === i2 && s2.indexOf(t2) >= 0 && a.showElement(e2, [t2], false);
|
|
187
204
|
});
|
|
188
205
|
}
|
|
189
206
|
}
|
|
190
207
|
export {
|
|
191
208
|
O as controlObjectRenderState,
|
|
192
|
-
|
|
209
|
+
m as convertToPageContext,
|
|
193
210
|
P as getDefaultValue,
|
|
194
211
|
v as getFormModelFields,
|
|
195
212
|
E as getModelFields,
|
|
196
|
-
|
|
213
|
+
M as getPermissionCodes,
|
|
197
214
|
b as packageAdditionalMapWithLocationSearch,
|
|
198
|
-
|
|
199
|
-
|
|
215
|
+
h as packageAdditionalMapWithPageRequest,
|
|
216
|
+
y as packageAdditionalMapWithRoute,
|
|
200
217
|
j as packageFormRules,
|
|
201
|
-
|
|
202
|
-
|
|
218
|
+
c as queryPageDesignByCode,
|
|
219
|
+
C as queryPageSuperGrids
|
|
203
220
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var o = ((o2) => (o2.AUTHENTICATED = "AUTHENTICATED", o2.ANONYMOUS = "ANONYMOUS", o2.AUTHORIZED = "AUTHORIZED", o2))(o || {});
|
|
2
|
-
const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, workflowStart: { group: "流程表单功能", label: "起草", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/start$POST" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/
|
|
2
|
+
const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, workflowStart: { group: "流程表单功能", label: "起草", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/start$POST" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/remove-signers$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }, { code: "returnableTaskInformation", label: "获取可退回环节信息", funcType: "AUTHENTICATED", path: "/workflow-commons/returnable-task/{taskId}$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, extractWorkflow: { group: "流程表单功能", label: "抽单", functions: [{ label: "发起抽单", code: "initiateExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/initiate-extract$POST" }] }, cancelExtractWorkflow: { group: "流程表单功能", label: "取消抽单", functions: [{ label: "取消抽单", code: "cancelExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/cancel-extract$POST" }] }, approveExtractWorkflow: { group: "流程表单功能", label: "同意抽单", functions: [{ label: "同意抽单", code: "approveExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/approve-extract$POST" }] }, refuseExtractWorkflow: { group: "流程表单功能", label: "不同意抽单", functions: [{ label: "不同意抽单", code: "refuseExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/refuse-extract$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", props: { base: { type: "info", plain: true } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", props: { base: { type: "primary" } }, functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", props: { base: { type: "primary", plain: true } }, functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", props: { base: { type: "primary" } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", props: { base: { type: "success", text: true } }, functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", props: { base: { type: "danger", text: true } }, functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", props: { base: { type: "primary", text: true } }, functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消", props: { base: { type: "info", text: true } }, functions: [] }, addTransactor: { group: "流程表单功能", label: "增加办理人", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-transactors$POST" }] }, removeTransactor: { group: "流程表单功能", label: "减少办理人", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/remove-transactors$POST" }, { code: "getRemoveTransactors", label: "获取可减少办理人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-transactors$POST" }] } }, t = {};
|
|
3
3
|
function a(o2) {
|
|
4
4
|
return o2 ? e[o2] : void 0;
|
|
5
5
|
}
|
|
@@ -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 o } from "pinia";
|
|
3
|
+
import a from "./eventBus.js";
|
|
4
|
+
const t = o("pageContextUtil", () => {
|
|
5
|
+
const o2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), d = e(0);
|
|
6
|
+
return { pageContext: o2, setPageContext: function(e2) {
|
|
7
|
+
o2.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
|
+
d.value++, u.value = false;
|
|
12
|
+
}, componentsTotalNmber: l, componentsLoadedNumber: d, setPageComponentsLoaded: function(e2) {
|
|
13
|
+
t2.value = e2, t2.value && n.value && (a.$emit("pageLoaded"), u.value = true);
|
|
14
14
|
}, setFormPageDataLoadState: function(e2) {
|
|
15
|
-
n.value = e2, t2.value && n.value && (
|
|
15
|
+
n.value = e2, 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
|
-
|
|
22
|
+
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
|
+
} }), (e3, l2) => {
|
|
21
|
+
const i2 = n("el-link"), t2 = n("el-button");
|
|
22
|
+
return u(), a("span", C, [z.value.text ? (u(), o(i2, { 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: l2[0] || (l2[0] = (l3) => c(m)(l3, e3.pageContext, e3.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(t2, { 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: l2[1] || (l2[1] = (l3) => c(m)(l3, e3.pageContext, e3.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
|
+
}), (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);
|
|
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 {
|