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-02 18:17:08 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2f0da426194dacddfb036f75a89164c8946a24ca
2f0da426
1 parent
9ca00f02
lwj
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
24 deletions
src/views/allocationConfig/flightRandConfig/index.vue
src/views/allocationConfig/flightRandConfig/index.vue
View file @
2f0da42
...
...
@@ -136,6 +136,7 @@
import {
findSourceFlightRulesApi,
sourceFlightRulesSaveApi,
delOrEnableORDisableApi,
findSourceFlightAndFlightDateApi
} from "@/api/sourceFlightRules";
export default {
...
...
@@ -221,7 +222,7 @@
},
/** 新增按钮操作 */
handleAdd() {
this.
reset()
;
this.
form={ dayOfWeek: []}
;
this.open = true;
this.title = "添加原航班顺位规则";
this.form.id = -1;
...
...
@@ -230,7 +231,8 @@
},
/** 修改按钮操作 */
handleUpdate(row) {
//this.reset();
this.form={ dayOfWeek: []};
this.dayOfWeek=[];
this.open = true;
this.title = "修改原航班顺位规则";
this.form =row;
...
...
@@ -240,18 +242,21 @@
},
/** 删除 启用 停用按钮操作 */
handleDeleteorPlayorpause(rowid,status,statusText) {
this.$confirm('是否确认' + statusText + '此数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
let disable={
id:row
.
id,
status:
0
id:rowid,
status:
status
};
return delOrEnableORDisableApi(ids);
return delOrEnableORDisableApi(disable);
}).then(() => {
this.
getList
();
this.
findSourceFlightRules
();
this.msgSuccess(statusText+"成功");
}).catch(function() {});
},
...
...
@@ -277,23 +282,9 @@
// 表单重置
reset() {
this.form = {
id: undefined,
createTime: undefined,
createUserId: undefined,
createUserName: undefined,
updateTime: undefined,
updateUserId: undefined,
updateUserName: undefined,
startDate: undefined,
endDate: undefined,
flightRank: undefined,
sourceFlightNo: undefined,
status: undefined,
whetherHistory: undefined,
historyId: undefined,
dayOfWeek: [],
type: undefined,
priority: undefined
dayOfWeek: []
};
this.resetForm("form");
},
...
...
@@ -327,7 +318,7 @@
// 取消按钮
cancel() {
this.open = false;
this.reset();
//
this.reset();
},
// 状态字典翻译
statusFormat(row) {
...
...
Please
register
or
login
to post a comment