|
@@ -269,7 +269,7 @@
|
|
|
<template #title>
|
|
|
<span class="file-title">文件</span>
|
|
|
</template>
|
|
|
- <el-table v-el-table-infinite-scroll="setScroll" :infinite-scroll-distance="10"
|
|
|
+ <el-table v-el-table-infinite-scroll="setScroll" :infinite-scroll-distance="30"
|
|
|
:infinite-scroll-disabled="tableBeEnd" v-if="fileGrid" height="38vh"
|
|
|
:data="fileList" :scrollbar-always-on="true" style="width: 100%;"
|
|
|
@row-contextmenu="handleRowClick" @selection-change="handleSelectionChange"
|
|
@@ -703,6 +703,7 @@ export default {
|
|
|
for (var i = 1; i <= x; i++) {
|
|
|
obj.pageNum = i
|
|
|
myfile.getById(userMe[0].dirId - 0, obj).then(res => {
|
|
|
+ console.log('topallfn');
|
|
|
fileList.value = fileList.value.concat(res.rows)
|
|
|
const uniqueFileList = Array.from(new Set(fileList.value.map(item => item.docId)))
|
|
|
.map(docId => fileList.value.find(item => item.docId === docId));
|
|
@@ -975,14 +976,24 @@ export default {
|
|
|
// selectedIndex.value = selectedIndex.value + 1
|
|
|
}
|
|
|
if (row.name === '文字识别') {
|
|
|
- router.push({
|
|
|
- path: '/identifyFont',
|
|
|
- query: {
|
|
|
- docId: copyRow.value.docId,
|
|
|
- fileId: copyRow.value.fileId,
|
|
|
- fileType: copyFileType.value
|
|
|
+ // router.push({
|
|
|
+ // path: '/identifyFont',
|
|
|
+ // query: {
|
|
|
+ // docId: copyRow.value.docId,
|
|
|
+ // fileId: copyRow.value.fileId,
|
|
|
+ // fileType: copyFileType.value
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ const itemData = {
|
|
|
+ name: '文字识别',
|
|
|
+ path: 'identifyFont',
|
|
|
+ clickRowId: {
|
|
|
+ docId: copyRow.value.docId,
|
|
|
+ fileId: copyRow.value.fileId,
|
|
|
+ fileType: copyFileType.value
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
+ addFolderAdd(itemData)
|
|
|
}
|
|
|
if (row.name === '预览') {
|
|
|
loadingPreview.value = true
|
|
@@ -1292,14 +1303,16 @@ export default {
|
|
|
folderList.value = res.data
|
|
|
if (res.data.length === 0) {
|
|
|
myfile.getById(query).then(res => {
|
|
|
+ console.log('res = ',res);
|
|
|
if (res.code === 200) {
|
|
|
tableTotal.value = res.total
|
|
|
if (res.rows.length < res.total) {
|
|
|
//第一次拿到的数据少于总数开启下拉事件
|
|
|
tableBeEnd.value = false
|
|
|
}
|
|
|
- fileList.value = res.rows
|
|
|
+ fileList.value = JSON.parse(JSON.stringify(res.rows))
|
|
|
}
|
|
|
+ console.log('folderClickshijian1',tableTotal.value,tableBeEnd.value);
|
|
|
})
|
|
|
} else {
|
|
|
myfile.getById(query).then(res => {
|
|
@@ -1313,6 +1326,7 @@ export default {
|
|
|
fileList.value = JSON.parse(JSON.stringify(res.rows))
|
|
|
// console.log('fileList',toRaw(fileList.value));
|
|
|
}
|
|
|
+ console.log('folderClickshijian2',tableTotal.value,tableBeEnd.value);
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -1419,7 +1433,7 @@ export default {
|
|
|
const filterMouseCli = () => {
|
|
|
const canPreviewArray = ['.doc', '.wps', '.docm', '.docx', '.dot', '.dotm', '.dotx', '.epub', '.fodt', '.htm', '.html', '.mht', '.odt', '.ott', '.pdf', '.rtf', '.txt', '.djvu', '.xps', '.csv', '.fods', '.ods', '.ots', '.xls', '.xlsm', '.xlsx', '.xlt', '.xltm', '.xltx', '.fodp', '.odp', '.otp', '.pot', '.potm', '.potx', '.pps', '.ppsm', '.ppsx', '.ppt', '.pptm', '.pptx']
|
|
|
const typeArr = ['.png', '.jpg', '.jpeg', '.JPG', '.mp3', '.mp4']
|
|
|
- const imgTypeArr = ['.png', '.jpg', '.jpeg', '.JPG']
|
|
|
+ const imgTypeArr = ['.png', '.jpg', '.jpeg', '.JPG','.PNG']
|
|
|
const canEditArr = ['.doc', '.docm', '.docx', '.dot', '.dotm', '.dotx', '.txt', '.djvu', '.xps', '.csv', '.fods', '.ods', '.ots', '.xls', '.xlsm', '.xlsx', '.xlt', '.xltm', '.xltx', '.fodp', '.odp', '.otp', '.doc', '.docm', '.docx', '.dot', '.dotm', '.dotx', '.epub', '.fodt', '.htm', '.html', '.mht', '.odt', '.ott', '.rtf', '.txt', '.djvu', '.xps', '.wps', '.pptx']
|
|
|
let arr = []
|
|
|
if (!(typeArr.includes(copyFileType.value) || canPreviewArray.includes(copyFileType.value))) {
|