Showing
3 changed files
with
16 additions
and
5 deletions
| ... | @@ -76,7 +76,7 @@ service.interceptors.response.use(res => { | ... | @@ -76,7 +76,7 @@ service.interceptors.response.use(res => { |
| 76 | type: 'error' | 76 | type: 'error' |
| 77 | }) | 77 | }) |
| 78 | return Promise.reject(new Error(msg)) | 78 | return Promise.reject(new Error(msg)) |
| 79 | - } else if (code !== 200) { | 79 | + } else if (code !== 200 &&code!=400) { |
| 80 | Notification.error({ | 80 | Notification.error({ |
| 81 | title: msg | 81 | title: msg |
| 82 | }) | 82 | }) | ... | ... |
| ... | @@ -214,15 +214,20 @@ | ... | @@ -214,15 +214,20 @@ |
| 214 | this.queryParams.start = 0; | 214 | this.queryParams.start = 0; |
| 215 | } | 215 | } |
| 216 | findSourceFlightRulesApi(this.queryParams).then(response => { | 216 | findSourceFlightRulesApi(this.queryParams).then(response => { |
| 217 | + if(response.code==200){ | ||
| 217 | this.sourceFlightRulesList = response.data.list; | 218 | this.sourceFlightRulesList = response.data.list; |
| 218 | this.total = response.data.totalCount; | 219 | this.total = response.data.totalCount; |
| 219 | this.loading = false; | 220 | this.loading = false; |
| 221 | + }else{ | ||
| 222 | + this.msgError(response.msg); | ||
| 223 | + } | ||
| 224 | + | ||
| 220 | }); | 225 | }); |
| 221 | 226 | ||
| 222 | }, | 227 | }, |
| 223 | /** 新增按钮操作 */ | 228 | /** 新增按钮操作 */ |
| 224 | handleAdd() { | 229 | handleAdd() { |
| 225 | - this.form={ dayOfWeek: []}; | 230 | + this.form={ }; |
| 226 | this.open = true; | 231 | this.open = true; |
| 227 | this.title = "添加原航班顺位规则"; | 232 | this.title = "添加原航班顺位规则"; |
| 228 | this.form.id = -1; | 233 | this.form.id = -1; |
| ... | @@ -231,7 +236,8 @@ | ... | @@ -231,7 +236,8 @@ |
| 231 | }, | 236 | }, |
| 232 | /** 修改按钮操作 */ | 237 | /** 修改按钮操作 */ |
| 233 | handleUpdate(row) { | 238 | handleUpdate(row) { |
| 234 | - this.form={ dayOfWeek: []}; | 239 | + |
| 240 | + this.form={ }; | ||
| 235 | this.dayOfWeek=[]; | 241 | this.dayOfWeek=[]; |
| 236 | this.open = true; | 242 | this.open = true; |
| 237 | this.title = "修改原航班顺位规则"; | 243 | this.title = "修改原航班顺位规则"; |
| ... | @@ -255,9 +261,14 @@ | ... | @@ -255,9 +261,14 @@ |
| 255 | }; | 261 | }; |
| 256 | 262 | ||
| 257 | return delOrEnableORDisableApi(disable); | 263 | return delOrEnableORDisableApi(disable); |
| 258 | - }).then(() => { | 264 | + }).then(response => { |
| 265 | + if(response.code==200){ | ||
| 259 | this.findSourceFlightRules(); | 266 | this.findSourceFlightRules(); |
| 260 | this.msgSuccess(statusText+"成功"); | 267 | this.msgSuccess(statusText+"成功"); |
| 268 | + }else{ | ||
| 269 | + this.msgError(response.msg); | ||
| 270 | + } | ||
| 271 | + | ||
| 261 | }).catch(function() {}); | 272 | }).catch(function() {}); |
| 262 | }, | 273 | }, |
| 263 | /** 提交按钮 */ | 274 | /** 提交按钮 */ | ... | ... |
| ... | @@ -6,7 +6,7 @@ | ... | @@ -6,7 +6,7 @@ |
| 6 | <el-row> | 6 | <el-row> |
| 7 | <el-col :span="12"> | 7 | <el-col :span="12"> |
| 8 | <h1 class="text-jumbo text-ginormous"> | 8 | <h1 class="text-jumbo text-ginormous"> |
| 9 | - 401错误! | 9 | + 403错误! |
| 10 | </h1> | 10 | </h1> |
| 11 | <h2>您没有访问权限!</h2> | 11 | <h2>您没有访问权限!</h2> |
| 12 | <h6>对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面</h6> | 12 | <h6>对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面</h6> | ... | ... |
-
Please register or login to post a comment