From a9f782708a2a404bbc4b8c52734be2987b050d78 Mon Sep 17 00:00:00 2001 From: zhaomeijing Date: Thu, 12 May 2022 18:00:37 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/tableCollection/index.vue | 10 +++------- .../views/parameter/parameterlist/index.vue | 19 +++++++++---------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/jero-web/src/components/tableCollection/index.vue b/jero-web/src/components/tableCollection/index.vue index 548751ccc..a3662b2e3 100644 --- a/jero-web/src/components/tableCollection/index.vue +++ b/jero-web/src/components/tableCollection/index.vue @@ -11,6 +11,7 @@ :loading="loading" :columns="columns" @change="tableOnChange" + @onHeaderRow='onHeaderRow' > @@ -152,12 +153,12 @@ export default { { title: this.$t('ParameterName'), align: 'center', - dataIndex: 'paramsName' + dataIndex: 'paramsName', }, { title: this.$t('ParameterDescription'), align: 'center', - dataIndex: 'description' + dataIndex: 'description', }, { title: this.$t('areaOfResponsibility'), @@ -185,14 +186,12 @@ export default { this.getList() }, methods: { - // tableOnChange(pagination, filters, sorter) { - // console.log(pagination,'pagination') - // console.log(filters,'filters') - // console.log(sorter,'sorter') - // // this.orderBy = sorter.order == 'ascend' ? '1' : '2' - // // this.orderByField = sorter.columnKey - // this.getList() - // }, + customHeaderRow(val,kk) { + console.log(val,kk) + }, + onClick(val,kk) { + console.log(val,kk) + }, //导出 handleExport() { let _tt = {