starfish-editor-custom 1.0.55 → 1.0.57
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/ConditionModule.js +93 -92
- package/dist/ConditionSelect.js +55 -54
- package/dist/formStyle.js +8 -8
- package/dist/jsonCode.js +2 -2
- package/dist/main.js +379 -178
- package/dist/starfish-editor.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/common/ConditionSelect/ConditionGroup.vue.d.ts +1 -1
- package/dist/types/common/ConditionSelect/ConditionModule.vue.d.ts +2 -2
- package/dist/types/common/ConditionSelect/ConditionTanc.vue.d.ts +3 -3
- package/dist/types/common/ConditionSelect.vue.d.ts +10 -0
- package/dist/types/common/formJson.d.ts +4 -5
- package/dist/types/locale/en.d.ts +95 -0
- package/dist/types/locale/index.d.ts +1 -0
- package/dist/types/locale/zh-CN.d.ts +95 -0
- package/dist/types/main.d.ts +4 -1
- package/package.json +2 -2
- package/src/common/ConditionSelect/ConditionGroup.vue +8 -7
- package/src/common/ConditionSelect/ConditionModule.vue +7 -7
- package/src/common/ConditionSelect/ConditionTanc.vue +40 -39
- package/src/common/ConditionSelect.vue +32 -31
- package/src/common/formJson.ts +10 -8
- package/src/common/formStyle.vue +4 -4
- package/src/common/jsonCode.vue +1 -1
- package/src/components/ComponentList.vue +9 -9
- package/src/components/FormPreview.vue +13 -11
- package/src/components/NavList.vue +25 -25
- package/src/components/PropsPanel.vue +7 -6
- package/src/components/Shape.vue +11 -10
- package/src/components/Workspace.vue +2 -2
- package/src/layouts/ControlEditSize.vue +1 -1
- package/src/layouts/ShortcutKey.vue +11 -11
- package/src/locale/en.ts +94 -0
- package/src/locale/index.ts +9 -0
- package/src/locale/zh-CN.ts +94 -0
- package/src/main.ts +6 -2
- package/src/styles/form-preview.scss +1 -1
- package/src/styles/props-panel.scss +9 -9
- package/src/utils/_.ts +6 -3
- package/stats.html +1 -1
package/dist/ConditionModule.js
CHANGED
|
@@ -12,12 +12,12 @@ import "element-plus/es/components/form/style/css";
|
|
|
12
12
|
import "element-plus/es/components/form-item/style/css";
|
|
13
13
|
import "element-plus/es/components/input/style/css";
|
|
14
14
|
import "element-plus/es/components/table-column/style/css";
|
|
15
|
-
import "element-plus/es/components/message/style/css";
|
|
16
|
-
import { resolveComponent, openBlock, createBlock, Teleport, createVNode, withCtx, createElementBlock, Fragment, renderList, createCommentVNode, withModifiers, createTextVNode, normalizeClass, withDirectives, createElementVNode, vShow, Transition, toRaw } from "vue";
|
|
17
15
|
import { _ as _export_sfc, f as formStore } from "./main.js";
|
|
16
|
+
import "element-plus/es/components/message/style/css";
|
|
17
|
+
import { resolveComponent, openBlock, createBlock, Teleport, createVNode, withCtx, createElementBlock, Fragment, renderList, createCommentVNode, withModifiers, createTextVNode, toDisplayString, normalizeClass, withDirectives, createElementVNode, vShow, Transition, toRaw } from "vue";
|
|
18
|
+
import { t } from "starfish-form-custom";
|
|
18
19
|
import "element-plus/dist/index.css";
|
|
19
20
|
import "jsoneditor/dist/jsoneditor.min.css";
|
|
20
|
-
import "starfish-form-custom";
|
|
21
21
|
import "mitt";
|
|
22
22
|
import "element-plus";
|
|
23
23
|
import "nanoid";
|
|
@@ -56,26 +56,26 @@ const _sfc_main$2 = {
|
|
|
56
56
|
groupSelect: [
|
|
57
57
|
{
|
|
58
58
|
value: "andgroup",
|
|
59
|
-
label: "
|
|
59
|
+
label: t("cond.addAndGroup")
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
value: "orgroup",
|
|
63
|
-
label: "
|
|
63
|
+
label: t("cond.addOrGroup")
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
value: "data",
|
|
67
|
-
label: "
|
|
67
|
+
label: t("cond.condition")
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
logicList: [
|
|
71
|
-
{ value: "=", label: "
|
|
72
|
-
{ value: "!=", label: "
|
|
71
|
+
{ value: "=", label: t("cond.equal") },
|
|
72
|
+
{ value: "!=", label: t("cond.notEqual") }
|
|
73
73
|
],
|
|
74
74
|
typeList: [
|
|
75
75
|
{
|
|
76
76
|
rule: [],
|
|
77
|
-
value: "
|
|
78
|
-
label: "
|
|
77
|
+
value: "constant",
|
|
78
|
+
label: t("cond.constant")
|
|
79
79
|
}
|
|
80
80
|
]
|
|
81
81
|
};
|
|
@@ -93,16 +93,16 @@ const _sfc_main$2 = {
|
|
|
93
93
|
return [
|
|
94
94
|
{
|
|
95
95
|
rule: [],
|
|
96
|
-
value: "
|
|
97
|
-
label: "
|
|
96
|
+
value: "option",
|
|
97
|
+
label: t("cond.option")
|
|
98
98
|
}
|
|
99
99
|
];
|
|
100
100
|
}
|
|
101
101
|
if (item && item.switch) {
|
|
102
102
|
return [
|
|
103
103
|
{
|
|
104
|
-
value: "
|
|
105
|
-
label: "
|
|
104
|
+
value: "boolean",
|
|
105
|
+
label: t("cond.boolean")
|
|
106
106
|
}
|
|
107
107
|
];
|
|
108
108
|
}
|
|
@@ -111,7 +111,7 @@ const _sfc_main$2 = {
|
|
|
111
111
|
},
|
|
112
112
|
methods: {
|
|
113
113
|
handleType(type) {
|
|
114
|
-
if (type == "
|
|
114
|
+
if (type == "boolean") {
|
|
115
115
|
this.table[0].value = true;
|
|
116
116
|
}
|
|
117
117
|
},
|
|
@@ -147,22 +147,22 @@ const _sfc_main$2 = {
|
|
|
147
147
|
});
|
|
148
148
|
if (item && item.options && item.multiple) {
|
|
149
149
|
return [
|
|
150
|
-
{ value: "in", label: "
|
|
151
|
-
{ value: "not in", label: "
|
|
150
|
+
{ value: "in", label: t("cond.in") },
|
|
151
|
+
{ value: "not in", label: t("cond.notIn") }
|
|
152
152
|
];
|
|
153
153
|
}
|
|
154
154
|
if (item && item.switch) {
|
|
155
155
|
return [
|
|
156
156
|
{
|
|
157
157
|
value: "=",
|
|
158
|
-
label: "
|
|
158
|
+
label: t("cond.equal")
|
|
159
159
|
}
|
|
160
160
|
];
|
|
161
161
|
}
|
|
162
162
|
return this.logicList;
|
|
163
163
|
},
|
|
164
164
|
show(data) {
|
|
165
|
-
this.$refs.maxJsonDialog.init("
|
|
165
|
+
this.$refs.maxJsonDialog.init(t("cond.available"), "icon-icon-bianji");
|
|
166
166
|
this.$refs.maxJsonDialog.show();
|
|
167
167
|
if (Object.keys(data).length > 0) {
|
|
168
168
|
this.table = [data];
|
|
@@ -178,7 +178,7 @@ const _sfc_main$2 = {
|
|
|
178
178
|
},
|
|
179
179
|
getTypeIsChange(index) {
|
|
180
180
|
const nowRow = this.table[index];
|
|
181
|
-
return !!nowRow.type && nowRow.type == "
|
|
181
|
+
return !!nowRow.type && nowRow.type == "constant";
|
|
182
182
|
},
|
|
183
183
|
getRules(value) {
|
|
184
184
|
var _a;
|
|
@@ -200,21 +200,21 @@ const _sfc_main$2 = {
|
|
|
200
200
|
if (!data.field) {
|
|
201
201
|
ElMessage({
|
|
202
202
|
type: "error",
|
|
203
|
-
message: "
|
|
203
|
+
message: t("msg.fieldEmpty")
|
|
204
204
|
});
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
207
|
if (!data.type) {
|
|
208
208
|
ElMessage({
|
|
209
209
|
type: "error",
|
|
210
|
-
message: "
|
|
210
|
+
message: t("msg.selectType")
|
|
211
211
|
});
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
|
-
if (data.type && data.type == "
|
|
214
|
+
if (data.type && data.type == "option" && !data.value) {
|
|
215
215
|
ElMessage({
|
|
216
216
|
type: "error",
|
|
217
|
-
message: "
|
|
217
|
+
message: t("msg.valueEmpty")
|
|
218
218
|
});
|
|
219
219
|
return;
|
|
220
220
|
}
|
|
@@ -227,7 +227,7 @@ const _sfc_main$2 = {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
ElMessage({
|
|
230
|
-
message: "
|
|
230
|
+
message: t("msg.saveSuccess"),
|
|
231
231
|
type: "success"
|
|
232
232
|
});
|
|
233
233
|
this.closeDialog();
|
|
@@ -269,19 +269,19 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
269
269
|
default: withCtx(() => [
|
|
270
270
|
createVNode(_component_el_table_column, {
|
|
271
271
|
prop: "field",
|
|
272
|
-
label: "
|
|
272
|
+
label: _ctx.$t("cond.field")
|
|
273
273
|
}, {
|
|
274
274
|
default: withCtx((scope) => [
|
|
275
275
|
createVNode(_component_el_select, {
|
|
276
276
|
modelValue: scope.row.field,
|
|
277
277
|
"onUpdate:modelValue": ($event) => scope.row.field = $event,
|
|
278
|
-
placeholder: "
|
|
278
|
+
placeholder: _ctx.$t("common.select")
|
|
279
279
|
}, {
|
|
280
280
|
default: withCtx(() => [
|
|
281
281
|
createVNode(_component_el_option, {
|
|
282
|
-
label: "
|
|
282
|
+
label: _ctx.$t("cond.unselect"),
|
|
283
283
|
value: ""
|
|
284
|
-
}),
|
|
284
|
+
}, null, 8, ["label"]),
|
|
285
285
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.fieldList, (item, index) => {
|
|
286
286
|
return openBlock(), createBlock(_component_el_option, {
|
|
287
287
|
key: index,
|
|
@@ -291,19 +291,19 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
291
291
|
}), 128))
|
|
292
292
|
]),
|
|
293
293
|
_: 1
|
|
294
|
-
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
294
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
295
295
|
]),
|
|
296
296
|
_: 1
|
|
297
|
-
}),
|
|
297
|
+
}, 8, ["label"]),
|
|
298
298
|
createVNode(_component_el_table_column, {
|
|
299
299
|
prop: "logic",
|
|
300
|
-
label: "
|
|
300
|
+
label: _ctx.$t("cond.logic")
|
|
301
301
|
}, {
|
|
302
302
|
default: withCtx((scope) => [
|
|
303
303
|
createVNode(_component_el_select, {
|
|
304
304
|
modelValue: scope.row.logic,
|
|
305
305
|
"onUpdate:modelValue": ($event) => scope.row.logic = $event,
|
|
306
|
-
placeholder: "
|
|
306
|
+
placeholder: _ctx.$t("common.select")
|
|
307
307
|
}, {
|
|
308
308
|
default: withCtx(() => [
|
|
309
309
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getLogic(), (item) => {
|
|
@@ -315,19 +315,19 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
315
315
|
}), 128))
|
|
316
316
|
]),
|
|
317
317
|
_: 1
|
|
318
|
-
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
318
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
|
-
}),
|
|
321
|
+
}, 8, ["label"]),
|
|
322
322
|
createVNode(_component_el_table_column, {
|
|
323
323
|
prop: "type",
|
|
324
|
-
label: "
|
|
324
|
+
label: _ctx.$t("cond.valueType")
|
|
325
325
|
}, {
|
|
326
326
|
default: withCtx((scope) => [
|
|
327
327
|
createVNode(_component_el_select, {
|
|
328
328
|
modelValue: scope.row.type,
|
|
329
329
|
"onUpdate:modelValue": ($event) => scope.row.type = $event,
|
|
330
|
-
placeholder: "
|
|
330
|
+
placeholder: _ctx.$t("common.select"),
|
|
331
331
|
onChange: $options.handleType
|
|
332
332
|
}, {
|
|
333
333
|
default: withCtx(() => [
|
|
@@ -340,13 +340,13 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
340
340
|
}), 128))
|
|
341
341
|
]),
|
|
342
342
|
_: 1
|
|
343
|
-
}, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
343
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange"])
|
|
344
344
|
]),
|
|
345
345
|
_: 1
|
|
346
|
-
}),
|
|
346
|
+
}, 8, ["label"]),
|
|
347
347
|
createVNode(_component_el_table_column, {
|
|
348
348
|
prop: "value",
|
|
349
|
-
label: "
|
|
349
|
+
label: _ctx.$t("cond.value")
|
|
350
350
|
}, {
|
|
351
351
|
default: withCtx((scope) => [
|
|
352
352
|
$options.getTypeIsChange(scope.$index, _ctx.index) ? (openBlock(), createBlock(_component_el_form, {
|
|
@@ -369,19 +369,19 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
369
369
|
]),
|
|
370
370
|
_: 2
|
|
371
371
|
}, 1032, ["model", "rules"])) : createCommentVNode("", true),
|
|
372
|
-
scope.row.type == "
|
|
372
|
+
scope.row.type == "option" ? (openBlock(), createBlock(_component_el_select, {
|
|
373
373
|
key: 1,
|
|
374
374
|
modelValue: scope.row.value,
|
|
375
375
|
"onUpdate:modelValue": ($event) => scope.row.value = $event,
|
|
376
376
|
filterable: "",
|
|
377
|
-
placeholder: "
|
|
377
|
+
placeholder: _ctx.$t("common.select"),
|
|
378
378
|
multiple: $options.getMultiple()
|
|
379
379
|
}, {
|
|
380
380
|
default: withCtx(() => [
|
|
381
381
|
createVNode(_component_el_option, {
|
|
382
|
-
label: "
|
|
382
|
+
label: _ctx.$t("cond.unselect"),
|
|
383
383
|
value: ""
|
|
384
|
-
}),
|
|
384
|
+
}, null, 8, ["label"]),
|
|
385
385
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getFiled(), (item, index) => {
|
|
386
386
|
return openBlock(), createBlock(_component_el_option, {
|
|
387
387
|
key: index,
|
|
@@ -391,8 +391,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
391
391
|
}), 128))
|
|
392
392
|
]),
|
|
393
393
|
_: 1
|
|
394
|
-
}, 8, ["modelValue", "onUpdate:modelValue", "multiple"])) : createCommentVNode("", true),
|
|
395
|
-
scope.row.type == "
|
|
394
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple"])) : createCommentVNode("", true),
|
|
395
|
+
scope.row.type == "boolean" ? (openBlock(), createBlock(_component_el_switch, {
|
|
396
396
|
key: 2,
|
|
397
397
|
modelValue: scope.row.value,
|
|
398
398
|
"onUpdate:modelValue": ($event) => scope.row.value = $event,
|
|
@@ -401,10 +401,10 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
401
401
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-icon", "inactive-icon"])) : createCommentVNode("", true)
|
|
402
402
|
]),
|
|
403
403
|
_: 1
|
|
404
|
-
}),
|
|
404
|
+
}, 8, ["label"]),
|
|
405
405
|
createVNode(_component_el_table_column, {
|
|
406
406
|
fixed: "right",
|
|
407
|
-
label: "
|
|
407
|
+
label: _ctx.$t("cond.action"),
|
|
408
408
|
width: "200"
|
|
409
409
|
}, {
|
|
410
410
|
default: withCtx((scope) => [
|
|
@@ -413,14 +413,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
413
413
|
type: "danger",
|
|
414
414
|
onClick: withModifiers(($event) => $options.deleteRow(scope.$index, _ctx.index), ["prevent"])
|
|
415
415
|
}, {
|
|
416
|
-
default: withCtx(() => [
|
|
417
|
-
createTextVNode("
|
|
418
|
-
])
|
|
416
|
+
default: withCtx(() => [
|
|
417
|
+
createTextVNode(toDisplayString(_ctx.$t("common.delete")), 1)
|
|
418
|
+
]),
|
|
419
419
|
_: 1
|
|
420
420
|
}, 8, ["onClick"])
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
423
|
-
})
|
|
423
|
+
}, 8, ["label"])
|
|
424
424
|
]),
|
|
425
425
|
_: 1
|
|
426
426
|
}, 8, ["data"]),
|
|
@@ -431,9 +431,9 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
431
431
|
onClick: $options.onAddItem,
|
|
432
432
|
style: { "width": "100%" }
|
|
433
433
|
}, {
|
|
434
|
-
default: withCtx(() => [
|
|
435
|
-
createTextVNode("
|
|
436
|
-
])
|
|
434
|
+
default: withCtx(() => [
|
|
435
|
+
createTextVNode("+" + toDisplayString(_ctx.$t("cond.condition")), 1)
|
|
436
|
+
]),
|
|
437
437
|
_: 1
|
|
438
438
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
439
439
|
]),
|
|
@@ -448,15 +448,15 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
448
448
|
type: "primary",
|
|
449
449
|
onClick: $options.saveJson
|
|
450
450
|
}, {
|
|
451
|
-
default: withCtx(() => [
|
|
452
|
-
createTextVNode("
|
|
453
|
-
])
|
|
451
|
+
default: withCtx(() => [
|
|
452
|
+
createTextVNode(toDisplayString(_ctx.$t("common.save")), 1)
|
|
453
|
+
]),
|
|
454
454
|
_: 1
|
|
455
455
|
}, 8, ["onClick"]),
|
|
456
456
|
createVNode(_component_el_button, { onClick: $options.closeDialog }, {
|
|
457
|
-
default: withCtx(() => [
|
|
458
|
-
createTextVNode("
|
|
459
|
-
])
|
|
457
|
+
default: withCtx(() => [
|
|
458
|
+
createTextVNode(toDisplayString(_ctx.$t("common.close")), 1)
|
|
459
|
+
]),
|
|
460
460
|
_: 1
|
|
461
461
|
}, 8, ["onClick"])
|
|
462
462
|
]),
|
|
@@ -514,15 +514,15 @@ const _sfc_main$1 = {
|
|
|
514
514
|
groupSelect: [
|
|
515
515
|
{
|
|
516
516
|
value: "andgroup",
|
|
517
|
-
label: "
|
|
517
|
+
label: t("cond.addAndGroup")
|
|
518
518
|
},
|
|
519
519
|
{
|
|
520
520
|
value: "orgroup",
|
|
521
|
-
label: "
|
|
521
|
+
label: t("cond.addOrGroup")
|
|
522
522
|
},
|
|
523
523
|
{
|
|
524
524
|
value: "data",
|
|
525
|
-
label: "
|
|
525
|
+
label: t("cond.condition")
|
|
526
526
|
}
|
|
527
527
|
]
|
|
528
528
|
};
|
|
@@ -633,7 +633,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
633
633
|
createVNode(_component_el_select, {
|
|
634
634
|
modelValue: $props.result.type,
|
|
635
635
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $props.result.type = $event),
|
|
636
|
-
placeholder: "
|
|
636
|
+
placeholder: _ctx.$t("common.select"),
|
|
637
637
|
onChange: $options.onChange
|
|
638
638
|
}, {
|
|
639
639
|
default: withCtx(() => [
|
|
@@ -646,16 +646,16 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
646
646
|
}), 128))
|
|
647
647
|
]),
|
|
648
648
|
_: 1
|
|
649
|
-
}, 8, ["modelValue", "onChange"]),
|
|
649
|
+
}, 8, ["modelValue", "placeholder", "onChange"]),
|
|
650
650
|
createVNode(_component_el_button, {
|
|
651
651
|
type: "primary",
|
|
652
652
|
onClick: $options.onAddItem,
|
|
653
653
|
size: "default",
|
|
654
654
|
disabled: !$props.result.type || $props.result.type == "data"
|
|
655
655
|
}, {
|
|
656
|
-
default: withCtx(() => [
|
|
657
|
-
createTextVNode("
|
|
658
|
-
])
|
|
656
|
+
default: withCtx(() => [
|
|
657
|
+
createTextVNode(toDisplayString(_ctx.$t("cond.add")), 1)
|
|
658
|
+
]),
|
|
659
659
|
_: 1
|
|
660
660
|
}, 8, ["onClick", "disabled"]),
|
|
661
661
|
createVNode(_component_el_button, {
|
|
@@ -663,9 +663,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
663
663
|
onClick: $options.onDeleteItem,
|
|
664
664
|
size: "default"
|
|
665
665
|
}, {
|
|
666
|
-
default: withCtx(() => [
|
|
667
|
-
createTextVNode("
|
|
668
|
-
])
|
|
666
|
+
default: withCtx(() => [
|
|
667
|
+
createTextVNode(toDisplayString(_ctx.$t("common.delete")), 1)
|
|
668
|
+
]),
|
|
669
669
|
_: 1
|
|
670
670
|
}, 8, ["onClick"]),
|
|
671
671
|
$props.result.type == "data" ? (openBlock(), createBlock(_component_el_button, {
|
|
@@ -674,9 +674,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
674
674
|
onClick: $options.onEditData,
|
|
675
675
|
size: "default"
|
|
676
676
|
}, {
|
|
677
|
-
default: withCtx(() => [
|
|
678
|
-
createTextVNode("
|
|
679
|
-
])
|
|
677
|
+
default: withCtx(() => [
|
|
678
|
+
createTextVNode(toDisplayString(_ctx.$t("common.edit")), 1)
|
|
679
|
+
]),
|
|
680
680
|
_: 1
|
|
681
681
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
682
682
|
createVNode(Transition, null, {
|
|
@@ -760,7 +760,7 @@ const _sfc_main = {
|
|
|
760
760
|
methods: {
|
|
761
761
|
async show() {
|
|
762
762
|
var _a, _b;
|
|
763
|
-
this.$refs.maxJsonDialog.init("
|
|
763
|
+
this.$refs.maxJsonDialog.init(this.$t("cond.available"), "icon-icon-bianji");
|
|
764
764
|
this.$refs.maxJsonDialog.show();
|
|
765
765
|
await this.$nextTick();
|
|
766
766
|
const allFormList = (_a = formStore) == null ? void 0 : _a.get("allFormList");
|
|
@@ -789,14 +789,14 @@ const _sfc_main = {
|
|
|
789
789
|
},
|
|
790
790
|
getDataConditionRelate(data) {
|
|
791
791
|
if (Object.keys(data.data).length == 0)
|
|
792
|
-
return "
|
|
792
|
+
return this.$t("cond.empty");
|
|
793
793
|
const fieldData = data.data;
|
|
794
794
|
const field = fieldData.field;
|
|
795
795
|
let value;
|
|
796
|
-
if (fieldData.type == "
|
|
796
|
+
if (fieldData.type == "option") {
|
|
797
797
|
const rightField = fieldData.value;
|
|
798
798
|
value = `${JSON.stringify(rightField)}`;
|
|
799
|
-
} else if (fieldData.type == "
|
|
799
|
+
} else if (fieldData.type == "constant" || fieldData.type == "boolean") {
|
|
800
800
|
value = fieldData.value;
|
|
801
801
|
}
|
|
802
802
|
return `${field} ${fieldData.logic} ${value}`;
|
|
@@ -810,9 +810,10 @@ const _sfc_main = {
|
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
};
|
|
813
|
-
const _hoisted_1 = { class: "
|
|
814
|
-
const _hoisted_2 = { class: "
|
|
815
|
-
const _hoisted_3 =
|
|
813
|
+
const _hoisted_1 = { class: "tipContent" };
|
|
814
|
+
const _hoisted_2 = { class: "conditionContainer" };
|
|
815
|
+
const _hoisted_3 = { class: "stringlist" };
|
|
816
|
+
const _hoisted_4 = ["innerHTML"];
|
|
816
817
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
817
818
|
const _component_ConditionGroup = resolveComponent("ConditionGroup");
|
|
818
819
|
const _component_el_main = ElMain;
|
|
@@ -831,15 +832,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
831
832
|
default: withCtx(() => [
|
|
832
833
|
createVNode(_component_el_main, { class: "my-pageMain" }, {
|
|
833
834
|
default: withCtx(() => [
|
|
834
|
-
|
|
835
|
-
createElementVNode("div",
|
|
835
|
+
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.$t("cond.title")), 1),
|
|
836
|
+
createElementVNode("div", _hoisted_2, [
|
|
836
837
|
createVNode(_component_ConditionGroup, {
|
|
837
838
|
result: $data.result,
|
|
838
839
|
onUpdate: $options.handleUpdateForce,
|
|
839
840
|
fieldList: $data.leftField
|
|
840
841
|
}, null, 8, ["result", "onUpdate", "fieldList"]),
|
|
841
|
-
createElementVNode("div",
|
|
842
|
-
createElementVNode("pre", { innerHTML: $data.stringLink }, null, 8,
|
|
842
|
+
createElementVNode("div", _hoisted_3, [
|
|
843
|
+
createElementVNode("pre", { innerHTML: $data.stringLink }, null, 8, _hoisted_4)
|
|
843
844
|
])
|
|
844
845
|
])
|
|
845
846
|
]),
|
|
@@ -854,15 +855,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
854
855
|
type: "primary",
|
|
855
856
|
onClick: $options.saveJson
|
|
856
857
|
}, {
|
|
857
|
-
default: withCtx(() => [
|
|
858
|
-
createTextVNode("
|
|
859
|
-
])
|
|
858
|
+
default: withCtx(() => [
|
|
859
|
+
createTextVNode(toDisplayString(_ctx.$t("common.save")), 1)
|
|
860
|
+
]),
|
|
860
861
|
_: 1
|
|
861
862
|
}, 8, ["onClick"]),
|
|
862
863
|
createVNode(_component_el_button, { onClick: $options.closeDialog }, {
|
|
863
|
-
default: withCtx(() => [
|
|
864
|
-
createTextVNode("
|
|
865
|
-
])
|
|
864
|
+
default: withCtx(() => [
|
|
865
|
+
createTextVNode(toDisplayString(_ctx.$t("common.close")), 1)
|
|
866
|
+
]),
|
|
866
867
|
_: 1
|
|
867
868
|
}, 8, ["onClick"])
|
|
868
869
|
]),
|