【fix】修复引用缺失导致的bug
【fix】【用户管理】选择部门和上级以后,负责部门没有数据可选
This commit is contained in:
@@ -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+""}
|
||||
|
||||
Reference in New Issue
Block a user