Explorar o código

投放记录导出 判断修改

1004749546@qq.com %!s(int64=4) %!d(string=hai) anos
pai
achega
d3b60196ed
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/views/releaseRecord/releaseRecordList.vue

+ 1 - 0
src/views/releaseRecord/releaseRecordList.vue

@@ -253,6 +253,7 @@ export default {
       // 判断两个时间段是否相差m个月  第二个参数指相差单位,第三个参数指是否返回浮点形式(小数)
       if (moment(params.endDate).diff(moment(params.beginDate), 'months', true) > 3) {
         this.$message.error('单次最多只能导出3个月的数据,请缩小查询区间后再进行导出!')
+        return
       }
       this.loading = true
       exportDeliveryLog(params).then(res => {