修改测试bug
This commit is contained in:
@@ -244,11 +244,15 @@ const historyDevId: any = ref('')
|
||||
const chartTitle: any = ref('')
|
||||
//点击测试项切换树节点
|
||||
const handleClickTabs = async () => {
|
||||
searchForm.value.index = [indexOptions.value[0].id]
|
||||
historyDevId.value = activeName.value
|
||||
schemeTreeRef.value.setCheckedNode(activeName.value)
|
||||
await init(true)
|
||||
setTimeout(() => {
|
||||
init(true)
|
||||
}, 100);
|
||||
}
|
||||
const nodeClick = async (e: anyObj) => {
|
||||
console.log("🚀 ~ nodeClick ~ e:", e)
|
||||
loading.value = true
|
||||
deviceData.value = []
|
||||
historyDevId.value = e.children && e.children.length != 0 ? e.children[0].id : e.id
|
||||
@@ -274,7 +278,7 @@ const nodeClick = async (e: anyObj) => {
|
||||
schemeTreeRef.value.getPlanData(deviceData.value)
|
||||
await setTimeout(() => {
|
||||
init(true)
|
||||
}, 500);
|
||||
}, 100);
|
||||
|
||||
loading.value = false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user