Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
1730532197@qq.com
2021-12-03 11:42:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
11d487973ca78fbefee792b0f4913fa3a03ef289
11d48797
1 parent
b72a3fce
lwj
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
12 deletions
src/utils/request.js
src/views/allocationConfig/flightRandConfig/index.vue
src/views/error/401.vue
src/utils/request.js
View file @
11d4879
...
...
@@ -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
})
...
...
src/views/allocationConfig/flightRandConfig/index.vue
View file @
11d4879
...
...
@@ -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");
},
...
...
src/views/error/401.vue
View file @
11d4879
...
...
@@ -6,7 +6,7 @@
<el-row>
<el-col :span="12">
<h1 class="text-jumbo text-ginormous">
40
1
错误!
40
3
错误!
</h1>
<h2>您没有访问权限!</h2>
<h6>对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面</h6>
...
...
Please
register
or
login
to post a comment