From 21c066cc311c23223917b774c0e82c92096bbee6 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Wed, 27 Sep 2023 14:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=97=8F=E5=A4=B9+demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/projectInfo/projectInfo.vue | 2 +- .../technicalSpecificationList.vue | 227 ++++++++++++++---- 2 files changed, 180 insertions(+), 49 deletions(-) diff --git a/src/views/modules/project/projectInfo/projectInfo.vue b/src/views/modules/project/projectInfo/projectInfo.vue index 577ebfb..6ed37a5 100644 --- a/src/views/modules/project/projectInfo/projectInfo.vue +++ b/src/views/modules/project/projectInfo/projectInfo.vue @@ -77,7 +77,7 @@ :total="totalPage" layout="total, sizes, prev, pager, next, jumper"> - + diff --git a/src/views/modules/sampleManagement/technicalSpecificationList/technicalSpecificationList.vue b/src/views/modules/sampleManagement/technicalSpecificationList/technicalSpecificationList.vue index ddda60e..f10fb2a 100644 --- a/src/views/modules/sampleManagement/technicalSpecificationList/technicalSpecificationList.vue +++ b/src/views/modules/sampleManagement/technicalSpecificationList/technicalSpecificationList.vue @@ -34,6 +34,9 @@ :data="dataList1" :height="height" border + ref="mainTable" + @row-click="changeData" + highlight-current-row v-loading="dataListLoading" style="width: 100%; "> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0){ + this.$refs.mainTable.setCurrentRow(this.dataList1[0]); + this.changeData(this.dataList1[0]) + } } this.dataListLoading = false }) }, + changeData(row) { + this.currentRow = JSON.parse(JSON.stringify(row)); + this.infoData=row; + this.refreshCurrentTabTable (); + }, // 获取基础数据列表S getBaseList (val, type) { this.tagNo = val @@ -529,6 +657,9 @@ } this.$refs.baseList.init(val, strVal) }) + }, + refreshCurrentTabTable () { + }, /* 列表方法的回调 */ getBaseData (val) {