super-page-designer 2.0.23 → 2.0.26
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 +6 -41
- package/dist/es/components/design/utils/data-table-util.js +1 -1
- package/dist/es/components/design/utils/page-helper-util.d.ts +1 -0
- package/dist/es/components/design/utils/page-helper-util.js +8 -0
- package/dist/es/components/design/utils/page-permission-util.js +6 -0
- package/dist/es/components/design/utils/page-table-util.js +6 -4
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +88 -10
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +22 -9
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- 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-event.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +411 -112
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +21 -15
- package/dist/es/components/design/views/assemblys/object-design.vue.js +11 -8
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +19 -5
- package/dist/es/components/design/views/design/page-design.vue.js +35 -10
- package/dist/es/components/design/views/design/page-event/config.vue.d.ts +12 -1
- package/dist/es/components/design/views/design/page-event/config.vue.js +3 -3
- package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -325
- package/dist/es/components/design/views/design/page-event/config.vue3.js +336 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.d.ts +1 -8
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +226 -569
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.d.ts +11 -5
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +510 -366
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.d.ts +8 -0
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +48 -0
- package/dist/es/components/design/views/design/page-event/page-event-view.vue2.js +4 -0
- package/dist/es/components/design/views/design/view/assemblys-container.vue.d.ts +0 -6
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +14 -58
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +1 -0
- package/dist/es/components/design/views/design/view/view-design-display.vue.d.ts +2 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +35 -42
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/stores/event-undo-redo-store.d.ts +22 -0
- package/dist/es/stores/event-undo-redo-store.js +56 -0
- package/dist/es/style.css +105 -105
- package/package.json +4 -4
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref } from "vue";
|
|
2
|
-
import { Plus, Delete } from "@element-plus/icons-vue";
|
|
1
|
+
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, createVNode, createTextVNode, unref, createCommentVNode, createElementBlock, Fragment, renderList, toDisplayString } from "vue";
|
|
2
|
+
import { Plus, Top, Bottom, Delete } from "@element-plus/icons-vue";
|
|
3
3
|
import BindVariable from "../../common/common-variable-bind.vue.js";
|
|
4
|
-
|
|
4
|
+
import http from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { ElMessage } from "element-plus";
|
|
6
|
+
const _hoisted_1 = { style: { "font-weight": "bold" } };
|
|
7
|
+
const _hoisted_2 = { class: "dialog-footer" };
|
|
8
|
+
const _hoisted_3 = { class: "dialog-footer" };
|
|
5
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
10
|
__name: "bar-code-rule",
|
|
7
11
|
props: {
|
|
@@ -13,25 +17,164 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
17
|
emits: ["close", "remove"],
|
|
14
18
|
setup(__props, { emit: __emit }) {
|
|
15
19
|
const props = __props;
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
const baseAPI = window["$vueApp"].config.globalProperties.baseAPI;
|
|
21
|
+
const emits = __emit;
|
|
22
|
+
const ruleSelectOptions = ref(null);
|
|
23
|
+
const ruleOutsFiledOptions = ref({});
|
|
24
|
+
const selectedRule = ref("");
|
|
25
|
+
const innerVisible = ref(false);
|
|
26
|
+
onMounted(() => {
|
|
27
|
+
if (props.ruleList && props.ruleList.length > 0) {
|
|
28
|
+
props.ruleList.forEach((rule) => {
|
|
29
|
+
if (!ruleOutsFiledOptions.value[rule.code]) {
|
|
30
|
+
if (rule.type === "group") {
|
|
31
|
+
getOptionsByGroupCode(rule.code);
|
|
32
|
+
} else {
|
|
33
|
+
getOptionsByRuleCode(rule.code);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
getAllRules();
|
|
39
|
+
});
|
|
21
40
|
function afterBindVariable(modelValue, row) {
|
|
22
41
|
row.pageVariable = modelValue;
|
|
23
42
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
43
|
+
function getAllRules() {
|
|
44
|
+
getRuleSelectOptions().then((res) => {
|
|
45
|
+
ruleSelectOptions.value = res;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function openRuleSelectDialog() {
|
|
49
|
+
if (!ruleSelectOptions.value) {
|
|
50
|
+
getRuleSelectOptions().then((res) => {
|
|
51
|
+
innerVisible.value = true;
|
|
52
|
+
ruleSelectOptions.value = res;
|
|
53
|
+
});
|
|
54
|
+
} else {
|
|
55
|
+
innerVisible.value = true;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function addRule() {
|
|
59
|
+
innerVisible.value = false;
|
|
60
|
+
const index = props.ruleList.findIndex((rule) => rule.code === selectedRule.value);
|
|
61
|
+
if (index === -1) {
|
|
62
|
+
const ruleOption = findRule(selectedRule.value);
|
|
63
|
+
props.ruleList.push({ type: ruleOption.type ?? "rule", code: ruleOption.value, outs: [] });
|
|
64
|
+
if (!ruleOutsFiledOptions.value[ruleOption.value]) {
|
|
65
|
+
if (ruleOption.type === "group") {
|
|
66
|
+
getOptionsByGroupCode(ruleOption.value);
|
|
67
|
+
} else {
|
|
68
|
+
getOptionsByRuleCode(ruleOption.value);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
} else {
|
|
72
|
+
ElMessage.warning("已经添加过的规则分组或者规则");
|
|
73
|
+
}
|
|
74
|
+
selectedRule.value = "";
|
|
75
|
+
}
|
|
76
|
+
function getRuleSelectOptions() {
|
|
77
|
+
return http.get(baseAPI + "/dc/setting-barcode-analysis/select-options");
|
|
78
|
+
}
|
|
79
|
+
function getOptionsByGroupCode(groupCode) {
|
|
80
|
+
http.get(baseAPI + "/dc/setting-barcode-analysis/by-group/" + groupCode).then((res) => {
|
|
81
|
+
const options = [];
|
|
82
|
+
res.forEach((item) => {
|
|
83
|
+
const outs = JSON.parse(item.barcodeAnalysisOuts);
|
|
84
|
+
options.push({ label: item.name, options: outs, ruleCode: item.code });
|
|
85
|
+
});
|
|
86
|
+
ruleOutsFiledOptions.value[groupCode] = options;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function getOptionsByRuleCode(ruleCode) {
|
|
90
|
+
http.get(baseAPI + "/dc/setting-barcode-analysis/by-code/" + ruleCode).then((res) => {
|
|
91
|
+
const outs = JSON.parse(res.barcodeAnalysisOuts);
|
|
92
|
+
ruleOutsFiledOptions.value[ruleCode] = { label: res.name, options: outs, ruleCode: res.code };
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function deleteRule(index) {
|
|
96
|
+
props.ruleList.splice(index, 1);
|
|
97
|
+
}
|
|
98
|
+
function addValueSet(rule) {
|
|
99
|
+
rule.outs.push({ pageVariable: "", returnedValue: "" });
|
|
100
|
+
}
|
|
101
|
+
function getRuleName(code) {
|
|
102
|
+
const option = findRule(code);
|
|
103
|
+
if (option) {
|
|
104
|
+
return option.label;
|
|
105
|
+
}
|
|
106
|
+
return code;
|
|
107
|
+
}
|
|
108
|
+
function findRule(value) {
|
|
109
|
+
if (ruleSelectOptions.value) {
|
|
110
|
+
for (const category of ruleSelectOptions.value) {
|
|
111
|
+
for (const option of category.options) {
|
|
112
|
+
if (option.value === value) {
|
|
113
|
+
return option;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function getLabel(value, ruleCode) {
|
|
121
|
+
if (ruleOutsFiledOptions.value[ruleCode]) {
|
|
122
|
+
for (const group of ruleOutsFiledOptions.value[ruleCode]) {
|
|
123
|
+
for (const item of group.options) {
|
|
124
|
+
if (item.code === value) {
|
|
125
|
+
return group.label;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return "";
|
|
131
|
+
}
|
|
132
|
+
function ruleGroupOutsChange(value, groupCode, row) {
|
|
133
|
+
for (const group of ruleOutsFiledOptions.value[groupCode]) {
|
|
134
|
+
for (const item of group.options) {
|
|
135
|
+
if (item.code === value) {
|
|
136
|
+
row.ruleCode = group.ruleCode;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function removeOuts(index, outs) {
|
|
142
|
+
outs.splice(index, 1);
|
|
143
|
+
}
|
|
144
|
+
function move(index, direction) {
|
|
145
|
+
if (direction === "up") {
|
|
146
|
+
if (index === 0) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const temp = props.ruleList[index];
|
|
150
|
+
props.ruleList[index] = props.ruleList[index - 1];
|
|
151
|
+
props.ruleList[index - 1] = temp;
|
|
152
|
+
} else {
|
|
153
|
+
if (index === props.ruleList.length - 1) {
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
const temp = props.ruleList[index];
|
|
157
|
+
props.ruleList[index] = props.ruleList[index + 1];
|
|
158
|
+
props.ruleList[index + 1] = temp;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function confirm() {
|
|
162
|
+
emits("close");
|
|
26
163
|
}
|
|
27
164
|
return (_ctx, _cache) => {
|
|
28
165
|
const _component_el_button = resolveComponent("el-button");
|
|
29
166
|
const _component_el_row = resolveComponent("el-row");
|
|
167
|
+
const _component_el_empty = resolveComponent("el-empty");
|
|
168
|
+
const _component_el_divider = resolveComponent("el-divider");
|
|
169
|
+
const _component_el_col = resolveComponent("el-col");
|
|
170
|
+
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
171
|
+
const _component_el_button_group = resolveComponent("el-button-group");
|
|
30
172
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
31
173
|
const _component_el_option = resolveComponent("el-option");
|
|
174
|
+
const _component_el_option_group = resolveComponent("el-option-group");
|
|
32
175
|
const _component_el_select = resolveComponent("el-select");
|
|
33
|
-
const _component_el_form_item = resolveComponent("el-form-item");
|
|
34
176
|
const _component_el_table = resolveComponent("el-table");
|
|
177
|
+
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
35
178
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
36
179
|
return openBlock(), createBlock(_component_el_dialog, {
|
|
37
180
|
"model-value": "",
|
|
@@ -42,9 +185,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
185
|
}
|
|
43
186
|
}, {
|
|
44
187
|
footer: withCtx(() => [
|
|
45
|
-
createElementVNode("div",
|
|
188
|
+
createElementVNode("div", _hoisted_3, [
|
|
46
189
|
createVNode(_component_el_button, {
|
|
47
|
-
onClick: _cache[
|
|
190
|
+
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("close"))
|
|
48
191
|
}, {
|
|
49
192
|
default: withCtx(() => [
|
|
50
193
|
createTextVNode("取消")
|
|
@@ -53,7 +196,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
53
196
|
}),
|
|
54
197
|
createVNode(_component_el_button, {
|
|
55
198
|
type: "primary",
|
|
56
|
-
onClick:
|
|
199
|
+
onClick: confirm
|
|
57
200
|
}, {
|
|
58
201
|
default: withCtx(() => [
|
|
59
202
|
createTextVNode(" 确定 ")
|
|
@@ -69,7 +212,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
212
|
icon: unref(Plus),
|
|
70
213
|
plain: "",
|
|
71
214
|
type: "primary",
|
|
72
|
-
onClick:
|
|
215
|
+
onClick: openRuleSelectDialog
|
|
73
216
|
}, {
|
|
74
217
|
default: withCtx(() => [
|
|
75
218
|
createTextVNode(" 添加 ")
|
|
@@ -79,110 +222,266 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
222
|
]),
|
|
80
223
|
_: 1
|
|
81
224
|
}),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
225
|
+
!__props.ruleList || __props.ruleList.length <= 0 ? (openBlock(), createBlock(_component_el_empty, {
|
|
226
|
+
key: 0,
|
|
227
|
+
description: ""
|
|
228
|
+
})) : createCommentVNode("", true),
|
|
229
|
+
createVNode(_component_el_scrollbar, {
|
|
230
|
+
"max-height": "400px",
|
|
231
|
+
noresize: true
|
|
85
232
|
}, {
|
|
86
233
|
default: withCtx(() => [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
234
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.ruleList, (ruleOrGroup, index) => {
|
|
235
|
+
return openBlock(), createBlock(_component_el_row, { key: index }, {
|
|
236
|
+
default: withCtx(() => [
|
|
237
|
+
createVNode(_component_el_col, { span: 20 }, {
|
|
238
|
+
default: withCtx(() => [
|
|
239
|
+
createVNode(_component_el_divider, { "content-position": "left" }, {
|
|
240
|
+
default: withCtx(() => [
|
|
241
|
+
createTextVNode(toDisplayString(getRuleName(ruleOrGroup.code)), 1)
|
|
242
|
+
]),
|
|
243
|
+
_: 2
|
|
244
|
+
}, 1024)
|
|
245
|
+
]),
|
|
246
|
+
_: 2
|
|
247
|
+
}, 1024),
|
|
248
|
+
createVNode(_component_el_col, {
|
|
249
|
+
span: 4,
|
|
250
|
+
style: { "display": "flex", "align-self": "center", "justify-content": "flex-end" }
|
|
251
|
+
}, {
|
|
252
|
+
default: withCtx(() => [
|
|
253
|
+
createVNode(_component_el_button_group, { class: "ml-4" }, {
|
|
254
|
+
default: withCtx(() => [
|
|
255
|
+
createVNode(_component_el_tooltip, {
|
|
256
|
+
class: "box-item",
|
|
257
|
+
effect: "dark",
|
|
258
|
+
content: "向上",
|
|
259
|
+
placement: "top"
|
|
260
|
+
}, {
|
|
261
|
+
default: withCtx(() => [
|
|
262
|
+
createVNode(_component_el_button, {
|
|
263
|
+
type: "primary",
|
|
264
|
+
disabled: index === 0,
|
|
265
|
+
icon: unref(Top),
|
|
266
|
+
onClick: ($event) => move(index, "up")
|
|
267
|
+
}, null, 8, ["disabled", "icon", "onClick"])
|
|
268
|
+
]),
|
|
269
|
+
_: 2
|
|
270
|
+
}, 1024),
|
|
271
|
+
createVNode(_component_el_tooltip, {
|
|
272
|
+
class: "box-item",
|
|
273
|
+
effect: "dark",
|
|
274
|
+
content: "向下",
|
|
275
|
+
placement: "top"
|
|
276
|
+
}, {
|
|
277
|
+
default: withCtx(() => [
|
|
278
|
+
createVNode(_component_el_button, {
|
|
279
|
+
type: "primary",
|
|
280
|
+
disabled: index === __props.ruleList.length - 1,
|
|
281
|
+
icon: unref(Bottom),
|
|
282
|
+
onClick: ($event) => move(index, "down")
|
|
283
|
+
}, null, 8, ["disabled", "icon", "onClick"])
|
|
284
|
+
]),
|
|
285
|
+
_: 2
|
|
286
|
+
}, 1024),
|
|
287
|
+
createVNode(_component_el_tooltip, {
|
|
288
|
+
class: "box-item",
|
|
289
|
+
effect: "dark",
|
|
290
|
+
content: "删除",
|
|
291
|
+
placement: "top"
|
|
292
|
+
}, {
|
|
293
|
+
default: withCtx(() => [
|
|
294
|
+
createVNode(_component_el_button, {
|
|
295
|
+
type: "danger",
|
|
296
|
+
icon: unref(Delete),
|
|
297
|
+
onClick: ($event) => deleteRule(index)
|
|
298
|
+
}, null, 8, ["icon", "onClick"])
|
|
299
|
+
]),
|
|
300
|
+
_: 2
|
|
301
|
+
}, 1024)
|
|
302
|
+
]),
|
|
303
|
+
_: 2
|
|
304
|
+
}, 1024)
|
|
305
|
+
]),
|
|
306
|
+
_: 2
|
|
307
|
+
}, 1024),
|
|
308
|
+
createVNode(_component_el_table, {
|
|
309
|
+
data: ruleOrGroup.outs,
|
|
310
|
+
style: { "width": "100%" }
|
|
311
|
+
}, {
|
|
312
|
+
default: withCtx(() => [
|
|
313
|
+
createVNode(_component_el_table_column, {
|
|
314
|
+
type: "selection",
|
|
315
|
+
width: "55"
|
|
316
|
+
}),
|
|
317
|
+
createVNode(_component_el_table_column, {
|
|
318
|
+
label: "序号",
|
|
319
|
+
type: "index"
|
|
320
|
+
}),
|
|
321
|
+
createVNode(_component_el_table_column, {
|
|
322
|
+
prop: "address",
|
|
323
|
+
label: "返回值"
|
|
324
|
+
}, {
|
|
325
|
+
default: withCtx((scope) => [
|
|
326
|
+
ruleOrGroup.type === "group" ? (openBlock(), createBlock(_component_el_select, {
|
|
327
|
+
key: 0,
|
|
328
|
+
size: "small",
|
|
329
|
+
onChange: ($event) => ruleGroupOutsChange($event, ruleOrGroup.code, scope.row),
|
|
330
|
+
modelValue: scope.row.returnedValue,
|
|
331
|
+
"onUpdate:modelValue": ($event) => scope.row.returnedValue = $event,
|
|
332
|
+
placeholder: "请选择"
|
|
333
|
+
}, {
|
|
334
|
+
label: withCtx(({ label, value }) => [
|
|
335
|
+
createElementVNode("span", null, toDisplayString(getLabel(value, ruleOrGroup.code)) + ": ", 1),
|
|
336
|
+
createElementVNode("span", _hoisted_1, toDisplayString(label), 1)
|
|
337
|
+
]),
|
|
338
|
+
default: withCtx(() => [
|
|
339
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(ruleOutsFiledOptions.value[ruleOrGroup.code], (group) => {
|
|
340
|
+
return openBlock(), createBlock(_component_el_option_group, {
|
|
341
|
+
key: group.label,
|
|
342
|
+
label: group.label
|
|
343
|
+
}, {
|
|
344
|
+
default: withCtx(() => [
|
|
345
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(group.options, (item) => {
|
|
346
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
347
|
+
key: item.code,
|
|
348
|
+
label: item.fieldName,
|
|
349
|
+
value: item.code
|
|
350
|
+
}, null, 8, ["label", "value"]);
|
|
351
|
+
}), 128))
|
|
352
|
+
]),
|
|
353
|
+
_: 2
|
|
354
|
+
}, 1032, ["label"]);
|
|
355
|
+
}), 128))
|
|
356
|
+
]),
|
|
357
|
+
_: 2
|
|
358
|
+
}, 1032, ["onChange", "modelValue", "onUpdate:modelValue"])) : (openBlock(), createBlock(_component_el_select, {
|
|
359
|
+
key: 1,
|
|
360
|
+
size: "small",
|
|
361
|
+
modelValue: scope.row.returnedValue,
|
|
362
|
+
"onUpdate:modelValue": ($event) => scope.row.returnedValue = $event,
|
|
363
|
+
placeholder: "请选择"
|
|
364
|
+
}, {
|
|
365
|
+
default: withCtx(() => [
|
|
366
|
+
ruleOutsFiledOptions.value[ruleOrGroup.code] ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(ruleOutsFiledOptions.value[ruleOrGroup.code].options, (item) => {
|
|
367
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
368
|
+
key: item.code,
|
|
369
|
+
label: item.fieldName,
|
|
370
|
+
value: item.code
|
|
371
|
+
}, null, 8, ["label", "value"]);
|
|
372
|
+
}), 128)) : createCommentVNode("", true)
|
|
373
|
+
]),
|
|
374
|
+
_: 2
|
|
375
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]))
|
|
376
|
+
]),
|
|
377
|
+
_: 2
|
|
378
|
+
}, 1024),
|
|
379
|
+
createVNode(_component_el_table_column, {
|
|
380
|
+
prop: "address",
|
|
381
|
+
label: "设置到"
|
|
382
|
+
}, {
|
|
383
|
+
default: withCtx((scope) => [
|
|
384
|
+
createVNode(BindVariable, {
|
|
385
|
+
modelValue: scope.row.pageVariable,
|
|
386
|
+
paramTypes: ["data", "page"],
|
|
387
|
+
"onUpdate:modelValue": (val) => afterBindVariable(val, scope.row)
|
|
388
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
389
|
+
]),
|
|
390
|
+
_: 1
|
|
391
|
+
}),
|
|
392
|
+
createVNode(_component_el_table_column, {
|
|
393
|
+
label: "操作",
|
|
394
|
+
align: "right"
|
|
395
|
+
}, {
|
|
396
|
+
header: withCtx(() => [
|
|
397
|
+
createVNode(_component_el_button, {
|
|
398
|
+
icon: unref(Plus),
|
|
399
|
+
plain: "",
|
|
400
|
+
type: "primary",
|
|
401
|
+
onClick: ($event) => addValueSet(ruleOrGroup)
|
|
402
|
+
}, {
|
|
403
|
+
default: withCtx(() => [
|
|
404
|
+
createTextVNode(" 添加 ")
|
|
405
|
+
]),
|
|
406
|
+
_: 2
|
|
407
|
+
}, 1032, ["icon", "onClick"])
|
|
408
|
+
]),
|
|
409
|
+
default: withCtx((scope) => [
|
|
410
|
+
createVNode(_component_el_button, {
|
|
411
|
+
style: { "margin-right": "7px" },
|
|
412
|
+
icon: unref(Delete),
|
|
413
|
+
plain: "",
|
|
414
|
+
type: "primary",
|
|
415
|
+
onClick: ($event) => removeOuts(scope.$index, ruleOrGroup.outs)
|
|
416
|
+
}, {
|
|
417
|
+
default: withCtx(() => [
|
|
418
|
+
createTextVNode(" 删除 ")
|
|
419
|
+
]),
|
|
420
|
+
_: 2
|
|
421
|
+
}, 1032, ["icon", "onClick"])
|
|
422
|
+
]),
|
|
423
|
+
_: 2
|
|
424
|
+
}, 1024)
|
|
425
|
+
]),
|
|
426
|
+
_: 2
|
|
427
|
+
}, 1032, ["data"])
|
|
428
|
+
]),
|
|
429
|
+
_: 2
|
|
430
|
+
}, 1024);
|
|
431
|
+
}), 128))
|
|
432
|
+
]),
|
|
433
|
+
_: 1
|
|
434
|
+
}),
|
|
435
|
+
createVNode(_component_el_dialog, {
|
|
436
|
+
modelValue: innerVisible.value,
|
|
437
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => innerVisible.value = $event),
|
|
438
|
+
width: "500",
|
|
439
|
+
title: "选择规则",
|
|
440
|
+
"append-to-body": ""
|
|
441
|
+
}, {
|
|
442
|
+
footer: withCtx(() => [
|
|
443
|
+
createElementVNode("div", _hoisted_2, [
|
|
444
|
+
createVNode(_component_el_button, {
|
|
445
|
+
type: "primary",
|
|
446
|
+
onClick: addRule
|
|
447
|
+
}, {
|
|
448
|
+
default: withCtx(() => [
|
|
449
|
+
createTextVNode(" 添加 ")
|
|
450
|
+
]),
|
|
451
|
+
_: 1
|
|
452
|
+
})
|
|
453
|
+
])
|
|
454
|
+
]),
|
|
455
|
+
default: withCtx(() => [
|
|
456
|
+
createVNode(_component_el_select, {
|
|
457
|
+
modelValue: selectedRule.value,
|
|
458
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedRule.value = $event),
|
|
459
|
+
placeholder: "请选择"
|
|
167
460
|
}, {
|
|
168
|
-
default: withCtx((
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
461
|
+
default: withCtx(() => [
|
|
462
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(ruleSelectOptions.value, (group) => {
|
|
463
|
+
return openBlock(), createBlock(_component_el_option_group, {
|
|
464
|
+
key: group.label,
|
|
465
|
+
label: group.label
|
|
466
|
+
}, {
|
|
467
|
+
default: withCtx(() => [
|
|
468
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(group.options, (item) => {
|
|
469
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
470
|
+
key: item.value,
|
|
471
|
+
label: item.label,
|
|
472
|
+
value: item.value
|
|
473
|
+
}, null, 8, ["label", "value"]);
|
|
474
|
+
}), 128))
|
|
475
|
+
]),
|
|
476
|
+
_: 2
|
|
477
|
+
}, 1032, ["label"]);
|
|
478
|
+
}), 128))
|
|
180
479
|
]),
|
|
181
480
|
_: 1
|
|
182
|
-
})
|
|
481
|
+
}, 8, ["modelValue"])
|
|
183
482
|
]),
|
|
184
483
|
_: 1
|
|
185
|
-
}, 8, ["
|
|
484
|
+
}, 8, ["modelValue"])
|
|
186
485
|
]),
|
|
187
486
|
_: 1
|
|
188
487
|
}, 8, ["before-close"]);
|
package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js
CHANGED
|
@@ -27,8 +27,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
},
|
|
28
28
|
setup(__props) {
|
|
29
29
|
const props = __props;
|
|
30
|
+
console.log("%c描述-120122", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.configure);
|
|
30
31
|
if (!props.configure.props.base) {
|
|
31
|
-
props.configure.props.base = {};
|
|
32
|
+
props.configure.props.base = { prop: "" };
|
|
32
33
|
}
|
|
33
34
|
if (!props.configure.props.preSuffix) {
|
|
34
35
|
props.configure.props.preSuffix = {};
|
|
@@ -23,9 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
let defineProps = props.configure.props ? props.configure.props : {};
|
|
24
24
|
const tempProps = {};
|
|
25
25
|
if (defineProps["scan"] && defineProps["scan"]["enable"]) {
|
|
26
|
-
tempProps["
|
|
27
|
-
} else {
|
|
28
|
-
tempProps["enable"] = false;
|
|
26
|
+
tempProps["scan"] = defineProps["scan"];
|
|
29
27
|
}
|
|
30
28
|
const preSuffix = defineProps.preSuffix ? defineProps.preSuffix : {};
|
|
31
29
|
if (preSuffix.preIconType || preSuffix.preText || preSuffix.sufIconType || preSuffix.sufText) {
|
|
@@ -39,18 +37,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
37
|
}
|
|
40
38
|
Object.assign(designProperty.value, tempProps);
|
|
41
39
|
}
|
|
42
|
-
watch(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
watch(
|
|
41
|
+
props.configure.style,
|
|
42
|
+
() => {
|
|
43
|
+
caculateDetailComponentStyle(props.configure, designStyle, designClass, designHeaderStyle);
|
|
44
|
+
console.log("%c描述-102351", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", designStyle.value);
|
|
45
|
+
props.configure.runtime.style = designStyle.value;
|
|
46
|
+
props.configure.runtime.class = designClass.value;
|
|
47
|
+
props.configure.runtime.headerStyle = designHeaderStyle.value;
|
|
48
|
+
},
|
|
49
|
+
{ immediate: true }
|
|
50
|
+
);
|
|
51
|
+
watch(
|
|
52
|
+
props.configure.props,
|
|
53
|
+
() => {
|
|
54
|
+
caculateComponentProps(props.configure, designProperty);
|
|
55
|
+
getRestsParameter();
|
|
56
|
+
props.configure.runtime.props = designProperty.value;
|
|
57
|
+
},
|
|
58
|
+
{ immediate: true }
|
|
59
|
+
);
|
|
54
60
|
return (_ctx, _cache) => {
|
|
55
61
|
const _component_el_input = resolveComponent("el-input");
|
|
56
62
|
const _component_el_form_item = resolveComponent("el-form-item");
|