方案数据新增bug修改

This commit is contained in:
zhujiyan
2024-10-23 09:44:21 +08:00
parent e83d3899ce
commit a041b8479f
2 changed files with 7 additions and 6 deletions

View File

@@ -399,16 +399,19 @@ const detailsType = (val: any) => {
}
//回显方案、测试项操作
const details = (val: any) => {
if (val.records && val.records.length != 0) {
console.log(val,"88888");
if (val) {
form.value = {
describe: val.describe,
itemName: val.itemName
}
} else {
}
if(val){
form1.value = val
checkedIdList.value=form1.value.list
checkedIdList.value = form1.value.list
}
return
//修改方案回显
if (popupType.value == 1) {

View File

@@ -352,8 +352,6 @@ const nodeClick = async (e: anyObj) => {
.catch(e => {
loading.value = false
})
} else {
schemeTreeRef.value.getTreeList()
}
}
const dialogRef = ref()
@@ -363,7 +361,7 @@ const handleOpen = (val: any) => {
dialogRef.value.open(val, '')
return
}
deviceData.value.records.map((item: any) => {
deviceData.value?.records?.map((item: any) => {
if (item.id == activeName.value) {
dailogForm.value = item
}