处理usermodal上级责任部门控件错误,添加日志(未完成)

This commit is contained in:
zer0Black
2022-04-07 21:41:47 +08:00
parent 24ad94e9dd
commit a15ebdc37d
3 changed files with 9 additions and 13 deletions
@@ -48,14 +48,11 @@
}
},
created() {
// console.log(this.dictCode);
if(!this.type || this.type==="list"){
this.tagType = "select"
}else{
this.tagType = this.type
}
//获取字典数据
// this.initDictData();
},
computed: {
getValueSting(){
@@ -76,7 +73,6 @@
//根据字典Code, 初始化字典数组
ajaxGetDictItems(this.dictCode, null).then((res) => {
if (res.success) {
// console.log(res.result);
this.dictOptions = res.result;
}
})
@@ -90,6 +86,8 @@
}
console.log(val);
this.$emit('change', val);
//解决数据规则,选择自定义SQL 规则值无法输入空格
this.$emit('input', val);
},
setCurrentDictOptions(dictOptions){
this.dictOptions = dictOptions
@@ -115,9 +115,8 @@ export default {
this.textVals = textVals
},
//返回选中的部门信息
backDeparInfo(){
backDepartInfo(){
if(this.backDepart===true){
if(this.storeVals && this.storeVals.length>0){
let arr1 = this.storeVals.split(',')
let arr2 = this.textVals.split(',')
@@ -150,7 +149,7 @@ export default {
this.textVals = arr2.join(',')
}
this.$emit("change", this.storeVals)
this.backDeparInfo()
this.backDepartInfo()
},
getDepartNames(){
return this.departNames