Commit e940a35e authored by 黄奎's avatar 黄奎

页面修改

parent ab29a157
......@@ -5,7 +5,7 @@
<el-tab-pane label="酒店" name="1"></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="4"></el-tab-pane>
<el-tab-pane label="线路" name="4"></el-tab-pane>
</el-tabs>
<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()">
......@@ -110,12 +110,16 @@
<el-table-column type="selection" width="50px">
</el-table-column>
</template>
<el-table-column label="Id" width="80px">
<template slot-scope="scope">{{ scope.row.Id }}</template>
<el-table-column label="TCID" width="80px">
<template slot-scope="scope">{{ scope.row.TCID }}</template>
</el-table-column>
<el-table-column prop="StartCityName" label="出发城市">
</el-table-column>
<el-table-column prop="ArriveCityName" label="到达城市">
<el-table-column prop="Title" label="名称">
<template slot-scope="scope">
<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>
</template>
......@@ -134,21 +138,19 @@
pageIndex: 1,
pageSize: 15,
Name: '',
GoodsStatus: 1, //上架中
IsGetSpec: 0
},
carMsg:{
pageIndex:1,
pageSize:15,
ProductState:1
travelMsg: {
pageIndex: 1,
pageSize: 15,
Title: "",
},
activeName: "1",
total: 0,
selectRow:[],
selectRow: [],
selectRow1: [],
selectRow2:[],
selectRow3:[],
selectRow4:[]
selectRow2: [],
selectRow3: [],
selectRow4: []
};
},
created() {
......@@ -158,7 +160,7 @@
},
methods: {
handleClick() {
this.msg.Name='';
this.msg.Name = '';
this.msg.pageIndex = 1;
if (this.activeName == '1') {
this.getHotelPage();
......@@ -166,11 +168,11 @@
if (this.activeName == '2') {
this.getDinnerPage();
}
if (this.activeName == '3'){
if (this.activeName == '3') {
this.getTicket();
}
if (this.activeName == '4'){
this.getCarsz();
if (this.activeName == '4') {
this.getTravelPage();
}
},
//搜索
......@@ -181,11 +183,11 @@
if (this.activeName == '2') {
this.getDinnerPage();
}
if (this.activeName == '3'){
if (this.activeName == '3') {
this.getTicket();
}
if (this.activeName == '4'){
this.getCarsz();
if (this.activeName == '4') {
this.getTravelPage();
}
},
......@@ -209,13 +211,13 @@
handleSelectionChange(val) {
this.selectRow1 = JSON.parse(JSON.stringify(val));
},
handleSelectionChange2(val){
handleSelectionChange2(val) {
this.selectRow2 = JSON.parse(JSON.stringify(val));
},
handleSelectionChange3(val){
handleSelectionChange3(val) {
this.selectRow3 = JSON.parse(JSON.stringify(val));
},
handleSelectionChange4(val){
handleSelectionChange4(val) {
this.selectRow4 = JSON.parse(JSON.stringify(val));
},
//获取餐食分页
......@@ -236,7 +238,7 @@
})
},
//获取门票分页
getTicket(){
getTicket() {
this.apipost("/api/AppletDining/GetTicketCouponsPage", this.msg, res => {
if (res.data.resultCode == 1) {
this.total = res.data.data.count;
......@@ -251,10 +253,10 @@
this.Error(res.data.message);
}
})
},
//获取 列表
getCarsz(){
this.apipost("/api/carcustom/GetLineProductPageList", this.carMsg, res => {
},
//获取团期 列表
getTravelPage() {
this.apipost("/api/Hotel/GetTravelPage", this.travelMsg, res => {
if (res.data.resultCode == 1) {
this.total = res.data.data.count;
var tempArray = res.data.data.pageData;
......@@ -281,8 +283,9 @@
},
//父组件调用方法
getChoicedDijie() {
this.selectRow=[];
this.selectRow = this.selectRow.concat(this.selectRow1).concat(this.selectRow2).concat(this.selectRow3).concat(this.selectRow4) ;
this.selectRow = [];
this.selectRow = this.selectRow.concat(this.selectRow1).concat(this.selectRow2).concat(this.selectRow3).concat(
this.selectRow4);
return this.selectRow;
},
//清空多选方法
......
......@@ -830,6 +830,15 @@
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) {
......
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