From 41c75a808a55cd5aa255e345b99bdead128e5d1d Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期六, 18 九月 2021 15:48:43 +0800 Subject: [PATCH] update easyexcel 2.2.10 => 2.2.11 update hutool 5.7.11 => 5.7.13 --- ruoyi-generator/src/main/resources/vm/vue/index.vue.vm | 23 ++++++----------------- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm index b4349c1..4b055fa 100644 --- a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm +++ b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm @@ -135,7 +135,11 @@ </template> </el-table-column> #elseif($column.list && $column.dictType && "" != $column.dictType) - <el-table-column label="${comment}" align="center" prop="${javaField}" :formatter="${javaField}Format" /> + <el-table-column label="${comment}" align="center" prop="${javaField}"> + <template slot-scope="scope"> + <dict-tag :options="${javaField}Options" :value="scope.row.${javaField}"/> + </template> + </el-table-column> #elseif($column.list && "" != $javaField) <el-table-column label="${comment}" align="center" prop="${javaField}" /> #end @@ -308,7 +312,6 @@ <script> import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName} } from "@/api/${moduleName}/${businessName}"; -import { downLoadExcel } from "@/utils/download"; export default { name: "${BusinessName}", @@ -427,20 +430,6 @@ this.loading = false; }); }, -#foreach ($column in $columns) -#if(${column.dictType} && ${column.dictType} != '') -#set($parentheseIndex=$column.columnComment.indexOf("锛�")) -#if($parentheseIndex != -1) -#set($comment=$column.columnComment.substring(0, $parentheseIndex)) -#else -#set($comment=$column.columnComment) -#end - // $comment瀛楀吀缈昏瘧 - ${column.javaField}Format(row, column) { - return this.selectDictLabel#if($column.htmlType == "checkbox")s#end(this.${column.javaField}Options, row.${column.javaField}); - }, -#end -#end // 鍙栨秷鎸夐挳 cancel() { this.open = false; @@ -601,7 +590,7 @@ #end /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { - downLoadExcel('/${moduleName}/${businessName}/export', this.queryParams); + this.downLoadExcel('/${moduleName}/${businessName}/export', this.queryParams); } } }; -- Gitblit v1.9.3