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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ruoyi/src/main/resources/vm/vue/index.vue.vm b/ruoyi/src/main/resources/vm/vue/index.vue.vm index 8d89857..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) -- Gitblit v1.9.2