|
|
|
|
@ -327,6 +327,7 @@ export default { |
|
|
|
|
dataBaseIp, |
|
|
|
|
dataBasePort, |
|
|
|
|
deptId, |
|
|
|
|
deptName, |
|
|
|
|
systemName, |
|
|
|
|
type |
|
|
|
|
} = tmp |
|
|
|
|
@ -353,6 +354,19 @@ export default { |
|
|
|
|
this.form.company = company; |
|
|
|
|
this.form.companyName = companyName; |
|
|
|
|
} |
|
|
|
|
//判断部门名称是否存在 |
|
|
|
|
const _idx2 = this.findObject(this.option.column,"deptId").dicData.findIndex(item => item.id == deptId); |
|
|
|
|
console.log('_idx2',_idx2,this.findObject(this.option.column,"deptId").dicData,deptId,deptName) |
|
|
|
|
if(_idx2 > -1){ |
|
|
|
|
this.findObject(this.option.column,"deptId").display = true; |
|
|
|
|
this.findObject(this.option.column,"deptName").addDisplay = false; |
|
|
|
|
} |
|
|
|
|
else{ |
|
|
|
|
this.findObject(this.option.column,"deptId").display = false; |
|
|
|
|
this.findObject(this.option.column,"deptName").addDisplay = true; |
|
|
|
|
this.findObject(this.option.column,"deptName").disabled = true; |
|
|
|
|
this.form.deptName = deptName; |
|
|
|
|
} |
|
|
|
|
this.form.dataBaseIp = dataBaseIp; |
|
|
|
|
this.form.dataBasePort = dataBasePort; |
|
|
|
|
this.form.deptId = deptId; |
|
|
|
|
|