From 526c3867b412698f8ab08f2568a81e95010b462b Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期二, 21 四月 2020 17:13:02 +0800 Subject: [PATCH] 代码生成Date字段添加默认格式 --- ruoyi/src/main/resources/vm/vue/index.vue.vm | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ruoyi/src/main/resources/vm/vue/index.vue.vm b/ruoyi/src/main/resources/vm/vue/index.vue.vm index 3110a16..12022ca 100644 --- a/ruoyi/src/main/resources/vm/vue/index.vue.vm +++ b/ruoyi/src/main/resources/vm/vue/index.vue.vm @@ -112,7 +112,7 @@ #elseif($column.list && $column.htmlType == "datetime") <el-table-column label="${comment}" align="center" prop="${javaField}" width="180"> <template slot-scope="scope"> - <span>{{ parseTime(scope.row.${javaField}) }}</span> + <span>{{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }}</span> </template> </el-table-column> #elseif($column.list && "" != $column.dictType) @@ -150,7 +150,7 @@ /> <!-- 添加或修改${functionName}对话框 --> - <el-dialog :title="title" :visible.sync="open" width="500px"> + <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-form ref="form" :model="form" :rules="rules" label-width="80px"> #foreach($column in $columns) #set($field=$column.javaField) @@ -258,8 +258,7 @@ #end #if(${column.dictType} != '') // $comment字典 - ${column.javaField}Options: []#if($velocityCount != $columns.size()),#end - + ${column.javaField}Options: [], #end #end // 查询参数 -- Gitblit v1.9.2