Browse Source

fix: 修复选择项禁用状态的逻辑,确保正确判断文件的借出状态

xieyong 1 day ago
parent
commit
5d4d4f02f5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/doc/components/file-table-list.vue

+ 2 - 2
src/views/doc/components/file-table-list.vue

@@ -101,7 +101,7 @@
             })
           "
           :disabled="
-            selection.filter((item) => item.checkOutStatus != 1).length
+            !!(selection.filter((item) => item.checkOutStatus != 1).length)
           "
           v-if="lcyStatus == 1"
         >
@@ -117,7 +117,7 @@
             })
           "
           :disabled="
-            selection.filter((item) => item.checkOutStatus == 1).length
+            !!(selection.filter((item) => item.checkOutStatus == 1).length)
           "
           v-if="lcyStatus == 1"
         >