方案数据新增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) => { 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 { }
if(val){
form1.value = val form1.value = val
checkedIdList.value=form1.value.list checkedIdList.value = form1.value.list
} }
return return
//修改方案回显 //修改方案回显
if (popupType.value == 1) { if (popupType.value == 1) {

View File

@@ -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
} }