From c6e525aaf0532c62c47af1f1aff10a6cd4760024 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Thu, 24 Feb 2022 10:35:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/tableDate/index.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/jero-web/src/components/tableDate/index.vue b/jero-web/src/components/tableDate/index.vue index 11cecda6c..b81c4e23a 100644 --- a/jero-web/src/components/tableDate/index.vue +++ b/jero-web/src/components/tableDate/index.vue @@ -26,8 +26,8 @@ - - {{text}} + + {{text}} @@ -98,10 +98,12 @@ } }) this.searchParmes = search + this.getData() this.getTableList() }) eventBUs.$on('searchReset', target => { this.searchParmes = {} + this.getData() this.getTableList() }) this.getData() @@ -129,9 +131,11 @@ } } }) - let width + let width = 0 if (this.OperationList.length > 0) { - width = this.OperationList.length * 55 + this.OperationList.forEach((res) => { + width += res.text.length * 8 + width + }) } if (this.showAction) { this.columns.push({ @@ -184,11 +188,9 @@ OperationClick(ol, item) { this.$emit(ol.ClickEvent, item) }, - detailClick(item,index){ - console.log(item) - console.log(index) - // this.$emit('detailClick',item) - }, + detailClick(item, index) { + this.$emit('detailClick',item) + } } }