新增测试项页面显示修改

This commit is contained in:
zhujiyan
2024-09-29 11:15:34 +08:00
parent c11d6fdfc2
commit e62389f077

View File

@@ -183,6 +183,7 @@ const add = (node: any, data: any) => {
planId.value = data.id
//添加测试项
if (data.children) {
dialogRef.value.detailsType("tree")
handleOpen(2, planId.value)
}
}
@@ -193,15 +194,15 @@ const edit = async (node: Node, data: any) => {
.then(res => {
//修改方案
if (data.children) {
dialogRef.value.details(res.data)
dialogRef.value.detailsType("")
dialogRef.value.details(res.data)
handleOpen(1, planId.value)
}
//修改测试项
else {
monitorId.value = data.id
dialogRef.value.details(res.data.records[0])
dialogRef.value.detailsType("tree")
dialogRef.value.details(res.data.records[0])
handleOpen(3, planId.value)
}
})