Commit 69644989 authored by 黄奎's avatar 黄奎

页面修改

parent 0e51da16
...@@ -184,6 +184,14 @@ ...@@ -184,6 +184,14 @@
color: #e95252; color: #e95252;
} }
._add_info {
margin-top: 12px;
padding: 0 12px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style> </style>
<template> <template>
<div class="travelTeamInfo"> <div class="travelTeamInfo">
...@@ -477,7 +485,7 @@ ...@@ -477,7 +485,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-button @click="submit" type="primary"> <el-button @click="submit" type="primary" :loading="saveLoading">
保存 保存
</el-button> </el-button>
</el-col> </el-col>
...@@ -561,7 +569,7 @@ ...@@ -561,7 +569,7 @@
flightList: [], flightList: [],
}, },
addGoFlight: {}, addGoFlight: {},
list: [],
AirportNameList: [], AirportNameList: [],
BackAirportNameList: [], BackAirportNameList: [],
airlineList: [], airlineList: [],
...@@ -612,12 +620,15 @@ ...@@ -612,12 +620,15 @@
ID: 0, ID: 0,
AirLineID: "", AirLineID: "",
}, },
saveLoading: false, //保存loading
}; };
}, },
mounted() { created() {
this.customers = [] this.customers = []
this.initAirlines(); this.initAirlines();
this.getCustomerList(); this.getCustomerList();
},
mounted() {
if (this.Q_GTeamId) { if (this.Q_GTeamId) {
this.getDetail(this.Q_GTeamId); this.getDetail(this.Q_GTeamId);
} }
...@@ -682,9 +693,9 @@ ...@@ -682,9 +693,9 @@
item["disabled"] = false; item["disabled"] = false;
item.Address = item.Address.split(",").join(""); item.Address = item.Address.split(",").join("");
}); });
this.datainfo = res.data.data;
this.list = res.data.data.pages.pageData; this.friendList = res.data.data.pages.pageData;
this.total = res.data.data.pages.count;
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
...@@ -748,7 +759,7 @@ ...@@ -748,7 +759,7 @@
}); });
this.addGoFlight.FlightDate = ""; this.addGoFlight.FlightDate = "";
this.addGoFlight.FlightId = ""; this.addGoFlight.FlightId = "";
this.addGoFlight.AirLineID = 0; this.addGoFlight.AirLineID = "";
}, },
//添加回程 //添加回程
addFlightReturn() { addFlightReturn() {
...@@ -772,7 +783,7 @@ ...@@ -772,7 +783,7 @@
}); });
this.returnTripData.FlightDate = ""; this.returnTripData.FlightDate = "";
this.returnTripData.FlightId = ""; this.returnTripData.FlightId = "";
this.returnTripData.AirLineID = 0; this.returnTripData.AirLineID = "";
}, },
submit() { submit() {
//提交创建、修改表单 //提交创建、修改表单
...@@ -792,6 +803,7 @@ ...@@ -792,6 +803,7 @@
CustomerId: item.ID CustomerId: item.ID
}; };
}); });
this.saveLoading = true;
// if (!this.editForm.TravelTeamPartnerList.length) { // if (!this.editForm.TravelTeamPartnerList.length) {
// this.Warning("请选择合作伙伴"); // this.Warning("请选择合作伙伴");
// return; // return;
...@@ -819,15 +831,18 @@ ...@@ -819,15 +831,18 @@
"post_SetTeavelTeam", "post_SetTeavelTeam",
this.editForm, this.editForm,
(res) => { (res) => {
this.saveLoading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success("添加成功"); this.Success("添加成功");
//刷新页面 //关闭弹窗并刷新页面
this.$emit("success"); this.$emit("success");
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, },
(err) => {} (err) => {
this.saveLoading = false;
}
); );
}, },
//删除航班 //删除航班
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment