【fix】修复引用缺失导致的bug
【fix】【用户管理】选择部门和上级以后,负责部门没有数据可选
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { axios } from '@/utils/request'
|
import { axios } from '@/utils/request'
|
||||||
|
import signMd5Utils from '@/utils/encryption/signMd5Utils'
|
||||||
|
|
||||||
const api = {
|
const api = {
|
||||||
user: '/mock/api/user',
|
user: '/mock/api/user',
|
||||||
|
|||||||
@@ -117,7 +117,8 @@ export default {
|
|||||||
//返回选中的部门信息
|
//返回选中的部门信息
|
||||||
backDeparInfo(){
|
backDeparInfo(){
|
||||||
if(this.backDepart===true){
|
if(this.backDepart===true){
|
||||||
if(this.departIds && this.departIds.length>0){
|
|
||||||
|
if(this.storeVals && this.storeVals.length>0){
|
||||||
let arr1 = this.storeVals.split(',')
|
let arr1 = this.storeVals.split(',')
|
||||||
let arr2 = this.textVals.split(',')
|
let arr2 = this.textVals.split(',')
|
||||||
let info = []
|
let info = []
|
||||||
|
|||||||
@@ -304,6 +304,7 @@ import { JSEncrypt } from 'jsencrypt'
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
backDepartInfo(info) {
|
backDepartInfo(info) {
|
||||||
|
debugger
|
||||||
this.model.departIds = this.model.selecteddeparts;
|
this.model.departIds = this.model.selecteddeparts;
|
||||||
this.nextDepartOptions = info.map((item,index,arr)=>{
|
this.nextDepartOptions = info.map((item,index,arr)=>{
|
||||||
let c = {label:item.text, value: item.value+""}
|
let c = {label:item.text, value: item.value+""}
|
||||||
|
|||||||
Reference in New Issue
Block a user