|
@@ -803,7 +803,7 @@
|
|
|
<el-dialog :title="textMap[exportList.dialogStatus]" :visible.sync="exportList.dialogFormVisible" :close-on-click-modal="false" width="20%">
|
|
|
<div>
|
|
|
<span>导出时间范围:</span>
|
|
|
- <el-date-picker v-model="exportList.inputDatetime" :clearable="false" style="width: 230px;" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" />
|
|
|
+ <el-date-picker v-model="exportList.inputDatetime" :clearable="false" style="width: 230px;" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions2" />
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer" style="margin-bottom: 10px;">
|
|
|
<el-button class="cancelClose" @click="exportList.dialogFormVisible = false">关闭</el-button>
|
|
@@ -1284,6 +1284,27 @@ export default {
|
|
|
return time.getTime() > Date.now()
|
|
|
}
|
|
|
},
|
|
|
+ pickerOptions2: {
|
|
|
+ onPick: ({ maxDate, minDate }) => {
|
|
|
+ this.pickerMinDate = minDate.getTime()
|
|
|
+ if (maxDate) {
|
|
|
+ this.pickerMinDate = ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 限制不能选择今天之后的日期
|
|
|
+ disabledDate: (time) => {
|
|
|
+ if (this.pickerMinDate !== '') {
|
|
|
+ const one = 100 * 24 * 3600 * 1000
|
|
|
+ const minTime = this.pickerMinDate - one
|
|
|
+ let maxTime = this.pickerMinDate + one
|
|
|
+ if (maxTime > new Date()) {
|
|
|
+ maxTime = new Date()
|
|
|
+ }
|
|
|
+ return time.getTime() < minTime || time.getTime() > maxTime
|
|
|
+ }
|
|
|
+ return time.getTime() > Date.now()
|
|
|
+ }
|
|
|
+ },
|
|
|
// 班次
|
|
|
maxTime: {
|
|
|
getMaxTimesParm: {
|