1730532197@qq.com

lwj

......@@ -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) {
......