分页修改
This commit is contained in:
parent
735156bbbd
commit
120800d6a2
@ -70,9 +70,8 @@ function diffFile() {
|
||||
comparearr.value = comparearr.value.filter(item => {
|
||||
return seen.has(item.id) ? false : seen.add(item.id);
|
||||
});
|
||||
tabs.value = 3
|
||||
tabs.value = 1
|
||||
differential.value = true
|
||||
// getchayi()
|
||||
diffSure()
|
||||
diffChange()
|
||||
diffMiss()
|
||||
@ -108,29 +107,6 @@ const minioOnlyFiles: any = ref([])
|
||||
const loading1 = ref(false)
|
||||
const loading2 = ref(false)
|
||||
const loading3 = ref(false)
|
||||
// function getchayi() {
|
||||
// loading.value = true
|
||||
// const ids = []
|
||||
// const params: any = {}
|
||||
// if (comparearr.value.length > 0) {
|
||||
// comparearr.value.forEach((item: any) => {
|
||||
// ids.push(item.id)
|
||||
// })
|
||||
// params.id = ids.join(',')
|
||||
// } else {
|
||||
// params.nodeId = pathid.value
|
||||
// params.taskId = projectId.value
|
||||
// }
|
||||
|
||||
|
||||
// compare(params).then((res: any) => {
|
||||
// localOnlyFiles.value = res.data.localOnlyFiles
|
||||
// md5MismatchedFiles.value = res.data.md5MismatchedFiles
|
||||
// minioOnlyFiles.value = res.data.minioOnlyFiles
|
||||
// loading.value = false
|
||||
// diffColor()
|
||||
// })
|
||||
// }
|
||||
//文件对比-新增内容
|
||||
const sureSize = ref(100)
|
||||
const sureTotal = ref()
|
||||
@ -156,7 +132,6 @@ function diffSure() {
|
||||
sureSize.value = res.data.size
|
||||
sureTotal.value = res.data.total
|
||||
sureCurrent.value = res.data.current
|
||||
// diffColor()
|
||||
})
|
||||
}
|
||||
//文件对比-变更内容
|
||||
@ -184,7 +159,6 @@ function diffChange() {
|
||||
ChangeSize.value = res.data.size
|
||||
ChangeTotal.value = res.data.total
|
||||
ChangeCurrent.value = res.data.current
|
||||
// diffColor()
|
||||
})
|
||||
}
|
||||
//文件对比-缺失内容
|
||||
@ -212,7 +186,6 @@ function diffMiss() {
|
||||
MisseSize.value = res.data.size
|
||||
MissTotal.value = res.data.total
|
||||
MissCurrent.value = res.data.current
|
||||
// diffColor()
|
||||
})
|
||||
}
|
||||
//差异染色
|
||||
@ -336,24 +309,6 @@ function getclickdata(data: any) {
|
||||
});
|
||||
return data
|
||||
}
|
||||
//工作空间树获取
|
||||
//获取工作空间数据
|
||||
// function getWorkData() {
|
||||
// worktree.value = true
|
||||
// listLocalAndBackup({ taskId: projectId.value, nodeId: pathid.value }).then((res: any) => {
|
||||
// workdata.value = res.data.localTrees
|
||||
// backupsdata.value = res.data.minioTrees
|
||||
// if (workdata.value.length > 0) {
|
||||
// assignment(workdata.value, 'local')
|
||||
// }
|
||||
// if (backupsdata.value.length > 0) {
|
||||
// assignment(backupsdata.value, 'minio')
|
||||
// }
|
||||
// worktree.value = false
|
||||
// diffColor()
|
||||
// })
|
||||
|
||||
// }
|
||||
//获取本地树
|
||||
function getlocaltree() {
|
||||
worktree.value = true
|
||||
|
Loading…
Reference in New Issue
Block a user