From ea640ebc01dba1455d7e2dbece470c3b83a5be38 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期四, 05 十二月 2024 13:56:21 +0800
Subject: [PATCH] 20241205

---
 src/views/doctor/examination/index.vue |   37 +++++++++++++++++++++++++++----------
 1 files changed, 27 insertions(+), 10 deletions(-)

diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index adf1f5e..5137909 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -74,7 +74,7 @@
           ref="tb"
           :data="exaList"
           border
-          height="520px"
+          height="520"
           :row-class-name="tableRowClassName"
           highlight-current-row
           @current-change="handleCurrentChange"
@@ -183,7 +183,7 @@
         <el-table
           v-loading="loading"
           border
-          height="520px"
+          height="520"
           ref="tab1"
           :data="xiangmuList"
         >
@@ -262,17 +262,20 @@
         </el-table>
       </div>
     </div>
-    <div style="margin-right: 57%">
+    <div class="pag">
+      <div class="pag1">
       <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page"
                 :page-sizes="pageSize" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="total">
             </el-pagination> -->
       <pagination
         v-show="total > 0"
         :total="total"
+         :pager-count="5"
         :page.sync="queryParams.page"
         :limit.sync="queryParams.pageSize"
         @pagination="getList"
       />
+    </div>
     </div>
   </div>
 </template>
@@ -311,7 +314,7 @@
       exaList: [],
       // 琛ㄥ崟鍙傛暟
       form: {},
-      clearTimeSet:null,
+      clearTimeSet: null,
       tjNumbers: "",
       multipleSelection: "",
       tjnum: "",
@@ -479,7 +482,6 @@
     },
     // 鍗曢�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
-      console.log(11111);
       this.selectList = selection;
       this.multipleSelection = [];
       if (selection.length > 1) {
@@ -560,15 +562,20 @@
       this.$modal.loading("姝e湪鍚屾锛岃绋嶅��...");
       this.setTime();
       let tjNumber = row.tjNumber;
-      dataSynchronization(tjNumber).then((res) => {
+      dataSynchronization(tjNumber).then((res, error) => {
         if (res.code == 200) {
           // this.$forceUpdate();
-          // this.getList();
-          clearInterval(this.clearTimeSet)
-          this.clearTimeSet=null
+          this.handleCurrentChange(row);
+          clearInterval(this.clearTimeSet);
+          this.clearTimeSet = null;
           this.$modal.closeLoading();
           this.$modal.msgSuccess("鍚屾鎴愬姛锛�");
-        }
+        } 
+      }).catch(error => {
+        this.handleCurrentChange(row);
+          clearInterval(this.clearTimeSet);
+          this.clearTimeSet = null;
+          this.$modal.closeLoading();
       });
     },
     // 椹冲洖鎸夐挳
@@ -606,4 +613,14 @@
 ::v-deep .el-table__body tr.current-row > td {
   background: #edf2fa !important;
 }
+
+.pag {
+  width: 100%;
+  display: flex;
+  justify-content: center;
+}
+
+.pag1 {
+  width: 30%;
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0