| | |
| | | <template>
|
| | | <div class="app-container">
|
| | | <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
|
| | | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
| | | #foreach($column in $columns)
|
| | | #if($column.query)
|
| | | #set($dictType=$column.dictType)
|
| | |
| | | #end
|
| | | #end
|
| | | <el-form-item>
|
| | | <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
| | | </el-form-item>
|
| | | </el-form>
|
| | |
|
| | | <el-row :gutter="10" class="mb8">
|
| | | <el-col :span="1.5">
|
| | | <el-button
|
| | | class="filter-item"
|
| | | type="primary"
|
| | | icon="el-icon-search"
|
| | | size="mini"
|
| | | @click="handleQuery"
|
| | | >搜索</el-button>
|
| | | <el-button
|
| | | class="filter-item"
|
| | | type="primary"
|
| | | icon="el-icon-plus"
|
| | | size="mini"
|
| | | @click="handleAdd"
|
| | | v-hasPermi="['${moduleName}:${businessName}:add']"
|
| | | >新增</el-button>
|
| | | </el-form-item>
|
| | | </el-form>
|
| | | </el-col>
|
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
| | | </el-row>
|
| | |
|
| | | <el-table
|
| | | v-loading="loading"
|
| | |
| | | return {
|
| | | // 遮罩层
|
| | | loading: true,
|
| | | // 显示搜索条件
|
| | | showSearch: true,
|
| | | // ${functionName}表格数据
|
| | | ${businessName}List: [],
|
| | | // ${functionName}树选项
|
| | |
| | | this.form = {
|
| | | #foreach ($column in $columns)
|
| | | #if($column.htmlType == "radio")
|
| | | $column.javaField: "0"#if($velocityCount != $columns.size()),#end
|
| | | $column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($velocityCount != $columns.size()),#end
|
| | |
|
| | | #elseif($column.htmlType == "checkbox")
|
| | | $column.javaField: []#if($velocityCount != $columns.size()),#end
|