matrix_components 2.0.392 → 2.0.395
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.
|
@@ -105,6 +105,9 @@ const row4Ref = ref()
|
|
|
105
105
|
label: "是否启用",
|
|
106
106
|
value: false,
|
|
107
107
|
component: ElSwitch,
|
|
108
|
+
events: {
|
|
109
|
+
change: changeHandler
|
|
110
|
+
},
|
|
108
111
|
params: {
|
|
109
112
|
rules: [
|
|
110
113
|
{
|
|
@@ -119,41 +122,6 @@ const row4Ref = ref()
|
|
|
119
122
|
},
|
|
120
123
|
},
|
|
121
124
|
],
|
|
122
|
-
[
|
|
123
|
-
{
|
|
124
|
-
key: 'confidence',
|
|
125
|
-
label: '置信度',
|
|
126
|
-
value: 'aaa',
|
|
127
|
-
component: ElInput,
|
|
128
|
-
params: {
|
|
129
|
-
rules: [
|
|
130
|
-
{
|
|
131
|
-
required: true,
|
|
132
|
-
message: '请输入',
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
key: 'iou',
|
|
139
|
-
label: '交并比',
|
|
140
|
-
value: '',
|
|
141
|
-
component: ElInput,
|
|
142
|
-
params: {
|
|
143
|
-
'v-length.range': {
|
|
144
|
-
min: 0,
|
|
145
|
-
max: 1,
|
|
146
|
-
maxLength: 3,
|
|
147
|
-
},
|
|
148
|
-
rules: [
|
|
149
|
-
{
|
|
150
|
-
required: true,
|
|
151
|
-
message: '请输入',
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
125
|
],
|
|
158
126
|
rows2: [
|
|
159
127
|
[
|
|
@@ -426,19 +394,18 @@ const row4Ref = ref()
|
|
|
426
394
|
],
|
|
427
395
|
],
|
|
428
396
|
})
|
|
397
|
+
|
|
398
|
+
function changeHandler(v){
|
|
399
|
+
alert(v)
|
|
400
|
+
}
|
|
429
401
|
|
|
430
402
|
function detAreaModeChange(value: any) {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
// 检查最后一项是否是 det_area_json
|
|
435
|
-
const lastItem = newRows3[newRows3.length - 1]?.[0]
|
|
436
|
-
if (lastItem?.key === 'det_area_json') {
|
|
437
|
-
newRows3.pop()
|
|
403
|
+
if(state.rows3?.length && state.rows3[state.rows3.length - 1]?.[0]?.key === 'det_area_json'){
|
|
404
|
+
state.rows3.pop()
|
|
438
405
|
}
|
|
439
406
|
|
|
440
407
|
if (value === 'abnormal') {
|
|
441
|
-
|
|
408
|
+
state.rows3.push([
|
|
442
409
|
{
|
|
443
410
|
key: 'det_area_json',
|
|
444
411
|
label: '感兴趣区域',
|
|
@@ -450,9 +417,6 @@ const row4Ref = ref()
|
|
|
450
417
|
{ value: ' ' },
|
|
451
418
|
])
|
|
452
419
|
}
|
|
453
|
-
|
|
454
|
-
// 使用赋值操作触发响应式更新
|
|
455
|
-
state.rows3 = newRows3
|
|
456
420
|
}
|
|
457
421
|
|
|
458
422
|
function CustomUIs() {
|
|
@@ -517,11 +481,10 @@ const row4Ref = ref()
|
|
|
517
481
|
"department": ["company","tech","frontend"],
|
|
518
482
|
"single_level_cascader": "shanghai"
|
|
519
483
|
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
row4Ref.value?.setFormData?.(res,true)
|
|
484
|
+
row1Ref.value?.resetForm()
|
|
485
|
+
setTimeout(()=>{
|
|
486
|
+
row1Ref.value?.setFormData?.(res)
|
|
487
|
+
},10)
|
|
525
488
|
// 特殊处理
|
|
526
489
|
// if (res.det_area_mode === 'abnormal') {
|
|
527
490
|
// detAreaModeChange('abnormal')
|
|
@@ -529,7 +492,7 @@ const row4Ref = ref()
|
|
|
529
492
|
|
|
530
493
|
setTimeout(()=>{
|
|
531
494
|
const res = {
|
|
532
|
-
"isEnable":
|
|
495
|
+
"isEnable": false,
|
|
533
496
|
"confidence": "aaa1",
|
|
534
497
|
"iou": "1",
|
|
535
498
|
"timeInterval": "2",
|
|
@@ -544,10 +507,10 @@ const row4Ref = ref()
|
|
|
544
507
|
"single_level_cascader": "shanghai"
|
|
545
508
|
}
|
|
546
509
|
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
510
|
+
row1Ref.value?.resetForm()
|
|
511
|
+
setTimeout(()=>{
|
|
512
|
+
row1Ref.value?.setFormData?.(res)
|
|
513
|
+
},10)
|
|
551
514
|
// 特殊处理
|
|
552
515
|
}, 2000)
|
|
553
516
|
}, 2000)
|