Commit 00b4610e authored by 吴春's avatar 吴春

景点下载

parent 755d87a3
......@@ -305,6 +305,11 @@
type="button"
@click="$router.push('scenicSpotInfoManage')"
>{{$t('pub.addBtn')}}</button>
<button
class="hollowFixedBtn"
type="button"
@click="DownLoadFile()"
>导出</button>
</li>
</ul>
</div>
......@@ -489,6 +494,28 @@
);
});
},
DownLoadFile() {
if (!this.isSave) {
if (this.msg.Status == "") {
this.msg.Status = "-1";
}
let myDate = new Date();
let _year = myDate.getFullYear();
let _month = myDate.getMonth() >= 9 ? myDate.getMonth() + 1 : '0' + (myDate.getMonth() + 1);
let _date = myDate.getDate() > 9 ? myDate.getDate() : '0' + myDate.getDate();
let _hours = myDate.getHours() > 9 ? myDate.getHours() : '0' + myDate.getHours();
let _minutes = myDate.getMinutes() > 9 ? myDate.getMinutes() : '0' + myDate.getMinutes();
let _seconds = myDate.getSeconds() > 9 ? myDate.getSeconds() : '0' + myDate.getSeconds();
let downDate = _year + _month + _date +_hours+_minutes+_seconds;
var fileName = "景点价格信息" + downDate+".xls";
this.GetLocalFile("dmcstatistics_post_GetTicketCouponsExport", this.msg, fileName,
res => {
this.loading = false;
this.isSave = false;
});
}
},
selectResource() {
this.loading = true;
if (this.msg.Status == "") {
......
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