Commit 12c0a74b authored by youjie's avatar youjie

no message

parent 5d36bc0f
......@@ -526,6 +526,9 @@
this.loading = false;
if (res.data.resultCode == 1) {
this.Success('下单成功');
this.$router.push({
path: "/SingleticketOrderList",
});
} else {
this.Error('下单失败')
}
......
......@@ -162,7 +162,7 @@
<button class="hollowFixedBtn" type="button"
@click="getList()">{{$t('pub.searchBtn')}}</button>
<el-tooltip class="item" effect="dark" :content="$t('fnc.qhpaiban')" placement="top-end">
<i v-if="ViewType==1" class="iconfont icon-biaoge" @click="ViewType=2,msg.pageSize=18,getList()"></i>
<i v-if="ViewType==1" class="iconfont icon-biaoge" @click="ViewType=2,getList()"></i>
<i v-if="ViewType==2" class="iconfont icon-icon-ssan" @click="ViewType=1,msg.pageSize=10,getList()"></i>
</el-tooltip>
<!-- <button class="normalBtn" type="button"
......@@ -209,7 +209,7 @@
<div v-else class="listtwo-card">
<el-row :gutter="30" class="card-form">
<template v-for="(x,index) in tableData">
<el-col :span="5" class="listtwo-col">
<el-col :xl="6" :lg="6" :md="8" :sm="12" :xs="24" class="listtwo-col">
<div class="listtwo-form">
<div>
<el-image v-if="x.PicPathList" class="listtwo-img" :src="x.PicPathList[0]">
......@@ -264,20 +264,20 @@
total: 0,
msg: {
pageIndex: 1,
pageSize: 18,
pageSize: 16,
QCountry: '651',
QProvince: 0,
QCity: 0,
QDistrict: 0,
Name:'',
OpenTime: this.getBeforeDate(-1,new Date().Format("yyyy-MM-dd")),
OpenTime: this.getBeforeDate(0,new Date().Format("yyyy-MM-dd")),
StartPrice: '',
EndPrice: '',
},
ViewType:2,
beforeCheck: {
disabledDate: time => {
let endTime = new Date(this.getBeforeDate(-1,new Date().Format("yyyy-MM-dd")));
let endTime = new Date(this.getBeforeDate(0,new Date().Format("yyyy-MM-dd")));
return time && endTime.getTime() >= time.getTime();
}
},
......@@ -285,6 +285,30 @@
showDetails: false,
};
},
watch: {
document: {
handler: function (val, oldVal) {
var clientWidth = document.body.clientWidth;
var w = clientWidth;
//设置table的屏幕宽度
this.tableWidth = w;
if(this.ViewType==1) return
if(this.tableWidth>=1920){
this.msg.pageSize = 16
}else if(this.tableWidth>=1200){
this.msg.pageSize = 16
}else if(this.tableWidth>=992){
this.msg.pageSize = 12
}else if(this.tableWidth>=768){
this.msg.pageSize = 12
}else if(this.tableWidth<768){
this.msg.pageSize = 10
}
this.getList()
},
deep: true
},
},
methods: {
toPreviewOrderHandler(id){
this.$router.push({
......@@ -367,7 +391,7 @@
var clientWidth = document.body.clientWidth;
var w = clientWidth;
//设置table的行高
//设置table的屏幕宽度
this.tableWidth = w;
},
......
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