Browse Source

统一认证

preview
jiangyy 3 years ago
parent
commit
af6fd8b76b
  1. 3
      epmet-oper-web/src/views/modules/yantai/certify.vue
  2. 4
      epmet-oper-web/src/views/modules/yantai/detailForm.vue
  3. 25
      epmet-oper-web/src/views/modules/yantai/editForm.vue

3
epmet-oper-web/src/views/modules/yantai/certify.vue

@ -153,7 +153,7 @@
@dialogCancle="dialogCancle"></edit-form>
</el-dialog>
<el-dialog v-if="showDetail"
title="修改"
title="详情"
:visible.sync="showDetail"
width="850"
:before-close="dialogCancle">
@ -305,6 +305,7 @@ export default {
this.showDetail = false
},
dialogOk () {
debugger
this.showEdit = false
this.loadTable()
},

4
epmet-oper-web/src/views/modules/yantai/detailForm.vue

@ -135,12 +135,12 @@ export default {
}
if (this.peoForm.roles && this.peoForm.roles.length > 0) {
this.peoForm.rolesShow = this.peoForm.roles.join(',')
this.peoForm.rolesShow = this.peoForm.roles.join('')
} else {
this.peoForm.rolesShow = '--'
}
if (this.peoForm.szsqRoles && this.peoForm.szsqRoles.length > 0) {
this.peoForm.szsqRolesShow = this.peoForm.szsqRoles.join(',')
this.peoForm.szsqRolesShow = this.peoForm.szsqRoles.join('')
} else {
this.peoForm.szsqRolesShow = '--'
}

25
epmet-oper-web/src/views/modules/yantai/editForm.vue

@ -32,7 +32,7 @@
:props="optionProps"
@change="handleChangeAgency"
clearable></el-cascader>
<span v-if="formType==='edit'">{{peoForm.orgName||'--'}}</span>
<span v-if="formType==='edit'">{{peoForm.agencyName||'--'}}</span>
</el-form-item>
<el-form-item label="专兼职"
prop="workType">
@ -189,6 +189,14 @@ export default {
//
async submitPeoDo () {
if (this.peoForm.roles.length === 0) {
this.$message.error("请选择职责");
return false
}
if (this.peoForm.newRoles.length === 0) {
this.$message.error("请选择角色");
return false
}
const url = "/gov/org/staff/addstaffv2";
// console.log('this.peoForm', this.peoForm)
// return false
@ -207,6 +215,15 @@ export default {
//
async updatePeoDo () {
if (this.peoForm.roles.length === 0) {
this.$message.error("请选择职责");
return false
}
if (this.peoForm.newRoles.length === 0) {
this.$message.error("请选择角色");
return false
}
const url = "/gov/org/staff/editstaff";
let params = {
@ -224,7 +241,7 @@ export default {
if (code === 0) {
this.$message.success("操作成功");
this.dialogOk()
} else {
this.$message.error(msg);
@ -249,14 +266,14 @@ export default {
this.peoForm = { ...data };
//
this.peoForm.roles = [];
let existedDutyArr = [];
data.roleList.forEach(function (sysDuty) {
if (sysDuty.selected === true) {
this.peoForm.roles.push(sysDuty.roleId)
existedDutyArr.push(sysDuty.roleId);
}
});
// this.peoForm.roles = [...existedDutyArr];
this.peoForm.roles = existedDutyArr;
//
let existedRoleArr = [];
data.newRoleList.forEach(function (sysRole) {

Loading…
Cancel
Save