From a44f2f7b0093fb177d4e4d1fd2d2de6ca91bf975 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 8 Jun 2020 07:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=AD=97?= =?UTF-8?q?=E5=85=B8Integer/Long=E4=BD=BF=E7=94=A8parseInt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm | 4 ++-- ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm index ffea736..fb10ed6 100644 --- a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm +++ b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm @@ -146,7 +146,7 @@ v-for="dict in ${field}Options" :key="dict.dictValue" :label="dict.dictLabel" - #if($column.javaType == "Integer"):value="parseInt(dict.dictValue)"#else:value="dict.dictValue"#end + #if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.dictValue)"#else:value="dict.dictValue"#end > @@ -163,7 +163,7 @@ {{dict.dictLabel}} diff --git a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm index db471f4..0b64a0c 100644 --- a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm +++ b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm @@ -174,7 +174,7 @@ v-for="dict in ${field}Options" :key="dict.dictValue" :label="dict.dictLabel" - #if($column.javaType == "Integer"):value="parseInt(dict.dictValue)"#else:value="dict.dictValue"#end + #if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.dictValue)"#else:value="dict.dictValue"#end > @@ -191,7 +191,7 @@ {{dict.dictLabel}}