From 28b11b6ca5fad4ec33d4a1a4bbab62d5364cdab4 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期二, 23 七月 2024 17:47:11 +0800 Subject: [PATCH] qxtj --- 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