From c5fde84fe19971f6c1d54319e3410dcde2c1fbf6 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Tue, 22 Feb 2022 10:25:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/tableDate/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jero-web/src/components/tableDate/index.vue b/jero-web/src/components/tableDate/index.vue index c130cda8d..6efa814b5 100644 --- a/jero-web/src/components/tableDate/index.vue +++ b/jero-web/src/components/tableDate/index.vue @@ -101,11 +101,16 @@ ellipsis: true }) }) + let width + if (this.OperationList.length > 0){ + width = this.OperationList.length * 55 + } if (this.showAction) { this.columns.push({ title: '操作', align: 'center', fixed: 'right', + width: width, scopedSlots: { customRender: 'operation' } }) } @@ -119,7 +124,7 @@ pageSize: this.pageSize } this.loading = true - getAction(this.url.tableList, params).then((res) => { + postAction(this.url.tableList, params).then((res) => { if (res.success) { this.dataSource = res.result.records this.total = res.result.total