提示消息月份

zhangtao
laozt 1 year ago
parent 6349510c00
commit 10776813ee

@ -151,8 +151,8 @@ export default {
// //
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
// if (userInfo.lawLevel == "" || userInfo.lawLevel == "") { // if (userInfo.lawLevel == "" || userInfo.lawLevel == "") {
this.queryParams.district = userInfo.permissionCode; this.queryParams.district = userInfo.permissionCode;
this.queryParams.lawHierarchy = userInfo.userName; this.queryParams.lawHierarchy = userInfo.nickName;
// } // }
this.getList(); this.getList();
}); });
@ -161,14 +161,16 @@ export default {
onSubmit() { onSubmit() {
let ids = []; let ids = [];
let isSubmit = true; let isSubmit = true;
this.enterpriseList.map((item) => {
ids.push(item.id); for (var i = 0; i < this.enterpriseList.length; i++) {
console.log(item.id, item.plannedMonth); ids.push(this.enterpriseList[i].id);
if (item.plannedMonth == "") { if (this.enterpriseList[i].plannedMonth == "") {
this.$modal.msgError(`请填写月份后,提交数据!`); this.$modal.msgError(`请填写月份后,提交数据!`);
isSubmit = false; isSubmit = false;
return;
} }
}); }
if (isSubmit) { if (isSubmit) {
updateIdList(ids.join(",")).then((response) => { updateIdList(ids.join(",")).then((response) => {
this.$modal.msgSuccess("提交成功"); this.$modal.msgSuccess("提交成功");

@ -475,7 +475,7 @@ export default {
let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO")); let userInfo = JSON.parse(sessionStorage.getItem("USER_INFO"));
if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") { if (userInfo.lawLevel == "县级" || userInfo.lawLevel == "镇级") {
this.queryParams.district = userInfo.permissionCode; this.queryParams.district = userInfo.permissionCode;
this.queryParams.lawHierarchy = userInfo.userName; this.queryParams.lawHierarchy = userInfo.nickName;
} }
if (userInfo.lawLevel == "镇级") { if (userInfo.lawLevel == "镇级") {

Loading…
Cancel
Save