From 09be7c6af42925e100825f9ae97907a9050d0ed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Sat, 26 Oct 2024 22:14:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=A8=A1=E6=9D=BF=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/vm/vue/index.vue.vm | 207 +++++++++--------- 1 file changed, 104 insertions(+), 103 deletions(-) diff --git a/common-ruoyi/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm b/common-ruoyi/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm index 95c8faf..07276bd 100644 --- a/common-ruoyi/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm +++ b/common-ruoyi/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm @@ -181,109 +181,109 @@ -#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($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 == "datetime") - - - - -#elseif($column.htmlType == "textarea") - - - -#end -#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($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 == "datetime") + + + + + #elseif($column.htmlType == "textarea") + + + + #end + #end + #end + #end + #if($table.sub) ${subTable.functionName}信息 @@ -372,6 +372,7 @@ export default { components: {FormCol}, data() { return { + span: 24, // 字段列表 columns: [ #foreach($column in $columns)