|
|
@@ -213,7 +213,8 @@ const pageRef = ref(null);
|
|
|
const pageConfig = reactive({
|
|
|
pageUrl: '/book/bookRecycleInfo/pageList',
|
|
|
fileName: '回收书单管理',
|
|
|
- cacheKey: 'recycleBooklistTable'
|
|
|
+ cacheKey: 'recycleBooklistTable',
|
|
|
+ rowKey: 'isbn'
|
|
|
});
|
|
|
|
|
|
//刷新表格
|
|
|
@@ -266,6 +267,7 @@ function handleOptBooklist(row) {
|
|
|
//黑名单操作
|
|
|
function handleOptBlacklist(row) {
|
|
|
let selections = row ? [row] : pageRef.value?.getSelections();
|
|
|
+ console.log(selections, 'selections',pageRef.value?.getSelections());
|
|
|
if (!selections || selections.length === 0) {
|
|
|
ElMessage.warning('请选择要操作的图书');
|
|
|
return;
|
|
|
@@ -328,10 +330,10 @@ function handleOptType(type) {
|
|
|
}
|
|
|
|
|
|
const isbnList = selections.map((item) => item.isbn);
|
|
|
- const url = type == 2
|
|
|
+ const url = type == 1
|
|
|
? '/book/bookRecycleInfo/changeBookTag2'
|
|
|
: '/book/bookRecycleInfo/changeBookTag1';
|
|
|
- const title = type == 2 ? '确认加社科库?' : '确认加教材库?';
|
|
|
+ const title = type == 1 ? '确认加社科库?' : '确认加教材库?';
|
|
|
|
|
|
pageRef.value?.operatBatch({
|
|
|
title,
|