|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2022-01-08 09:27:43
|
|
* @Date: 2022-01-08 09:27:43
|
|
- * @LastEditTime: 2022-03-18 18:18:29
|
|
|
|
|
|
+ * @LastEditTime: 2022-03-21 03:17:37
|
|
* @LastEditors: your name
|
|
* @LastEditors: your name
|
|
* @Description: 用户组管理
|
|
* @Description: 用户组管理
|
|
* @FilePath: \Foshan4A2.0\src\views\accountGroupManagement\components\home.vue
|
|
* @FilePath: \Foshan4A2.0\src\views\accountGroupManagement\components\home.vue
|
|
@@ -367,7 +367,9 @@ export default {
|
|
},
|
|
},
|
|
currentKey: {
|
|
currentKey: {
|
|
handler(val) {
|
|
handler(val) {
|
|
- this.$refs.tree.setCurrentKey(val)
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.tree.setCurrentKey(val)
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -547,8 +549,6 @@ export default {
|
|
this.flag = false
|
|
this.flag = false
|
|
this.getGroupTree()
|
|
this.getGroupTree()
|
|
this.childrenData.splice(this.delIndex, 1)
|
|
this.childrenData.splice(this.delIndex, 1)
|
|
- this.$refs.tree.setCurrentKey(this.currDataArr[0].GroupId)
|
|
|
|
- this.currentKey = this.currDataArr[0].GroupId
|
|
|
|
} else {
|
|
} else {
|
|
this.flag = false
|
|
this.flag = false
|
|
this.$message.error(res.message)
|
|
this.$message.error(res.message)
|