|
|
|
@ -80,7 +80,9 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import debounce from 'lodash/debounce' |
|
|
|
/* eslint-disable camelcase */ |
|
|
|
|
|
|
|
import debounce from 'lodash/debounce' |
|
|
|
export default { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
@ -96,7 +98,7 @@ export default { |
|
|
|
typeKey: '', |
|
|
|
typeName: '', |
|
|
|
partyCode: '', |
|
|
|
typeKeyList : [] |
|
|
|
typeKeyList: [] |
|
|
|
}, |
|
|
|
secondOrgDictList: [] |
|
|
|
} |
|
|
|
@ -141,15 +143,20 @@ export default { |
|
|
|
}, |
|
|
|
// 改变机构类型 |
|
|
|
changeOrgType (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] + ',') |
|
|
|
} |
|
|
|
var branch = '' |
|
|
|
var type_key = '' |
|
|
|
for (var i = 0; i < item.length; i++) { |
|
|
|
if (item[i] === 'branch_grid_party' || item[i] === 'branch_enterprise_party') { |
|
|
|
branch += (item[i] + ',') |
|
|
|
} else { |
|
|
|
type_key += (item[i] + ',') |
|
|
|
} |
|
|
|
this.dataForm.typeKey = type_key |
|
|
|
} |
|
|
|
var key = branch + type_key |
|
|
|
if (key.length > 0) { |
|
|
|
key = key.substring(0, key.length - 1) |
|
|
|
} |
|
|
|
this.dataForm.typeKey = key |
|
|
|
}, |
|
|
|
// 获取部门列表 |
|
|
|
getDeptList () { |
|
|
|
@ -180,7 +187,7 @@ export default { |
|
|
|
...res.data |
|
|
|
} |
|
|
|
if (this.dataForm.typeKey !== '' && this.dataForm.typeKey !== null) { |
|
|
|
this.dataForm.typeKeyList = this.dataForm.typeKey.split(",") |
|
|
|
this.dataForm.typeKeyList = this.dataForm.typeKey.split(',') |
|
|
|
} |
|
|
|
if (this.dataForm.pid === '0') { |
|
|
|
return this.deptListTreeSetDefaultHandle() |
|
|
|
|