Browse Source

统一认证

master
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> @dialogCancle="dialogCancle"></edit-form>
</el-dialog> </el-dialog>
<el-dialog v-if="showDetail" <el-dialog v-if="showDetail"
title="修改" title="详情"
:visible.sync="showDetail" :visible.sync="showDetail"
width="850" width="850"
:before-close="dialogCancle"> :before-close="dialogCancle">
@ -305,6 +305,7 @@ export default {
this.showDetail = false this.showDetail = false
}, },
dialogOk () { dialogOk () {
debugger
this.showEdit = false this.showEdit = false
this.loadTable() 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) { if (this.peoForm.roles && this.peoForm.roles.length > 0) {
this.peoForm.rolesShow = this.peoForm.roles.join(',') this.peoForm.rolesShow = this.peoForm.roles.join('')
} else { } else {
this.peoForm.rolesShow = '--' this.peoForm.rolesShow = '--'
} }
if (this.peoForm.szsqRoles && this.peoForm.szsqRoles.length > 0) { if (this.peoForm.szsqRoles && this.peoForm.szsqRoles.length > 0) {
this.peoForm.szsqRolesShow = this.peoForm.szsqRoles.join(',') this.peoForm.szsqRolesShow = this.peoForm.szsqRoles.join('')
} else { } else {
this.peoForm.szsqRolesShow = '--' this.peoForm.szsqRolesShow = '--'
} }

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

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

Loading…
Cancel
Save