Ver Fonte

扫描移动修改

duy há 3 semanas atrás
pai
commit
7ff506f010
1 ficheiros alterados com 5 adições e 3 exclusões
  1. 5 3
      src/views/file/scan.vue

+ 5 - 3
src/views/file/scan.vue

@@ -28,7 +28,7 @@
                     <el-button hc-btn type="danger" :loading="scanLoading" @click="scanClick">开始扫描</el-button>
                 </template>
                 <template #header>
-                    <el-button hc-btn color="#12B9A7" class="text-white" @click="movesClick">移动</el-button>
+                    <el-button hc-btn color="#12B9A7" class="text-white" :disabled="!folderId" @click="movesClick">移动</el-button>
                     <el-button hc-btn color="#149BF4" class="text-white">自动识别</el-button>
                     <el-button hc-btn class="text-white" color="#149BF4" :disabled="!tableCheckedKeys.length" @click="editClick">编辑</el-button>
                     <el-button v-del-com:[delClick] hc-btn type="danger" :disabled="!tableCheckedKeys.length">删除</el-button>
@@ -122,7 +122,7 @@ import { onMounted, ref } from 'vue'
 import scanApi from '~api/archiveFile/scanning'
 import { useAppStore } from '~src/store'
 import HcTree from '~src/components/tree/hc-tree.vue'
-import { deepClone, getArrValue } from 'js-fast-way'
+import { arrToId, deepClone, getArrValue } from 'js-fast-way'
 import MenuItem from './MenuItem.vue' // 导入递归组件
 import { toPdfPage } from '~uti/btn-auth'
 import { rowsToId } from '~uti/tools'
@@ -298,8 +298,10 @@ const showRadioFun = (data) => {
 //保存
 const movesModalLoading = ref(false)
 const movesModalSave = async () => {
-    const keys = rowsToId(checkedMoves.value)
+    const keys = arrToId(checkedMoves.value).split(',')
     let ids = keys
+    console.log(keys, 'keys')
+    
     if (checkedMoves.value.length < 1) {
         window.$message?.warning('请勾选需要迁移的文件')
         return