From 10776813ee4a34f23dc8c413df1e2357c0a957e7 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Sat, 23 Dec 2023 11:27:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=B6=88=E6=81=AF=E6=9C=88?= =?UTF-8?q?=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/AddDialog/tab3.vue | 16 +++++++++------- src/views/yingji/planManage.vue | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/views/components/AddDialog/tab3.vue b/src/views/components/AddDialog/tab3.vue index 77d5cb3..33110bc 100644 --- a/src/views/components/AddDialog/tab3.vue +++ b/src/views/components/AddDialog/tab3.vue @@ -151,8 +151,8 @@ export default { // 查询条件 let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); // if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") { - this.queryParams.district = userInfo.permissionCode; - this.queryParams.lawHierarchy = userInfo.userName; + this.queryParams.district = userInfo.permissionCode; + this.queryParams.lawHierarchy = userInfo.nickName; // } this.getList(); }); @@ -161,14 +161,16 @@ export default { onSubmit() { let ids = []; let isSubmit = true; - this.enterpriseList.map((item) => { - ids.push(item.id); - console.log(item.id, item.plannedMonth); - if (item.plannedMonth == "") { + + for (var i = 0; i < this.enterpriseList.length; i++) { + ids.push(this.enterpriseList[i].id); + if (this.enterpriseList[i].plannedMonth == "") { this.$modal.msgError(`请填写月份后,提交数据!`); isSubmit = false; + return; } - }); + } + if (isSubmit) { updateIdList(ids.join(",")).then((response) => { this.$modal.msgSuccess("提交成功"); diff --git a/src/views/yingji/planManage.vue b/src/views/yingji/planManage.vue index 85aace2..73bdbd4 100644 --- a/src/views/yingji/planManage.vue +++ b/src/views/yingji/planManage.vue @@ -475,7 +475,7 @@ export default { let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") { this.queryParams.district = userInfo.permissionCode; - this.queryParams.lawHierarchy = userInfo.userName; + this.queryParams.lawHierarchy = userInfo.nickName; } if (userInfo.lawLevel == "镇级") {