提示消息月份

zhangtao
laozt 1 year ago
parent 6349510c00
commit 10776813ee

@ -152,7 +152,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;
// }
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("提交成功");

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

Loading…
Cancel
Save