1730532197@qq.com

lwj

......@@ -76,7 +76,7 @@ service.interceptors.response.use(res => {
type: 'error'
})
return Promise.reject(new Error(msg))
} else if (code !== 200) {
} else if (code !== 200 &&code!=400) {
Notification.error({
title: msg
})
......
......@@ -214,15 +214,20 @@
this.queryParams.start = 0;
}
findSourceFlightRulesApi(this.queryParams).then(response => {
this.sourceFlightRulesList = response.data.list;
this.total = response.data.totalCount;
this.loading = false;
if(response.code==200){
this.sourceFlightRulesList = response.data.list;
this.total = response.data.totalCount;
this.loading = false;
}else{
this.msgError(response.msg);
}
});
},
/** 新增按钮操作 */
handleAdd() {
this.form={ dayOfWeek: []};
this.form={ };
this.open = true;
this.title = "添加原航班顺位规则";
this.form.id = -1;
......@@ -231,7 +236,8 @@
},
/** 修改按钮操作 */
handleUpdate(row) {
this.form={ dayOfWeek: []};
this.form={ };
this.dayOfWeek=[];
this.open = true;
this.title = "修改原航班顺位规则";
......@@ -255,9 +261,14 @@
};
return delOrEnableORDisableApi(disable);
}).then(() => {
this.findSourceFlightRules();
this.msgSuccess(statusText+"成功");
}).then(response => {
if(response.code==200){
this.findSourceFlightRules();
this.msgSuccess(statusText+"成功");
}else{
this.msgError(response.msg);
}
}).catch(function() {});
},
/** 提交按钮 */
......@@ -282,9 +293,9 @@
// 表单重置
reset() {
this.form = {
dayOfWeek: []
};
this.resetForm("form");
},
......
......@@ -6,7 +6,7 @@
<el-row>
<el-col :span="12">
<h1 class="text-jumbo text-ginormous">
401错误!
403错误!
</h1>
<h2>您没有访问权限!</h2>
<h6>对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面</h6>
......