Explorar el Código

feat: 优化取消选中逻辑

cuiyalong hace 9 meses
padre
commit
9ee8cc489e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      frontend/src/views/ReviewList.vue

+ 2 - 2
frontend/src/views/ReviewList.vue

@@ -835,7 +835,7 @@ const tableRowSelectable = (row) => {
 const doBatchListing = () => {
     // 过滤一下,找到已通过爬虫,仅提交此类爬虫(因为能选中的只有3和11,所以直接过滤获取2组)
     const list = listState.selected.filter(v => v.state === 3)
-    const dropList = listState.selected.filter(v => v.state === 11)
+    const dropList = listState.selected.filter(v => v.state !== 3)
     toggleRow(dropList)
     if (list.length <= 0) {
         return ElMessage({
@@ -853,7 +853,7 @@ const doBatchListing = () => {
 const doUnBatchListing = () => {
     // 过滤一下,找到已上线爬虫,仅提交此类爬虫(因为能选中的只有3和11,所以直接过滤获取2组)
     const list = listState.selected.filter(v => v.state === 11)
-    const dropList = listState.selected.filter(v => v.state === 3)
+    const dropList = listState.selected.filter(v => v.state !== 11)
     toggleRow(dropList)
     if (list.length <= 0) {
         return ElMessage({