Browse Source

默认选中第一条tab

hella_online_20240829
wangyufei 4 months ago
parent
commit
c3789652ed
  1. 3
      src/views/qms/inspectionScheme/addForm.vue

3
src/views/qms/inspectionScheme/addForm.vue

@ -900,7 +900,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false rules.value['inspectionCharacteristicsBaseVO.quantifyLowlimit'][0].required = false
rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false rules.value['inspectionCharacteristicsBaseVO.quantifyTarget'][0].required = false
list.forEach((item, index) => { list.forEach((item, index) => {
editableTabsValue.value = index + 1 // editableTabsValue.value = index + 1
item.name = index + 1 item.name = index + 1
// rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true // rules.value['inspectionCharacteristicsBaseVO.quantifyCapping'][0].required = true
// //
@ -920,6 +920,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
isShowField.value += 1 //isShowField > 0aql isShowField.value += 1 //isShowField > 0aql
} }
}) })
editableTabsValue.value = 1
// aql // aql
if (isShowField.value > 0) { if (isShowField.value > 0) {
rules.value.aql[0].required = true rules.value.aql[0].required = true

Loading…
Cancel
Save