| | |
| | | <template> |
| | | <el-card shadow="never" class="aui-card--fill"> |
| | | <div class="mod-${moduleName}-${modelName}}"> |
| | | <zt-table-wraper query-url="/${moduleName}/${pathName}/page" delete-url="/${moduleName}/${pathName}" v-slot="{ table }"> |
| | | <zt-table-wraper query-url="/${moduleName}/${className}/page" delete-url="/${moduleName}/${className}" v-slot="{ table }"> |
| | | <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> |
| | | #foreach($column in $columns) |
| | | #if($column.isSelectColumn == 'true') |
| | | <el-form-item> |
| | | <el-input v-model="dataForm.${column.attrName}" placeholder="请输入${column.comments}" clearable></el-input> |
| | | #if($column.dictType != 'null' && $column.dictType != '') |
| | | <zt-dict v-model="dataForm.${column.attrName}" dict="$column.dictType" clearable></zt-dict> |
| | | #else |
| | | <el-input v-model="dataForm.${column.attrName}" placeholder="请输入${column.comments}" clearable></el-input> |
| | | #end |
| | | |
| | | </el-form-item> |
| | | #end |
| | | #end |
| | | <el-form-item> |
| | | <zt-button type="query" @click="table.query()"/> |
| | | <zt-button type="add" perm="${moduleName}::add" @click="table.editHandle()"/> |
| | | <zt-button type="delete" perm="${moduleName}::delete" @click="table.deleteHandle()"/> |
| | | <zt-button type="add" perm="${moduleName}:add" @click="table.editHandle()"/> |
| | | <zt-button type="delete" perm="${moduleName}:delete" @click="table.deleteHandle()"/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table v-loading="table.dataLoading" :data="table.dataList" border @selection-change="table.selectionChangeHandle"> |
| | | <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}" border @selection-change="table.selectionChangeHandle"> |
| | | <el-table-column type="selection" width="40"/> |
| | | #foreach($column in $columns) |
| | | #if($column.isTableColumn == 'true') |
| | | <el-table-column prop="${column.attrName}" label="${column.comments}"/> |
| | | #if($column.dictType != 'null' && $column.dictType != '') |
| | | <zt-table-column-dict prop="${column.attrName}" label="${column.comments}" dict="$column.dictType"/> |
| | | #else |
| | | <el-table-column prop="${column.attrName}" label="${column.comments}"/> |
| | | #end |
| | | #end |
| | | #end |
| | | |
| | | <zt-table-column-handle :table="table" edit-perm="${moduleName}:update" delete-perm="${moduleName}::delete"/> |
| | | </el-table> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AddOrUpdate from './${tableName}-add-or-update' |
| | | import AddOrUpdate from './${className}-AddOrUpdate' |
| | | export default { |
| | | data() { |
| | | return { |