|
|
@@ -26,24 +26,36 @@
|
|
|
</template>
|
|
|
<hc-new-card>
|
|
|
<template #extra>
|
|
|
- <el-button hc-btn type="danger" :loading="scanLoading" @click="scanClick">开始扫描</el-button>
|
|
|
+ <HcTooltip keys="file-scan-start-btn">
|
|
|
+ <el-button hc-btn type="danger" :loading="scanLoading" @click="scanClick">开始扫描</el-button>
|
|
|
+ </HcTooltip>
|
|
|
</template>
|
|
|
<template #header>
|
|
|
- <el-button hc-btn type="primary" :disabled="!folderId" @click="uploadModalClick">上传</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>
|
|
|
- <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> -->
|
|
|
+ <HcTooltip keys="file-scan-upload-btn">
|
|
|
+ <el-button hc-btn type="primary" :disabled="!folderId" @click="uploadModalClick">上传</el-button>
|
|
|
+ </HcTooltip>
|
|
|
+ <HcTooltip keys="file-scan-edit-btn">
|
|
|
+ <el-button hc-btn class="text-white" color="#149BF4" :disabled="!tableCheckedKeys.length" @click="editClick">编辑</el-button>
|
|
|
+ </HcTooltip>
|
|
|
+ <HcTooltip keys="file-scan-del-btn">
|
|
|
+ <el-button v-del-com:[delClick] hc-btn type="danger" :disabled="!tableCheckedKeys.length">删除</el-button>
|
|
|
+ </HcTooltip>
|
|
|
+ <HcTooltip keys="file-scan-remove-btn">
|
|
|
+ <el-button hc-btn color="#12B9A7" class="text-white" :disabled="!folderId" @click="movesClick">移动</el-button>
|
|
|
+ </HcTooltip>
|
|
|
|
|
|
- <el-badge :value="taskMount" class="ml-1 mr-4 cursor-pointer" :offset="[5, 5]" @click.native.stop="taskCountClick">
|
|
|
- <el-button hc-btn style="background-color: #8B5CF6; border-color: #8B5CF6; color:white" @click.native.stop="splitClick">自动识别</el-button>
|
|
|
- <template #content="{ value }">
|
|
|
- <div class="custom-content">
|
|
|
- <span>{{ value }}</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-badge>
|
|
|
+
|
|
|
+ <HcTooltip keys="file-scan-auto-btn">
|
|
|
+ <el-badge :value="taskMount" class="ml-1 mr-4 cursor-pointer" :offset="[5, 5]" @click.native.stop="taskCountClick">
|
|
|
+ <el-button hc-btn style="background-color: #8B5CF6; border-color: #8B5CF6; color:white" @click.native.stop="splitClick">自动识别</el-button>
|
|
|
+
|
|
|
+ <template #content="{ value }">
|
|
|
+ <div class="custom-content">
|
|
|
+ <span>{{ value }}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-badge>
|
|
|
+ </HcTooltip>
|
|
|
</template>
|
|
|
|
|
|
<HcTable
|
|
|
@@ -656,7 +668,7 @@ const menuClick = (item, cur)=>{
|
|
|
const { key } = item
|
|
|
console.log(curItem.value, 'curItem.value')
|
|
|
|
|
|
- const { hasChildren } = curItem.value
|
|
|
+ const { isRemove } = curItem.value
|
|
|
|
|
|
|
|
|
console.log(key === 'del-node', key === 'del-node')
|
|
|
@@ -664,7 +676,7 @@ console.log(curItem.value, 'curItem.value')
|
|
|
if (key === 'add-node') {
|
|
|
addModal.value = true
|
|
|
} else if (key === 'del-node') {
|
|
|
- if (hasChildren) {
|
|
|
+ if (isRemove) {
|
|
|
window.$message?.warning('当前节点存在文件,无法删除')
|
|
|
return
|
|
|
}
|