From 9c9efdd8580f7e7c7ee5dfb37f326a882be2d1fc Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sat, 20 Jun 2020 17:52:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=B1=BB=E5=9E=8B=E6=94=AF=E6=8C=81=E5=A4=8D=E9=80=89?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/vm/html/add.html.vm | 19 +++++++++++++++++++ .../src/main/resources/vm/html/edit.html.vm | 19 +++++++++++++++++++ .../main/resources/vm/html/list-tree.html.vm | 2 +- .../src/main/resources/vm/html/list.html.vm | 2 +- 4 files changed, 40 insertions(+), 2 deletions(-) diff --git a/ruoyi-generator/src/main/resources/vm/html/add.html.vm b/ruoyi-generator/src/main/resources/vm/html/add.html.vm index 68ed8dbb..77dd7142 100644 --- a/ruoyi-generator/src/main/resources/vm/html/add.html.vm +++ b/ruoyi-generator/src/main/resources/vm/html/add.html.vm @@ -65,6 +65,25 @@ 代码生成请选择字典属性 +#elseif($column.htmlType == "checkbox" && "" != $dictType) +
+ +
+ +
+
+#elseif($column.htmlType == "checkbox" && $dictType) +
+ +
+ + 代码生成请选择字典属性 +
+
#elseif($column.htmlType == "radio" && "" != $dictType)
diff --git a/ruoyi-generator/src/main/resources/vm/html/edit.html.vm b/ruoyi-generator/src/main/resources/vm/html/edit.html.vm index 60a24e99..af31dd0f 100644 --- a/ruoyi-generator/src/main/resources/vm/html/edit.html.vm +++ b/ruoyi-generator/src/main/resources/vm/html/edit.html.vm @@ -65,6 +65,25 @@ 代码生成请选择字典属性
+#elseif($column.htmlType == "checkbox" && "" != $dictType) +
+ +
+ +
+
+#elseif($column.htmlType == "checkbox" && $dictType) +
+ +
+ + 代码生成请选择字典属性 +
+
#elseif($column.htmlType == "radio" && "" != $dictType)
diff --git a/ruoyi-generator/src/main/resources/vm/html/list-tree.html.vm b/ruoyi-generator/src/main/resources/vm/html/list-tree.html.vm index 6def5ffa..59510d3d 100644 --- a/ruoyi-generator/src/main/resources/vm/html/list-tree.html.vm +++ b/ruoyi-generator/src/main/resources/vm/html/list-tree.html.vm @@ -120,7 +120,7 @@ title: '${comment}', align: 'left', formatter: function(value, row, index) { - return $.table.selectDictLabel(${javaField}Datas, value); + return $.table.selectDictLabel#if($column.htmlType == "checkbox")s#end(${javaField}Datas, value); } }, #elseif($column.list && "" != $javaField) diff --git a/ruoyi-generator/src/main/resources/vm/html/list.html.vm b/ruoyi-generator/src/main/resources/vm/html/list.html.vm index 252b983b..16b0ce51 100644 --- a/ruoyi-generator/src/main/resources/vm/html/list.html.vm +++ b/ruoyi-generator/src/main/resources/vm/html/list.html.vm @@ -121,7 +121,7 @@ field: '${javaField}', title: '${comment}', formatter: function(value, row, index) { - return $.table.selectDictLabel(${javaField}Datas, value); + return $.table.selectDictLabel#if($column.htmlType == "checkbox")s#end(${javaField}Datas, value); } }, #elseif($column.list && "" != $javaField)