Browse Source

修改和添加修改为操作当前组织id

shibei_master
HAHA 3 years ago
parent
commit
8672c10bc3
  1. 18
      src/views/modules/base/organization/organization.vue

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

@ -850,7 +850,7 @@ export default {
dutyList:[], dutyList:[],
// //
modifyPeo:false, modifyPeo:false,
submitOrgid:'',
// //
options:[ options:[
{ {
@ -1165,7 +1165,7 @@ export default {
gender:this.peoForm.gender, gender:this.peoForm.gender,
workType:this.peoForm.post, workType:this.peoForm.post,
roles:this.peoForm.duty, roles:this.peoForm.duty,
orgId:this.submitOrgid orgId:this.currentAgencyId
} }
const { data, code, msg } = await requestPost(url,params) const { data, code, msg } = await requestPost(url,params)
@ -1195,7 +1195,7 @@ export default {
gender:this.peoForm.gender === '男' ? 1 : 0, gender:this.peoForm.gender === '男' ? 1 : 0,
workType:this.peoForm.post, workType:this.peoForm.post,
roles:this.peoForm.duty, roles:this.peoForm.duty,
agencyId:this.userAgencyId, agencyId:this.currentAgencyId,
} }
const { data, code, msg } = await requestPost(url,params) const { data, code, msg } = await requestPost(url,params)
@ -1472,27 +1472,27 @@ export default {
addPeo(row){ addPeo(row){
this.dialogVisiblePeo = true this.dialogVisiblePeo = true
this.peoForm.orgType = 'agency' this.peoForm.orgType = 'agency'
this.submitOrgid = this.currentAgencyId
}, },
// //
addCommunityPeo(){ addCommunityPeo(){
this.dialogVisiblePeo = true this.dialogVisiblePeo = true
this.peoForm.orgType = 'dept' this.peoForm.orgType = 'dept'
this.submitOrgid = this.currentDepartmentId
}, },
// //
addGridPeo(){ addGridPeo(){
this.dialogVisiblePeo = true this.dialogVisiblePeo = true
this.peoForm.orgType = 'grid' this.peoForm.orgType = 'grid'
this.submitOrgid = this.currentGridOrgId
}, },
// //
async xiuGridPeo(row){ async xiuGridPeo(row){
this.modifyPeo = true this.modifyPeo = true
this.peoForm.orgType = 'grid' this.peoForm.orgType = 'grid'
this.submitOrgid = this.currentGridOrgId
this.userStaffId = row.staffId this.userStaffId = row.staffId
const url = "/gov/org/staff/editstaffinit" const url = "/gov/org/staff/editstaffinit"
@ -1523,7 +1523,7 @@ export default {
async xiuPeo(row){ async xiuPeo(row){
this.modifyPeo = true this.modifyPeo = true
this.peoForm.orgType = 'agency' this.peoForm.orgType = 'agency'
this.submitOrgid = this.currentAgencyId
this.userStaffId = row.staffId this.userStaffId = row.staffId
const url = "/gov/org/staff/editstaffinit" const url = "/gov/org/staff/editstaffinit"
@ -1558,7 +1558,7 @@ export default {
async xiuCommunityPeo(row){ async xiuCommunityPeo(row){
this.modifyPeo = true this.modifyPeo = true
this.peoForm.orgType = 'dept' this.peoForm.orgType = 'dept'
this.submitOrgid = this.currentDepartmentId
this.userStaffId = row.staffId this.userStaffId = row.staffId
const url = '/gov/org/staff/editstaffinit' const url = '/gov/org/staff/editstaffinit'

Loading…
Cancel
Save