super-page-designer 2.1.49 → 2.1.52
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/design/utils/assemblys-config.js +9 -13
- package/dist/es/components/design/utils/data-table-util.js +15 -19
- package/dist/es/components/design/utils/form-design-util.js +0 -1
- package/dist/es/components/design/utils/page-service-util.d.ts +2 -2
- package/dist/es/components/design/utils/page-service-util.js +7 -5
- package/dist/es/components/design/utils/page-table-util.js +33 -10
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +7 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +698 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +40 -15
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue.js +106 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +25 -11
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +69 -31
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +19 -8
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +422 -287
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue.js +9 -6
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +4 -4
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +3 -7
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +46 -52
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +29 -9
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +9 -2
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +67 -9
- package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue.js +1 -7
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +22 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr-style.vue.js +7 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +8 -2
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +31 -28
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +33 -470
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +7 -3
- package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +275 -0
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +4 -1
- package/dist/es/components/design/views/design/page-design.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +102 -16
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +14 -10
- package/dist/es/stores/statistics-table-store.js +2 -1
- package/dist/es/style.css +108 -108
- package/package.json +5 -4
- package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue2.js +0 -78
- /package/dist/es/components/design/views/assemblys/{data/component/row-backgroud-color.vue3.js → chart/statistical-table/component/data-origin.vue3.js} +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, renderList, unref } from "vue";
|
|
2
|
+
import _sfc_main$2 from "./suffixmodule.vue.js";
|
|
3
|
+
import _sfc_main$1 from "./condition.vue.js";
|
|
4
|
+
import { getCustomFuncs } from "../../../../utils/page-event-util.js";
|
|
5
|
+
const _hoisted_1 = { class: "dialog-footer" };
|
|
6
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "hyperlink-mult-config",
|
|
8
|
+
props: {
|
|
9
|
+
linkPage: {},
|
|
10
|
+
pageDesign: {},
|
|
11
|
+
tableConfigure: {},
|
|
12
|
+
isDialog: { type: Boolean },
|
|
13
|
+
isButton: { type: Boolean, default: true }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:linkPage"],
|
|
16
|
+
setup(__props, { emit: __emit }) {
|
|
17
|
+
const dialogVisible = ref(false);
|
|
18
|
+
const currentEditIndex = ref({});
|
|
19
|
+
const conditionRef = ref(null);
|
|
20
|
+
const emits = __emit;
|
|
21
|
+
const props = __props;
|
|
22
|
+
function addPage() {
|
|
23
|
+
if (!props.linkPage) {
|
|
24
|
+
emits("update:linkPage", []);
|
|
25
|
+
}
|
|
26
|
+
props.linkPage.push({
|
|
27
|
+
jumpConditionType: "none",
|
|
28
|
+
conditions: [],
|
|
29
|
+
customFunc: "",
|
|
30
|
+
jumpPageSetting: {}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function deletePage(row, index) {
|
|
34
|
+
props.linkPage.splice(index, 1);
|
|
35
|
+
}
|
|
36
|
+
function openLinkPageDialog(index) {
|
|
37
|
+
currentEditIndex.value = index;
|
|
38
|
+
dialogVisible.value = true;
|
|
39
|
+
}
|
|
40
|
+
function jumpConditionTypeChange(value) {
|
|
41
|
+
conditionRef.value.changeTableFields(props.tableConfigure.modelFields);
|
|
42
|
+
}
|
|
43
|
+
function handleClose(done) {
|
|
44
|
+
done();
|
|
45
|
+
}
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
const _component_el_button = resolveComponent("el-button");
|
|
48
|
+
const _component_el_link = resolveComponent("el-link");
|
|
49
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
50
|
+
const _component_el_table_column = resolveComponent("el-table-column");
|
|
51
|
+
const _component_Plus = resolveComponent("Plus");
|
|
52
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
53
|
+
const _component_Delete = resolveComponent("Delete");
|
|
54
|
+
const _component_el_table = resolveComponent("el-table");
|
|
55
|
+
const _component_el_radio = resolveComponent("el-radio");
|
|
56
|
+
const _component_el_radio_group = resolveComponent("el-radio-group");
|
|
57
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
58
|
+
const _component_el_option = resolveComponent("el-option");
|
|
59
|
+
const _component_el_select = resolveComponent("el-select");
|
|
60
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
61
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
62
|
+
createVNode(_component_el_table, {
|
|
63
|
+
data: _ctx.linkPage,
|
|
64
|
+
style: { "width": "100%" }
|
|
65
|
+
}, {
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
createVNode(_component_el_table_column, {
|
|
68
|
+
prop: "value",
|
|
69
|
+
label: "链接页面",
|
|
70
|
+
align: "center"
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx((scope) => {
|
|
73
|
+
var _a, _b, _c, _d;
|
|
74
|
+
return [
|
|
75
|
+
!((_a = _ctx.linkPage[scope.$index].jumpPageSetting) == null ? void 0 : _a.jumpPageUrl) ? (openBlock(), createBlock(_component_el_button, {
|
|
76
|
+
key: 0,
|
|
77
|
+
type: "primary",
|
|
78
|
+
onClick: ($event) => openLinkPageDialog(scope.$index)
|
|
79
|
+
}, {
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
createTextVNode(" 设置 ")
|
|
82
|
+
]),
|
|
83
|
+
_: 2
|
|
84
|
+
}, 1032, ["onClick"])) : ((_b = _ctx.linkPage[scope.$index].jumpPageSetting) == null ? void 0 : _b.linkType) === "page" ? (openBlock(), createBlock(_component_el_link, {
|
|
85
|
+
key: 1,
|
|
86
|
+
type: "primary",
|
|
87
|
+
onClick: ($event) => openLinkPageDialog(scope.$index)
|
|
88
|
+
}, {
|
|
89
|
+
default: withCtx(() => {
|
|
90
|
+
var _a2;
|
|
91
|
+
return [
|
|
92
|
+
createTextVNode(toDisplayString((_a2 = _ctx.linkPage[scope.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageName), 1)
|
|
93
|
+
];
|
|
94
|
+
}),
|
|
95
|
+
_: 2
|
|
96
|
+
}, 1032, ["onClick"])) : ((_c = _ctx.linkPage[scope.$index].jumpPageSetting) == null ? void 0 : _c.linkType) === "url" ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
97
|
+
key: 2,
|
|
98
|
+
class: "box-item",
|
|
99
|
+
content: (_d = _ctx.linkPage[scope.$index].jumpPageSetting) == null ? void 0 : _d.jumpPageUrl
|
|
100
|
+
}, {
|
|
101
|
+
default: withCtx(() => [
|
|
102
|
+
createVNode(_component_el_link, {
|
|
103
|
+
type: "primary",
|
|
104
|
+
onClick: ($event) => openLinkPageDialog(scope.$index)
|
|
105
|
+
}, {
|
|
106
|
+
default: withCtx(() => {
|
|
107
|
+
var _a2;
|
|
108
|
+
return [
|
|
109
|
+
createTextVNode(toDisplayString((_a2 = _ctx.linkPage[scope.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageUrl), 1)
|
|
110
|
+
];
|
|
111
|
+
}),
|
|
112
|
+
_: 2
|
|
113
|
+
}, 1032, ["onClick"])
|
|
114
|
+
]),
|
|
115
|
+
_: 2
|
|
116
|
+
}, 1032, ["content"])) : createCommentVNode("", true)
|
|
117
|
+
];
|
|
118
|
+
}),
|
|
119
|
+
_: 1
|
|
120
|
+
}),
|
|
121
|
+
createVNode(_component_el_table_column, {
|
|
122
|
+
label: "操作",
|
|
123
|
+
align: "center"
|
|
124
|
+
}, {
|
|
125
|
+
header: withCtx(() => [
|
|
126
|
+
createVNode(_component_el_icon, {
|
|
127
|
+
size: "14",
|
|
128
|
+
style: { "color": "#5893ef", "cursor": "pointer", "font-weight": "bold" },
|
|
129
|
+
onClick: addPage
|
|
130
|
+
}, {
|
|
131
|
+
default: withCtx(() => [
|
|
132
|
+
createVNode(_component_Plus)
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
})
|
|
136
|
+
]),
|
|
137
|
+
default: withCtx((scope) => [
|
|
138
|
+
createVNode(_component_el_icon, {
|
|
139
|
+
size: "14",
|
|
140
|
+
style: { "color": "#5893ef", "cursor": "pointer" },
|
|
141
|
+
onClick: ($event) => deletePage(scope.row, scope.$index)
|
|
142
|
+
}, {
|
|
143
|
+
default: withCtx(() => [
|
|
144
|
+
createVNode(_component_Delete)
|
|
145
|
+
]),
|
|
146
|
+
_: 2
|
|
147
|
+
}, 1032, ["onClick"])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
})
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
}, 8, ["data"]),
|
|
154
|
+
createVNode(_component_el_dialog, {
|
|
155
|
+
modelValue: dialogVisible.value,
|
|
156
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dialogVisible.value = $event),
|
|
157
|
+
title: "链接配置",
|
|
158
|
+
width: "500",
|
|
159
|
+
"before-close": handleClose,
|
|
160
|
+
"destroy-on-close": ""
|
|
161
|
+
}, {
|
|
162
|
+
footer: withCtx(() => [
|
|
163
|
+
createElementVNode("div", _hoisted_1, [
|
|
164
|
+
createVNode(_component_el_button, {
|
|
165
|
+
onClick: _cache[2] || (_cache[2] = ($event) => dialogVisible.value = false)
|
|
166
|
+
}, {
|
|
167
|
+
default: withCtx(() => [
|
|
168
|
+
createTextVNode("Cancel")
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}),
|
|
172
|
+
createVNode(_component_el_button, {
|
|
173
|
+
type: "primary",
|
|
174
|
+
onClick: _cache[3] || (_cache[3] = ($event) => dialogVisible.value = false)
|
|
175
|
+
}, {
|
|
176
|
+
default: withCtx(() => [
|
|
177
|
+
createTextVNode(" Confirm ")
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
})
|
|
181
|
+
])
|
|
182
|
+
]),
|
|
183
|
+
default: withCtx(() => [
|
|
184
|
+
createVNode(_component_el_form_item, {
|
|
185
|
+
label: "跳转条件",
|
|
186
|
+
class: "amb-design-attr-item"
|
|
187
|
+
}, {
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
createVNode(_component_el_radio_group, {
|
|
190
|
+
modelValue: _ctx.linkPage[currentEditIndex.value].jumpConditionType,
|
|
191
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.linkPage[currentEditIndex.value].jumpConditionType = $event),
|
|
192
|
+
onChange: jumpConditionTypeChange
|
|
193
|
+
}, {
|
|
194
|
+
default: withCtx(() => [
|
|
195
|
+
createVNode(_component_el_radio, {
|
|
196
|
+
value: "none",
|
|
197
|
+
size: "small"
|
|
198
|
+
}, {
|
|
199
|
+
default: withCtx(() => [
|
|
200
|
+
createTextVNode("无")
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}),
|
|
204
|
+
createVNode(_component_el_radio, {
|
|
205
|
+
value: "config",
|
|
206
|
+
size: "small"
|
|
207
|
+
}, {
|
|
208
|
+
default: withCtx(() => [
|
|
209
|
+
createTextVNode("配置条件")
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}),
|
|
213
|
+
createVNode(_component_el_radio, {
|
|
214
|
+
value: "customFunc",
|
|
215
|
+
size: "small"
|
|
216
|
+
}, {
|
|
217
|
+
default: withCtx(() => [
|
|
218
|
+
createTextVNode("自定义条件")
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
})
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}, 8, ["modelValue"])
|
|
225
|
+
]),
|
|
226
|
+
_: 1
|
|
227
|
+
}),
|
|
228
|
+
createVNode(_component_el_form_item, { class: "amb-design-attr-item" }, {
|
|
229
|
+
default: withCtx(() => [
|
|
230
|
+
_ctx.linkPage[currentEditIndex.value].jumpConditionType === "config" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
231
|
+
key: 0,
|
|
232
|
+
title: "跳转条件",
|
|
233
|
+
buttonText: "设置条件",
|
|
234
|
+
list: _ctx.linkPage[currentEditIndex.value].conditions,
|
|
235
|
+
ref_key: "conditionRef",
|
|
236
|
+
ref: conditionRef
|
|
237
|
+
}, null, 8, ["list"])) : _ctx.linkPage[currentEditIndex.value].jumpConditionType === "customFunc" ? (openBlock(), createBlock(_component_el_select, {
|
|
238
|
+
key: 1,
|
|
239
|
+
modelValue: _ctx.linkPage[currentEditIndex.value].customFunc,
|
|
240
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.linkPage[currentEditIndex.value].customFunc = $event),
|
|
241
|
+
clearable: "",
|
|
242
|
+
size: "small",
|
|
243
|
+
placeholder: "请选择"
|
|
244
|
+
}, {
|
|
245
|
+
default: withCtx(() => [
|
|
246
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getCustomFuncs)(), (item) => {
|
|
247
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
248
|
+
key: item.value,
|
|
249
|
+
label: item.label,
|
|
250
|
+
value: item.value
|
|
251
|
+
}, null, 8, ["label", "value"]);
|
|
252
|
+
}), 128))
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
}, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
}),
|
|
259
|
+
createVNode(_sfc_main$2, {
|
|
260
|
+
pageDesign: _ctx.pageDesign,
|
|
261
|
+
configure: _ctx.linkPage[currentEditIndex.value].jumpPageSetting,
|
|
262
|
+
tableConfigure: _ctx.tableConfigure,
|
|
263
|
+
showDisplayConditions: false,
|
|
264
|
+
isDialog: true
|
|
265
|
+
}, null, 8, ["pageDesign", "configure", "tableConfigure"])
|
|
266
|
+
]),
|
|
267
|
+
_: 1
|
|
268
|
+
}, 8, ["modelValue"])
|
|
269
|
+
], 64);
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
export {
|
|
274
|
+
_sfc_main as default
|
|
275
|
+
};
|
|
@@ -14,16 +14,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
pageDesign: {},
|
|
15
15
|
tableConfigure: {},
|
|
16
16
|
isDialog: { type: Boolean },
|
|
17
|
-
isButton: { type: Boolean, default: true }
|
|
17
|
+
isButton: { type: Boolean, default: true },
|
|
18
|
+
showDisplayConditions: { type: Boolean, default: true }
|
|
18
19
|
},
|
|
19
20
|
setup(__props) {
|
|
20
21
|
const props = __props;
|
|
21
22
|
const selectPageDialog = ref(null);
|
|
22
23
|
const linkPage = ref({});
|
|
23
24
|
if (props.isDialog) {
|
|
24
|
-
if (!props.configure) {
|
|
25
|
-
props.configure = {};
|
|
26
|
-
}
|
|
27
25
|
linkPage.value = props.configure;
|
|
28
26
|
} else {
|
|
29
27
|
if (!props.configure.props.linkPage) {
|
|
@@ -83,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
81
|
{ immediate: true }
|
|
84
82
|
);
|
|
85
83
|
onMounted(() => {
|
|
86
|
-
if (props.tableConfigure) {
|
|
84
|
+
if (props.tableConfigure && conditionRef.value) {
|
|
87
85
|
conditionRef.value.changeTableFields(props.tableConfigure.modelFields);
|
|
88
86
|
}
|
|
89
87
|
});
|
|
@@ -131,7 +129,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
131
129
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => linkPage.value.linkType = $event)
|
|
132
130
|
}, {
|
|
133
131
|
default: withCtx(() => [
|
|
134
|
-
createVNode(_component_el_form_item, {
|
|
132
|
+
createVNode(_component_el_form_item, {
|
|
133
|
+
class: "amb-design-attr-item",
|
|
134
|
+
style: { "width": "100%" }
|
|
135
|
+
}, {
|
|
135
136
|
label: withCtx(() => [
|
|
136
137
|
createVNode(_component_el_radio, { value: "" }, {
|
|
137
138
|
default: withCtx(() => [
|
|
@@ -142,7 +143,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
143
|
]),
|
|
143
144
|
_: 1
|
|
144
145
|
}),
|
|
145
|
-
createVNode(_component_el_form_item, {
|
|
146
|
+
createVNode(_component_el_form_item, {
|
|
147
|
+
class: "amb-design-attr-item",
|
|
148
|
+
style: { "width": "100%" }
|
|
149
|
+
}, {
|
|
146
150
|
label: withCtx(() => [
|
|
147
151
|
createVNode(_component_el_radio, { value: "page" }, {
|
|
148
152
|
default: withCtx(() => [
|
|
@@ -180,7 +184,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
180
184
|
]),
|
|
181
185
|
_: 1
|
|
182
186
|
}),
|
|
183
|
-
createVNode(_component_el_form_item, {
|
|
187
|
+
createVNode(_component_el_form_item, {
|
|
188
|
+
class: "amb-design-attr-item",
|
|
189
|
+
style: { "width": "100%" }
|
|
190
|
+
}, {
|
|
184
191
|
label: withCtx(() => [
|
|
185
192
|
createVNode(_component_el_radio, { value: "url" }, {
|
|
186
193
|
default: withCtx(() => [
|
|
@@ -418,7 +425,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
418
425
|
}, 512), [
|
|
419
426
|
[vShow, linkPage.value.jumpPageOpenMode == "popup" || linkPage.value.jumpPageMobileOpenMode == "popup"]
|
|
420
427
|
]),
|
|
421
|
-
_ctx.isButton ? (openBlock(), createBlock(_component_el_form_item, {
|
|
428
|
+
_ctx.isButton && _ctx.showDisplayConditions ? (openBlock(), createBlock(_component_el_form_item, {
|
|
422
429
|
key: 0,
|
|
423
430
|
label: "显示判断",
|
|
424
431
|
class: "amb-design-attr-item"
|
|
@@ -67,6 +67,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
function saveCondition(table) {
|
|
68
68
|
props.configure.props["notIdInitializationList"] = JSON.stringify(table);
|
|
69
69
|
}
|
|
70
|
+
function getNotIdInitializationList() {
|
|
71
|
+
return props.configure.props["notIdInitializationList"] ? JSON.parse(props.configure.props["notIdInitializationList"]) : null;
|
|
72
|
+
}
|
|
70
73
|
function WeightFieldInputClose() {
|
|
71
74
|
WeightFieldInputVisile.value = false;
|
|
72
75
|
}
|
|
@@ -278,7 +281,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
278
281
|
}, null, 8, ["judgeHeavyList", "fieldList", "systemCode", "systemVersion"])) : createCommentVNode("", true),
|
|
279
282
|
combinationVisible.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
280
283
|
key: 2,
|
|
281
|
-
list:
|
|
284
|
+
list: getNotIdInitializationList(),
|
|
282
285
|
fieldNameList: _ctx.configure.modelFields,
|
|
283
286
|
fieldMap: _ctx.configure.modelFieldsMap,
|
|
284
287
|
onClose: closeCombination,
|
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
const props = __props;
|
|
35
35
|
const pageDesign = ref(null);
|
|
36
36
|
const ViewDesignRef = ref(null);
|
|
37
|
-
const pageEventContainerRef = ref(
|
|
37
|
+
const pageEventContainerRef = ref();
|
|
38
38
|
const pageDesignUtil = usePageContextStore();
|
|
39
39
|
const clickType = ref("page");
|
|
40
40
|
const definitionId = ref(null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./config.vue3.js";
|
|
2
2
|
import "./config.vue2.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const config = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const config = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-39d5d5cf"]]);
|
|
5
5
|
export {
|
|
6
6
|
config as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, withCtx, unref, normalizeStyle, pushScopeId, popScopeId } from "vue";
|
|
2
2
|
import { useLocalStorage } from "@vueuse/core";
|
|
3
|
-
import { Search } from "@element-plus/icons-vue";
|
|
3
|
+
import { Search, MagicStick } from "@element-plus/icons-vue";
|
|
4
4
|
import { EditorView, basicSetup } from "codemirror";
|
|
5
5
|
import { javascriptLanguage, javascript } from "@codemirror/lang-javascript";
|
|
6
6
|
import { EditorState } from "@codemirror/state";
|
|
7
7
|
import "@codemirror/autocomplete";
|
|
8
8
|
import "@codemirror/language";
|
|
9
9
|
import { openSearchPanel } from "@codemirror/search";
|
|
10
|
-
|
|
10
|
+
import beautify from "js-beautify";
|
|
11
|
+
const _withScopeId = (n) => (pushScopeId("data-v-39d5d5cf"), n = n(), popScopeId(), n);
|
|
11
12
|
const _hoisted_1 = {
|
|
12
13
|
style: { "padding": "8px 16px", "margin": "10px 0px", "background-color": "#f4f4f5" },
|
|
13
14
|
class: "pppp"
|
|
@@ -102,13 +103,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
103
|
return EditorView.theme({});
|
|
103
104
|
}
|
|
104
105
|
function updateJsContent(newEvent) {
|
|
106
|
+
var _a;
|
|
105
107
|
const hisValue = props.eventForm.jsContent ? props.eventForm.jsContent : "";
|
|
106
108
|
if (newEvent && props.eventForm) {
|
|
107
109
|
if (!newEvent.jsContent) {
|
|
108
110
|
newEvent.jsContent = "";
|
|
109
111
|
}
|
|
110
112
|
Object.assign(props.eventForm, newEvent);
|
|
111
|
-
editor.value.dispatch({
|
|
113
|
+
(_a = editor.value) == null ? void 0 : _a.dispatch({
|
|
112
114
|
changes: { from: 0, to: hisValue.length, insert: props.eventForm.jsContent }
|
|
113
115
|
});
|
|
114
116
|
}
|
|
@@ -117,15 +119,50 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
117
119
|
const state = getEditorState();
|
|
118
120
|
editor.value = new EditorView({
|
|
119
121
|
state,
|
|
120
|
-
parent: document.getElementById("cf-codemirror")
|
|
122
|
+
parent: document.getElementById("cf-codemirror") || void 0
|
|
121
123
|
});
|
|
122
124
|
}
|
|
123
125
|
function myCompletions(context) {
|
|
124
|
-
let word = context.matchBefore(/\w*|logicContext\./);
|
|
126
|
+
let word = context.matchBefore(/\w*|window\.\$PageUtil\.|window\.|logicContext\./);
|
|
125
127
|
if (word) {
|
|
126
|
-
if (word
|
|
127
|
-
return
|
|
128
|
-
|
|
128
|
+
if ((word == null ? void 0 : word.text) === "window.") {
|
|
129
|
+
return {
|
|
130
|
+
from: word.from,
|
|
131
|
+
options: [
|
|
132
|
+
{ label: "window.$PageUtil()", type: "property", info: "页面工具方法" },
|
|
133
|
+
{ label: "window.$message()", type: "property", info: "提示信息" },
|
|
134
|
+
{ label: "window.$http()", type: "property", info: "接口调用" }
|
|
135
|
+
]
|
|
136
|
+
};
|
|
137
|
+
} else if ((word == null ? void 0 : word.text) === "window.$PageUtil.") {
|
|
138
|
+
return {
|
|
139
|
+
from: word.from,
|
|
140
|
+
options: [
|
|
141
|
+
{ label: "window.$PageUtil.standardEvents", type: "function", info: "显示方法" },
|
|
142
|
+
{ label: "window.$PageUtil.showElement()", type: "function", info: "显示页面中的某个组件元素" },
|
|
143
|
+
{ label: "window.$PageUtil.hideElement()", type: "function", info: "隐藏页面中的某个组件元素" },
|
|
144
|
+
{ label: "window.$PageUtil.enableElement()", type: "function", info: "设置组件元素可用状态" },
|
|
145
|
+
{ label: "window.$PageUtil.disableElement()", type: "function", info: "禁用页面中的某个组件元素" },
|
|
146
|
+
{ label: "window.$PageUtil.setEntityDataValue()", type: "function", info: "设置Data值" },
|
|
147
|
+
{ label: "window.$PageUtil.setEntityPageValue()", type: "function", info: "设置页面变量值" },
|
|
148
|
+
{ label: "window.$PageUtil.setEntityValueByType()", type: "function", info: "根据类型设置值" },
|
|
149
|
+
{ label: "window.$PageUtil.dsiabledAllFields()", type: "function", info: "禁用所有字段" },
|
|
150
|
+
{ label: "window.$PageUtil.dynamicControlFormEdit()", type: "function", info: "表单编辑权限动态控制" },
|
|
151
|
+
{ label: "window.$PageUtil.dynamicControlTableEdit()", type: "function", info: "控制表格编辑权限" },
|
|
152
|
+
{ label: "window.$PageUtil.openPage()", type: "function", info: "打开页面" },
|
|
153
|
+
{ label: "window.$PageUtil.refreshPage()", type: "function", info: "刷新页面" },
|
|
154
|
+
{ label: "window.$PageUtil.refreshSubTableHandle()", type: "function", info: "刷新表单中子表内容" },
|
|
155
|
+
{ label: "window.$PageUtil.refreshChildData()", type: "function", info: "对外开放的api方法更新子表集合" },
|
|
156
|
+
{
|
|
157
|
+
label: "window.$PageUtil.getServerConfigValue()",
|
|
158
|
+
type: "function",
|
|
159
|
+
info: "根据key获得serverConfig中配置的信息"
|
|
160
|
+
},
|
|
161
|
+
{ label: "window.$PageUtil.getBackendUrl()", type: "function", info: "获得当前系统的后端访问路径" },
|
|
162
|
+
{ label: "window.$PageUtil.getPlateBackendUrl()", type: "function", info: "获得平台后端访问路径" }
|
|
163
|
+
]
|
|
164
|
+
};
|
|
165
|
+
} else if ((word == null ? void 0 : word.text) === "logicContext.") {
|
|
129
166
|
return {
|
|
130
167
|
from: word.from,
|
|
131
168
|
options: [
|
|
@@ -137,25 +174,55 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
137
174
|
{ label: "logicContext.data", type: "property", info: "数据模型变量" }
|
|
138
175
|
]
|
|
139
176
|
};
|
|
140
|
-
} else {
|
|
141
|
-
return {
|
|
142
|
-
from: word.from,
|
|
143
|
-
options: [{ label: "logicContext", type: "property" }]
|
|
144
|
-
};
|
|
145
177
|
}
|
|
146
|
-
} else {
|
|
147
|
-
return null;
|
|
148
178
|
}
|
|
179
|
+
return null;
|
|
149
180
|
}
|
|
150
181
|
function openSearch() {
|
|
151
182
|
if (editor.value) {
|
|
152
183
|
editor.value.focus();
|
|
153
184
|
let newState = openSearchPanel(editor.value);
|
|
154
185
|
if (newState) {
|
|
155
|
-
editor.value.update([
|
|
186
|
+
editor.value.update([]);
|
|
156
187
|
}
|
|
157
188
|
}
|
|
158
189
|
}
|
|
190
|
+
function formatCode() {
|
|
191
|
+
if (editor.value) {
|
|
192
|
+
const code = beautify.js(props.eventForm.jsContent, {
|
|
193
|
+
indent_level: 0,
|
|
194
|
+
indent_size: 2,
|
|
195
|
+
// 每级缩进的空格数
|
|
196
|
+
space_in_empty_paren: false,
|
|
197
|
+
// 是否在空括号内加空格
|
|
198
|
+
max_preserve_newlines: 2,
|
|
199
|
+
// 最多保留的换行数
|
|
200
|
+
preserve_newlines: true,
|
|
201
|
+
// 是否保留原有的换行
|
|
202
|
+
jslint_happy: false,
|
|
203
|
+
// 是否遵循 JSLint 的风格
|
|
204
|
+
keep_array_indentation: false,
|
|
205
|
+
// 是否保持数组的缩进
|
|
206
|
+
keep_function_indentation: false,
|
|
207
|
+
// 是否保持函数的缩进
|
|
208
|
+
space_before_conditional: true,
|
|
209
|
+
// 在条件语句前是否加空格
|
|
210
|
+
break_chained_methods: false,
|
|
211
|
+
// 是否断开链式调用
|
|
212
|
+
eval_code: false,
|
|
213
|
+
// 是否格式化 eval 代码
|
|
214
|
+
unescape_strings: false,
|
|
215
|
+
// 是否取消转义字符串中的特殊字符
|
|
216
|
+
wrap_line_length: 0,
|
|
217
|
+
// 每行的最大长度
|
|
218
|
+
end_with_newline: false
|
|
219
|
+
// 是否以新行结束
|
|
220
|
+
});
|
|
221
|
+
editor.value.dispatch({
|
|
222
|
+
changes: { from: 0, to: props.eventForm.jsContent.length, insert: code }
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
}
|
|
159
226
|
__expose({ resize, updateJsContent });
|
|
160
227
|
return (_ctx, _cache) => {
|
|
161
228
|
const _component_el_input = resolveComponent("el-input");
|
|
@@ -318,6 +385,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
318
385
|
})
|
|
319
386
|
]),
|
|
320
387
|
_: 1
|
|
388
|
+
}),
|
|
389
|
+
createVNode(_component_el_tooltip, {
|
|
390
|
+
class: "box-item",
|
|
391
|
+
effect: "dark",
|
|
392
|
+
content: "格式化代码",
|
|
393
|
+
placement: "top"
|
|
394
|
+
}, {
|
|
395
|
+
default: withCtx(() => [
|
|
396
|
+
createVNode(_component_el_icon, {
|
|
397
|
+
class: "editorOption",
|
|
398
|
+
onClick: formatCode
|
|
399
|
+
}, {
|
|
400
|
+
default: withCtx(() => [
|
|
401
|
+
createVNode(unref(MagicStick))
|
|
402
|
+
]),
|
|
403
|
+
_: 1
|
|
404
|
+
})
|
|
405
|
+
]),
|
|
406
|
+
_: 1
|
|
321
407
|
})
|
|
322
408
|
]),
|
|
323
409
|
createElementVNode("div", {
|
|
@@ -15,6 +15,7 @@ import "@codemirror/state";
|
|
|
15
15
|
import "@codemirror/autocomplete";
|
|
16
16
|
import "@codemirror/language";
|
|
17
17
|
import "@codemirror/search";
|
|
18
|
+
import "js-beautify";
|
|
18
19
|
import "../page-event/config.vue2.js";
|
|
19
20
|
import "../../../utils/assemblys-config.js";
|
|
20
21
|
import "../../../../../stores/page-store.js";
|
|
@@ -163,16 +164,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
163
164
|
function saveForm() {
|
|
164
165
|
const configureCopy = JSON.parse(JSON.stringify(props.configure));
|
|
165
166
|
configureCopy.tableRuntimes = {};
|
|
166
|
-
|
|
167
|
-
configureCopy.tableUuids = configureCopy.tableUuids.filter((tableUuid) => {
|
|
168
|
-
const table = findDesignItemByUuid(configureCopy, tableUuid);
|
|
169
|
-
if (table) {
|
|
170
|
-
setTableRuntimesFromConfigure(table, configureCopy);
|
|
171
|
-
return true;
|
|
172
|
-
}
|
|
173
|
-
return false;
|
|
174
|
-
});
|
|
175
|
-
}
|
|
167
|
+
beforeSaveForm(configureCopy);
|
|
176
168
|
http.post(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/save", {
|
|
177
169
|
id: props.configure.id,
|
|
178
170
|
designJson: JSON.stringify(configureCopy)
|
|
@@ -268,6 +260,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
268
260
|
var _a;
|
|
269
261
|
(_a = i18nSettingRef.value) == null ? void 0 : _a.show();
|
|
270
262
|
}
|
|
263
|
+
function beforeSaveForm(configureCopy) {
|
|
264
|
+
if (configureCopy.tableUuids) {
|
|
265
|
+
configureCopy.tableUuids = configureCopy.tableUuids.filter((tableUuid) => {
|
|
266
|
+
const table = findDesignItemByUuid(configureCopy, tableUuid);
|
|
267
|
+
if (table) {
|
|
268
|
+
setTableRuntimesFromConfigure(table, configureCopy);
|
|
269
|
+
return true;
|
|
270
|
+
}
|
|
271
|
+
return false;
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}
|
|
271
275
|
__expose({ onSelectEvent, addEvent, changeEvent });
|
|
272
276
|
return (_ctx, _cache) => {
|
|
273
277
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -8,7 +8,8 @@ const statisticsTable = defineStore("statisticsTable", () => {
|
|
|
8
8
|
arr.push({
|
|
9
9
|
value: item.props.base.prop,
|
|
10
10
|
label: item.props.base.name,
|
|
11
|
-
alias: item.props.base.name
|
|
11
|
+
alias: item.props.base.name,
|
|
12
|
+
dataType: item.props.base.dataType
|
|
12
13
|
});
|
|
13
14
|
});
|
|
14
15
|
columnList.value = arr;
|