方案数据新增bug修改
This commit is contained in:
@@ -399,15 +399,18 @@ const detailsType = (val: any) => {
|
|||||||
}
|
}
|
||||||
//回显方案、测试项操作
|
//回显方案、测试项操作
|
||||||
const details = (val: any) => {
|
const details = (val: any) => {
|
||||||
if (val.records && val.records.length != 0) {
|
console.log(val,"88888");
|
||||||
|
if (val) {
|
||||||
form.value = {
|
form.value = {
|
||||||
describe: val.describe,
|
describe: val.describe,
|
||||||
itemName: val.itemName
|
itemName: val.itemName
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
form1.value = val
|
|
||||||
checkedIdList.value=form1.value.list
|
|
||||||
}
|
}
|
||||||
|
if(val){
|
||||||
|
form1.value = val
|
||||||
|
checkedIdList.value = form1.value.list
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return
|
return
|
||||||
//修改方案回显
|
//修改方案回显
|
||||||
|
|||||||
@@ -352,8 +352,6 @@ const nodeClick = async (e: anyObj) => {
|
|||||||
.catch(e => {
|
.catch(e => {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
schemeTreeRef.value.getTreeList()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const dialogRef = ref()
|
const dialogRef = ref()
|
||||||
@@ -363,7 +361,7 @@ const handleOpen = (val: any) => {
|
|||||||
dialogRef.value.open(val, '')
|
dialogRef.value.open(val, '')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
deviceData.value.records.map((item: any) => {
|
deviceData.value?.records?.map((item: any) => {
|
||||||
if (item.id == activeName.value) {
|
if (item.id == activeName.value) {
|
||||||
dailogForm.value = item
|
dailogForm.value = item
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user