|
@ -50,9 +50,10 @@ |
|
|
</el-input> |
|
|
</el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="机构类型" |
|
|
<el-form-item label="机构类型" |
|
|
prop="typeKey"> |
|
|
prop="typeKeyList"> |
|
|
<el-select v-model="dataForm.typeKey" |
|
|
<el-select v-model="dataForm.typeKeyList" |
|
|
@change="changeOrgType" |
|
|
@change="changeOrgType" |
|
|
|
|
|
multiple |
|
|
placeholder="机构类型"> |
|
|
placeholder="机构类型"> |
|
|
<el-option v-for="item in secondOrgDictList" |
|
|
<el-option v-for="item in secondOrgDictList" |
|
|
:key="item.dictValue" |
|
|
:key="item.dictValue" |
|
@ -94,7 +95,8 @@ export default { |
|
|
sort: 0, |
|
|
sort: 0, |
|
|
typeKey: '', |
|
|
typeKey: '', |
|
|
typeName: '', |
|
|
typeName: '', |
|
|
partyCode: '' |
|
|
partyCode: '', |
|
|
|
|
|
typeKeyList : [] |
|
|
}, |
|
|
}, |
|
|
secondOrgDictList: [] |
|
|
secondOrgDictList: [] |
|
|
} |
|
|
} |
|
@ -111,7 +113,7 @@ export default { |
|
|
parentName: [ |
|
|
parentName: [ |
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'change' } |
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'change' } |
|
|
], |
|
|
], |
|
|
typeKey: [ |
|
|
typeKeyList: [ |
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'change' } |
|
|
{ required: true, message: this.$t('validate.required'), trigger: 'change' } |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
@ -139,7 +141,15 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 改变机构类型 |
|
|
// 改变机构类型 |
|
|
changeOrgType (item) { |
|
|
changeOrgType (item) { |
|
|
this.typeKey = item |
|
|
var type_key = '' |
|
|
|
|
|
for(var i = 0; i < item.length; i++){ |
|
|
|
|
|
if(i === item.length - 1){ |
|
|
|
|
|
type_key += item[i] |
|
|
|
|
|
}else{ |
|
|
|
|
|
type_key += (item[i] + ',') |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
this.dataForm.typeKey = type_key |
|
|
}, |
|
|
}, |
|
|
// 获取部门列表 |
|
|
// 获取部门列表 |
|
|
getDeptList () { |
|
|
getDeptList () { |
|
@ -169,6 +179,9 @@ export default { |
|
|
...this.dataForm, |
|
|
...this.dataForm, |
|
|
...res.data |
|
|
...res.data |
|
|
} |
|
|
} |
|
|
|
|
|
if (this.dataForm.typeKey !== '' && this.dataForm.typeKey !== null) { |
|
|
|
|
|
this.dataForm.typeKeyList = this.dataForm.typeKey.split(",") |
|
|
|
|
|
} |
|
|
if (this.dataForm.pid === '0') { |
|
|
if (this.dataForm.pid === '0') { |
|
|
return this.deptListTreeSetDefaultHandle() |
|
|
return this.deptListTreeSetDefaultHandle() |
|
|
} |
|
|
} |
|
|