@bytenew/bn-bus-ui 1.1.470 → 1.1.472
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/common.scss +156 -0
- package/dist/{assocTableSearch-SM_CVRX-.js → assocTableSearch-C5ouliZa.js} +7 -7
- package/dist/bn-bus-ui.es.js +37 -35
- package/dist/bn-bus-ui.umd.js +11 -11
- package/dist/{chooseIPaasData-DiAPNq8e.js → chooseIPaasData-C8iUu-LZ.js} +6 -6
- package/dist/{defaultSet-Boe-aClL.js → defaultSet-DGBaFuZQ.js} +1 -1
- package/dist/{formItemFooter-C0SDJMxy.js → formItemFooter-jI2qEjHk.js} +1 -1
- package/dist/{funcExprDialog-CKoqNPue.js → funcExprDialog-CSGEhbhs.js} +1 -1
- package/dist/{index-DCr-qI8F.js → index-B57kfOip.js} +1 -1
- package/dist/{index-dtWlyRj-.js → index-BR9kvW1T.js} +1 -1
- package/dist/{index-KJF9VIbe.js → index-BZ8-gv9u.js} +2 -2
- package/dist/{index-Dkl99LDZ.js → index-C1_5Z6Qv.js} +19 -19
- package/dist/{index-DlNSw-zS.js → index-CL60mJ8V.js} +2 -2
- package/dist/{index-D3daAln-.js → index-CaKKCOSs.js} +2 -2
- package/dist/{index-lzPnhV2Q.js → index-CpJCIuWy.js} +2 -2
- package/dist/{index-9MLVEBZS.js → index-D9K3c_6Q.js} +1 -1
- package/dist/{index-BOhA9OGm.js → index-DEqgNfIp.js} +2 -2
- package/dist/{index-CpMrxNzG.js → index-Da4V7O6p.js} +2 -2
- package/dist/{index-DPGbX4XR.js → index-DuwRrkFb.js} +2 -2
- package/dist/{index-YQou7VCy.js → index-G37JKf0D.js} +3 -3
- package/dist/{index-E-HfEN1t.js → index-GEQExkYN.js} +2 -2
- package/dist/{index-CrcC6CKv.js → index-R6zcJL9N.js} +3 -3
- package/dist/{index-CcX7k7tk.js → index-j0qILWOg.js} +2 -2
- package/dist/{index-B07Kr2nU.js → index-qBEetQ44.js} +2 -2
- package/dist/{index-DiRAOgjV.js → index-qgDSj6jv.js} +2 -2
- package/dist/{install-CJTJBoxT.js → install-E8f6xhdJ.js} +1376 -1325
- package/dist/install.css +1 -1
- package/dist/{setOption-U0Qwipo4.js → setOption-5WE9OeTL.js} +1 -1
- package/dist/{setRelationOption-1zzfQ9Wn.js → setRelationOption-BqsgX1sm.js} +106 -110
- package/dist/setRelationOption.css +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { cloneDeep as I } from "lodash";
|
|
2
|
-
import O from "
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const U = {
|
|
2
|
+
import { resolveComponent as f, openBlock as c, createElementBlock as w, createTextVNode as h, createVNode as p, withCtx as m, createCommentVNode as L, createBlock as b, createElementVNode as d, normalizeClass as O, withModifiers as D, Fragment as V, renderList as A } from "vue";
|
|
3
|
+
import { _ as k } from "./install-E8f6xhdJ.js";
|
|
4
|
+
const B = {
|
|
6
5
|
name: "ConditionList",
|
|
7
|
-
components: {
|
|
8
|
-
draggable: O
|
|
9
|
-
},
|
|
10
6
|
props: {
|
|
11
7
|
// 选项列表数据
|
|
12
8
|
options: {
|
|
@@ -81,17 +77,17 @@ const U = {
|
|
|
81
77
|
}), this.$emit("update:options", this.localOptions);
|
|
82
78
|
}
|
|
83
79
|
}
|
|
84
|
-
},
|
|
80
|
+
}, U = { class: "condition-list" }, S = {
|
|
85
81
|
key: 0,
|
|
86
82
|
class: "condition-list__empty"
|
|
87
|
-
},
|
|
83
|
+
}, x = {
|
|
88
84
|
key: 1,
|
|
89
85
|
class: "condition-list__tip"
|
|
90
|
-
},
|
|
91
|
-
function
|
|
86
|
+
}, E = ["onClick"], W = { class: "condition-item__input" }, N = { class: "condition-item__actions" }, $ = ["onClick"], F = ["onClick"];
|
|
87
|
+
function q(t, e, i, l, o, n) {
|
|
92
88
|
const s = f("el-button"), u = f("el-input"), v = f("el-switch"), r = f("draggable");
|
|
93
|
-
return c(), w("div",
|
|
94
|
-
n.showEmpty ? (c(), w("div",
|
|
89
|
+
return c(), w("div", U, [
|
|
90
|
+
n.showEmpty ? (c(), w("div", S, [
|
|
95
91
|
e[4] || (e[4] = h(" 没有设置条件, ", -1)),
|
|
96
92
|
p(s, {
|
|
97
93
|
type: "text",
|
|
@@ -102,9 +98,9 @@ function R(t, e, o, l, i, n) {
|
|
|
102
98
|
])]),
|
|
103
99
|
_: 1
|
|
104
100
|
})
|
|
105
|
-
])) :
|
|
106
|
-
n.showTip ? (c(), w("div",
|
|
107
|
-
n.showList ? (c(),
|
|
101
|
+
])) : L("", !0),
|
|
102
|
+
n.showTip ? (c(), w("div", x, " 选中父级菜单,才能设置子级选项 ")) : L("", !0),
|
|
103
|
+
n.showList ? (c(), b(r, {
|
|
108
104
|
key: 2,
|
|
109
105
|
modelValue: n.localOptions,
|
|
110
106
|
"onUpdate:modelValue": e[2] || (e[2] = (g) => n.localOptions = g),
|
|
@@ -117,25 +113,25 @@ function R(t, e, o, l, i, n) {
|
|
|
117
113
|
}, {
|
|
118
114
|
item: m(({ element: g, index: y }) => [
|
|
119
115
|
d("div", {
|
|
120
|
-
class:
|
|
116
|
+
class: O(["condition-item", { "condition-item--active": n.isActive(g) }]),
|
|
121
117
|
onClick: (a) => t.$emit("select", g)
|
|
122
118
|
}, [
|
|
123
119
|
e[5] || (e[5] = d("div", { class: "condition-item__drag drag-handle" }, [
|
|
124
120
|
d("span", { class: "bnUIcon bnUIcon-move" })
|
|
125
121
|
], -1)),
|
|
126
|
-
d("div",
|
|
122
|
+
d("div", W, [
|
|
127
123
|
p(u, {
|
|
128
124
|
modelValue: g.title,
|
|
129
125
|
"onUpdate:modelValue": (a) => g.title = a,
|
|
130
126
|
placeholder: "设置名称"
|
|
131
127
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
132
128
|
]),
|
|
133
|
-
d("div",
|
|
129
|
+
d("div", N, [
|
|
134
130
|
d("span", {
|
|
135
131
|
class: "condition-item__action-icon bnUIcon bnUIcon-add",
|
|
136
132
|
onClick: D((a) => n.handleAdd(y), ["stop"]),
|
|
137
133
|
title: "添加"
|
|
138
|
-
}, null, 8,
|
|
134
|
+
}, null, 8, $),
|
|
139
135
|
p(v, {
|
|
140
136
|
modelValue: g.columnStatus,
|
|
141
137
|
"onUpdate:modelValue": (a) => g.columnStatus = a,
|
|
@@ -148,15 +144,15 @@ function R(t, e, o, l, i, n) {
|
|
|
148
144
|
class: "condition-item__action-icon bnUIcon bnUIcon-delete",
|
|
149
145
|
onClick: D((a) => t.$emit("delete", y), ["stop"]),
|
|
150
146
|
title: "删除"
|
|
151
|
-
}, null, 8,
|
|
147
|
+
}, null, 8, F)
|
|
152
148
|
])
|
|
153
|
-
], 10,
|
|
149
|
+
], 10, E)
|
|
154
150
|
]),
|
|
155
151
|
_: 1
|
|
156
|
-
}, 8, ["modelValue", "onEnd"])) :
|
|
152
|
+
}, 8, ["modelValue", "onEnd"])) : L("", !0)
|
|
157
153
|
]);
|
|
158
154
|
}
|
|
159
|
-
const
|
|
155
|
+
const R = /* @__PURE__ */ k(B, [["render", q], ["__scopeId", "data-v-066a1e81"]]), T = {
|
|
160
156
|
name: "LevelHeader",
|
|
161
157
|
props: {
|
|
162
158
|
// 标题
|
|
@@ -201,19 +197,19 @@ const T = /* @__PURE__ */ k(U, [["render", R], ["__scopeId", "data-v-f37bbb16"]]
|
|
|
201
197
|
this.$emit("delete-level"), this.showDeleteConfirm = !1;
|
|
202
198
|
}
|
|
203
199
|
}
|
|
204
|
-
},
|
|
205
|
-
function
|
|
200
|
+
}, j = { class: "level-header" }, P = { class: "level-header__input" }, M = { class: "level-header__actions" };
|
|
201
|
+
function z(t, e, i, l, o, n) {
|
|
206
202
|
const s = f("el-input"), u = f("el-button"), v = f("el-popover");
|
|
207
|
-
return c(), w("div",
|
|
208
|
-
d("div",
|
|
203
|
+
return c(), w("div", j, [
|
|
204
|
+
d("div", P, [
|
|
209
205
|
p(s, {
|
|
210
206
|
modelValue: n.localTitle,
|
|
211
207
|
"onUpdate:modelValue": e[0] || (e[0] = (r) => n.localTitle = r),
|
|
212
208
|
placeholder: "输入标题"
|
|
213
209
|
}, null, 8, ["modelValue"])
|
|
214
210
|
]),
|
|
215
|
-
d("div",
|
|
216
|
-
|
|
211
|
+
d("div", M, [
|
|
212
|
+
i.canAddNext ? (c(), b(u, {
|
|
217
213
|
key: 0,
|
|
218
214
|
type: "text",
|
|
219
215
|
size: "small",
|
|
@@ -223,11 +219,11 @@ function H(t, e, o, l, i, n) {
|
|
|
223
219
|
h(" 增加下一级 ", -1)
|
|
224
220
|
])]),
|
|
225
221
|
_: 1
|
|
226
|
-
})) :
|
|
227
|
-
|
|
222
|
+
})) : L("", !0),
|
|
223
|
+
i.canDelete ? (c(), b(v, {
|
|
228
224
|
key: 1,
|
|
229
|
-
modelValue:
|
|
230
|
-
"onUpdate:modelValue": e[3] || (e[3] = (r) =>
|
|
225
|
+
modelValue: o.showDeleteConfirm,
|
|
226
|
+
"onUpdate:modelValue": e[3] || (e[3] = (r) => o.showDeleteConfirm = r),
|
|
231
227
|
content: "删除联动标题将同时删除该标题层级下的所有选项,谨慎操作",
|
|
232
228
|
placement: "top",
|
|
233
229
|
width: "220",
|
|
@@ -240,15 +236,15 @@ function H(t, e, o, l, i, n) {
|
|
|
240
236
|
})
|
|
241
237
|
]),
|
|
242
238
|
_: 1
|
|
243
|
-
}, 8, ["modelValue"])) :
|
|
239
|
+
}, 8, ["modelValue"])) : L("", !0)
|
|
244
240
|
])
|
|
245
241
|
]);
|
|
246
242
|
}
|
|
247
|
-
const
|
|
243
|
+
const H = /* @__PURE__ */ k(T, [["render", z], ["__scopeId", "data-v-5664ea69"]]), G = {
|
|
248
244
|
name: "SetRelationOption",
|
|
249
245
|
components: {
|
|
250
|
-
ConditionList:
|
|
251
|
-
LevelHeader:
|
|
246
|
+
ConditionList: R,
|
|
247
|
+
LevelHeader: H
|
|
252
248
|
},
|
|
253
249
|
props: {
|
|
254
250
|
// API请求函数
|
|
@@ -305,7 +301,7 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
305
301
|
const t = ((r = this.moduleDefinition.header) == null ? void 0 : r.length) || 0;
|
|
306
302
|
if (t <= 3)
|
|
307
303
|
return "860px";
|
|
308
|
-
const e = 40,
|
|
304
|
+
const e = 40, i = 240, l = 12, o = i + l, n = e + t * o - l;
|
|
309
305
|
return `${Math.min(Math.max(n, 600), 1400)}px`;
|
|
310
306
|
}
|
|
311
307
|
},
|
|
@@ -351,8 +347,8 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
351
347
|
* 自动选中子级的第一个选项
|
|
352
348
|
*/
|
|
353
349
|
autoSelectChildren(t, e) {
|
|
354
|
-
var
|
|
355
|
-
((
|
|
350
|
+
var i;
|
|
351
|
+
((i = t == null ? void 0 : t.children) == null ? void 0 : i.length) > 0 && (this.selectedConditions.splice(e + 1, 1, t.children[0]), this.autoSelectChildren(t.children[0], e + 1));
|
|
356
352
|
},
|
|
357
353
|
/**
|
|
358
354
|
* 添加级别
|
|
@@ -390,8 +386,8 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
390
386
|
}
|
|
391
387
|
try {
|
|
392
388
|
await this.checkCanDelete(e) ? this.removeLevelData(t) : this.$message.warning("有选项已关联工单数据,无法删除");
|
|
393
|
-
} catch (
|
|
394
|
-
console.error("删除级别失败:",
|
|
389
|
+
} catch (i) {
|
|
390
|
+
console.error("删除级别失败:", i);
|
|
395
391
|
}
|
|
396
392
|
},
|
|
397
393
|
/**
|
|
@@ -406,44 +402,44 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
406
402
|
collectLevelIds(t) {
|
|
407
403
|
const e = [];
|
|
408
404
|
if (t === 0)
|
|
409
|
-
this.optionList.forEach((
|
|
405
|
+
this.optionList.forEach((i) => e.push(i.id));
|
|
410
406
|
else {
|
|
411
|
-
const
|
|
407
|
+
const i = (l, o) => {
|
|
412
408
|
l.forEach((n) => {
|
|
413
|
-
|
|
409
|
+
o === t && n.children ? n.children.forEach((s) => e.push(s.id)) : n.children && i(n.children, o + 1);
|
|
414
410
|
});
|
|
415
411
|
};
|
|
416
|
-
|
|
412
|
+
i(this.optionList, 1);
|
|
417
413
|
}
|
|
418
414
|
return e;
|
|
419
415
|
},
|
|
420
416
|
/**
|
|
421
417
|
* 递归移除指定级别的子选项
|
|
422
418
|
*/
|
|
423
|
-
removeChildrenAtLevel(t, e,
|
|
419
|
+
removeChildrenAtLevel(t, e, i) {
|
|
424
420
|
t.forEach((l) => {
|
|
425
|
-
e ===
|
|
421
|
+
e === i ? l.children = [] : l.children && this.removeChildrenAtLevel(l.children, e + 1, i);
|
|
426
422
|
});
|
|
427
423
|
},
|
|
428
424
|
/**
|
|
429
425
|
* 添加条件
|
|
430
426
|
*/
|
|
431
427
|
async addCondition(t, e) {
|
|
432
|
-
var
|
|
428
|
+
var i;
|
|
433
429
|
if (!this.loading) {
|
|
434
430
|
this.loading = !0;
|
|
435
431
|
try {
|
|
436
432
|
const l = await this.fetchIds(1);
|
|
437
433
|
if (!(l != null && l.length)) return;
|
|
438
|
-
const
|
|
434
|
+
const o = t === 0, n = o ? this.optionList : (i = this.selectedConditions[t - 1]) == null ? void 0 : i.children;
|
|
439
435
|
if (!n) return;
|
|
440
436
|
const s = {
|
|
441
437
|
id: l[0],
|
|
442
438
|
code: l[0] + "",
|
|
443
439
|
title: `选项${n.length + 1}`,
|
|
444
440
|
level: t + 1,
|
|
445
|
-
parentId:
|
|
446
|
-
parentCode: (
|
|
441
|
+
parentId: o ? 0 : this.selectedConditions[t - 1].id,
|
|
442
|
+
parentCode: (o ? 0 : this.selectedConditions[t - 1].id) + "",
|
|
447
443
|
sequence: e + 1,
|
|
448
444
|
color: "#666666",
|
|
449
445
|
columnStatus: "1",
|
|
@@ -459,16 +455,16 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
459
455
|
* 删除条件
|
|
460
456
|
*/
|
|
461
457
|
async deleteCondition(t, e) {
|
|
462
|
-
const
|
|
458
|
+
const i = this.getOptions(t), l = i[e];
|
|
463
459
|
if (!this.columnInfo.id) {
|
|
464
|
-
|
|
460
|
+
i.splice(e, 1);
|
|
465
461
|
return;
|
|
466
462
|
}
|
|
467
463
|
console.log(l);
|
|
468
464
|
try {
|
|
469
|
-
await this.checkCanDelete([l.id]) ?
|
|
470
|
-
} catch (
|
|
471
|
-
console.error("删除条件失败:",
|
|
465
|
+
await this.checkCanDelete([l.id]) ? i.splice(e, 1) : this.$message.warning("该选项已关联工单数据,无法删除");
|
|
466
|
+
} catch (o) {
|
|
467
|
+
console.error("删除条件失败:", o);
|
|
472
468
|
}
|
|
473
469
|
},
|
|
474
470
|
/**
|
|
@@ -485,8 +481,8 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
485
481
|
}
|
|
486
482
|
const e = await this.fetchIds(t.totalCount);
|
|
487
483
|
if (!e) return;
|
|
488
|
-
this.batchIds = e, this.batchIdIndex = 0, this.addLevelsIfNeeded(t.maxLevel), t.conditions.forEach((
|
|
489
|
-
this.insertBatchCondition(
|
|
484
|
+
this.batchIds = e, this.batchIdIndex = 0, this.addLevelsIfNeeded(t.maxLevel), t.conditions.forEach((i) => {
|
|
485
|
+
this.insertBatchCondition(i, this.optionList);
|
|
490
486
|
}), this.$message.success("批量添加成功");
|
|
491
487
|
} finally {
|
|
492
488
|
this.loading = !1;
|
|
@@ -498,17 +494,17 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
498
494
|
*/
|
|
499
495
|
parseBatchContent(t) {
|
|
500
496
|
const e = t.split(`
|
|
501
|
-
`).map((u) => u.trim()).filter((u) => u).slice(0, 2e3),
|
|
502
|
-
let l = 0,
|
|
497
|
+
`).map((u) => u.trim()).filter((u) => u).slice(0, 2e3), i = [];
|
|
498
|
+
let l = 0, o = 0;
|
|
503
499
|
e.forEach((u) => {
|
|
504
500
|
const v = u.split("+").map((r) => r.trim()).filter((r) => r).slice(0, this.maxLevel);
|
|
505
|
-
v.length > 0 && (
|
|
501
|
+
v.length > 0 && (i.push(v), l = Math.max(l, v.length), o += v.length);
|
|
506
502
|
});
|
|
507
503
|
const n = this.moduleDefinition.header.length, s = Math.max(0, l - n);
|
|
508
504
|
return {
|
|
509
|
-
conditions:
|
|
505
|
+
conditions: i,
|
|
510
506
|
maxLevel: l,
|
|
511
|
-
totalCount:
|
|
507
|
+
totalCount: o + s
|
|
512
508
|
};
|
|
513
509
|
},
|
|
514
510
|
/**
|
|
@@ -516,11 +512,11 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
516
512
|
*/
|
|
517
513
|
addLevelsIfNeeded(t) {
|
|
518
514
|
const e = this.moduleDefinition.header.length;
|
|
519
|
-
for (let
|
|
515
|
+
for (let i = e; i < t; i++)
|
|
520
516
|
this.moduleDefinition.header.push({
|
|
521
517
|
id: this.batchIds[this.batchIdIndex++],
|
|
522
|
-
title: `选项${
|
|
523
|
-
level:
|
|
518
|
+
title: `选项${i + 1}级标题`,
|
|
519
|
+
level: i + 1,
|
|
524
520
|
parentId: -1,
|
|
525
521
|
sequence: 0,
|
|
526
522
|
color: "#666666",
|
|
@@ -530,18 +526,18 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
530
526
|
/**
|
|
531
527
|
* 递归插入批量条件
|
|
532
528
|
*/
|
|
533
|
-
insertBatchCondition(t, e,
|
|
529
|
+
insertBatchCondition(t, e, i = 0, l = 0) {
|
|
534
530
|
if (t.length === 0) return e;
|
|
535
|
-
const
|
|
531
|
+
const o = t[0], n = e.findIndex((s) => s.title === o);
|
|
536
532
|
if (n > -1)
|
|
537
533
|
this.insertBatchCondition(
|
|
538
534
|
t.slice(1),
|
|
539
535
|
e[n].children,
|
|
540
|
-
|
|
536
|
+
i + 1,
|
|
541
537
|
e[n].id
|
|
542
538
|
);
|
|
543
539
|
else {
|
|
544
|
-
const s = this.createBatchOption(t,
|
|
540
|
+
const s = this.createBatchOption(t, i, l, e.length);
|
|
545
541
|
s && e.push(s);
|
|
546
542
|
}
|
|
547
543
|
return e;
|
|
@@ -549,14 +545,14 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
549
545
|
/**
|
|
550
546
|
* 创建批量选项(含子级)
|
|
551
547
|
*/
|
|
552
|
-
createBatchOption(t, e,
|
|
548
|
+
createBatchOption(t, e, i, l) {
|
|
553
549
|
if (t.length === 0 || this.batchIdIndex >= this.batchIds.length)
|
|
554
550
|
return null;
|
|
555
|
-
const
|
|
556
|
-
id:
|
|
557
|
-
code:
|
|
558
|
-
parentId:
|
|
559
|
-
parentCode:
|
|
551
|
+
const o = this.batchIds[this.batchIdIndex++], n = {
|
|
552
|
+
id: o,
|
|
553
|
+
code: o + "",
|
|
554
|
+
parentId: i,
|
|
555
|
+
parentCode: i + "",
|
|
560
556
|
title: t[0],
|
|
561
557
|
level: e + 1,
|
|
562
558
|
color: "#666666",
|
|
@@ -607,36 +603,36 @@ const G = /* @__PURE__ */ k(j, [["render", H], ["__scopeId", "data-v-5664ea69"]]
|
|
|
607
603
|
this.$emit("confirm", this.columnInfo), this.show = !1;
|
|
608
604
|
}
|
|
609
605
|
}
|
|
610
|
-
},
|
|
606
|
+
}, J = {
|
|
611
607
|
key: 0,
|
|
612
608
|
class: "setRelationOpt"
|
|
613
|
-
},
|
|
609
|
+
}, K = {
|
|
614
610
|
key: 0,
|
|
615
611
|
class: "setRelationOpt-header"
|
|
616
|
-
},
|
|
612
|
+
}, Q = {
|
|
617
613
|
key: 1,
|
|
618
614
|
class: "w-flex-between"
|
|
619
|
-
},
|
|
615
|
+
}, X = { style: { width: "calc(100% - 330px)" } }, Y = { class: "setRelationOpt-tip" }, Z = { class: "setRelationOpt-levels" }, ee = {
|
|
620
616
|
key: 2,
|
|
621
617
|
class: "w-empty"
|
|
622
|
-
},
|
|
623
|
-
function
|
|
618
|
+
}, te = { class: "w-flex-right" };
|
|
619
|
+
function ne(t, e, i, l, o, n) {
|
|
624
620
|
const s = f("el-button"), u = f("el-input"), v = f("level-header"), r = f("condition-list"), g = f("el-dialog");
|
|
625
|
-
return c(),
|
|
626
|
-
modelValue:
|
|
627
|
-
"onUpdate:modelValue": e[5] || (e[5] = (y) =>
|
|
621
|
+
return c(), b(g, {
|
|
622
|
+
modelValue: o.show,
|
|
623
|
+
"onUpdate:modelValue": e[5] || (e[5] = (y) => o.show = y),
|
|
628
624
|
title: "联动组件选项配置",
|
|
629
625
|
top: "5vh",
|
|
630
626
|
width: n.dialogWidth,
|
|
631
627
|
"close-on-click-modal": !1,
|
|
632
628
|
"destroy-on-close": !0,
|
|
633
|
-
fullscreen:
|
|
629
|
+
fullscreen: o.fullscreen,
|
|
634
630
|
"append-to-body": ""
|
|
635
631
|
}, {
|
|
636
632
|
footer: m(() => [
|
|
637
|
-
d("div",
|
|
633
|
+
d("div", te, [
|
|
638
634
|
p(s, {
|
|
639
|
-
onClick: e[4] || (e[4] = (y) =>
|
|
635
|
+
onClick: e[4] || (e[4] = (y) => o.show = !1)
|
|
640
636
|
}, {
|
|
641
637
|
default: m(() => [...e[14] || (e[14] = [
|
|
642
638
|
h("取消", -1)
|
|
@@ -657,15 +653,15 @@ function oe(t, e, o, l, i, n) {
|
|
|
657
653
|
default: m(() => {
|
|
658
654
|
var y;
|
|
659
655
|
return [
|
|
660
|
-
(y = n.moduleDefinition) != null && y.header ? (c(), w("div",
|
|
661
|
-
|
|
662
|
-
d("div",
|
|
656
|
+
(y = n.moduleDefinition) != null && y.header ? (c(), w("div", J, [
|
|
657
|
+
o.showBatch ? (c(), w("div", Q, [
|
|
658
|
+
d("div", X, [
|
|
663
659
|
p(u, {
|
|
664
660
|
type: "textarea",
|
|
665
661
|
rows: 5,
|
|
666
662
|
resize: "none",
|
|
667
|
-
modelValue:
|
|
668
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) =>
|
|
663
|
+
modelValue: o.batchAddContent,
|
|
664
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => o.batchAddContent = a),
|
|
669
665
|
placeholder: `示例:
|
|
670
666
|
质量问题+上衣
|
|
671
667
|
服务问题+处理速度
|
|
@@ -673,7 +669,7 @@ function oe(t, e, o, l, i, n) {
|
|
|
673
669
|
服务问题+态度+恶劣`
|
|
674
670
|
}, null, 8, ["modelValue"])
|
|
675
671
|
]),
|
|
676
|
-
d("div",
|
|
672
|
+
d("div", Y, [
|
|
677
673
|
e[10] || (e[10] = d("div", { class: "w-margin-bottom4" }, [
|
|
678
674
|
d("span", { class: "w-font-weight w-font16 w-color-blue" }, "1. "),
|
|
679
675
|
h("每行代表一条选项,每一级通过+分隔 ")
|
|
@@ -694,7 +690,7 @@ function oe(t, e, o, l, i, n) {
|
|
|
694
690
|
d("div", null, [
|
|
695
691
|
p(s, {
|
|
696
692
|
type: "text",
|
|
697
|
-
onClick: e[3] || (e[3] = (a) =>
|
|
693
|
+
onClick: e[3] || (e[3] = (a) => o.showBatch = !1)
|
|
698
694
|
}, {
|
|
699
695
|
default: m(() => [...e[8] || (e[8] = [
|
|
700
696
|
h("收起", -1)
|
|
@@ -703,8 +699,8 @@ function oe(t, e, o, l, i, n) {
|
|
|
703
699
|
}),
|
|
704
700
|
p(s, {
|
|
705
701
|
type: "text",
|
|
706
|
-
loading:
|
|
707
|
-
disabled:
|
|
702
|
+
loading: o.loading,
|
|
703
|
+
disabled: o.loading,
|
|
708
704
|
onClick: n.handleBatchAdd
|
|
709
705
|
}, {
|
|
710
706
|
default: m(() => [...e[9] || (e[9] = [
|
|
@@ -714,8 +710,8 @@ function oe(t, e, o, l, i, n) {
|
|
|
714
710
|
}, 8, ["loading", "disabled", "onClick"])
|
|
715
711
|
])
|
|
716
712
|
])
|
|
717
|
-
])) : (c(), w("div",
|
|
718
|
-
n.hasLevels ?
|
|
713
|
+
])) : (c(), w("div", K, [
|
|
714
|
+
n.hasLevels ? L("", !0) : (c(), b(s, {
|
|
719
715
|
key: 0,
|
|
720
716
|
type: "text",
|
|
721
717
|
onClick: e[0] || (e[0] = (a) => n.addLevel(0))
|
|
@@ -727,7 +723,7 @@ function oe(t, e, o, l, i, n) {
|
|
|
727
723
|
})),
|
|
728
724
|
p(s, {
|
|
729
725
|
type: "text",
|
|
730
|
-
onClick: e[1] || (e[1] = (a) =>
|
|
726
|
+
onClick: e[1] || (e[1] = (a) => o.showBatch = !0)
|
|
731
727
|
}, {
|
|
732
728
|
default: m(() => [...e[7] || (e[7] = [
|
|
733
729
|
h("批量添加", -1)
|
|
@@ -735,8 +731,8 @@ function oe(t, e, o, l, i, n) {
|
|
|
735
731
|
_: 1
|
|
736
732
|
})
|
|
737
733
|
])),
|
|
738
|
-
d("div",
|
|
739
|
-
(c(!0), w(
|
|
734
|
+
d("div", Z, [
|
|
735
|
+
(c(!0), w(V, null, A(n.moduleDefinition.header, (a, C) => (c(), w("div", {
|
|
740
736
|
key: a.id,
|
|
741
737
|
class: "setRelationOpt-levels-column"
|
|
742
738
|
}, [
|
|
@@ -751,10 +747,10 @@ function oe(t, e, o, l, i, n) {
|
|
|
751
747
|
}, null, 8, ["title", "level", "can-add-next", "can-delete", "onUpdate:title", "onAddLevel", "onDeleteLevel"]),
|
|
752
748
|
p(r, {
|
|
753
749
|
options: n.getOptions(C),
|
|
754
|
-
"selected-option":
|
|
750
|
+
"selected-option": o.selectedConditions[C],
|
|
755
751
|
level: C,
|
|
756
752
|
"is-first-level": C === 0,
|
|
757
|
-
"has-parent-selected": C === 0 || !!
|
|
753
|
+
"has-parent-selected": C === 0 || !!o.selectedConditions[C - 1],
|
|
758
754
|
"onUpdate:options": (_) => n.updateOptions(C, _),
|
|
759
755
|
onSelect: (_) => n.selectCondition(_, C),
|
|
760
756
|
onAdd: (_) => n.addCondition(C, _),
|
|
@@ -762,14 +758,14 @@ function oe(t, e, o, l, i, n) {
|
|
|
762
758
|
}, null, 8, ["options", "selected-option", "level", "is-first-level", "has-parent-selected", "onUpdate:options", "onSelect", "onAdd", "onDelete"])
|
|
763
759
|
]))), 128))
|
|
764
760
|
]),
|
|
765
|
-
!n.moduleDefinition.header || n.moduleDefinition.header.length == 0 ? (c(), w("div",
|
|
766
|
-
])) :
|
|
761
|
+
!n.moduleDefinition.header || n.moduleDefinition.header.length == 0 ? (c(), w("div", ee, "还未设置选项")) : L("", !0)
|
|
762
|
+
])) : L("", !0)
|
|
767
763
|
];
|
|
768
764
|
}),
|
|
769
765
|
_: 1
|
|
770
766
|
}, 8, ["modelValue", "width", "fullscreen"]);
|
|
771
767
|
}
|
|
772
|
-
const
|
|
768
|
+
const se = /* @__PURE__ */ k(G, [["render", ne], ["__scopeId", "data-v-147b197f"]]);
|
|
773
769
|
export {
|
|
774
|
-
|
|
770
|
+
se as default
|
|
775
771
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.condition-list[data-v-
|
|
1
|
+
.condition-list[data-v-066a1e81]{height:100%;overflow-y:auto}.condition-list__empty[data-v-066a1e81]{padding:10px;font-size:12px;color:#999}.condition-list__empty .el-button[data-v-066a1e81]{font-size:12px}.condition-list__tip[data-v-066a1e81]{padding:10px;line-height:22px;font-size:12px;color:#999}.condition-item[data-v-066a1e81]{display:flex;align-items:center;width:100%;height:34px;transition:background-color .3s;cursor:pointer}.condition-item--active[data-v-066a1e81]{background-color:#e0ecfe}.condition-item[data-v-066a1e81]:hover{background-color:#eef5fe}.condition-item__drag[data-v-066a1e81]{width:25px;height:34px;line-height:34px;text-align:center;cursor:move;flex-shrink:0}.condition-item__input[data-v-066a1e81]{flex:1;padding:2px 5px;min-width:0}.condition-item__actions[data-v-066a1e81]{display:flex;align-items:center;gap:5px;padding-right:5px;flex-shrink:0}.condition-item__action-icon[data-v-066a1e81]{width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .3s}.condition-item__action-icon[data-v-066a1e81]:hover{opacity:.6}.condition-item__action-icon.bnUIcon-add[data-v-066a1e81]{color:#67c23a}.condition-item__action-icon.bnUIcon-delete[data-v-066a1e81]{color:#f56c6c}.ghost-item[data-v-066a1e81]{opacity:.5;background:#f0f0f0}.chosen-item[data-v-066a1e81]{opacity:.9}.level-header[data-v-5664ea69]{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 10px;border-bottom:1px solid #ddd}.level-header__input[data-v-5664ea69] .el-input__wrapper{box-shadow:none;border-bottom:none;border-radius:0}.level-header__actions[data-v-5664ea69]{display:flex;align-items:center;gap:5px}.level-header__actions .el-button[data-v-5664ea69]{font-size:12px;padding:0}.level-header__delete-icon[data-v-5664ea69]{font-size:14px;color:#f56c6c;cursor:pointer;padding:4px}.level-header__delete-icon[data-v-5664ea69]:hover{opacity:.7}.level-header__delete-tip[data-v-5664ea69]{padding:10px;line-height:1.5;margin:0}.level-header__delete-actions[data-v-5664ea69]{text-align:right}.setRelationOpt[data-v-147b197f]{min-height:280px}.setRelationOpt-header[data-v-147b197f]{display:flex;align-items:center}.setRelationOpt-tip[data-v-147b197f]{width:330px;color:#888;font-size:12px;padding-left:8px}.setRelationOpt-levels[data-v-147b197f]{display:flex;gap:12px;padding-bottom:10px}.setRelationOpt-levels-column[data-v-147b197f]{flex-shrink:0;width:240px;height:360px;border:1px solid #ddd;border-radius:4px;overflow:hidden;display:flex;flex-direction:column}
|