diff --git a/web/src/views/testdata/datamanagement/index.vue b/web/src/views/testdata/datamanagement/index.vue
index 4a5db30..b586dc3 100644
--- a/web/src/views/testdata/datamanagement/index.vue
+++ b/web/src/views/testdata/datamanagement/index.vue
@@ -597,8 +597,8 @@ function openPreview(row: any) {
ViewfileUrl.value = row.url
isViewfile.value = true
fileType.value = getFileExtension(row.fileName)
-
- }else if(getFileExtension(row.fileName) == 'txt'){
+
+ } else if (getFileExtension(row.fileName) == 'txt') {
testClick(row)
} else {
row.fileType = getFileType(row.fileName)
@@ -766,6 +766,7 @@ function copyMove(type: any) {
// tableIdarr.value
}
function paste() {
+ debugger
let norepeat = []
let repeatObj: any = {
newPath: '',
@@ -793,7 +794,7 @@ function paste() {
//直接走覆盖方法
copyarr.value.forEach((items: any) => {
- repeatObj.oldpaths = items.workPath
+ repeatObj.oldpaths ='/' + pathid.value + items.workPath
repeatObj.newFileName.push(items.fileName)
})
repeatObj.newFileName = repeatObj.newFileName.join(',')
@@ -1188,7 +1189,7 @@ async function submitzip(formEl: any) {
getdata()
zipfiles.value = false
// debugger
- zipObj.value.compressedPath= '/' + pathid.value +zipObj.value.compressedPath
+ zipObj.value.compressedPath = '/' + pathid.value + zipObj.value.compressedPath
compress(zipObj.value).then((res: any) => {
if (res.code == 0) {
zipfiles.value = false
@@ -1200,7 +1201,7 @@ async function submitzip(formEl: any) {
})
} else {
// loading.value = true
- Decompression({ id: jiezip.value.id, parentId: zipParentid.value, decompressionPath:'/' + pathid.value + zipObj.value.compressedPath}).then((res: any) => {
+ Decompression({ id: jiezip.value.id, parentId: zipParentid.value, decompressionPath: '/' + pathid.value + zipObj.value.compressedPath }).then((res: any) => {
if (res.code == 0) {
ElMessage.success('解压成功')
// // gettreedata()
@@ -1278,7 +1279,7 @@ function pathFile(index: any) {
gettsfiles()
}
function pathqveding() {
- zipObj.value.compressedPath = jieFilearr.value.workPath
+ zipObj.value.compressedPath = jieFilearr.value.workPath
creatform.value.parentId = ''
creatform.value.workPath = ''
visible.value = !visible.value
@@ -1937,7 +1938,7 @@ function textClose() {
-