方案数据改为列表点击修改测试项,数据绑定修改设备绑定
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user