|
@@ -37,9 +37,8 @@
|
|
|
type="primary"
|
|
|
id="releaseRecordList-refresh"
|
|
|
v-hasPermission="'B_exportDeliveryLog'"
|
|
|
- :loading="loading"
|
|
|
@click="refresh">查询</a-button>
|
|
|
- <a-button class="serach-btn" id="releaseRecordList-handleReset" v-hasPermission="'B_exportDeliveryLog'" :loading="loading" @click="handleReset">重置</a-button>
|
|
|
+ <a-button class="serach-btn" id="releaseRecordList-handleReset" v-hasPermission="'B_exportDeliveryLog'" @click="handleReset">重置</a-button>
|
|
|
<a-button class="export-btn" id="releaseRecordList-export" v-hasPermission="'B_exportDeliveryLog'" :loading="loading" @click="handleExport">导出</a-button>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -179,10 +178,12 @@ export default {
|
|
|
}
|
|
|
if (!params.beginDate && !params.endDate) {
|
|
|
this.$message.error('请先选择需要导出的投放时间区间再进行导出!')
|
|
|
+ return
|
|
|
}
|
|
|
// 判断两个时间段是否相差m个月 第二个参数指相差单位,第三个参数指是否返回浮点形式(小数)
|
|
|
if (moment(params.endDate).diff(moment(params.beginDate), 'months', true) > 3) {
|
|
|
this.$message.error('单次最多只能导出3个月的数据,请缩小查询区间后再进行导出!')
|
|
|
+ return
|
|
|
}
|
|
|
this.loading = true
|
|
|
exportTnTimeForm(params).then(res => {
|