修改时间选择

master
夜笙歌 2 years ago
parent 838a12463e
commit cd8e81f20b

@ -28,11 +28,11 @@
<el-form-item label="高温阀值" prop="temperatureHigh">
<el-input-number v-model="form.temperatureHigh" :min="0" :step="5"/>
</el-form-item>
<el-form-item label="设置生效时间" prop="internationalization6">
<el-form-item label="设置生效时间" prop="time">
<el-date-picker
v-model="form.internationalization6"
v-model="form.time"
placeholder="选择日期"
type="date"
type="datetime"
/>
</el-form-item>
<el-form-item label=" ">
@ -71,9 +71,7 @@ const form = ref({
zPressureHigh: 0,
zPressureLow: 0,
temperatureHigh: 0,
internationalization6: parseTime(new Date(), '{y}-{m}-{d}'),
internationalization7: true,
internationalization8: '',
time: parseTime(new Date()),
})
const setDisabled = (arr) => {
arr.forEach(e => {

Loading…
Cancel
Save