This commit is contained in:
parent
595e8cb60b
commit
99c318a345
|
|
@ -460,6 +460,7 @@
|
|||
return time.getTime() > Date.now();
|
||||
}
|
||||
}"
|
||||
:clearable="false"
|
||||
@change="handleCurrentCheckDateChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
|
@ -469,9 +470,17 @@
|
|||
<el-date-picker
|
||||
v-model="authForm.nextCheckDate"
|
||||
type="date"
|
||||
placeholder="自动生成"
|
||||
placeholder="请选择日期"
|
||||
value-format="yyyy-MM-dd"
|
||||
disabled
|
||||
:picker-options="{
|
||||
disabledDate: (time) => {
|
||||
if (!authForm.currentCheckDate) {
|
||||
return false; // 没有选择本次检验时间时,不限制
|
||||
}
|
||||
return time.getTime() < new Date(authForm.currentCheckDate).getTime();
|
||||
}
|
||||
}"
|
||||
:clearable="false"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue