|
@@ -13,7 +13,7 @@
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-model-item label="查询月份" prop="time">
|
|
|
- <a-month-picker class="monthBox" v-model="monthVal" placeholder="请选择月份" @change="onChangeMonth" />
|
|
|
+ <a-month-picker class="monthBox" :disabled-date="disabledDate" v-model="monthVal" placeholder="请选择月份" @change="onChangeMonth" />
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -126,6 +126,7 @@
|
|
|
<script>
|
|
|
import { commonMixin } from '@/utils/mixin'
|
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
|
+import moment from 'moment'
|
|
|
// 组件
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import subarea from '@/views/common/subarea.js'
|
|
@@ -294,6 +295,9 @@ export default {
|
|
|
this.queryParam.bizBeginDate = date[0] ? date[0].replace(/-/g, '') : ''
|
|
|
this.queryParam.bizEndDate = date[1] ? date[1].replace(/-/g, '') : ''
|
|
|
},
|
|
|
+ disabledDate (current) {
|
|
|
+ return current && current >= moment().endOf('day')
|
|
|
+ },
|
|
|
// 区域分区 change
|
|
|
subareaChange (val) {
|
|
|
this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
|