Pārlūkot izejas kodu

指标目录移动bug

jwyu 1 gadu atpakaļ
vecāks
revīzija
ce82b89282

+ 6 - 9
src/views/dataEntry_manage/databaseList.vue

@@ -1435,7 +1435,10 @@ export default {
 					this.$message.success('移动成功!')
 				}
 				this.getTreeData()
-				this.getDataList();
+				if(this.selected_edbid){
+					this.getDataList();
+				}
+				
 			})
 		},
 
@@ -1457,7 +1460,7 @@ export default {
 				setTimeout(() => {
 					dropLine.style.top=e.layerY+'px'
 					// console.log(e.layerY,dropLine);
-				}, 10);
+				}, 100);
 			}
 			
 		},
@@ -1471,13 +1474,7 @@ export default {
 		// 树节点展开
 		handleNodeExpand (data) {
 			// 保存当前展开的节点
-			let flag = false
-			this.defaultShowNodes.some(item => {
-				if (item === data.UniqueCode) { // 判断当前节点是否存在, 存在不做处理
-					flag = true
-					return true
-				}
-			})
+			let flag = this.defaultShowNodes.some((item) => item === data.UniqueCode);
 			if (!flag) { // 不存在则存到数组里
 				this.defaultShowNodes.push(data.UniqueCode)
 			}

+ 4 - 2
src/views/predictEdb_manage/mixins/mixin.js

@@ -173,7 +173,9 @@ export default {
 					this.$message.success('移动成功!')
 				}
 				this.getTreeData()
-        this.$refs.detailComponentRef.getDetail()
+        if(this.select_id&&!this.showAssociateChart&&!this.showAssociateComputeData){
+          this.$refs.detailComponentRef.getDetail()
+        }
 			})
     },
 
@@ -191,7 +193,7 @@ export default {
 			if(dropLine){
 				setTimeout(() => {
 					dropLine.style.top=e.layerY+'px'
-				}, 10);
+				}, 100);
 			}
     },