|
@@ -59,7 +59,7 @@
|
|
|
<div v-if="editOnline">
|
|
<div v-if="editOnline">
|
|
|
<!-- 众多功能 -->
|
|
<!-- 众多功能 -->
|
|
|
<div class="manyUse">
|
|
<div class="manyUse">
|
|
|
- <div
|
|
|
|
|
|
|
+ <div v-if="thisRole.some(item=>item == 'upload')"
|
|
|
style="display: flex;width: 92px;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
|
|
style="display: flex;width: 92px;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
|
|
|
<div style="margin-left: 5px;">
|
|
<div style="margin-left: 5px;">
|
|
|
<img src="../../assets/images/upload.png" style="width: 24px;height: 24px;" alt="">
|
|
<img src="../../assets/images/upload.png" style="width: 24px;height: 24px;" alt="">
|
|
@@ -69,7 +69,17 @@
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div
|
|
|
|
|
|
|
+ <div v-else
|
|
|
|
|
+ style="display: flex;width: 92px;opacity:0.5;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
|
|
|
|
|
+ <div style="margin-left: 5px;">
|
|
|
|
|
+ <img src="../../assets/images/upload.png" style="width: 24px;height: 24px;" alt="">
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div style="margin-left: 5px;">
|
|
|
|
|
+ <span style="color: black;cursor: pointer;">上传
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- <div
|
|
|
style="display: flex;width: 82px;height: 32px;justify-content: flex-start;align-items: center;">
|
|
style="display: flex;width: 82px;height: 32px;justify-content: flex-start;align-items: center;">
|
|
|
<div style="margin-left: 5px;">
|
|
<div style="margin-left: 5px;">
|
|
|
<el-icon
|
|
<el-icon
|
|
@@ -81,7 +91,7 @@
|
|
|
<div style="margin-left: 5px;" @click="createNewMenu(0)">
|
|
<div style="margin-left: 5px;" @click="createNewMenu(0)">
|
|
|
<span style="font-size: 14px;">新建</span>
|
|
<span style="font-size: 14px;">新建</span>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
<template v-for="(item, index) in useMenu" :key="index">
|
|
<template v-for="(item, index) in useMenu" :key="index">
|
|
|
<div :class="{ 'isCheck': haveCheck }"
|
|
<div :class="{ 'isCheck': haveCheck }"
|
|
|
style="display: flex;width: 82px;opacity:0.5;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;cursor: pointer;"
|
|
style="display: flex;width: 82px;opacity:0.5;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;cursor: pointer;"
|
|
@@ -227,7 +237,7 @@
|
|
|
@lastBB="lastBB" @onlineCase="onlineCase" @shareBack="shareBack"></PalaceGridFile>
|
|
@lastBB="lastBB" @onlineCase="onlineCase" @shareBack="shareBack"></PalaceGridFile>
|
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
</el-collapse>
|
|
|
- <div class="setCli" v-if="cliCC" :style="{ left: xz + 'px', top: yz - 260 + 'px' }">
|
|
|
|
|
|
|
+ <div class="setCli" v-if="cliCC" :style="{ left: xz + 'px', top: yz + 'px' }">
|
|
|
<template v-for="(item, index) in filterMouseCli()" :key="index">
|
|
<template v-for="(item, index) in filterMouseCli()" :key="index">
|
|
|
<p @click="chooseSet(item, index, 1)" class="chooseSet">
|
|
<p @click="chooseSet(item, index, 1)" class="chooseSet">
|
|
|
<img :src="item.img" alt="">
|
|
<img :src="item.img" alt="">
|
|
@@ -376,7 +386,7 @@ import inputPassword from "./components/inputPassword.vue"; //选择文件发送
|
|
|
import { listVersion } from "@/api/biz/version";
|
|
import { listVersion } from "@/api/biz/version";
|
|
|
import useUserStore from "@/store/modules/user";
|
|
import useUserStore from "@/store/modules/user";
|
|
|
import { useRouter, useRoute } from "vue-router";
|
|
import { useRouter, useRoute } from "vue-router";
|
|
|
-import { canPreviewFile,rightMenuRole } from "@/utils/index.js"
|
|
|
|
|
|
|
+import { canPreviewFile,rightMenuRole,publicRightMenuRole } from "@/utils/index.js"
|
|
|
import fileSpace from '../../api/filespace/fileSpace';
|
|
import fileSpace from '../../api/filespace/fileSpace';
|
|
|
import { getLeveldetail } from '../../api/level/level';
|
|
import { getLeveldetail } from '../../api/level/level';
|
|
|
import { encrypt, decrypt } from "@/utils/jsencrypt";
|
|
import { encrypt, decrypt } from "@/utils/jsencrypt";
|
|
@@ -492,54 +502,14 @@ export default {
|
|
|
name: "预览"
|
|
name: "预览"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- img: ImgFile.addolder,
|
|
|
|
|
- name: "移动到...",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- img: ImgFile.copy,
|
|
|
|
|
- name: "复制到...",
|
|
|
|
|
- },
|
|
|
|
|
- // {
|
|
|
|
|
- // img: ImgFile.clipboard,
|
|
|
|
|
- // name: "粘贴"
|
|
|
|
|
- // },
|
|
|
|
|
- {
|
|
|
|
|
- img: ImgFile.collect,
|
|
|
|
|
- name: "收藏"
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
img: ImgFile.downLoad,
|
|
img: ImgFile.downLoad,
|
|
|
name: "下载"
|
|
name: "下载"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- img: ImgFile.textbox,
|
|
|
|
|
- name: "重命名"
|
|
|
|
|
- },
|
|
|
|
|
- // {
|
|
|
|
|
- // img: ImgFile.goon,
|
|
|
|
|
- // name: "发送"
|
|
|
|
|
- // },
|
|
|
|
|
- {
|
|
|
|
|
- img: ImgFile.share,
|
|
|
|
|
- name: "分享"
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
img: ImgFile.notePencil,
|
|
img: ImgFile.notePencil,
|
|
|
name: "在线编辑"
|
|
name: "在线编辑"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- img: ImgFile.togger,
|
|
|
|
|
- name: "协作"
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- img: ImgFile.icc,
|
|
|
|
|
- name: "文字识别"
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- img: ImgFile.history,
|
|
|
|
|
- name: "历史版本"
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
img: ImgFile.trash,
|
|
img: ImgFile.trash,
|
|
|
name: "删除"
|
|
name: "删除"
|
|
|
}
|
|
}
|
|
@@ -568,7 +538,8 @@ export default {
|
|
|
const isFolder = ref('N') //是否为文件夹
|
|
const isFolder = ref('N') //是否为文件夹
|
|
|
const clickRow = ref()//当前右键的行数据
|
|
const clickRow = ref()//当前右键的行数据
|
|
|
const backFolder = ref()//上一级的文件夹
|
|
const backFolder = ref()//上一级的文件夹
|
|
|
- const thisFolderRole = ref()//文件夹权限
|
|
|
|
|
|
|
+ const thisFolderRole = ref({})//文件夹安全等级
|
|
|
|
|
+ const thisRole = ref([])//文件夹权限
|
|
|
const showInputPassword = ref(false)
|
|
const showInputPassword = ref(false)
|
|
|
const chooseRow = ref()
|
|
const chooseRow = ref()
|
|
|
const chooseNum = ref()
|
|
const chooseNum = ref()
|
|
@@ -576,6 +547,7 @@ export default {
|
|
|
// 获取文件夹,中栏,文件
|
|
// 获取文件夹,中栏,文件
|
|
|
function getAllTop() {
|
|
function getAllTop() {
|
|
|
documents.getTop(2).then(res => {
|
|
documents.getTop(2).then(res => {
|
|
|
|
|
+ console.log('getAllTopres',res);
|
|
|
let userMe = [res]
|
|
let userMe = [res]
|
|
|
impDirId.value = userMe[0].dirId//固定
|
|
impDirId.value = userMe[0].dirId//固定
|
|
|
impSpaceId.value = userMe[0].spaceId//固定
|
|
impSpaceId.value = userMe[0].spaceId//固定
|
|
@@ -624,8 +596,9 @@ export default {
|
|
|
if(row.isEncrypt === "Y"){
|
|
if(row.isEncrypt === "Y"){
|
|
|
getLeveldetailFn(row.encryptLevel)
|
|
getLeveldetailFn(row.encryptLevel)
|
|
|
}else{
|
|
}else{
|
|
|
- thisFolderRole.value = null
|
|
|
|
|
|
|
+ thisFolderRole.value = {}
|
|
|
}
|
|
}
|
|
|
|
|
+ thisRole.value = row.dirRole?row.dirRole.split(','):[]
|
|
|
copyParentId.value = row.parentId
|
|
copyParentId.value = row.parentId
|
|
|
newDirId.value = row.dirId
|
|
newDirId.value = row.dirId
|
|
|
newSpaceId.value = row.spaceId
|
|
newSpaceId.value = row.spaceId
|
|
@@ -1015,8 +988,9 @@ export default {
|
|
|
if(row.isEncrypt === "Y"){
|
|
if(row.isEncrypt === "Y"){
|
|
|
getLeveldetailFn(row.encryptLevel)
|
|
getLeveldetailFn(row.encryptLevel)
|
|
|
}else{
|
|
}else{
|
|
|
- thisFolderRole.value = null
|
|
|
|
|
|
|
+ thisFolderRole.value = {}
|
|
|
}
|
|
}
|
|
|
|
|
+ thisRole.value = row.dirRole?row.dirRole.split(','):[]
|
|
|
console.log('row1', toRaw(row));
|
|
console.log('row1', toRaw(row));
|
|
|
topPath.value = row.dirPath
|
|
topPath.value = row.dirPath
|
|
|
// console.log('topPath',toRaw(topPath.value));
|
|
// console.log('topPath',toRaw(topPath.value));
|
|
@@ -1159,7 +1133,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
// console.log('arr',arr);
|
|
// console.log('arr',arr);
|
|
|
if(thisFolderRole.value){
|
|
if(thisFolderRole.value){
|
|
|
- arr = rightMenuRole(toRaw(thisFolderRole.value),arr)
|
|
|
|
|
|
|
+ arr = publicRightMenuRole(toRaw(thisRole.value),arr)
|
|
|
}
|
|
}
|
|
|
return arr
|
|
return arr
|
|
|
}
|
|
}
|
|
@@ -1565,7 +1539,8 @@ export default {
|
|
|
surePass,
|
|
surePass,
|
|
|
chooseRow,
|
|
chooseRow,
|
|
|
chooseNum,
|
|
chooseNum,
|
|
|
- loadingPreview
|
|
|
|
|
|
|
+ loadingPreview,
|
|
|
|
|
+ thisRole
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|