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 == "镇级") {