| | |
| | | <div class="app-container"> |
| | | <div class="filter-container"> |
| | | <el-input v-model="queryParams.dicName" placeholder="字典名称" class="filter-item search-item" /> |
| | | <el-button class="filter-item" type="primary" @click="search"> |
| | | <el-button class="hr-but-all" type="primary" @click="search"> |
| | | {{ $t('table.search') }} |
| | | </el-button> |
| | | <el-button class="filter-item" type="success" @click="reset"> |
| | | <el-button class="hr-but-all" type="success" @click="reset"> |
| | | {{ $t('table.reset') }} |
| | | </el-button> |
| | | <el-button v-has-permission="['dic:add']" class="filter-item" type="primary" @click.native="add"> |
| | | <el-button v-has-permission="['dic:add']" class="hr-but-all" type="primary" @click.native="add"> |
| | | {{ $t('table.add') }} |
| | | </el-button> |
| | | <el-button v-has-permission="['dic:delete']" class="el-icon-delete table-operation" style="color: #f50;" @click.native="batchDelete"> |
| | | <el-button v-has-permission="['dic:delete']" type="primary" @click.native="batchDelete"> |
| | | {{ $t('table.delete') }} |
| | | </el-button> |
| | | </div> |
| | |
| | | queryParams: {}, |
| | | selection: [], |
| | | pagination: { |
| | | size: 10, |
| | | size: 15, |
| | | num: 1 |
| | | } |
| | | } |
| | |
| | | cancelButtonText: this.$t('common.cancel'), |
| | | type: 'warning' |
| | | }).then(() => { |
| | | debugger |
| | | const dicId = [] |
| | | this.selection.forEach((c) => { |
| | | dicId.push(c.dicId) |
| | |
| | | }) |
| | | }, |
| | | singleDelete(row) { |
| | | debugger |
| | | this.$refs.table.toggleRowSelection(row, true) |
| | | this.delete(row.dicId) |
| | | }, |