<el-form-item label="生效时间" prop="validtime">
<el-date-picker clearable
v-model="form.validtime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择生效时间">
</el-date-picker>
</el-form-item>
<el-form-item label="失效时间" prop="invalidtime">
<el-date-picker clearable
v-model="form.invalidtime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="请选择失效时间">
</el-date-picker>
</el-form-item>
data() {
return {
timeFrom: []
}
}
methods: {
setTime(e) {
this.queryParams.cx_createtime_after = this.$moment(e[0]).format(
"YYYY-MM-DD HH:mm:ss"
);
this.queryParams.cx_createtime_before = this.$moment(e[1]).format(
"YYYY-MM-DD HH:mm:ss"
);
},
VUE - element ui 时间改为YYYY-MM-DD HH:mm:ss格式
最新推荐文章于 2023-01-03 10:26:30 发布