移动,复制旧路由修改

This commit is contained in:
wangxk 2025-03-24 09:50:18 +08:00
parent 23e4335727
commit 5525ca35c1

View File

@ -597,8 +597,8 @@ function openPreview(row: any) {
ViewfileUrl.value = row.url ViewfileUrl.value = row.url
isViewfile.value = true isViewfile.value = true
fileType.value = getFileExtension(row.fileName) fileType.value = getFileExtension(row.fileName)
}else if(getFileExtension(row.fileName) == 'txt'){ } else if (getFileExtension(row.fileName) == 'txt') {
testClick(row) testClick(row)
} else { } else {
row.fileType = getFileType(row.fileName) row.fileType = getFileType(row.fileName)
@ -766,6 +766,7 @@ function copyMove(type: any) {
// tableIdarr.value // tableIdarr.value
} }
function paste() { function paste() {
debugger
let norepeat = [] let norepeat = []
let repeatObj: any = { let repeatObj: any = {
newPath: '', newPath: '',
@ -793,7 +794,7 @@ function paste() {
// //
copyarr.value.forEach((items: any) => { copyarr.value.forEach((items: any) => {
repeatObj.oldpaths = items.workPath repeatObj.oldpaths ='/' + pathid.value + items.workPath
repeatObj.newFileName.push(items.fileName) repeatObj.newFileName.push(items.fileName)
}) })
repeatObj.newFileName = repeatObj.newFileName.join(',') repeatObj.newFileName = repeatObj.newFileName.join(',')
@ -1188,7 +1189,7 @@ async function submitzip(formEl: any) {
getdata() getdata()
zipfiles.value = false zipfiles.value = false
// debugger // debugger
zipObj.value.compressedPath= '/' + pathid.value +zipObj.value.compressedPath zipObj.value.compressedPath = '/' + pathid.value + zipObj.value.compressedPath
compress(zipObj.value).then((res: any) => { compress(zipObj.value).then((res: any) => {
if (res.code == 0) { if (res.code == 0) {
zipfiles.value = false zipfiles.value = false
@ -1200,7 +1201,7 @@ async function submitzip(formEl: any) {
}) })
} else { } else {
// loading.value = true // 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) { if (res.code == 0) {
ElMessage.success('解压成功') ElMessage.success('解压成功')
// // gettreedata() // // gettreedata()
@ -1278,7 +1279,7 @@ function pathFile(index: any) {
gettsfiles() gettsfiles()
} }
function pathqveding() { function pathqveding() {
zipObj.value.compressedPath = jieFilearr.value.workPath zipObj.value.compressedPath = jieFilearr.value.workPath
creatform.value.parentId = '' creatform.value.parentId = ''
creatform.value.workPath = '' creatform.value.workPath = ''
visible.value = !visible.value visible.value = !visible.value
@ -1937,7 +1938,7 @@ function textClose() {
<AudioPlayer></AudioPlayer> <AudioPlayer></AudioPlayer>
<Viewfile v-if="isViewfile" :showTime="true" :title="title1" :url="ViewfileUrl" :type="fileType" <Viewfile v-if="isViewfile" :showTime="true" :title="title1" :url="ViewfileUrl" :type="fileType"
@update="CloseView" /> @update="CloseView" />
<el-dialog :title="title" v-model="textedit" :before-close="textClose" top="30px" draggable width="60%" <el-dialog :title="title" v-model="textedit" :before-close="textClose" top="30px" draggable width="60%"
destroy-on-close> destroy-on-close>
<textEdit :rowId="rowId" /> <textEdit :rowId="rowId" />
<!-- </el-scrollbar> --> <!-- </el-scrollbar> -->