月份和=0

zhangtao
laozt 1 year ago
parent 2c2c023961
commit 6abe45c218

@ -13,8 +13,8 @@ ENV = 'development'
# 苏州市应急执法计划管理系统/开发环境
# VUE_APP_BASE_API = 'http://39.101.188.84:9033'
VUE_APP_BASE_API = 'http://localhost:9033'
# VUE_APP_BASE_API = 'http://180.108.205.123:13002'
# VUE_APP_BASE_API = 'http://localhost:9033'
VUE_APP_BASE_API = 'http://180.108.205.123:13002'
# 统一登录-内网
VUE_APP_SSO_LOGIN_N = 'http://2.46.4.197:8090/sso-server/oauth2/sso?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F&response_type=code'

@ -404,6 +404,7 @@ export default {
this.formPlanEnterprise.enterpriseName = row.enterpriseName;
this.formPlanEnterprise.district = row.district;
this.formPlanEnterprise.status = 0;
this.formPlanEnterprise.checkStatus = 0;
// console.log(row);
addEnterprise(this.formPlanEnterprise).then((response) => {
this.$modal.msgSuccess("加入成功");

@ -161,15 +161,19 @@ export default {
methods: {
onSubmit() {
let ids = [];
let isSubmit = true;
var isSubmit = true;
for (var i = 0; i < this.enterpriseList.length; i++) {
ids.push(this.enterpriseList[i].id);
if (this.enterpriseList[i].plannedMonth == "") {
if (
this.enterpriseList[i].plannedMonth == "" ||
this.enterpriseList[i].plannedMonth == null ||
!this.enterpriseList[i].plannedMonth
) {
this.$modal.msgError(`请填写月份后,提交数据!`);
isSubmit = false;
return;
}
ids.push(this.enterpriseList[i].id);
}
if (isSubmit) {

Loading…
Cancel
Save