过期时间只能选择当天之后

This commit is contained in:
lanrenwo 2022-10-19 15:34:51 +08:00 committed by GitHub
parent 522f723b51
commit 8536e2f1d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -190,6 +190,7 @@
size="small"
align="center"
style="width:130px"
:picker-options="pickerOptions"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
@ -258,6 +259,11 @@ export default {
grouNames: [],
tableData: [],
count: 10,
pickerOptions: {
disabledDate(time) {
return time.getTime() < Date.now();
}
},
searchData: '',
otpImgData: {visible: false, username: '', nickname: '', base64Img: ''},
ruleForm: {