From 6174ca90e12c561c5c562bf46908910fe8214b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=A8=E6=9B=A6?= <635132977@qq.com> Date: Tue, 16 Apr 2024 15:20:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E7=9A=84=E5=88=97?= =?UTF-8?q?=E6=95=B0=E7=94=B1=E5=8E=9F=E5=85=881=E5=88=97=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E4=B8=BA=E5=A4=9A=EF=BC=881-4=EF=BC=89=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/vm/vue/element.ts.index.vue.vm | 1311 ++++++++--------- 1 file changed, 619 insertions(+), 692 deletions(-) diff --git a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/element.ts.index.vue.vm b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/element.ts.index.vue.vm index 14d6229..d128863 100644 --- a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/element.ts.index.vue.vm +++ b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/element.ts.index.vue.vm @@ -1,706 +1,633 @@ - - - - -#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" || $column.htmlType == "textarea") - - - -#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType) - - - - - -#elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType) - - - - - -#elseif($column.htmlType == "datetime" && $column.queryType != "BETWEEN") - - + + + + #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" || $column.htmlType == "textarea") + + + + #elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType) + + + + + + #elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType) + + + + + + #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 == "datetime") + + + {{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }} + + + #elseif($column.list && $column.htmlType == "imageUpload") + + + + + + #elseif($column.list && $column.dictType && "" != $column.dictType) + + + #if($column.htmlType == "checkbox") + + #else + + #end + + + #elseif($column.list && "" != $javaField) + + #end + #end + + + + + + + + + + + + + - -#elseif($column.htmlType == "datetime" && $column.queryType == "BETWEEN") - - - -#end -#end -#end - - 搜索 - 重置 - - - - + + + + + + #foreach($column in $columns) + #set($field=$column.javaField) + #if(($column.insert || $column.edit) && !$column.pk) + #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(${editColumns}==1) + + #end + #if(${editColumns}==2) + + #end + #if(${editColumns}==3) + + #end + #if(${editColumns}==4) + + #end + #if($column.htmlType == "input") + #if(${field} == "version") + + + + #else + + + + #end + #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 - - - - - 新增 - - - 修改 - - - 删除 - - - 导入 - - - 导出 - - - - - - - -#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 == "datetime") - - - {{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }} - - -#elseif($column.list && $column.htmlType == "imageUpload") - - - - - -#elseif($column.list && $column.dictType && "" != $column.dictType) - - -#if($column.htmlType == "checkbox") - -#else - -#end - - -#elseif($column.list && "" != $javaField) - -#end -#end - - - - - - - - - - - - - - - - - -#foreach($column in $columns) -#set($field=$column.javaField) -#if(($column.insert || $column.edit) && !$column.pk) -#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") - #if(${field} == "version") - - - - #else - - - - #end -#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 - #if($table.sub) - ${subTable.functionName}信息 - - - 添加 - - - 删除 - - - - - - #foreach($column in $subTable.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 || $javaField == ${subTableFkclassName}) - #elseif($column.list && $column.htmlType == "input") - #if(${javaField} == "version") - - - - - - #else - - - - - - #end - #elseif($column.list && $column.htmlType == "datetime") - - - - - - - #elseif($column.list && ($column.htmlType == "select" || $column.htmlType == "radio") && "" != $column.dictType) - - - - - - - - #elseif($column.list && ($column.htmlType == "select" || $column.htmlType == "radio") && "" == $column.dictType) - - - - - - - - #end - #end - - #end - - - - - - - - - - - - - 将文件拖到此处,或点击上传 - - - - - 是否更新已经存在的${functionName}数据 - - 仅允许导入xls、xlsx格式文件。 - 下载模板 - - - - - - - - + #end + + #if($table.sub) + ${subTable.functionName}信息 + + + 添加 + + + 删除 + + + + + + #foreach($column in $subTable.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 || $javaField == ${subTableFkclassName}) + #elseif($column.list && $column.htmlType == "input") + #if(${javaField} == "version") + + + + + + #else + + + + + + #end + #elseif($column.list && $column.htmlType == "datetime") + + + + + + + #elseif($column.list && ($column.htmlType == "select" || $column.htmlType == "radio") && "" != $column.dictType) + + + + + + + + #elseif($column.list && ($column.htmlType == "select" || $column.htmlType == "radio") && "" == $column.dictType) + + + + + + + + #end + #end + + #end + + + + + + -