From a25aa2482f10c17a85e7464d9004db845791bf62 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 21 Apr 2025 10:57:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=94=A8=E5=9F=B9=E8=AE=AD=E6=9D=90?= =?UTF-8?q?=E6=96=99=E5=8F=91=E5=B8=83=E3=80=81=E4=B8=8B=E7=BA=BF=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/SignatureTemplate/index.vue | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/dictionary/attachment/components/SignatureTemplate/index.vue b/src/views/dictionary/attachment/components/SignatureTemplate/index.vue index 78d3203e..74f5a03c 100644 --- a/src/views/dictionary/attachment/components/SignatureTemplate/index.vue +++ b/src/views/dictionary/attachment/components/SignatureTemplate/index.vue @@ -75,7 +75,7 @@ - + @@ -140,8 +140,7 @@ {{ $t('common:button:edit') }} - + {{ $t('dictionary:signature:button:publish') }} @@ -239,9 +238,6 @@ export default { this.getUserType() }, methods: { - handleSelectable(row) { - return !row.IsDeleted - }, handleSelectionChange(val) { this.multipleSelection = val; }, @@ -253,8 +249,9 @@ export default { distinguishCancelAndClose: true, }) if (!confirm) return false + let arr = list.filter(item => !item.IsPublish) let data = { - ids: list.map(item => item.Id) + ids: arr.map(item => item.Id) } this.loading = true let res = await publishSystemDocument(data) @@ -340,8 +337,9 @@ export default { distinguishCancelAndClose: true, }) .then(() => { + let arr = row.filter(item => !item.IsDeleted) let data = { - Ids: row.map(item => item.Id) + Ids: arr.map(item => item.Id) } this.loading = true outLineSystemDocument(data)