[update] 修改选用户组件打开的时候不请求数据,点击查询后请求数据

This commit is contained in:
lideqin
2024-03-04 13:54:31 +08:00
parent ccc04bd10d
commit 9e1de3e359
4 changed files with 4 additions and 11 deletions
@@ -206,13 +206,10 @@ export default {
currentQueryAllData: [] // 当前查询条件下的所有数据
}
},
mounted () {
this.loadData()
},
methods: {
open (value) {
this.visible = true
this.loadData()
// this.loadData()
if (value) {
this.selectedRowKeys = value.split(',')
this.getUserListByIds(value)
@@ -232,13 +232,10 @@ export default {
currentQueryAllData: [] // 当前查询条件下的所有数据
}
},
mounted () {
this.loadData()
},
methods: {
open (value) {
this.visible = true
this.loadData()
// this.loadData()
if (value) {
this.selectedRowKeys = value.split(',')
}
@@ -263,12 +263,11 @@ export default {
mounted () {
this.initTreeData()
this.getWorkGroupTree()
this.loadData()
},
methods: {
open (value) {
this.visible = true
this.loadData()
// this.loadData()
if (value) {
this.selectedRowKeys = value.split(',')
this.getUserListByIds(value)
+1 -1
View File
@@ -236,7 +236,7 @@ export default {
open (value) {
this.getSysCategoryTree()
this.initRoleList()
this.loadData()
// this.loadData()
this.visible = true
if (value) {
this.selectedRowKeys = value.split(',')