matrix_components 2.0.389 → 2.0.390
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.
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
const props = defineProps({
|
|
81
81
|
readOnly: {
|
|
82
82
|
type: Boolean,
|
|
83
|
-
default:
|
|
83
|
+
default: false
|
|
84
84
|
},
|
|
85
85
|
row: {
|
|
86
86
|
type: Object,
|
|
@@ -443,15 +443,6 @@ const row4Ref = ref()
|
|
|
443
443
|
events: {
|
|
444
444
|
change: (value) => getAreasHandler(value),
|
|
445
445
|
},
|
|
446
|
-
params: {
|
|
447
|
-
rules: [
|
|
448
|
-
{
|
|
449
|
-
required: true,
|
|
450
|
-
message: '请输入',
|
|
451
|
-
trigger: 'change',
|
|
452
|
-
},
|
|
453
|
-
],
|
|
454
|
-
},
|
|
455
446
|
},
|
|
456
447
|
{ value: ' ' },
|
|
457
448
|
])
|
|
@@ -509,7 +500,6 @@ const row4Ref = ref()
|
|
|
509
500
|
}
|
|
510
501
|
|
|
511
502
|
async function getDetail() {
|
|
512
|
-
// 模拟获取详情数据
|
|
513
503
|
setTimeout(()=>{
|
|
514
504
|
const res = {
|
|
515
505
|
"isEnable": true,
|
|
@@ -526,27 +516,15 @@ const row4Ref = ref()
|
|
|
526
516
|
"department": ["company","tech","frontend"],
|
|
527
517
|
"single_level_cascader": "shanghai"
|
|
528
518
|
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
let rows3 = getAllFormNodeByKey(state.rows3,k);
|
|
539
|
-
if(rows3) {
|
|
540
|
-
rows3.value = v;
|
|
541
|
-
if(k === 'det_area_mode'){
|
|
542
|
-
detAreaModeChange(v)
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
let rows4 = getAllFormNodeByKey(state.rows4,k);
|
|
546
|
-
if(rows4) {
|
|
547
|
-
rows4.value = v;
|
|
548
|
-
}
|
|
549
|
-
}
|
|
519
|
+
|
|
520
|
+
row1Ref.value?.setFormData?.(res)
|
|
521
|
+
row2Ref.value?.setFormData?.(res)
|
|
522
|
+
row3Ref.value?.setFormData?.(res)
|
|
523
|
+
row4Ref.value?.setFormData?.(res)
|
|
524
|
+
// 特殊处理
|
|
525
|
+
if (res.det_area_mode === 'abnormal') {
|
|
526
|
+
detAreaModeChange('abnormal')
|
|
527
|
+
}
|
|
550
528
|
}, 2000)
|
|
551
529
|
}
|
|
552
530
|
|