|
@@ -112,21 +112,21 @@ const funGetProcessTree = async (flag = true) => { //flag控制是否获取tree
|
|
actTreeNode.value = null
|
|
actTreeNode.value = null
|
|
const res = await request.get("/allfilelist")
|
|
const res = await request.get("/allfilelist")
|
|
excelFitList.value = []
|
|
excelFitList.value = []
|
|
- processTreeData.value = funRepeatMap(res.data, flag? 'process' : 'prepare') //flag控制对actTreeNode赋值
|
|
|
|
|
|
+ processTreeData.value = funRepeatMap(res.data, 'process') //flag控制对actTreeNode赋值
|
|
if(actTreeNode.value){
|
|
if(actTreeNode.value){
|
|
funProcessCurrentChange({current: actTreeNode.value, currentNode: null})
|
|
funProcessCurrentChange({current: actTreeNode.value, currentNode: null})
|
|
- const child = actTreeNode.value.childs[0]
|
|
|
|
- const obj = {
|
|
|
|
- id: child.path,
|
|
|
|
- interval: child.interval,
|
|
|
|
- path: child.path,
|
|
|
|
- station: child.station,
|
|
|
|
- time: child.time,
|
|
|
|
- type: child.type,
|
|
|
|
- windturbine: child.windturbine,
|
|
|
|
- name: child.path
|
|
|
|
- }
|
|
|
|
- funExcelChange(obj)
|
|
|
|
|
|
+ // const child = actTreeNode.value.childs[0]
|
|
|
|
+ // const obj = {
|
|
|
|
+ // id: child.path,
|
|
|
|
+ // interval: child.interval,
|
|
|
|
+ // path: child.path,
|
|
|
|
+ // station: child.station,
|
|
|
|
+ // time: child.time,
|
|
|
|
+ // type: child.type,
|
|
|
|
+ // windturbine: child.windturbine,
|
|
|
|
+ // name: child.path
|
|
|
|
+ // }
|
|
|
|
+ // funExcelChange(obj)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const funProcessCurrentChange = ({ current, currentNode }) => {
|
|
const funProcessCurrentChange = ({ current, currentNode }) => {
|
|
@@ -154,7 +154,7 @@ const funTreeCheckChange = ({ current, checkedNodes, checkedKeys, halfCheckedNod
|
|
for (const node of checkedNodes) {
|
|
for (const node of checkedNodes) {
|
|
if (node.childs && node.childs.length) {
|
|
if (node.childs && node.childs.length) {
|
|
for (const child of node.childs) {
|
|
for (const child of node.childs) {
|
|
- checkIds.push(child.id)
|
|
|
|
|
|
+ checkIds.push(child.path)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|