From 6bdeb3668666e6be8ad03e4c65ca3debc802a04a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 24 三月 2025 10:36:51 +0800
Subject: [PATCH] 设备页面-样式优化

---
 src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue |   47 ++++++++++++++++++++++-------------------------
 1 files changed, 22 insertions(+), 25 deletions(-)

diff --git a/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue b/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue
index 72c5e7e..80bc235 100644
--- a/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue
+++ b/src/views/CNAS/process/ensureResults/qualityControlPlan/index.vue
@@ -24,7 +24,7 @@
       <div style="display: flex;justify-content: space-between;">
         <el-form :model="yearDetailForm" ref="yearDetailForm" size="small" :inline="true">
           <el-form-item>
-            <el-radio-group v-model="yearDetailForm.causeType" @change="getYearDetailPlanList" size="small">
+            <el-radio-group v-model="yearDetailForm.causeType" @change="getYearDetailPlan" size="small">
               <el-radio-button :label="1">瀹氭湡鐩戠潱</el-radio-button>
               <el-radio-button :label="2">鍔ㄦ�佺洃鐫�</el-radio-button>
             </el-radio-group>
@@ -36,7 +36,7 @@
             <el-input v-model="yearDetailForm.superviseProject" placeholder="璇疯緭鍏�" size="small"></el-input>
           </el-form-item>
           <el-form-item>
-            <el-button type="primary" size="mini" @click="getYearDetailPlanList">鏌ヨ</el-button>
+            <el-button type="primary" size="mini" @click="getYearDetailPlan">鏌ヨ</el-button>
             <el-button size="mini" @click="clearDetail">閲嶇疆</el-button>
           </el-form-item>
         </el-form>
@@ -45,8 +45,7 @@
         </div>
       </div>
       <lims-table :tableData="yearDetailTableData" :column="yearDetailColumnData" :page="yearDetailPage"
-        :tableLoading="yearDetailLoading" height="40vh" @pagination="pagination1"
-        key="yearDetailTableData"></lims-table>
+        :tableLoading="yearDetailLoading" height="40vh" @pagination="pagination1" key="yearDetailColumnData"></lims-table>
     </div>
     <!--鏂板淇敼寮规-->
     <detail-form-dialog v-if="formDia" ref="formDia" :superviseId="superviseId"
@@ -154,20 +153,19 @@
         {
           label: '璁″垝鍚嶇О',
           prop: 'superviseName',
-          minWidth: '150px'
+          width: '150px'
         }, {
           label: '缂栧埗浜�',
           prop: 'writeUserName',
-          minWidth: '100'
         }, {
           label: '缂栧埗鏃ユ湡',
           prop: 'writeTime',
-          minWidth: '160'
+          width: '160'
         }, {
           dataType: 'tag',
           label: '鎵瑰噯鐘舵��',
           prop: 'ratifyStatus',
-          minWidth: '100',
+          width: '100',
           formatData: (params) => {
             if (params === 0) {
               return '涓嶆壒鍑�';
@@ -189,19 +187,16 @@
         }, {
           label: '鎵瑰噯鍐呭',
           prop: 'ratifyRemark',
-          minWidth: '100'
         }, {
           label: '鎵瑰噯浜�',
           prop: 'ratifyUserName',
-          minWidth: '100'
         }, {
           label: '鎵瑰噯鏃ユ湡',
           prop: 'ratifyTime',
-          minWidth: '160'
+          width: '160'
         }, {
           dataType: 'action',
           label: '鎿嶄綔',
-          fixed: 'right',
           operation: [
             {
               name: '鎵瑰噯',
@@ -259,32 +254,29 @@
         {
           label: '鐩戠潱鏃ユ湡',
           prop: 'superviseTime',
-          minWidth: '150px'
+          width: '120px'
         }, {
           label: '鐩戠潱鐩殑',
           prop: 'supervisePurpose',
-          minWidth: '150px',
-          showOverflowTooltip: true,
+          width: '150px',
         }, {
           label: '鐩戞帶椤圭洰',
           prop: 'superviseProject',
-          minWidth: '150px'
+          width: '150px'
         }, {
           label: '琚洃鐫d汉鍛�',
           prop: 'supervisee',
-          minWidth: '150px'
+          width: '120px'
         }, {
           label: '鐩戠潱鍘熷洜',
           prop: 'superviseReason',
-          minWidth: '150px'
+          width: '150px'
         }, {
           label: '澶囨敞',
           prop: 'remark',
-          minWidth: '150px'
         }, {
           dataType: 'action',
           label: '鎿嶄綔',
-          fixed: 'right',
           operation: [
             {
               name: '缂栬緫',
@@ -353,6 +345,7 @@
         size: 20,
         total: 0
       },
+      currentScrollPosition: 0,
       superviseId: '',
       formDia: false,
       recordsDia: false,
@@ -404,11 +397,6 @@
     pagination({ page, limit }) {
       this.yearPage.current = page;
       this.yearPage.size = limit;
-      this.getYearPlanList();
-    },
-    pagination1({ page, limit }) {
-      this.yearDetailPage.current = page;
-      this.yearDetailPage.size = limit;
       this.getYearPlanList();
     },
     // 瀵煎叆娴佺▼
@@ -536,6 +524,11 @@
     // 骞村害璁″垝琛ㄦ牸锛岀偣鍑昏鏁版嵁鍚庡埛鏂拌鎯�
     rowClick(row) {
       this.superviseId = row.superviseId
+      this.getYearDetailPlan()
+    },
+    getYearDetailPlan () {
+      this.yearDetailPage.current = 1
+      this.yearDetailPage.size = 20
       this.getYearDetailPlanList()
     },
     // 鑾峰彇骞村害鏄庣粏琛�
@@ -557,6 +550,10 @@
         this.yearDetailLoading = false
       })
     },
+    pagination1(page) {
+      this.yearDetailPage.size = page.limit;
+      this.getYearDetailPlanList();
+    },
     // 閲嶇疆鏄庣粏琛�
     clearDetail() {
       this.yearDetailForm = {

--
Gitblit v1.9.3