Browse Source

Merge branch 'bug_mk' into feature

xiaowang-featrue
mk 10 months ago
parent
commit
11ab3fd4c4
  1. 25
      src/views/modules/base/organization/organization.vue
  2. 2
      src/views/modules/shequzhili/eventHandling/index.vue

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

@ -512,7 +512,7 @@
</el-dialog> </el-dialog>
</div> </div>
<div v-if="dialogVisiblePeoAgency"> <div v-if="dialogVisiblePeoAgency">
<el-dialog title="新增人员ccccc" <el-dialog title="新增人员"
:visible.sync="dialogVisiblePeoAgency" :visible.sync="dialogVisiblePeoAgency"
width="850" width="850"
> >
@ -1344,7 +1344,8 @@ export default {
}, },
orgDeptOptionProps: { orgDeptOptionProps: {
multiple: false, multiple: true,
emitPath:true,
value: 'agencyId', value: 'agencyId',
label: 'agencyName', label: 'agencyName',
children: 'subAgencyList', children: 'subAgencyList',
@ -2143,9 +2144,9 @@ export default {
this.peoForm.gender = data.gender; this.peoForm.gender = data.gender;
this.peoForm.post = data.workType; this.peoForm.post = data.workType;
this.peoForm.idCard = data.idCard; this.peoForm.idCard = data.idCard;
this.peoForm.manageOrgIds = data.manageOrgIds?data.manageOrgIds.split(','):[]; this.peoForm.manageOrgIds = data.manageOrgIdStr?data.manageOrgIdStr.split(','):[];
this.peoForm.orgLevels = data.orgLevels; this.peoForm.orgLevels = data.orgLevels;
this.manageOrgIds = data.manageOrgIds; this.manageOrgIds = data.manageOrgIdStr;
// //
let existedRoleArr = []; let existedRoleArr = [];
data.newRoleList.forEach(function (sysRole) { data.newRoleList.forEach(function (sysRole) {
@ -2180,9 +2181,9 @@ export default {
this.peoForm.gender = data.gender; this.peoForm.gender = data.gender;
this.peoForm.idCard = data.idCard; this.peoForm.idCard = data.idCard;
this.peoForm.agencyName=data.agencyName; this.peoForm.agencyName=data.agencyName;
this.peoForm.manageOrgIds = data.manageOrgIds?data.manageOrgIds.split(','):[]; this.peoForm.manageOrgIds = data.manageOrgIdStr?data.manageOrgIdStr.split(','):[];
this.peoForm.orgLevels = data.orgLevels; this.peoForm.orgLevels = data.orgLevels;
this.manageOrgIds = data.manageOrgIds; this.manageOrgIds = data.manageOrgIdStr;
// //
let existedRoleArr = []; let existedRoleArr = [];
data.newRoleList.forEach(function (sysRole) { data.newRoleList.forEach(function (sysRole) {
@ -2193,6 +2194,8 @@ export default {
this.peoForm.newRoles = existedRoleArr; this.peoForm.newRoles = existedRoleArr;
var paths = this.findParentPath(this.orgOptions[0], data.manageScopes); var paths = this.findParentPath(this.orgOptions[0], data.manageScopes);
this.peoForm.manageScopes = paths; this.peoForm.manageScopes = paths;
var paths1 = this.findParentPath(this.orgDeptOptions[0],this.peoForm.manageOrgIds);
this.peoForm.manageOrgIds = paths1;
} else { } else {
this.$message.error(msg); this.$message.error(msg);
} }
@ -2245,9 +2248,9 @@ export default {
this.peoForm.gender = data.gender; this.peoForm.gender = data.gender;
this.peoForm.post = data.workType; this.peoForm.post = data.workType;
this.peoForm.idCard = data.idCard; this.peoForm.idCard = data.idCard;
this.peoForm.manageOrgIds = data.manageOrgIds?data.manageOrgIds.split(','):[]; this.peoForm.manageOrgIds = data.manageOrgIdStr?data.manageOrgIdStr.split(','):[];
this.peoForm.orgLevels = data.orgLevels; this.peoForm.orgLevels = data.orgLevels;
this.manageOrgIds = data.manageOrgIds; this.manageOrgIds = data.manageOrgIdStr;
// //
let existedRoleArr = []; let existedRoleArr = [];
data.newRoleList.forEach(function (sysRole) { data.newRoleList.forEach(function (sysRole) {
@ -3019,9 +3022,11 @@ export default {
handleChangeAgency(val) { handleChangeAgency(val) {
this.$nextTick(() => { this.$nextTick(() => {
let obj = this.$refs["agencyIdArray"].getCheckedNodes() let obj = this.$refs["agencyIdArray"].getCheckedNodes()
let orgIdList = obj.map(item=>item.value)
let orgLevelList = obj.map(item=>item.data.level)
if (obj) { if (obj) {
this.peoForm.orgLevels =obj[0].pathNodes.map(item=>item.data.level).join(',') this.peoForm.orgLevels = orgLevelList.join(',')
this.manageOrgIds =obj[0].pathNodes.map(item=>item.data.agencyId).join(',') this.manageOrgIds = orgIdList.join(',')
} else { } else {
this.manageOrgIds = '' this.manageOrgIds = ''
this.peoForm.orgLevels = '' this.peoForm.orgLevels = ''

2
src/views/modules/shequzhili/eventHandling/index.vue

@ -646,7 +646,7 @@ export default {
} }
}, },
async getTableData() { async getTableData() {
const url = "/governance/icEvent/list"; const url = "/governance/icEvent/manageList";
if (this.eventTypeCheck) { if (this.eventTypeCheck) {
this.formData.secondIdList = this.eventTypeCheck this.formData.secondIdList = this.eventTypeCheck
} }

Loading…
Cancel
Save