| | |
| | | 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, |
| | |
| | | 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() |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | updateRemoveStatusById([{ id: ids }]) |
| | | updateRemoveBlackById(ids) |
| | | .then(res => { |
| | | this.$message.success('操作成功') |
| | | this.search() |