Commit e940a35e authored by 黄奎's avatar 黄奎

页面修改

parent ab29a157
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-tab-pane label="酒店" name="1"></el-tab-pane> <el-tab-pane label="酒店" name="1"></el-tab-pane>
<el-tab-pane label="餐食" name="2"></el-tab-pane> <el-tab-pane label="餐食" name="2"></el-tab-pane>
<el-tab-pane label="门票" name="3"></el-tab-pane> <el-tab-pane label="门票" name="3"></el-tab-pane>
<el-tab-pane label="" name="4"></el-tab-pane> <el-tab-pane label="线路" name="4"></el-tab-pane>
</el-tabs> </el-tabs>
<el-input size="mini" v-if="activeName!='4'" v-model="msg.Name" placeholder="根据名称搜索" :clearable="true" <el-input size="mini" v-if="activeName!='4'" v-model="msg.Name" placeholder="根据名称搜索" :clearable="true"
@clear="msg.pageIndex=1,getCommonSerch()" @keyup.enter.native="msg.pageIndex=1,getCommonSerch()"> @clear="msg.pageIndex=1,getCommonSerch()" @keyup.enter.native="msg.pageIndex=1,getCommonSerch()">
...@@ -110,12 +110,16 @@ ...@@ -110,12 +110,16 @@
<el-table-column type="selection" width="50px"> <el-table-column type="selection" width="50px">
</el-table-column> </el-table-column>
</template> </template>
<el-table-column label="Id" width="80px"> <el-table-column label="TCID" width="80px">
<template slot-scope="scope">{{ scope.row.Id }}</template> <template slot-scope="scope">{{ scope.row.TCID }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="StartCityName" label="出发城市"> <el-table-column prop="Title" label="名称">
</el-table-column> <template slot-scope="scope">
<el-table-column prop="ArriveCityName" label="到达城市"> <div flex="cross:center dir:left">
<img style="width:50px;height:50px;margin-right:10px;" :src="scope.row.CoverImg" />
<div>{{ scope.row.Title }}</div>
</div>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</template> </template>
...@@ -134,21 +138,19 @@ ...@@ -134,21 +138,19 @@
pageIndex: 1, pageIndex: 1,
pageSize: 15, pageSize: 15,
Name: '', Name: '',
GoodsStatus: 1, //上架中
IsGetSpec: 0
}, },
carMsg:{ travelMsg: {
pageIndex:1, pageIndex: 1,
pageSize:15, pageSize: 15,
ProductState:1 Title: "",
}, },
activeName: "1", activeName: "1",
total: 0, total: 0,
selectRow:[], selectRow: [],
selectRow1: [], selectRow1: [],
selectRow2:[], selectRow2: [],
selectRow3:[], selectRow3: [],
selectRow4:[] selectRow4: []
}; };
}, },
created() { created() {
...@@ -158,7 +160,7 @@ ...@@ -158,7 +160,7 @@
}, },
methods: { methods: {
handleClick() { handleClick() {
this.msg.Name=''; this.msg.Name = '';
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
if (this.activeName == '1') { if (this.activeName == '1') {
this.getHotelPage(); this.getHotelPage();
...@@ -166,11 +168,11 @@ ...@@ -166,11 +168,11 @@
if (this.activeName == '2') { if (this.activeName == '2') {
this.getDinnerPage(); this.getDinnerPage();
} }
if (this.activeName == '3'){ if (this.activeName == '3') {
this.getTicket(); this.getTicket();
} }
if (this.activeName == '4'){ if (this.activeName == '4') {
this.getCarsz(); this.getTravelPage();
} }
}, },
//搜索 //搜索
...@@ -181,11 +183,11 @@ ...@@ -181,11 +183,11 @@
if (this.activeName == '2') { if (this.activeName == '2') {
this.getDinnerPage(); this.getDinnerPage();
} }
if (this.activeName == '3'){ if (this.activeName == '3') {
this.getTicket(); this.getTicket();
} }
if (this.activeName == '4'){ if (this.activeName == '4') {
this.getCarsz(); this.getTravelPage();
} }
}, },
...@@ -209,13 +211,13 @@ ...@@ -209,13 +211,13 @@
handleSelectionChange(val) { handleSelectionChange(val) {
this.selectRow1 = JSON.parse(JSON.stringify(val)); this.selectRow1 = JSON.parse(JSON.stringify(val));
}, },
handleSelectionChange2(val){ handleSelectionChange2(val) {
this.selectRow2 = JSON.parse(JSON.stringify(val)); this.selectRow2 = JSON.parse(JSON.stringify(val));
}, },
handleSelectionChange3(val){ handleSelectionChange3(val) {
this.selectRow3 = JSON.parse(JSON.stringify(val)); this.selectRow3 = JSON.parse(JSON.stringify(val));
}, },
handleSelectionChange4(val){ handleSelectionChange4(val) {
this.selectRow4 = JSON.parse(JSON.stringify(val)); this.selectRow4 = JSON.parse(JSON.stringify(val));
}, },
//获取餐食分页 //获取餐食分页
...@@ -236,7 +238,7 @@ ...@@ -236,7 +238,7 @@
}) })
}, },
//获取门票分页 //获取门票分页
getTicket(){ getTicket() {
this.apipost("/api/AppletDining/GetTicketCouponsPage", this.msg, res => { this.apipost("/api/AppletDining/GetTicketCouponsPage", this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
...@@ -252,9 +254,9 @@ ...@@ -252,9 +254,9 @@
} }
}) })
}, },
//获取 列表 //获取团期 列表
getCarsz(){ getTravelPage() {
this.apipost("/api/carcustom/GetLineProductPageList", this.carMsg, res => { this.apipost("/api/Hotel/GetTravelPage", this.travelMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
var tempArray = res.data.data.pageData; var tempArray = res.data.data.pageData;
...@@ -281,8 +283,9 @@ ...@@ -281,8 +283,9 @@
}, },
//父组件调用方法 //父组件调用方法
getChoicedDijie() { getChoicedDijie() {
this.selectRow=[]; this.selectRow = [];
this.selectRow = this.selectRow.concat(this.selectRow1).concat(this.selectRow2).concat(this.selectRow3).concat(this.selectRow4) ; this.selectRow = this.selectRow.concat(this.selectRow1).concat(this.selectRow2).concat(this.selectRow3).concat(
this.selectRow4);
return this.selectRow; return this.selectRow;
}, },
//清空多选方法 //清空多选方法
......
...@@ -830,6 +830,15 @@ ...@@ -830,6 +830,15 @@
goodType: x.goodType goodType: x.goodType
}); });
} }
if (x.goodType == 4) {
myArray.push({
id: x.TCID,
name: x.Title,
picUrl: x.CoverImg,
price: x.B2BPrice,
goodType: x.goodType
});
}
}); });
} }
if (this.comIndex !== null) { if (this.comIndex !== null) {
......
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