From 45c2ec101cf6eb2658d4a65f8b5e7cc6b52d5dd8 Mon Sep 17 00:00:00 2001 From: yaojn Date: Wed, 17 Jan 2024 14:36:46 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E5=89=8D=E7=AB=AFTsTab?= =?UTF-8?q?le=E7=BB=84=E4=BB=B6=E5=8F=AF=E6=8B=96=E6=8B=BD=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=8F=92=E6=A7=BD=E4=BF=AE=E6=94=B9=E8=A1=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E6=95=B0=E6=8D=AE=E4=B8=8D=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=94=B1=E4=BA=8EtbodyList=E6=B7=B1=E6=8B=B7=E8=B4=9D?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=20=20-=20[=E5=85=B3=E8=81=94]#[1070802634506?= =?UTF-8?q?240]=E5=89=8D=E7=AB=AFTsTable=E7=BB=84=E4=BB=B6=E5=8F=AF?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=EF=BC=8C=E4=BD=BF=E7=94=A8=E6=8F=92=E6=A7=BD?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=8C=E6=95=B0=E6=8D=AE=EF=BC=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=B8=8D=E6=9B=B4=E6=96=B0=E7=94=B1=E4=BA=8EtbodyList?= =?UTF-8?q?=E6=B7=B1=E6=8B=B7=E8=B4=9D=E5=AF=BC=E8=87=B4=20http://192.168.?= =?UTF-8?q?0.96:8090/demo/rdm.html#/bug-detail/939050947543040/93905094754?= =?UTF-8?q?3057/1070802634506240?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resources/components/TsTable/component/table-tbody.vue | 6 ++++-- src/views/pages/process/priority/priority-manage.vue | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/resources/components/TsTable/component/table-tbody.vue b/src/resources/components/TsTable/component/table-tbody.vue index 1191a2d5..33755117 100644 --- a/src/resources/components/TsTable/component/table-tbody.vue +++ b/src/resources/components/TsTable/component/table-tbody.vue @@ -513,8 +513,10 @@ export default { tbodyList: { handler: function(val) { let _this = this; - this.list = this.canDrag ? this.$utils.deepClone(val) : val; - //this.list = val; + this.list = []; + val && val.forEach((item) => { + this.list.push(item); // 可拖拽,使用插槽修改行数据,数据不更新由于tbodyList深拷贝导致 + }); if (_this.$el && _this.$el.rows && _this.$el.rows.length) { _this.$nextTick(() => { let cellWidthList = []; diff --git a/src/views/pages/process/priority/priority-manage.vue b/src/views/pages/process/priority/priority-manage.vue index a00aeabd..71fc130e 100644 --- a/src/views/pages/process/priority/priority-manage.vue +++ b/src/views/pages/process/priority/priority-manage.vue @@ -341,8 +341,6 @@ export default { if (res.Status === 'OK') { this.$Message.success(this.$t('message.savesuccess')); } else throw res; - }).finally(() => { - this.getTableDataSearch(1); }); } }, -- Gitee