|
@@ -150,21 +150,26 @@
|
|
|
},
|
|
|
methods: {
|
|
|
initUserNames() {
|
|
|
- if(this.beginUsers != null && this.beginUsers != []){
|
|
|
- getAction('/sys/user/listBy', {beginUsers:this.beginUsers.toString()}).then((res) => {
|
|
|
- if (res.success) {
|
|
|
- let selectedRowKeys = []
|
|
|
- let realNames = []
|
|
|
- res.result.records.forEach(user => {
|
|
|
- realNames.push(user['realname'])
|
|
|
- selectedRowKeys.push(user['id'])
|
|
|
- })
|
|
|
- this.selectedRowKeys = selectedRowKeys
|
|
|
- console.log("回显用户",selectedRowKeys)
|
|
|
- this.$emit('initComp', realNames.join(','))
|
|
|
- }
|
|
|
- })
|
|
|
+
|
|
|
+ if(this.beginUsers.length == 0){
|
|
|
+ // console.log('sssssssssssssssssssssssss',this.beginUsers);
|
|
|
+ this.beginUsers = ['wushuju72']
|
|
|
}
|
|
|
+ // console.log('dddddddddddddddddddddddddd',this.beginUsers);
|
|
|
+ getAction('/sys/user/listBy', {beginUsers:this.beginUsers.toString()}).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ let selectedRowKeys = []
|
|
|
+ let realNames = []
|
|
|
+ res.result.records.forEach(user => {
|
|
|
+ realNames.push(user['realname'])
|
|
|
+ selectedRowKeys.push(user['id'])
|
|
|
+ })
|
|
|
+ this.selectedRowKeys = selectedRowKeys
|
|
|
+ console.log("回显用户",selectedRowKeys)
|
|
|
+ this.$emit('initComp', realNames.join(','))
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
|
|
|
|
|
|
// if (this.userIds) {
|
|
@@ -230,6 +235,7 @@
|
|
|
},
|
|
|
showModal(user) {
|
|
|
this.beginUsers = user;
|
|
|
+
|
|
|
this.visible = true;
|
|
|
this.queryDepartTree();
|
|
|
this.initUserNames()
|