修改 页面生成模板 适配后端时间格式

This commit is contained in:
疯狂的狮子li 2021-01-28 09:22:25 +08:00
parent 118c02144f
commit 8ba1266b6a
2 changed files with 4 additions and 4 deletions

View File

@ -221,8 +221,8 @@
<el-form-item label="${comment}" prop="${field}"> <el-form-item label="${comment}" prop="${field}">
<el-date-picker clearable size="small" <el-date-picker clearable size="small"
v-model="form.${field}" v-model="form.${field}"
type="date" type="datetime"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择${comment}"> placeholder="选择${comment}">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>

View File

@ -253,8 +253,8 @@
<el-form-item label="${comment}" prop="${field}"> <el-form-item label="${comment}" prop="${field}">
<el-date-picker clearable size="small" <el-date-picker clearable size="small"
v-model="form.${field}" v-model="form.${field}"
type="date" type="datetime"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择${comment}"> placeholder="选择${comment}">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>