|
@@ -879,11 +879,9 @@ export default {
|
|
|
if(thisFolder.value.dirId){
|
|
|
const query = `${thisFolder.value.dirId}?isAsc=${isAsc.value}&orderByColumn=createTime&pageSize=9999&pageNum=${filePageNum.value}`
|
|
|
const res = await myfile.getById(query)
|
|
|
- console.log('filessetScrollres',res);
|
|
|
if (res.code === 200) {
|
|
|
// const newarr = res.rows.concat(toRaw(fileList.value))
|
|
|
const newarr = res.rows
|
|
|
- console.log('newarr',newarr);
|
|
|
fileList.value = JSON.parse(JSON.stringify(newarr))
|
|
|
if(newarr.length < tableTotal.value){
|
|
|
//获取后的数量<total就可以再次获取
|
|
@@ -904,9 +902,7 @@ export default {
|
|
|
// 获取文件夹,中栏,文件
|
|
|
function getAllTop() {
|
|
|
documents.getTop(1).then(res => {
|
|
|
- console.log('getAllTopres',res);
|
|
|
if(!res){
|
|
|
- console.log('nores');
|
|
|
return
|
|
|
}
|
|
|
let userMe = [res]
|
|
@@ -1084,7 +1080,6 @@ export default {
|
|
|
}
|
|
|
// 文件名表格每一行点击事件
|
|
|
function handleRowClick(row, col, e) {
|
|
|
- console.log('row',row);
|
|
|
isFolder.value = "N"
|
|
|
clickRow.value = row
|
|
|
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','.dps','.et', '.pptx','.pdf','.PDF']
|
|
@@ -1136,7 +1131,6 @@ export default {
|
|
|
// 申请扩容
|
|
|
async function askApply() {
|
|
|
const res = await fileSpace.querySpace(impSpaceId.value)
|
|
|
- console.log('res',res);
|
|
|
if(res.data){
|
|
|
ElMessage({ message: '已存在扩容申请', type: 'error' })
|
|
|
return
|
|
@@ -1628,7 +1622,6 @@ export default {
|
|
|
const oldArr = toRaw(pathLabelData.value)
|
|
|
// console.log('oldArr',oldArr);
|
|
|
let newArr
|
|
|
- console.log('jump',jump);
|
|
|
if(jump == undefined){
|
|
|
newArr = oldArr.push({
|
|
|
name:toRaw(row).dirName,
|
|
@@ -1637,7 +1630,6 @@ export default {
|
|
|
}else{ // jump有值说明是点击过来的 后面的要截取掉
|
|
|
newArr = oldArr.splice(jump+1)
|
|
|
}
|
|
|
- console.log('newArr',newArr);
|
|
|
pathLabelData.value = JSON.parse(JSON.stringify(oldArr))
|
|
|
}else{
|
|
|
const labelItem = {
|
|
@@ -1655,7 +1647,6 @@ export default {
|
|
|
thisFolderRole.value = {}
|
|
|
}
|
|
|
thisRole.value = row.dirRole?row.dirRole.split(','):[]
|
|
|
- console.log('row1', toRaw(row));
|
|
|
// topPath.value = row.dirPath
|
|
|
// console.log('topPath',toRaw(topPath.value));
|
|
|
newDirId.value = row.dirId
|
|
@@ -1681,7 +1672,6 @@ export default {
|
|
|
})
|
|
|
} else {
|
|
|
myfile.getById(query).then(res => {
|
|
|
- console.log('folerFile',res);
|
|
|
if (res.code === 200) {
|
|
|
tableTotal.value =res.total
|
|
|
if(res.rows.length<res.total){
|
|
@@ -1884,7 +1874,6 @@ export default {
|
|
|
}
|
|
|
// console.log('arr',arr);
|
|
|
if(thisFolderRole.value?.roles){
|
|
|
- console.log('thisFolderRole',thisFolderRole.value);
|
|
|
arr = rightMenuRole(toRaw(thisFolderRole.value),arr)
|
|
|
}
|
|
|
if(thisRole.value.length){
|
|
@@ -1899,7 +1888,6 @@ export default {
|
|
|
}else{
|
|
|
noMenuItem.value = false
|
|
|
}
|
|
|
- console.log('filterArr',arr);
|
|
|
return arr
|
|
|
}
|
|
|
function mouseClick() {
|
|
@@ -1980,9 +1968,7 @@ export default {
|
|
|
}
|
|
|
// 归档
|
|
|
async function goLock() {
|
|
|
- console.log('goLockclickRow',clickRow.value);
|
|
|
const res = await documentation(clickRow.value.docId)
|
|
|
- console.log('res',res);
|
|
|
if(res.code == 200){
|
|
|
ElMessage({
|
|
|
type: "success",
|
|
@@ -2055,7 +2041,6 @@ export default {
|
|
|
}
|
|
|
//star收藏事件
|
|
|
const collectByStar = (row,isfolder)=>{
|
|
|
- console.log('row',row);
|
|
|
if(isfolder){
|
|
|
let thisRow = toRaw(row)
|
|
|
isFolder.value = 'Y'
|
|
@@ -2076,7 +2061,6 @@ export default {
|
|
|
// 取消文件收藏
|
|
|
const delCollect = async (row,isfolder)=>{
|
|
|
const thisRow = toRaw(row)
|
|
|
- console.log('thisRow',thisRow);
|
|
|
let query = {}
|
|
|
if(isfolder){
|
|
|
query = {
|
|
@@ -2124,7 +2108,6 @@ export default {
|
|
|
levelName:item.levelName
|
|
|
}
|
|
|
})
|
|
|
- console.log('levelList',levelList.value);
|
|
|
}
|
|
|
}
|
|
|
const setTablelevel = (level)=>{
|
|
@@ -2172,9 +2155,7 @@ export default {
|
|
|
setTimeout(()=>{
|
|
|
const passArr = localStorage.getItem('passArr');
|
|
|
const passArrObj = JSON.parse(passArr)
|
|
|
- console.log('```passArrObj',passArrObj);
|
|
|
const newArr = passArrObj.filter(item=>item != clickRow.value.docId)
|
|
|
- console.log('```newArr',newArr);
|
|
|
localStorage.setItem('passArr',JSON.stringify(newArr))
|
|
|
},1000*30)
|
|
|
chooseSet(chooseRow.value,null,chooseNum.value)
|
|
@@ -2184,7 +2165,6 @@ export default {
|
|
|
}
|
|
|
//输入私有码后
|
|
|
const sureCode =async (pass) => {
|
|
|
- console.log('pass',pass);
|
|
|
// console.log('oldPass',passwordCookies);
|
|
|
// console.log('clickRow',clickRow);
|
|
|
const query={
|
|
@@ -2192,7 +2172,6 @@ export default {
|
|
|
dirId:thisFolder.value.dirId
|
|
|
}
|
|
|
const res = await documents.matches(query)
|
|
|
- console.log('res',res);
|
|
|
showInputPassword.value = false
|
|
|
if (res.data) {
|
|
|
const codeArr = localStorage.getItem('codeArr');
|
|
@@ -2257,11 +2236,9 @@ export default {
|
|
|
|
|
|
// --------------------
|
|
|
const res = await myfile.getById(query)
|
|
|
- console.log('setScrollres',res);
|
|
|
if (res.code === 200) {
|
|
|
// const newarr = res.rows.concat(toRaw(fileList.value))
|
|
|
const newarr = toRaw(fileList.value).concat(res.rows)
|
|
|
- console.log('newarr',newarr);
|
|
|
fileList.value = JSON.parse(JSON.stringify(newarr))
|
|
|
if(newarr.length < tableTotal.value){
|
|
|
//获取后的数量<total就可以再次获取
|
|
@@ -2282,7 +2259,6 @@ export default {
|
|
|
}else{
|
|
|
isDept.value = false
|
|
|
}
|
|
|
- console.log('isDept',isDept.value);
|
|
|
}
|
|
|
//修改文件夹权限
|
|
|
const upFirstFoler =async (item)=>{
|
|
@@ -2290,7 +2266,6 @@ export default {
|
|
|
// console.log('upFirstFoler',item);
|
|
|
item = item || clickRow.value
|
|
|
const res = await myfile.getDir(item.dirId)
|
|
|
- console.log('upFirstFolerres = ',res);
|
|
|
upFolderData.value = toRaw(res.data)
|
|
|
folderCase.value = true
|
|
|
}
|
|
@@ -2330,7 +2305,6 @@ export default {
|
|
|
const sureScaner =async ()=>{
|
|
|
if(!checkScanId.value) return
|
|
|
const res = await getFileByScanerId(checkScanId.value)
|
|
|
- console.log('sureScanerres',res);
|
|
|
scannerFiles.value = res.data
|
|
|
checkScanner.value = false
|
|
|
openScan.value = true
|
|
@@ -2341,7 +2315,6 @@ export default {
|
|
|
}
|
|
|
// 移动到事件
|
|
|
const saveScanFile = (arr)=>{
|
|
|
- console.log('arr',arr);
|
|
|
openScan.value = false
|
|
|
scanFileArr.value = arr
|
|
|
openScanMove.value = true
|
|
@@ -2363,7 +2336,6 @@ export default {
|
|
|
thisFolder.value = {}
|
|
|
localStorage.setItem('leftShowList',leftShowList.value)
|
|
|
if(leftShowList.value === 1){
|
|
|
- console.log('toList');
|
|
|
// 创建标签
|
|
|
const addData = {
|
|
|
path: '/publicment',
|
|
@@ -2372,7 +2344,6 @@ export default {
|
|
|
clickPath(null,addData)
|
|
|
}
|
|
|
if(leftShowList.value === 2){
|
|
|
- console.log('toList');
|
|
|
// 创建标签
|
|
|
const addData = {
|
|
|
path: '/publicment',
|
|
@@ -2442,7 +2413,6 @@ export default {
|
|
|
}
|
|
|
watch(() => folder.value, async(newValue, oldValue) => {
|
|
|
// console.log('iFrameData 发生改变了', newValue, oldValue);
|
|
|
- console.log('files',newValue);
|
|
|
filePageNum.value = 1
|
|
|
if(!newValue.length){
|
|
|
fileHeight.value = '75vh'
|
|
@@ -2458,7 +2428,6 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
// const newarr = res.rows.concat(toRaw(fileList.value))
|
|
|
const newarr = res.rows
|
|
|
- console.log('newarr',newarr);
|
|
|
fileList.value = JSON.parse(JSON.stringify(newarr))
|
|
|
if(newarr.length < tableTotal.value){
|
|
|
//获取后的数量<total就可以再次获取
|
|
@@ -2481,7 +2450,6 @@ export default {
|
|
|
if (res.code === 200) {
|
|
|
// const newarr = res.rows.concat(toRaw(fileList.value))
|
|
|
const newarr = res.rows
|
|
|
- console.log('newarr',newarr);
|
|
|
fileList.value = JSON.parse(JSON.stringify(newarr))
|
|
|
if(newarr.length < tableTotal.value){
|
|
|
//获取后的数量<total就可以再次获取
|
|
@@ -2501,7 +2469,6 @@ export default {
|
|
|
if(!hasMsg){
|
|
|
getConfigKey("dir.style.config").then(response => {
|
|
|
leftShowList.value = response.msg - 0;
|
|
|
- console.log('leftShowList == ',leftShowList.value);
|
|
|
});
|
|
|
}else{
|
|
|
leftShowList.value = hasMsg - 0
|
|
@@ -2526,7 +2493,6 @@ export default {
|
|
|
})
|
|
|
// 组件显示
|
|
|
onActivated(()=>{
|
|
|
- console.log('onActivated.query',route.query);
|
|
|
loadingPreview.value = true
|
|
|
//给pagesize复制
|
|
|
if(fileGrid.value == 0){
|
|
@@ -2580,7 +2546,6 @@ export default {
|
|
|
if(!hasMsg){
|
|
|
getConfigKey("dir.style.config").then(response => {
|
|
|
leftShowList.value = response.msg - 0;
|
|
|
- console.log('leftShowList == ',leftShowList.value);
|
|
|
});
|
|
|
}else{
|
|
|
leftShowList.value = hasMsg - 0
|