处理usermodal上级责任部门控件错误,添加日志(未完成)
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
:disabled="disableSubmit"
|
||||
v-model="model.departIds"
|
||||
:options="nextDepartOptions"
|
||||
@change="nextDepartChange"
|
||||
placeholder="请选择负责部门">
|
||||
</j-multi-select-tag>
|
||||
</a-form-model-item>
|
||||
@@ -228,7 +229,6 @@ import { JSEncrypt } from 'jsencrypt'
|
||||
that.getUserRoles(record.id);
|
||||
that.getUserDeparts(record.id);
|
||||
}
|
||||
console.log('that.model=',that.model)
|
||||
},
|
||||
isDisabledAuth(code){
|
||||
return disabledAuthFilter(code);
|
||||
@@ -259,7 +259,6 @@ import { JSEncrypt } from 'jsencrypt'
|
||||
let c = {label:item.name, value: item.id+""}
|
||||
return c;
|
||||
})
|
||||
console.log('this.tenantsOptions: ',this.tenantsOptions)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -271,7 +270,6 @@ import { JSEncrypt } from 'jsencrypt'
|
||||
let c = {label:item.roleName, value:item.id}
|
||||
return c;
|
||||
})
|
||||
console.log('this.rolesOptions: ',this.rolesOptions)
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -279,7 +277,6 @@ import { JSEncrypt } from 'jsencrypt'
|
||||
queryUserRole({userid:userid}).then((res)=>{
|
||||
if(res.success){
|
||||
this.model.selectedroles = res.result.join(",");
|
||||
console.log('that.model.selectedroles=',this.model.selectedroles)
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -299,12 +296,10 @@ import { JSEncrypt } from 'jsencrypt'
|
||||
}
|
||||
that.model.selecteddeparts = selectDepartKeys.join(",")
|
||||
that.nextDepartOptions=departOptions;
|
||||
console.log('that.nextDepartOptions=',that.nextDepartOptions)
|
||||
}
|
||||
})
|
||||
},
|
||||
backDepartInfo(info) {
|
||||
debugger
|
||||
this.model.departIds = this.model.selecteddeparts;
|
||||
this.nextDepartOptions = info.map((item,index,arr)=>{
|
||||
let c = {label:item.text, value: item.value+""}
|
||||
@@ -510,6 +505,10 @@ import { JSEncrypt } from 'jsencrypt'
|
||||
this.departIdShow=true;
|
||||
}
|
||||
},
|
||||
nextDepartChange(e){
|
||||
console.log("11", e)
|
||||
console.log("22", this.model.departIds)
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user