| | |
| | | #end |
| | | <el-form-item> |
| | | <zt-button type="query" @click="table.query()"/> |
| | | <zt-button type="add" perm="${moduleName}:${permName}:add" @click="table.editHandle()"/> |
| | | <zt-button type="delete" perm="${moduleName}:${permName}: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"> |
| | |
| | | #end |
| | | #end |
| | | |
| | | <zt-table-column-handle :table="table" edit-perm="${moduleName}:${permName}:update" delete-perm="${moduleName}:${permName}:delete"/> |
| | | <zt-table-column-handle :table="table" edit-perm="${moduleName}:update" delete-perm="${moduleName}::delete"/> |
| | | </el-table> |
| | | <!-- 弹窗, 新增 / 修改 --> |
| | | <add-or-update @refreshDataList="table.query"/> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AddOrUpdate from './${pathName}-add-or-update' |
| | | import AddOrUpdate from './${tableName}-add-or-update' |
| | | export default { |
| | | data() { |
| | | return { |