Browse Source

完善bug

shibei_master
HAHA 3 years ago
parent
commit
3d390f5056
  1. 30
      src/views/modules/base/organization/organization.vue

30
src/views/modules/base/organization/organization.vue

@ -388,7 +388,7 @@
title="人员详情" title="人员详情"
:visible.sync="details" :visible.sync="details"
width="30%" width="30%"
:before-close="handleClose"> :before-close="handleClosePeoView">
<el-form> <el-form>
<el-form-item label="姓名" > <el-form-item label="姓名" >
<el-input v-model="peoForm.name" placeholder="姓名" :disabled="true"></el-input> <el-input v-model="peoForm.name" placeholder="姓名" :disabled="true"></el-input>
@ -943,14 +943,26 @@ export default {
methods:{ methods:{
// id // id
handleChange (e) { handleChange (e) {
console.log(e)
this.transferForm.orgId = e[1] this.transferForm.orgId = e[1]
if(this.transferForm.orgId != null || ''){ if(this.transferForm.orgId != null || ''){
if(this.transferForm.orgId === 0){ if(this.transferForm.orgId === 0){
this.transferForm.orgId = e[2] if(e[2] == null || ''){
this.transferForm.orgType = 'dept' this.transferForm.orgType = 'dept'
this.transferForm.orgId = "14f572e724eecf7668b655505d789cab"
}else{
this.transferForm.orgId = e[2]
this.transferForm.orgType = 'dept'
}
} else { } else {
this.transferForm.orgId = e[2] if(e[2] == null || ''){
this.transferForm.orgType = 'grid' this.transferForm.orgType = 'grid'
this.transferForm.orgId = "63d5ff92ea981b1c58e4914ac894c610"
} else {
this.transferForm.orgId = e[2]
this.transferForm.orgType = 'grid'
}
} }
}else{ }else{
this.transferForm.orgId = e[0] this.transferForm.orgId = e[0]
@ -1238,6 +1250,11 @@ export default {
}) })
.catch(_ => {}); .catch(_ => {});
}, },
//
handleClosePeoView(done){
this.insertFormRest()
done();
},
// //
insertFormRest(){ insertFormRest(){
this.insertForm.name = '', this.insertForm.name = '',
@ -1684,6 +1701,9 @@ export default {
this.getDepartmentList() this.getDepartmentList()
this.getGridList() this.getGridList()
this.getAgencyStaffListData() this.getAgencyStaffListData()
this.getDepartmentStaffListData()
this.getAgencyStaffListData()
this.getGridStaffListData()
} else { } else {
this.$message.error(msg) this.$message.error(msg)

Loading…
Cancel
Save