소스 검색

2023-02-21 update

1. 修复 光照功率曲线   多选tree时, 传参错误
moccus 2 년 전
부모
커밋
818f18cad7
1개의 변경된 파일14개의 추가작업 그리고 14개의 파일을 삭제
  1. 14 14
      src/pages/lightAnalysis/glHotAnalysis/index.vue

+ 14 - 14
src/pages/lightAnalysis/glHotAnalysis/index.vue

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