|
@@ -38,7 +38,7 @@
|
|
<a-col :span="4">
|
|
<a-col :span="4">
|
|
<a-button class="handle-btn serach-btn" id="winRecord-btn-serach" type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
<a-button class="handle-btn serach-btn" id="winRecord-btn-serach" type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
<a-button class="handle-btn serach-btn" type="" id="winRecord-btn-reset" @click="handleReset">重置</a-button>
|
|
<a-button class="handle-btn serach-btn" type="" id="winRecord-btn-reset" @click="handleReset">重置</a-button>
|
|
- <a-button class="export-btn" id="winRecord-btn--export" :loading="loading" @click="handleExport">导出</a-button>
|
|
|
|
|
|
+ <a-button class="export-btn" id="winRecord-btn--export" :loading="loading" v-hasPermission="'B_winingRecord_export'" @click="handleExport">导出</a-button>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
<a-row :gutter="20">
|
|
<a-row :gutter="20">
|
|
@@ -269,12 +269,13 @@ export default {
|
|
params.endDate = ''
|
|
params.endDate = ''
|
|
}
|
|
}
|
|
if (!params.beginDate && !params.endDate) {
|
|
if (!params.beginDate && !params.endDate) {
|
|
- this.$message.error('请先选择需要导出的投放时间区间再进行导出!')
|
|
|
|
|
|
+ this.$message.error('请先选择需要导出的中奖时间区间再进行导出!')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
// 判断两个时间段是否相差m个月 第二个参数指相差单位,第三个参数指是否返回浮点形式(小数)
|
|
// 判断两个时间段是否相差m个月 第二个参数指相差单位,第三个参数指是否返回浮点形式(小数)
|
|
if (moment(params.endDate).diff(moment(params.beginDate), 'months', true) > 3) {
|
|
if (moment(params.endDate).diff(moment(params.beginDate), 'months', true) > 3) {
|
|
this.$message.error('单次最多只能导出3个月的数据,请缩小查询区间后再进行导出!')
|
|
this.$message.error('单次最多只能导出3个月的数据,请缩小查询区间后再进行导出!')
|
|
|
|
+ return
|
|
}
|
|
}
|
|
this.$confirm({
|
|
this.$confirm({
|
|
title: '提示',
|
|
title: '提示',
|