jiangping
2024-06-28 43942a545271345ce26e40d82bb97138c5ea7611
admin/src/views/business/blackmailPersonnel.vue
@@ -80,7 +80,7 @@
import TableLayout from '@/layouts/TableLayout'
import Pagination from '@/components/common/Pagination'
import { findAllList } from '@/api/system/common'
import { updateRemoveStatusById } from '@/api/business/block'
import { updateRemoveBlackById } from '@/api/business/block'
export default {
  name: 'blackmailPersonnel',
  extends: BaseTable,
@@ -111,9 +111,9 @@
    thaws () {
      if (this.tableData.selectedRows.length === 0) return this.$message.warning('至少选择一项内容')
      const ids = this.tableData.selectedRows.map(item => {
        return { id: item.id }
        return item.id
      })
      updateRemoveStatusById(ids)
      updateRemoveBlackById(ids.join(','))
        .then(res => {
          this.$message.success('操作成功')
          this.search()
@@ -125,7 +125,7 @@
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        updateRemoveStatusById([{ id: ids }])
        updateRemoveBlackById(ids)
          .then(res => {
            this.$message.success('操作成功')
            this.search()