| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="filter-container"> |
| | | <el-input v-model="queryParams.positionName" placeholder="岗位名称" class="filter-item search-item" /> |
| | | <el-button class="filter-item" type="primary" @click="search"> |
| | | <el-input v-model="queryParams.positionName" placeholder="岗位" class="filter-item search-item" /> |
| | | <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="['position:add']" class="filter-item" type="primary" @click.native="add"> |
| | | <el-button v-has-permission="['position:add']" class="hr-but-all" type="primary" @click.native="add"> |
| | | {{ $t('table.add') }} |
| | | </el-button> |
| | | <el-button v-has-permission="['position:delete']" class="el-icon-delete table-operation" style="color: #f50;" @click.native="batchDelete"> |
| | | <!-- <el-button v-has-permission="['position:delete']" class="el-icon-delete table-operation" style="color: #f50;" @click.native="batchDelete">--> |
| | | <!-- {{ $t('table.delete') }}--> |
| | | <!-- </el-button>--> |
| | | |
| | | <el-button v-has-permission="['position:delete']" type="primary" @click.native="batchDelete"> |
| | | {{ $t('table.delete') }} |
| | | </el-button> |
| | | </div> |
| | |
| | | > |
| | | <el-table-column type="selection" align="center" width="40px" /> |
| | | <el-table-column v-if="fsnumShow" label="" prop="positionId" :show-overflow-tooltip="false" align="center" /> |
| | | <el-table-column label="岗位名称" prop="positionName" :show-overflow-tooltip="true" align="center" min-width="100px" /> |
| | | <el-table-column label="岗位" prop="positionName" :show-overflow-tooltip="true" align="center" min-width="100px" /> |
| | | <el-table-column label="岗位编码" prop="positionCode" :show-overflow-tooltip="true" align="center" /> |
| | | <el-table-column label="创建时间" prop="createTime" :show-overflow-tooltip="true" align="center" min-width="170px" /> |
| | | <el-table-column label="创建人" prop="creator" :show-overflow-tooltip="true" align="center" min-width="160px" /> |
| | |
| | | queryParams: {}, |
| | | selection: [], |
| | | pagination: { |
| | | size: 10, |
| | | size: 15, |
| | | num: 1 |
| | | } |
| | | } |
| | |
| | | cancelButtonText: this.$t('common.cancel'), |
| | | type: 'warning' |
| | | }).then(() => { |
| | | debugger |
| | | const positionId = [] |
| | | this.selection.forEach((c) => { |
| | | positionId.push(c.positionId) |
| | |
| | | }) |
| | | }, |
| | | singleDelete(row) { |
| | | debugger |
| | | this.$refs.table.toggleRowSelection(row, true) |
| | | this.delete(row.positionId) |
| | | }, |