| | |
| | | </div> |
| | | </template> |
| | | <template v-slot:table> |
| | | <limsTable :column="columnData" :height="'calc(100vh - 21em)'" :table-data="tableData" |
| | | <limsTable :column="columnData" :height="'calc(100vh - 22em)'" :table-data="tableData" |
| | | :table-loading="loading" style="margin-top: 18px; padding: 0 15px;" :page="page" |
| | | @pagination="pagination"></limsTable> |
| | | </template> |
| | |
| | | deletePersonPostAuthorizationRecord, |
| | | exportPersonPostAuthorizationRecord |
| | | } from '@/api/cnas/personnel/personnelInfo.js' |
| | | import { nextTick } from "vue"; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | prop: 'id' |
| | | }, { |
| | | label: '证书编号', |
| | | prop: 'certificateNumber' |
| | | prop: 'certificateNumber', |
| | | width: '120px' |
| | | }, { |
| | | label: '被任职人员', |
| | | prop: 'userName' |
| | | prop: 'userName', |
| | | width: '120px' |
| | | }, { |
| | | label: '任职岗位', |
| | | prop: 'post' |
| | | prop: 'post', |
| | | width: '120px' |
| | | }, { |
| | | label: '理论考试成绩', |
| | | prop: 'num1' |
| | | prop: 'num1', |
| | | width: '160px' |
| | | }, { |
| | | label: '操作技能考试成绩', |
| | | prop: 'num2' |
| | | prop: 'num2', |
| | | width: '160px' |
| | | }, { |
| | | label: '操作时间', |
| | | prop: 'updateTime' |
| | | prop: 'updateTime', |
| | | width: '120px' |
| | | }, { |
| | | label: '备注', |
| | | prop: 'remarks', |
| | |
| | | label: '操作', |
| | | dataType: 'action', |
| | | width: 160, |
| | | fixed: 'right', |
| | | operation: [ |
| | | { |
| | | name: '编辑', |
| | |
| | | tableData: [], |
| | | page: { |
| | | current: 1, |
| | | pageSize: 20, |
| | | size: 20, |
| | | total: 0 |
| | | }, |
| | | loading: false |
| | |
| | | */ |
| | | async getTableData() { |
| | | this.loading = true |
| | | await nextTick() |
| | | const params = this.isDepartment ? { |
| | | departLimsId: this.departId, |
| | | current: this.page.current, |
| | | size: this.page.pageSize |
| | | size: this.page.size |
| | | } : { |
| | | userId: this.departId, |
| | | current: this.page.current, |
| | | size: this.page.pageSize |
| | | size: this.page.size |
| | | } |
| | | const { code, data } = await PersonPostAuthorizationRecordPage(params) |
| | | if (code == 200) { |
| | |
| | | * @desc api删除 |
| | | */ |
| | | async delMandate(id) { |
| | | const formData = new FormData() |
| | | formData.append('id', id) |
| | | const { code, data } = await deletePersonPostAuthorizationRecord(formData) |
| | | const { code, data } = await deletePersonPostAuthorizationRecord({ id }) |
| | | if (code == 200) { |
| | | this.$message({ message: '删除成功', type: 'success' }) |
| | | this.getTableData() |