@94ai/nf-conditions 3.2.49
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/.eslintrc.cjs +49 -0
- package/README.md +11 -0
- package/components.d.ts +8 -0
- package/lib/condition-container.vue.d.ts +23 -0
- package/lib/index.d.ts +2037 -0
- package/lib/nf-conditions.cjs.js +558 -0
- package/lib/nf-conditions.esm-bundler.js +558 -0
- package/lib/nf-conditions.vue.d.ts +752 -0
- package/lib/style/css.d.ts +1 -0
- package/lib/style/css.js +1 -0
- package/lib/style/index.d.ts +1 -0
- package/lib/style/index.js +1 -0
- package/package/condition-container.vue +37 -0
- package/package/index.ts +8 -0
- package/package/nf-conditions.vue +328 -0
- package/package/style/css.ts +1 -0
- package/package/style/index.ts +1 -0
- package/package.json +35 -0
- package/postcss.config.js +8 -0
|
@@ -0,0 +1,558 @@
|
|
|
1
|
+
import { defineComponent, h, ref, onMounted, nextTick } from "vue-demi";
|
|
2
|
+
import { generateUUID } from "@94ai/common-utils";
|
|
3
|
+
import { 操作类型, 规则类型, 计算类型, 日期类型, 外呼状态 } from "@94ai/nf-rules";
|
|
4
|
+
import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
|
|
5
|
+
const _sfc_main = defineComponent({
|
|
6
|
+
name: "condition-container",
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* 指定容器类型
|
|
10
|
+
*/
|
|
11
|
+
tag: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "el-form"
|
|
14
|
+
},
|
|
15
|
+
config: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
render() {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const Tag = this.tag;
|
|
23
|
+
return h(Tag, {
|
|
24
|
+
"ref": "nfConditionsForm",
|
|
25
|
+
"class": "nf-condition-form",
|
|
26
|
+
"props": {
|
|
27
|
+
...this.config
|
|
28
|
+
}
|
|
29
|
+
}, [(_b = (_a = this.$scopedSlots).default) == null ? void 0 : _b.call(_a, {})]);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const _sfc_render$1 = null;
|
|
33
|
+
const _sfc_staticRenderFns$1 = null;
|
|
34
|
+
var __component__$1 = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
|
|
35
|
+
const ConditionContainer = __component__$1.exports;
|
|
36
|
+
const __sfc_main = defineComponent({
|
|
37
|
+
name: "nf-conditions"
|
|
38
|
+
});
|
|
39
|
+
__sfc_main.props = {
|
|
40
|
+
conditions: {
|
|
41
|
+
key: "conditions",
|
|
42
|
+
required: false,
|
|
43
|
+
type: Array,
|
|
44
|
+
default: void 0
|
|
45
|
+
},
|
|
46
|
+
conditionLimit: {
|
|
47
|
+
key: "conditionLimit",
|
|
48
|
+
required: false,
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 0
|
|
51
|
+
},
|
|
52
|
+
hiddenConditionAdd: {
|
|
53
|
+
key: "hiddenConditionAdd",
|
|
54
|
+
required: false,
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
},
|
|
58
|
+
hiddenConditionReduce: {
|
|
59
|
+
key: "hiddenConditionReduce",
|
|
60
|
+
required: false,
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: false
|
|
63
|
+
},
|
|
64
|
+
conditionDesc: {
|
|
65
|
+
key: "conditionDesc",
|
|
66
|
+
required: false,
|
|
67
|
+
type: String,
|
|
68
|
+
default: "条件"
|
|
69
|
+
},
|
|
70
|
+
addConditionDesc: {
|
|
71
|
+
key: "addConditionDesc",
|
|
72
|
+
required: false,
|
|
73
|
+
type: String,
|
|
74
|
+
default: "+ 添加条件"
|
|
75
|
+
},
|
|
76
|
+
deleteConditionDesc: {
|
|
77
|
+
key: "deleteConditionDesc",
|
|
78
|
+
required: false,
|
|
79
|
+
type: String,
|
|
80
|
+
default: "- 删除条件"
|
|
81
|
+
},
|
|
82
|
+
size: {
|
|
83
|
+
key: "size",
|
|
84
|
+
required: false,
|
|
85
|
+
type: String,
|
|
86
|
+
default: "mini"
|
|
87
|
+
},
|
|
88
|
+
tag: {
|
|
89
|
+
key: "tag",
|
|
90
|
+
required: false,
|
|
91
|
+
type: String,
|
|
92
|
+
default: "el-form"
|
|
93
|
+
},
|
|
94
|
+
showMessage: {
|
|
95
|
+
key: "showMessage",
|
|
96
|
+
required: false,
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: true
|
|
99
|
+
},
|
|
100
|
+
inlineMessage: {
|
|
101
|
+
key: "inlineMessage",
|
|
102
|
+
required: false,
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: false
|
|
105
|
+
},
|
|
106
|
+
statusIcon: {
|
|
107
|
+
key: "statusIcon",
|
|
108
|
+
required: false,
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: false
|
|
111
|
+
},
|
|
112
|
+
validPrefix: {
|
|
113
|
+
key: "validPrefix",
|
|
114
|
+
required: false,
|
|
115
|
+
type: String,
|
|
116
|
+
default: ""
|
|
117
|
+
},
|
|
118
|
+
logicMergeDesc: {
|
|
119
|
+
key: "logicMergeDesc",
|
|
120
|
+
required: false,
|
|
121
|
+
type: String,
|
|
122
|
+
default: "且"
|
|
123
|
+
},
|
|
124
|
+
placeholder: {
|
|
125
|
+
key: "placeholder",
|
|
126
|
+
required: false,
|
|
127
|
+
type: String,
|
|
128
|
+
default: "请选择"
|
|
129
|
+
},
|
|
130
|
+
numberRequireDesc: {
|
|
131
|
+
key: "numberRequireDesc",
|
|
132
|
+
required: false,
|
|
133
|
+
type: String,
|
|
134
|
+
default: "请输入数字"
|
|
135
|
+
},
|
|
136
|
+
commonLenLimitDesc: {
|
|
137
|
+
key: "commonLenLimitDesc",
|
|
138
|
+
required: false,
|
|
139
|
+
type: String,
|
|
140
|
+
default: "总文案长度不超过2000中文字符"
|
|
141
|
+
},
|
|
142
|
+
placeEnter: {
|
|
143
|
+
key: "placeEnter",
|
|
144
|
+
required: false,
|
|
145
|
+
type: String,
|
|
146
|
+
default: "请输入"
|
|
147
|
+
},
|
|
148
|
+
prohibitEmptyDesc: {
|
|
149
|
+
key: "prohibitEmptyDesc",
|
|
150
|
+
required: false,
|
|
151
|
+
type: String,
|
|
152
|
+
default: "不能为空"
|
|
153
|
+
},
|
|
154
|
+
paramsLenLimitDesc: {
|
|
155
|
+
key: "paramsLenLimitDesc",
|
|
156
|
+
required: false,
|
|
157
|
+
type: String,
|
|
158
|
+
default: "最多可输入50个英文字符长度"
|
|
159
|
+
},
|
|
160
|
+
times: {
|
|
161
|
+
key: "times",
|
|
162
|
+
required: false,
|
|
163
|
+
type: String,
|
|
164
|
+
default: "次"
|
|
165
|
+
},
|
|
166
|
+
second: {
|
|
167
|
+
key: "second",
|
|
168
|
+
required: false,
|
|
169
|
+
type: String,
|
|
170
|
+
default: "秒"
|
|
171
|
+
},
|
|
172
|
+
rangeSeparatorDesc: {
|
|
173
|
+
key: "rangeSeparatorDesc",
|
|
174
|
+
required: false,
|
|
175
|
+
type: String,
|
|
176
|
+
default: "至"
|
|
177
|
+
},
|
|
178
|
+
startPlaceholderDate: {
|
|
179
|
+
key: "startPlaceholderDate",
|
|
180
|
+
required: false,
|
|
181
|
+
type: String,
|
|
182
|
+
default: "开始日期"
|
|
183
|
+
},
|
|
184
|
+
endPlaceholderDate: {
|
|
185
|
+
key: "endPlaceholderDate",
|
|
186
|
+
required: false,
|
|
187
|
+
type: String,
|
|
188
|
+
default: "结束日期"
|
|
189
|
+
},
|
|
190
|
+
startPlaceholderTime: {
|
|
191
|
+
key: "startPlaceholderTime",
|
|
192
|
+
required: false,
|
|
193
|
+
type: String,
|
|
194
|
+
default: "开始时间"
|
|
195
|
+
},
|
|
196
|
+
endPlaceholderTime: {
|
|
197
|
+
key: "endPlaceholderTime",
|
|
198
|
+
required: false,
|
|
199
|
+
type: String,
|
|
200
|
+
default: "结束时间"
|
|
201
|
+
},
|
|
202
|
+
timePickerPlaceholder: {
|
|
203
|
+
key: "timePickerPlaceholder",
|
|
204
|
+
required: false,
|
|
205
|
+
type: String,
|
|
206
|
+
default: "选择时间范围"
|
|
207
|
+
},
|
|
208
|
+
datePickerPlaceholder: {
|
|
209
|
+
key: "datePickerPlaceholder",
|
|
210
|
+
required: false,
|
|
211
|
+
type: String,
|
|
212
|
+
default: "选择日期范围"
|
|
213
|
+
},
|
|
214
|
+
splitDesc: {
|
|
215
|
+
key: "splitDesc",
|
|
216
|
+
required: false,
|
|
217
|
+
type: String,
|
|
218
|
+
default: "输入多个时,用#分割"
|
|
219
|
+
},
|
|
220
|
+
disabled: {
|
|
221
|
+
key: "disabled",
|
|
222
|
+
required: false,
|
|
223
|
+
type: Boolean,
|
|
224
|
+
default: false
|
|
225
|
+
},
|
|
226
|
+
conditionDisabled: {
|
|
227
|
+
key: "conditionDisabled",
|
|
228
|
+
required: false,
|
|
229
|
+
type: Boolean,
|
|
230
|
+
default: false
|
|
231
|
+
},
|
|
232
|
+
disables: {
|
|
233
|
+
key: "disables",
|
|
234
|
+
required: false,
|
|
235
|
+
type: Object,
|
|
236
|
+
default: void 0
|
|
237
|
+
},
|
|
238
|
+
hiddenAdd: {
|
|
239
|
+
key: "hiddenAdd",
|
|
240
|
+
required: false,
|
|
241
|
+
type: Boolean,
|
|
242
|
+
default: false
|
|
243
|
+
},
|
|
244
|
+
hiddenReduce: {
|
|
245
|
+
key: "hiddenReduce",
|
|
246
|
+
required: false,
|
|
247
|
+
type: Boolean,
|
|
248
|
+
default: false
|
|
249
|
+
},
|
|
250
|
+
limit: {
|
|
251
|
+
key: "limit",
|
|
252
|
+
required: false,
|
|
253
|
+
type: Number,
|
|
254
|
+
default: 0
|
|
255
|
+
},
|
|
256
|
+
rules: {
|
|
257
|
+
key: "rules",
|
|
258
|
+
required: false,
|
|
259
|
+
type: Array,
|
|
260
|
+
default: void 0
|
|
261
|
+
},
|
|
262
|
+
showRuleTypes: {
|
|
263
|
+
key: "showRuleTypes",
|
|
264
|
+
required: false,
|
|
265
|
+
type: Array,
|
|
266
|
+
default: () => []
|
|
267
|
+
},
|
|
268
|
+
defaultAddData: {
|
|
269
|
+
key: "defaultAddData",
|
|
270
|
+
required: false,
|
|
271
|
+
type: null
|
|
272
|
+
},
|
|
273
|
+
defaultAddType: {
|
|
274
|
+
key: "defaultAddType",
|
|
275
|
+
required: false,
|
|
276
|
+
type: [String, Number]
|
|
277
|
+
},
|
|
278
|
+
操作类型: {
|
|
279
|
+
key: "操作类型",
|
|
280
|
+
required: false,
|
|
281
|
+
type: Object,
|
|
282
|
+
default: () => 操作类型
|
|
283
|
+
},
|
|
284
|
+
规则类型: {
|
|
285
|
+
key: "规则类型",
|
|
286
|
+
required: false,
|
|
287
|
+
type: Object,
|
|
288
|
+
default: () => 规则类型
|
|
289
|
+
},
|
|
290
|
+
计算类型: {
|
|
291
|
+
key: "计算类型",
|
|
292
|
+
required: false,
|
|
293
|
+
type: Object,
|
|
294
|
+
default: () => 计算类型
|
|
295
|
+
},
|
|
296
|
+
日期类型: {
|
|
297
|
+
key: "日期类型",
|
|
298
|
+
required: false,
|
|
299
|
+
type: Object,
|
|
300
|
+
default: () => 日期类型
|
|
301
|
+
},
|
|
302
|
+
外呼状态: {
|
|
303
|
+
key: "外呼状态",
|
|
304
|
+
required: false,
|
|
305
|
+
type: Object,
|
|
306
|
+
default: () => 外呼状态
|
|
307
|
+
},
|
|
308
|
+
规则类型下拉: {
|
|
309
|
+
key: "规则类型下拉",
|
|
310
|
+
required: false,
|
|
311
|
+
type: Array
|
|
312
|
+
},
|
|
313
|
+
操作类型下拉: {
|
|
314
|
+
key: "操作类型下拉",
|
|
315
|
+
required: false,
|
|
316
|
+
type: Array
|
|
317
|
+
},
|
|
318
|
+
计算类型下拉: {
|
|
319
|
+
key: "计算类型下拉",
|
|
320
|
+
required: false,
|
|
321
|
+
type: Array
|
|
322
|
+
},
|
|
323
|
+
日期类型下拉: {
|
|
324
|
+
key: "日期类型下拉",
|
|
325
|
+
required: false,
|
|
326
|
+
type: Array
|
|
327
|
+
},
|
|
328
|
+
外呼状态下拉: {
|
|
329
|
+
key: "外呼状态下拉",
|
|
330
|
+
required: false,
|
|
331
|
+
type: Array
|
|
332
|
+
},
|
|
333
|
+
意向标签集合: {
|
|
334
|
+
key: "意向标签集合",
|
|
335
|
+
required: false,
|
|
336
|
+
type: Array
|
|
337
|
+
},
|
|
338
|
+
规则类型下拉合并策略: {
|
|
339
|
+
key: "规则类型下拉合并策略",
|
|
340
|
+
required: false,
|
|
341
|
+
type: null,
|
|
342
|
+
default: "defaultPatch"
|
|
343
|
+
},
|
|
344
|
+
计算类型下拉合并策略: {
|
|
345
|
+
key: "计算类型下拉合并策略",
|
|
346
|
+
required: false,
|
|
347
|
+
type: null,
|
|
348
|
+
default: "defaultPatch"
|
|
349
|
+
},
|
|
350
|
+
操作类型下拉合并策略: {
|
|
351
|
+
key: "操作类型下拉合并策略",
|
|
352
|
+
required: false,
|
|
353
|
+
type: null,
|
|
354
|
+
default: "defaultPatch"
|
|
355
|
+
},
|
|
356
|
+
日期类型下拉合并策略: {
|
|
357
|
+
key: "日期类型下拉合并策略",
|
|
358
|
+
required: false,
|
|
359
|
+
type: null,
|
|
360
|
+
default: "defaultPatch"
|
|
361
|
+
},
|
|
362
|
+
外呼状态下拉合并策略: {
|
|
363
|
+
key: "外呼状态下拉合并策略",
|
|
364
|
+
required: false,
|
|
365
|
+
type: null,
|
|
366
|
+
default: "defaultPatch"
|
|
367
|
+
},
|
|
368
|
+
意向标签集合合并策略: {
|
|
369
|
+
key: "意向标签集合合并策略",
|
|
370
|
+
required: false,
|
|
371
|
+
type: null,
|
|
372
|
+
default: "defaultPatch"
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
__sfc_main.setup = (__props, __ctx) => {
|
|
376
|
+
const props = __props;
|
|
377
|
+
const emit = __ctx.emit;
|
|
378
|
+
const conditionContainer = ref();
|
|
379
|
+
const nfConditionsForm = ref();
|
|
380
|
+
onMounted(() => {
|
|
381
|
+
var _a;
|
|
382
|
+
nfConditionsForm.value = (_a = conditionContainer.value) == null ? void 0 : _a.$refs.nfConditionsForm;
|
|
383
|
+
});
|
|
384
|
+
const getCondition = () => {
|
|
385
|
+
return {
|
|
386
|
+
rules: [],
|
|
387
|
+
key: generateUUID()
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
const initPlan = () => {
|
|
391
|
+
if (!props.conditions) {
|
|
392
|
+
return [getCondition()];
|
|
393
|
+
} else if (!props.conditions.length) {
|
|
394
|
+
props.conditions.push(getCondition());
|
|
395
|
+
} else {
|
|
396
|
+
props.conditions.forEach((item) => {
|
|
397
|
+
item.key ?? (item.key = generateUUID());
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
return props.conditions;
|
|
401
|
+
};
|
|
402
|
+
const plan = ref({
|
|
403
|
+
conditions: initPlan()
|
|
404
|
+
});
|
|
405
|
+
const removeCondition = (j) => {
|
|
406
|
+
emit("reduceCondition", plan.value.conditions[j]);
|
|
407
|
+
plan.value.conditions.splice(j, 1);
|
|
408
|
+
};
|
|
409
|
+
const addCondition = async () => {
|
|
410
|
+
plan.value.conditions.push(getCondition());
|
|
411
|
+
await nextTick();
|
|
412
|
+
emit("addCondition", plan.value.conditions[plan.value.conditions.length - 1]);
|
|
413
|
+
};
|
|
414
|
+
return Object.assign({
|
|
415
|
+
conditionContainer,
|
|
416
|
+
plan,
|
|
417
|
+
removeCondition,
|
|
418
|
+
addCondition
|
|
419
|
+
}, {
|
|
420
|
+
addCondition,
|
|
421
|
+
removeCondition,
|
|
422
|
+
initPlan,
|
|
423
|
+
getCondition,
|
|
424
|
+
conditionContainer,
|
|
425
|
+
nfConditionsForm,
|
|
426
|
+
plan
|
|
427
|
+
});
|
|
428
|
+
};
|
|
429
|
+
__sfc_main.components = Object.assign({
|
|
430
|
+
ConditionContainer
|
|
431
|
+
}, __sfc_main.components);
|
|
432
|
+
var _sfc_render = function render() {
|
|
433
|
+
var _a;
|
|
434
|
+
var _vm = this, _c = _vm._self._c;
|
|
435
|
+
_vm._self._setupProxy;
|
|
436
|
+
return _c("div", {
|
|
437
|
+
staticClass: "nf-conditions"
|
|
438
|
+
}, [_c("condition-container", {
|
|
439
|
+
ref: "conditionContainer",
|
|
440
|
+
attrs: {
|
|
441
|
+
"config": {
|
|
442
|
+
disabled: _vm.disabled,
|
|
443
|
+
size: _vm.size,
|
|
444
|
+
model: _vm.plan,
|
|
445
|
+
"show-message": _vm.showMessage,
|
|
446
|
+
"inline-message": _vm.inlineMessage,
|
|
447
|
+
"status-icon": _vm.statusIcon
|
|
448
|
+
},
|
|
449
|
+
"tag": _vm.tag
|
|
450
|
+
}
|
|
451
|
+
}, [_vm._l(_vm.plan.conditions, function(condition, i) {
|
|
452
|
+
return _c("el-form-item", {
|
|
453
|
+
key: condition.key,
|
|
454
|
+
attrs: {
|
|
455
|
+
"label-width": "0"
|
|
456
|
+
}
|
|
457
|
+
}, [_c("div", {
|
|
458
|
+
staticClass: "condition-header"
|
|
459
|
+
}, [_c("span", {
|
|
460
|
+
staticClass: "condition-pre"
|
|
461
|
+
}, [_c("span", {
|
|
462
|
+
staticStyle: {
|
|
463
|
+
"color": "red",
|
|
464
|
+
"margin-right": "5px",
|
|
465
|
+
"vertical-align": "middle"
|
|
466
|
+
}
|
|
467
|
+
}, [_vm._v("*")]), _vm._v(_vm._s(_vm.conditionDesc) + " " + _vm._s(i + 1))]), !_vm.hiddenConditionReduce ? _c("span", {
|
|
468
|
+
staticClass: "remove-condition",
|
|
469
|
+
on: {
|
|
470
|
+
"click": function($event) {
|
|
471
|
+
return _vm.removeCondition(i);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}, [_c("span", {
|
|
475
|
+
staticClass: "remove-condition-icon"
|
|
476
|
+
}, [_vm._v(_vm._s(_vm.deleteConditionDesc))])]) : _vm._e()]), _c("nf-rules", {
|
|
477
|
+
ref: "nfRules",
|
|
478
|
+
refInFor: true,
|
|
479
|
+
attrs: {
|
|
480
|
+
"show-message": _vm.showMessage,
|
|
481
|
+
"inline-message": _vm.inlineMessage,
|
|
482
|
+
"status-icon": _vm.statusIcon,
|
|
483
|
+
"logic-merge-desc": _vm.logicMergeDesc,
|
|
484
|
+
"number-require-desc": _vm.numberRequireDesc,
|
|
485
|
+
"common-len-limit-desc": _vm.commonLenLimitDesc,
|
|
486
|
+
"place-enter": _vm.placeEnter,
|
|
487
|
+
"prohibit-empty-desc": _vm.prohibitEmptyDesc,
|
|
488
|
+
"params-len-limit-desc": _vm.paramsLenLimitDesc,
|
|
489
|
+
"range-separator-desc": _vm.rangeSeparatorDesc,
|
|
490
|
+
"start-placeholder-date": _vm.startPlaceholderDate,
|
|
491
|
+
"end-placeholder-date": _vm.endPlaceholderDate,
|
|
492
|
+
"start-placeholder-time": _vm.startPlaceholderTime,
|
|
493
|
+
"end-placeholder-time": _vm.endPlaceholderTime,
|
|
494
|
+
"time-picker-placeholder": _vm.timePickerPlaceholder,
|
|
495
|
+
"date-picker-placeholder": _vm.datePickerPlaceholder,
|
|
496
|
+
"split-desc": _vm.splitDesc,
|
|
497
|
+
"condition-disabled": _vm.conditionDisabled,
|
|
498
|
+
"hidden-add": _vm.hiddenAdd,
|
|
499
|
+
"hidden-reduce": _vm.hiddenReduce,
|
|
500
|
+
"show-rule-types": _vm.showRuleTypes,
|
|
501
|
+
"default-add-data": _vm.defaultAddData,
|
|
502
|
+
"default-add-type": _vm.defaultAddType,
|
|
503
|
+
"size": _vm.size,
|
|
504
|
+
"placeholder": _vm.placeholder,
|
|
505
|
+
"times": _vm.times,
|
|
506
|
+
"second": _vm.second,
|
|
507
|
+
"disabled": _vm.disabled,
|
|
508
|
+
"disables": _vm.disables,
|
|
509
|
+
"limit": _vm.limit,
|
|
510
|
+
"操作类型": _vm.操作类型,
|
|
511
|
+
"规则类型": _vm.规则类型,
|
|
512
|
+
"计算类型": _vm.计算类型,
|
|
513
|
+
"日期类型": _vm.日期类型,
|
|
514
|
+
"外呼状态": _vm.外呼状态,
|
|
515
|
+
"规则类型下拉": _vm.规则类型下拉,
|
|
516
|
+
"操作类型下拉": _vm.操作类型下拉,
|
|
517
|
+
"计算类型下拉": _vm.计算类型下拉,
|
|
518
|
+
"日期类型下拉": _vm.日期类型下拉,
|
|
519
|
+
"外呼状态下拉": _vm.外呼状态下拉,
|
|
520
|
+
"意向标签集合": _vm.意向标签集合,
|
|
521
|
+
"规则类型下拉合并策略": _vm.规则类型下拉合并策略,
|
|
522
|
+
"计算类型下拉合并策略": _vm.计算类型下拉合并策略,
|
|
523
|
+
"操作类型下拉合并策略": _vm.操作类型下拉合并策略,
|
|
524
|
+
"日期类型下拉合并策略": _vm.日期类型下拉合并策略,
|
|
525
|
+
"外呼状态下拉合并策略": _vm.外呼状态下拉合并策略,
|
|
526
|
+
"意向标签集合合并策略": _vm.意向标签集合合并策略,
|
|
527
|
+
"tag": "div",
|
|
528
|
+
"valid-prefix": _vm.validPrefix + `conditions.${i}.`,
|
|
529
|
+
"rules": condition.rules
|
|
530
|
+
},
|
|
531
|
+
on: {
|
|
532
|
+
"addRule": (e) => _vm.$emit("addRule", e),
|
|
533
|
+
"reduceRule": (e) => _vm.$emit("reduceRule", e),
|
|
534
|
+
"onChange": () => _vm.$emit("ruleChange", _vm.plan.conditions)
|
|
535
|
+
}
|
|
536
|
+
})], 1);
|
|
537
|
+
}), _c("div", {
|
|
538
|
+
staticClass: "condition-footer"
|
|
539
|
+
}, [!_vm.hiddenConditionAdd && (!_vm.conditionLimit || ((_a = _vm.plan.conditions) == null ? void 0 : _a.length) < _vm.conditionLimit) ? _c("span", {
|
|
540
|
+
staticClass: "add-condition",
|
|
541
|
+
on: {
|
|
542
|
+
"click": function($event) {
|
|
543
|
+
return _vm.addCondition();
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}, [_c("span", {
|
|
547
|
+
staticClass: "add-condition-icon"
|
|
548
|
+
}, [_vm._v(_vm._s(_vm.addConditionDesc))])]) : _vm._e()])], 2)], 1);
|
|
549
|
+
};
|
|
550
|
+
var _sfc_staticRenderFns = [];
|
|
551
|
+
var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
|
|
552
|
+
const NfConditions = __component__.exports;
|
|
553
|
+
NfConditions.install = (app) => {
|
|
554
|
+
app.component("nf-conditions", NfConditions);
|
|
555
|
+
};
|
|
556
|
+
export {
|
|
557
|
+
NfConditions as default
|
|
558
|
+
};
|