From 155b31ab35fcf0de95e67adcc478a3b773b9e760 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 18 Oct 2022 17:40:28 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modules/yantai/certify.vue | 349 +++++++++++++++ .../src/views/modules/yantai/editForm.vue | 414 ++++++++++++++++++ 2 files changed, 763 insertions(+) create mode 100644 epmet-oper-web/src/views/modules/yantai/certify.vue create mode 100644 epmet-oper-web/src/views/modules/yantai/editForm.vue diff --git a/epmet-oper-web/src/views/modules/yantai/certify.vue b/epmet-oper-web/src/views/modules/yantai/certify.vue new file mode 100644 index 0000000..5bb756d --- /dev/null +++ b/epmet-oper-web/src/views/modules/yantai/certify.vue @@ -0,0 +1,349 @@ + + + + + \ No newline at end of file diff --git a/epmet-oper-web/src/views/modules/yantai/editForm.vue b/epmet-oper-web/src/views/modules/yantai/editForm.vue new file mode 100644 index 0000000..f306c3e --- /dev/null +++ b/epmet-oper-web/src/views/modules/yantai/editForm.vue @@ -0,0 +1,414 @@ + + + + + \ No newline at end of file From d67c4733ba43f8431fe04708ac68156cf34e5433 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 19 Oct 2022 09:45:40 +0800 Subject: [PATCH 02/10] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epmet-oper-web/.vscode/settings.json | 2 +- .../src/views/modules/yantai/certify.vue | 21 +- .../src/views/modules/yantai/detailForm.vue | 206 ++++++++++++++++++ .../src/views/modules/yantai/editForm.vue | 70 +++--- 4 files changed, 251 insertions(+), 48 deletions(-) create mode 100644 epmet-oper-web/src/views/modules/yantai/detailForm.vue diff --git a/epmet-oper-web/.vscode/settings.json b/epmet-oper-web/.vscode/settings.json index f14aa03..2eab4ad 100644 --- a/epmet-oper-web/.vscode/settings.json +++ b/epmet-oper-web/.vscode/settings.json @@ -1,6 +1,6 @@ { "workbench.colorTheme": "One Monokai", - "window.zoomLevel": 2, + "window.zoomLevel": 1, "terminal.integrated.fontWeightBold": "normal", "workbench.iconTheme": "material-icon-theme", // vscode默认启用了根据文件类型自动设置tabsize的选项 diff --git a/epmet-oper-web/src/views/modules/yantai/certify.vue b/epmet-oper-web/src/views/modules/yantai/certify.vue index 5bb756d..4c2dbbb 100644 --- a/epmet-oper-web/src/views/modules/yantai/certify.vue +++ b/epmet-oper-web/src/views/modules/yantai/certify.vue @@ -152,12 +152,21 @@ @dialogOk="dialogOk" @dialogCancle="dialogCancle"> + + + + + \ No newline at end of file diff --git a/epmet-oper-web/src/views/modules/yantai/editForm.vue b/epmet-oper-web/src/views/modules/yantai/editForm.vue index f306c3e..d9a4ac5 100644 --- a/epmet-oper-web/src/views/modules/yantai/editForm.vue +++ b/epmet-oper-web/src/views/modules/yantai/editForm.vue @@ -21,18 +21,6 @@ {{'男'}} {{'女'}} - - - - - - {{peoForm.orgName||'--'}} + + + + + + + Date: Wed, 19 Oct 2022 13:40:59 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modules/yantai/certify.vue | 3 ++- .../src/views/modules/yantai/detailForm.vue | 4 +-- .../src/views/modules/yantai/editForm.vue | 25 ++++++++++++++++--- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/epmet-oper-web/src/views/modules/yantai/certify.vue b/epmet-oper-web/src/views/modules/yantai/certify.vue index 4c2dbbb..d9f570c 100644 --- a/epmet-oper-web/src/views/modules/yantai/certify.vue +++ b/epmet-oper-web/src/views/modules/yantai/certify.vue @@ -153,7 +153,7 @@ @dialogCancle="dialogCancle"> @@ -305,6 +305,7 @@ export default { this.showDetail = false }, dialogOk () { + debugger this.showEdit = false this.loadTable() }, diff --git a/epmet-oper-web/src/views/modules/yantai/detailForm.vue b/epmet-oper-web/src/views/modules/yantai/detailForm.vue index 9df5f82..48fed25 100644 --- a/epmet-oper-web/src/views/modules/yantai/detailForm.vue +++ b/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 = '--' } diff --git a/epmet-oper-web/src/views/modules/yantai/editForm.vue b/epmet-oper-web/src/views/modules/yantai/editForm.vue index d9a4ac5..0b72483 100644 --- a/epmet-oper-web/src/views/modules/yantai/editForm.vue +++ b/epmet-oper-web/src/views/modules/yantai/editForm.vue @@ -32,7 +32,7 @@ :props="optionProps" @change="handleChangeAgency" clearable> - {{peoForm.orgName||'--'}} + {{peoForm.agencyName||'--'}} @@ -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) { From aa4ed78fb59dd5fa8c9962effa7b50da513b38ab Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 19 Oct 2022 13:46:21 +0800 Subject: [PATCH 04/10] 11 --- epmet-oper-web/src/views/modules/yantai/certify.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/epmet-oper-web/src/views/modules/yantai/certify.vue b/epmet-oper-web/src/views/modules/yantai/certify.vue index d9f570c..5b81d8a 100644 --- a/epmet-oper-web/src/views/modules/yantai/certify.vue +++ b/epmet-oper-web/src/views/modules/yantai/certify.vue @@ -266,8 +266,10 @@ export default { }, handleChange (value) { - console.log(value) - this.formData.orgId = value[0] + + let selAgency = this.$refs["myCascader"].getCheckedNodes()[0].data + console.log(selAgency) + this.formData.orgId = selAgency.value }, async loadTable () { From 7449f5f5ac058b239fb77bbb10c2ed926cd1c514 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 19 Oct 2022 14:55:08 +0800 Subject: [PATCH 05/10] 11 --- epmet-oper-web/src/views/modules/yantai/detailForm.vue | 2 +- epmet-oper-web/src/views/modules/yantai/editForm.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-oper-web/src/views/modules/yantai/detailForm.vue b/epmet-oper-web/src/views/modules/yantai/detailForm.vue index 48fed25..d7f1a06 100644 --- a/epmet-oper-web/src/views/modules/yantai/detailForm.vue +++ b/epmet-oper-web/src/views/modules/yantai/detailForm.vue @@ -35,7 +35,7 @@ - {{peoForm.activeTime||'--'}} + {{peoForm.activeTime||'未激活'}} diff --git a/epmet-oper-web/src/views/modules/yantai/editForm.vue b/epmet-oper-web/src/views/modules/yantai/editForm.vue index 0b72483..9715c98 100644 --- a/epmet-oper-web/src/views/modules/yantai/editForm.vue +++ b/epmet-oper-web/src/views/modules/yantai/editForm.vue @@ -269,7 +269,7 @@ export default { let existedDutyArr = []; data.roleList.forEach(function (sysDuty) { if (sysDuty.selected === true) { - this.peoForm.roles.push(sysDuty.roleId) + existedDutyArr.push(sysDuty.roleId); } }); From 79aaeb469b8f28eb8267a8f576bb05acd1574ca1 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 19 Oct 2022 15:40:38 +0800 Subject: [PATCH 06/10] 11 --- .../src/views/modules/yantai/certify.vue | 16 +++++++++------ .../src/views/modules/yantai/editForm.vue | 20 ++++++++++++------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/epmet-oper-web/src/views/modules/yantai/certify.vue b/epmet-oper-web/src/views/modules/yantai/certify.vue index 5b81d8a..d69d27f 100644 --- a/epmet-oper-web/src/views/modules/yantai/certify.vue +++ b/epmet-oper-web/src/views/modules/yantai/certify.vue @@ -122,9 +122,14 @@ align="center" width="200">