[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: [] // 当前查询条件下的所有数据 currentQueryAllData: [] // 当前查询条件下的所有数据
} }
}, },
mounted () {
this.loadData()
},
methods: { methods: {
open (value) { open (value) {
this.visible = true this.visible = true
this.loadData() // this.loadData()
if (value) { if (value) {
this.selectedRowKeys = value.split(',') this.selectedRowKeys = value.split(',')
this.getUserListByIds(value) this.getUserListByIds(value)
@@ -232,13 +232,10 @@ export default {
currentQueryAllData: [] // 当前查询条件下的所有数据 currentQueryAllData: [] // 当前查询条件下的所有数据
} }
}, },
mounted () {
this.loadData()
},
methods: { methods: {
open (value) { open (value) {
this.visible = true this.visible = true
this.loadData() // this.loadData()
if (value) { if (value) {
this.selectedRowKeys = value.split(',') this.selectedRowKeys = value.split(',')
} }
@@ -263,12 +263,11 @@ export default {
mounted () { mounted () {
this.initTreeData() this.initTreeData()
this.getWorkGroupTree() this.getWorkGroupTree()
this.loadData()
}, },
methods: { methods: {
open (value) { open (value) {
this.visible = true this.visible = true
this.loadData() // this.loadData()
if (value) { if (value) {
this.selectedRowKeys = value.split(',') this.selectedRowKeys = value.split(',')
this.getUserListByIds(value) this.getUserListByIds(value)
+1 -1
View File
@@ -236,7 +236,7 @@ export default {
open (value) { open (value) {
this.getSysCategoryTree() this.getSysCategoryTree()
this.initRoleList() this.initRoleList()
this.loadData() // this.loadData()
this.visible = true this.visible = true
if (value) { if (value) {
this.selectedRowKeys = value.split(',') this.selectedRowKeys = value.split(',')