Select the table element time limit future time

<el-date-picker
            value-format='yyyy-MM-dd HH:mm:ss'
            class="inner-on"
            @change="select"
            v-model="startTimesss"
            type="daterange"
            :start-placeholder="$t('nowan1.No1.gotimi')"
            :end-placeholder="$t('nowan1.No1.outtimi')"
            :default-time="['00:00:00', '23:59:59']"
            >
            <!-- :picker-options="pickerOptions0" 这是限制未来时间不可选 -->
        </el-date-picker>
data(){
        return {
            startTimesss:this.startTime,
            //  pickerOptions0: {
            // disabledDate(time) {
            //         return time.getTime() > new Date( new Date(new Date().toLocaleDateString()).getTime() +24 * 60 * 60 * 1000 -1);
            //     }
            // },
        }
    },

Select the table element time limit can not be selected the next time you can select the current shortage of time

Guess you like

Origin blog.csdn.net/weixin_43869524/article/details/89359631