From ec98648e4d2e25c1946f3664e9cab169d4e5b092 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 15 四月 2020 18:04:41 +0800 Subject: [PATCH] 菜单区分状态和显示隐藏功能 --- ruoyi/src/main/resources/vm/vue/index.vue.vm | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ruoyi/src/main/resources/vm/vue/index.vue.vm b/ruoyi/src/main/resources/vm/vue/index.vue.vm index 212d20a..1ee0d7f 100644 --- a/ruoyi/src/main/resources/vm/vue/index.vue.vm +++ b/ruoyi/src/main/resources/vm/vue/index.vue.vm @@ -22,7 +22,7 @@ /> </el-form-item> #elseif(($column.htmlType == "select" || $column.htmlType == "radio") && "" != $dictType) - <el-form-item label="${comment}" prop="${column.javaField}"> + <el-form-item label="${comment}" prop="${column.javaField}"> <el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable size="small"> <el-option v-for="dict in ${column.javaField}Options" @@ -33,7 +33,7 @@ </el-select> </el-form-item> #elseif(($column.htmlType == "select" || $column.htmlType == "radio") && $dictType) - <el-form-item label="${comment}" prop="${column.javaField}"> + <el-form-item label="${comment}" prop="${column.javaField}"> <el-select v-model="queryParams.${column.javaField}" placeholder="请选择${comment}" clearable size="small"> <el-option label="请选择字典生成" value="" /> </el-select> @@ -230,6 +230,7 @@ import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName}, export${BusinessName} } from "@/api/${moduleName}/${businessName}"; export default { + name: "${BusinessName}", data() { return { // 遮罩层 @@ -257,8 +258,7 @@ #end #if(${column.dictType} != '') // $comment字典 - ${column.javaField}Options: []#if($velocityCount != $columns.size()),#end - + ${column.javaField}Options: [], #end #end // 查询参数 @@ -288,6 +288,7 @@ $column.javaField: [ { required: true, message: "$comment不能为空", trigger: "blur" } ]#if($velocityCount != $columns.size()),#end + #end #end } -- Gitblit v1.9.2