方案数据改为列表点击修改测试项,数据绑定修改设备绑定

This commit is contained in:
zhujiyan
2024-09-26 13:42:14 +08:00
parent 6803a04d07
commit 1c9e53869c
3 changed files with 32 additions and 15 deletions

View File

@@ -188,20 +188,20 @@ const add = (node: any, data: any) => {
}
/** 编辑树节点 */
const edit = async (node: Node, data: any) => {
console.log(data, '????????????')
planId.value = data.id
await getTestRecordInfo(planId.value)
.then(res => {
console.log(res, '++++++++++++++++++++195========>')
//修改方案
if (data.children) {
dialogRef.value.details(res.data)
dialogRef.value.detailsType("")
handleOpen(1, planId.value)
}
//修改测试项
else {
monitorId.value = data.id
dialogRef.value.details(res.data.records[0])
dialogRef.value.detailsType("tree")
handleOpen(3, planId.value)
}
})