From d3a5fbcc6516c77b32f54518a65e3238c3029d6d Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期五, 14 三月 2025 19:31:35 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/center-lims-before-ruoyi into dev

---
 src/views/CNAS/personnel/personnelInfo/Department/components/Mandate/index.vue |   33 ++++++++++++++++++---------------
 1 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/src/views/CNAS/personnel/personnelInfo/Department/components/Mandate/index.vue b/src/views/CNAS/personnel/personnelInfo/Department/components/Mandate/index.vue
index d6fa9a2..6456262 100644
--- a/src/views/CNAS/personnel/personnelInfo/Department/components/Mandate/index.vue
+++ b/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()

--
Gitblit v1.9.3