Commit ab534e82 authored by zhengke's avatar zhengke

增加月份筛选

parent 0d60e2bc
...@@ -22,17 +22,12 @@ ...@@ -22,17 +22,12 @@
</li> </li>
<li> <li>
<span> <span>
<em>发团日期</em> <em>月份</em>
<el-date-picker class="w135" v-model="msg.StartDate" type="date" value-format="yyyy-MM-dd" <el-date-picker v-model='msg.QMonth' value-format="yyyy-MM" type="month"></el-date-picker>
:placeholder="$t('admin.admin_choDate')">
</el-date-picker>
<span class="_ln">-</span>
<el-date-picker class="w135" v-model="msg.endDate" type="date" value-format="yyyy-MM-dd"
:placeholder="$t('admin.admin_choDate')"></el-date-picker>
</span> </span>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" @click="resetPageIndex();getList()" <input type="button" class="hollowFixedBtn" @click="getList()"
:value="$t('pub.searchBtn')" /> :value="$t('pub.searchBtn')" />
</li> </li>
</ul> </ul>
...@@ -66,35 +61,19 @@ ...@@ -66,35 +61,19 @@
CreateBy: 0, //操作人 CreateBy: 0, //操作人
QMonth: '', //月份 QMonth: '', //月份
}, },
value1:'',
dataList:[], dataList:[],
//航空公司下拉 //航空公司下拉
airlineList: [], airlineList: [],
//操作人下拉 //操作人下拉
EmployeeList: [], EmployeeList: [],
beforeCheck: {
disabledDate: time => {
if (this.msg.QFlightDateEnd) {
let endTime = new Date(this.msg.QFlightDateEnd);
return time && endTime.getTime() < time.getTime();
} else {
return false;
}
}
},
afterCheck: {
disabledDate: time => {
if (this.msg.QFlightDateStart) {
let startTime = new Date(this.msg.QFlightDateStart);
//可以选择当天
return time && time.getTime() < startTime.getTime() - 1 * 24 * 60 * 60 * 1000;
} else {
return false;
}
}
}
} }
}, },
mounted() { mounted() {
let date = new Date(),
y = date.getFullYear(),
m = date.getMonth() < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
this.msg.QMonth = y + '-' + m ;
this.initAirlines(); this.initAirlines();
this.getEmployeeList(); this.getEmployeeList();
this.getList() this.getList()
...@@ -102,7 +81,6 @@ ...@@ -102,7 +81,6 @@
methods: { methods: {
getList() { //获取列表数据 getList() { //获取列表数据
this.apipost("AirTicket_get_GetTicketPerformance", this.msg, res => { this.apipost("AirTicket_get_GetTicketPerformance", this.msg, res => {
console.log(res.data);
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
} }
......
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