【fix】修复引用缺失导致的bug

【fix】【用户管理】选择部门和上级以后,负责部门没有数据可选
This commit is contained in:
zer0Black
2022-04-07 14:31:38 +08:00
parent 6c62f7f066
commit 24ad94e9dd
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -1,5 +1,6 @@
import Vue from 'vue'
import { axios } from '@/utils/request'
import signMd5Utils from '@/utils/encryption/signMd5Utils'
const api = {
user: '/mock/api/user',
@@ -117,7 +117,8 @@ export default {
//返回选中的部门信息
backDeparInfo(){
if(this.backDepart===true){
if(this.departIds && this.departIds.length>0){
if(this.storeVals && this.storeVals.length>0){
let arr1 = this.storeVals.split(',')
let arr2 = this.textVals.split(',')
let info = []
@@ -304,6 +304,7 @@ import { JSEncrypt } from 'jsencrypt'
})
},
backDepartInfo(info) {
debugger
this.model.departIds = this.model.selecteddeparts;
this.nextDepartOptions = info.map((item,index,arr)=>{
let c = {label:item.text, value: item.value+""}