:clearable="false" :picker-options="pickerOptions0" value-format="yyyy-MM-dd" v-model="startTime" type="date" placeholder="选择日期"> </el-date-picker> <el-date-picker :clearable="false" :picker-options="pickerOptions1" value-format="yyyy-MM-dd" v-model="endTime" type="date" placeholder="选择日期"> </el-date-picker> //只能选择今天和今天之后的时间 pickerOptions0: { disabledDate(time) { return time.getTime() < Date.now() - 8.64e7; } }, //只能选择今天和今天之前的时间 pickerOptions1: { disabledDate: (time) { return time.getTime() > Date.now() - 8.64e6; } },