-
+
#foreach($column in $columns)
#if($column.query)
#set($dictType=$column.dictType)
@@ -17,14 +17,14 @@
v-model="queryParams.${column.javaField}"
placeholder="请输入${comment}"
clearable
- @keyup.enter.native="handleQuery"
+ @keyup.enter="handleQuery"
/>
#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType)
-#elseif($column.htmlType == "date" && $column.queryType != "BETWEEN")
-
-
-
-
-#elseif($column.htmlType == "date" && $column.queryType == "BETWEEN")
-
-
-#elseif($column.htmlType == "time" && $column.queryType != "BETWEEN")
-
-
-
-
-#elseif($column.htmlType == "time" && $column.queryType == "BETWEEN")
-
-
#elseif($column.htmlType == "datetime" && $column.queryType != "BETWEEN")
+ type="date"
+ value-format="YYYY-MM-DD"
+ placeholder="选择${comment}">
#elseif($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
-
+
- 搜索
- 重置
+ 搜索
+ 重置
@@ -112,8 +71,7 @@
新增
@@ -122,12 +80,11 @@
展开/折叠
-
+
-
- {{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }}
-
-
#elseif($column.list && $column.htmlType == "datetime")
-
- {{ parseTime(scope.row.${javaField}, '{y}-{m}-{d} {h}:{i}:{s}') }}
-
-
-#elseif($column.list && $column.htmlType == "time")
-
-
- {{ parseTime(scope.row.${javaField}, '{h}:{i}:{s}') }}
+
+ {{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }}
#elseif($column.list && $column.htmlType == "imageUpload")
-
+
#elseif($column.list && "" != $column.dictType)
-
+
#if($column.htmlType == "checkbox")
-
+
#else
-
+
#end
@@ -190,35 +135,17 @@
#end
#end
-
- 修改
- 新增
- 删除
+
+ 修改
+ 新增
+ 删除
-
-
+
+
#foreach($column in $columns)
#set($field=$column.javaField)
#if($column.insert && !$column.pk)
@@ -232,7 +159,14 @@
#set($dictType=$column.dictType)
#if("" != $treeParentCode && $column.javaField == $treeParentCode)
-
+
#elseif($column.htmlType == "input")
@@ -254,7 +188,7 @@
{{dict.label}}
@@ -292,7 +226,7 @@
请选择字典生成
-#elseif($column.htmlType == "date")
-
-
-
-
#elseif($column.htmlType == "datetime")
-#elseif($column.htmlType == "time")
-
-
-
-
#elseif($column.htmlType == "textarea")
@@ -344,65 +260,51 @@
#end
#end
-
+
+
+
-
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 413e04f..8b25665 100644
--- a/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
+++ b/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
@@ -1,6 +1,6 @@
+
+
+#foreach($column in $columns)
+#if($column.query)
+#set($dictType=$column.dictType)
+#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
+#set($parentheseIndex=$column.columnComment.indexOf("("))
+#if($parentheseIndex != -1)
+#set($comment=$column.columnComment.substring(0, $parentheseIndex))
+#else
+#set($comment=$column.columnComment)
+#end
+#if($column.htmlType == "input")
+
+
+
+#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType)
+
+
+
+
+
+#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType)
+
+
+
+
+
+#elseif($column.htmlType == "date" && $column.queryType != "BETWEEN")
+
+
+
+
+#elseif($column.htmlType == "date" && $column.queryType == "BETWEEN")
+
+
+#elseif($column.htmlType == "time" && $column.queryType != "BETWEEN")
+
+
+
+
+#elseif($column.htmlType == "time" && $column.queryType == "BETWEEN")
+
+
+#elseif($column.htmlType == "datetime" && $column.queryType != "BETWEEN")
+
+
+
+
+#elseif($column.htmlType == "datetime" && $column.queryType == "BETWEEN")
+
+
+
+#end
+#end
+#end
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 展开/折叠
+
+
+
+
+
+#foreach($column in $columns)
+#set($javaField=$column.javaField)
+#set($parentheseIndex=$column.columnComment.indexOf("("))
+#if($parentheseIndex != -1)
+#set($comment=$column.columnComment.substring(0, $parentheseIndex))
+#else
+#set($comment=$column.columnComment)
+#end
+#if($column.pk)
+#elseif($column.list && $column.htmlType == "date")
+
+
+ {{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }}
+
+
+#elseif($column.list && $column.htmlType == "datetime")
+
+
+ {{ parseTime(scope.row.${javaField}, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+#elseif($column.list && $column.htmlType == "time")
+
+
+ {{ parseTime(scope.row.${javaField}, '{h}:{i}:{s}') }}
+
+
+#elseif($column.list && $column.htmlType == "imageUpload")
+
+
+
+
+
+#elseif($column.list && "" != $column.dictType)
+
+
+#if($column.htmlType == "checkbox")
+
+#else
+
+#end
+
+
+#elseif($column.list && "" != $javaField)
+#if(${foreach.index} == 1)
+
+#else
+
+#end
+#end
+#end
+
+
+ 修改
+ 新增
+ 删除
+
+
+
+
+
+
+
+#foreach($column in $columns)
+#set($field=$column.javaField)
+#if($column.insert && !$column.pk)
+#if(($column.usableColumn) || (!$column.superColumn))
+#set($parentheseIndex=$column.columnComment.indexOf("("))
+#if($parentheseIndex != -1)
+#set($comment=$column.columnComment.substring(0, $parentheseIndex))
+#else
+#set($comment=$column.columnComment)
+#end
+#set($dictType=$column.dictType)
+#if("" != $treeParentCode && $column.javaField == $treeParentCode)
+
+
+
+#elseif($column.htmlType == "input")
+
+
+
+#elseif($column.htmlType == "imageUpload")
+
+
+
+#elseif($column.htmlType == "fileUpload")
+
+
+
+#elseif($column.htmlType == "editor")
+
+
+
+#elseif($column.htmlType == "select" && "" != $dictType)
+
+
+
+
+
+#elseif($column.htmlType == "select" && $dictType)
+
+
+
+
+
+#elseif($column.htmlType == "checkbox" && "" != $dictType)
+
+
+
+ {{dict.label}}
+
+
+
+#elseif($column.htmlType == "checkbox" && $dictType)
+
+
+ 请选择字典生成
+
+
+#elseif($column.htmlType == "radio" && "" != $dictType)
+
+
+ {{dict.label}}
+
+
+#elseif($column.htmlType == "radio" && $dictType)
+
+
+ 请选择字典生成
+
+
+#elseif($column.htmlType == "date")
+
+
+
+
+#elseif($column.htmlType == "datetime")
+
+
+
+
+#elseif($column.htmlType == "time")
+
+
+
+
+#elseif($column.htmlType == "textarea")
+
+
+
+#end
+#end
+#end
+#end
+
+
+
+
+
+
+
diff --git a/ruoyi-generator/src/main/resources/vm/vue/v2/index.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/v2/index.vue.vm
new file mode 100644
index 0000000..413e04f
--- /dev/null
+++ b/ruoyi-generator/src/main/resources/vm/vue/v2/index.vue.vm
@@ -0,0 +1,672 @@
+