zouyu
2025-03-14 d3a5fbcc6516c77b32f54518a65e3238c3029d6d
src/views/CNAS/personnel/personnelInfo/Department/components/Mandate/index.vue
@@ -10,7 +10,7 @@
                </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>
@@ -27,7 +27,6 @@
    deletePersonPostAuthorizationRecord,
    exportPersonPostAuthorizationRecord
} from '@/api/cnas/personnel/personnelInfo.js'
import { nextTick } from "vue";
export default {
    components: {
@@ -56,22 +55,28 @@
                    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',
@@ -80,6 +85,7 @@
                    label: '操作',
                    dataType: 'action',
                    width: 160,
                    fixed: 'right',
                    operation: [
                        {
                            name: '编辑',
@@ -107,7 +113,7 @@
            tableData: [],
            page: {
                current: 1,
                pageSize: 20,
                size: 20,
                total: 0
            },
            loading: false
@@ -126,15 +132,14 @@
         */
        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) {
@@ -167,9 +172,7 @@
         * @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()