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)