文件同步管理数量显示错误问题
This commit is contained in:
parent
abe433678a
commit
6dbaf80d91
@ -190,6 +190,9 @@ function backups() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
////////////
|
////////////
|
||||||
|
let locallength:any = ref(0)
|
||||||
|
let md5length:any = ref(0)
|
||||||
|
let miniolength:any = ref(0)
|
||||||
function getchayi() {
|
function getchayi() {
|
||||||
const ids = []
|
const ids = []
|
||||||
const params: any = {}
|
const params: any = {}
|
||||||
@ -205,16 +208,19 @@ function getchayi() {
|
|||||||
}
|
}
|
||||||
compareLocalList(params).then((res: any) => {
|
compareLocalList(params).then((res: any) => {
|
||||||
localOnlyFiles.value = res.data
|
localOnlyFiles.value = res.data
|
||||||
|
locallength.value = res.data.length
|
||||||
gettreeTwo()
|
gettreeTwo()
|
||||||
comparearr.value.length = 0
|
comparearr.value.length = 0
|
||||||
})
|
})
|
||||||
compareMd5List(params).then((res: any) => {
|
compareMd5List(params).then((res: any) => {
|
||||||
md5MismatchedFiles.value = res.data
|
md5MismatchedFiles.value = res.data
|
||||||
|
md5length.value = res.data.length
|
||||||
gettreeTwo()
|
gettreeTwo()
|
||||||
comparearr.value.length = 0
|
comparearr.value.length = 0
|
||||||
})
|
})
|
||||||
compareMinioList(params).then((res: any) => {
|
compareMinioList(params).then((res: any) => {
|
||||||
minioOnlyFiles.value = res.data
|
minioOnlyFiles.value = res.data
|
||||||
|
miniolength.value = res.data.length
|
||||||
gettreeTwo()
|
gettreeTwo()
|
||||||
comparearr.value.length = 0
|
comparearr.value.length = 0
|
||||||
})
|
})
|
||||||
@ -402,6 +408,9 @@ function gettreedata() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
function handleNodeClick(data: any, node: any) {
|
function handleNodeClick(data: any, node: any) {
|
||||||
|
locallength.value = 0
|
||||||
|
miniolength.value = 0
|
||||||
|
md5length.value = 0
|
||||||
pathid.value = data.nodeId
|
pathid.value = data.nodeId
|
||||||
localOnlyFiles.value.length = 0
|
localOnlyFiles.value.length = 0
|
||||||
md5MismatchedFiles.value.length = 0
|
md5MismatchedFiles.value.length = 0
|
||||||
@ -1123,15 +1132,15 @@ const formatFileSize = (size: number): string => {
|
|||||||
<div class="legend">
|
<div class="legend">
|
||||||
<div class="legend_box">
|
<div class="legend_box">
|
||||||
<div class="legend_color1"></div>
|
<div class="legend_color1"></div>
|
||||||
<div class="legend_text">工作空间新增文件({{ localOnlyFiles.length }})</div>
|
<div class="legend_text">工作空间新增文件({{ locallength }})</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="legend_box">
|
<div class="legend_box">
|
||||||
<div class="legend_color2"></div>
|
<div class="legend_color2"></div>
|
||||||
<div class="legend_text">工作空间已删除文件({{ minioOnlyFiles.length }})</div>
|
<div class="legend_text">工作空间已删除文件({{ miniolength }})</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="legend_box">
|
<div class="legend_box">
|
||||||
<div class="legend_color3"></div>
|
<div class="legend_color3"></div>
|
||||||
<div class="legend_text">工作空间内容变动文件({{ md5MismatchedFiles.length }})</div>
|
<div class="legend_text">工作空间内容变动文件({{ md5length }})</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tree_button">
|
<div class="tree_button">
|
||||||
|
Loading…
Reference in New Issue
Block a user