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
jinhui.wang
2022-02-24 17:25:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5f0626b383cde64fd6d6f35351c89b45eb97b82a
5f0626b3
1 parent
0c2997fa
错误提示修正
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
src/views/allocationConfig/flightAllocConfig/index.vue
src/views/allocationConfig/flightAllocConfig/index.vue
View file @
5f0626b
...
...
@@ -192,14 +192,16 @@ export default {
showCancelButton: true,
type: "warning",
})
.then(function () {
return delFlightId(id);
.then(()=> {
delFlightId(id)
.then((res) => {
this.$message({
message: res.msg,
type: res.code === 200 ? "success" : "warning",
});
})
.then(() => {
this.getList();
this.msgSuccess("删除成功");
.catch(() => {});
})
.catch(function () {});
}
},
//启用,停用
...
...
@@ -210,18 +212,17 @@ export default {
cancelButtonText: "取消",
type: "warning",
})
.then(function () {
return enableOrDisable(id, status);
})
.then((res) => {
if (res.code != 200){
.then(()=> {
enableOrDisable(id, status).then((res) => {
if (res.code != 200) {
this.msgError(res.msg);
}
else {
}
else {
this.getList();
this.msgSuccess(tip + "成功");
}
})
.catch(function () {});
.catch(()=> {});
})
},
},
created() {
...
...
Please
register
or
login
to post a comment