|
@@ -217,7 +217,7 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
<div class="setCli1" v-if="anyP">
|
|
|
- <p @click="chooseSet1()" class="">
|
|
|
+ <p @click="chooseSet1(0)" class="">
|
|
|
<img src="../../assets/images/user.png" alt="">
|
|
|
选择人员
|
|
|
</p>
|
|
@@ -235,7 +235,8 @@
|
|
|
<div>
|
|
|
<el-button @click="editOnline = true">返回</el-button>
|
|
|
</div>
|
|
|
- <FileEdit :docId="clickRowId" :copyRow="copyRow" :historyPrew="historyPrew" :historycopyRow="historycopyRow"></FileEdit>
|
|
|
+ <FileEdit :docId="clickRowId" :copyRow="copyRow" :historyPrew="historyPrew"
|
|
|
+ :historycopyRow="historycopyRow"></FileEdit>
|
|
|
</div>
|
|
|
<!-- 扩容弹窗 -->
|
|
|
<div>
|
|
@@ -395,22 +396,17 @@
|
|
|
</div>
|
|
|
<!-- 穿梭框 -->
|
|
|
<div>
|
|
|
- <TransferModal v-if="thanks" :thanks="thanks" :clickRowId="clickRowId" @getCback="getCback"></TransferModal>
|
|
|
+ <TransferModal v-if="thanks" :thanks="thanks" :clickRowId="clickRowId" :workOrEdit="workOrEdit"
|
|
|
+ @getCback="getCback"></TransferModal>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 图片预览 -->
|
|
|
<!-- 历史版本 -->
|
|
|
- <historyList
|
|
|
- :openFile="openForwardFile"
|
|
|
- :docId="clickRowId"
|
|
|
- :name="nameForm.name"
|
|
|
- :copyRow="copyRow"
|
|
|
- @close="openForwardFile = false"
|
|
|
- :fileUserTreeData="fileUserTreeData.data"
|
|
|
- @changeMsgClose="changeMsgClose"
|
|
|
- ></historyList>
|
|
|
- <!-- 历史版本 -->
|
|
|
+ <historyList :openFile="openForwardFile" :docId="clickRowId" :name="nameForm.name" :copyRow="copyRow"
|
|
|
+ @close="openForwardFile = false" :fileUserTreeData="fileUserTreeData.data" @changeMsgClose="changeMsgClose">
|
|
|
+ </historyList>
|
|
|
+ <!-- 历史版本 -->
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -486,7 +482,7 @@ export default {
|
|
|
let copyOrMove = ref(0)//0代表复制,1代表移动
|
|
|
let sortNum = ref(0)
|
|
|
const openForwardFile = ref(false) //历史版本展示
|
|
|
- const historyPrew=ref(false)
|
|
|
+ const historyPrew = ref(false)
|
|
|
const fileUserTreeData = reactive({ data: {} });
|
|
|
let boserForm = ref({
|
|
|
spaceId: "",//空间id
|
|
@@ -634,6 +630,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
])
|
|
|
+ let workOrEdit = ref(0)
|
|
|
const showPreview = ref(false)//控制图片预览组件显示
|
|
|
const previewData = ref()//需要预览的文件的数据
|
|
|
const router = useRouter(); //注册路由
|
|
@@ -755,13 +752,14 @@ export default {
|
|
|
this.askTo = false
|
|
|
}
|
|
|
//mouse弹框
|
|
|
- async function chooseSet(row, num) {
|
|
|
+ async function chooseSet(row, index, num) {
|
|
|
if (row.name == '在线编辑' || row.name == '协作') {
|
|
|
cliCC.value = true
|
|
|
} else {
|
|
|
cliCC.value = false
|
|
|
}
|
|
|
if (row.name == '分享') {
|
|
|
+ workOrEdit.value = num
|
|
|
thanks.value = true
|
|
|
} else {
|
|
|
thanks.value = false
|
|
@@ -811,9 +809,9 @@ export default {
|
|
|
if (row.name === '文字识别') {
|
|
|
router.push({
|
|
|
path: '/identifyFont',
|
|
|
- query:{
|
|
|
- fileId:copyFileId.value,
|
|
|
- fileType:copyFileType.value
|
|
|
+ query: {
|
|
|
+ fileId: copyFileId.value,
|
|
|
+ fileType: copyFileType.value
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -831,7 +829,8 @@ export default {
|
|
|
openForwardFile.value = true
|
|
|
}
|
|
|
}
|
|
|
- function chooseSet1() {
|
|
|
+ function chooseSet1(num) {
|
|
|
+ workOrEdit.value = num
|
|
|
thanks.value = true
|
|
|
anyP.value = false
|
|
|
}
|
|
@@ -1150,15 +1149,15 @@ export default {
|
|
|
}
|
|
|
//历史版本
|
|
|
const forwardTreeData = reactive({ data: {} });
|
|
|
- const historycopyRow=ref({})
|
|
|
- function changeMsgClose(val,item) {
|
|
|
- if(val){
|
|
|
- historycopyRow.value=item
|
|
|
+ const historycopyRow = ref({})
|
|
|
+ function changeMsgClose(val, item) {
|
|
|
+ if (val) {
|
|
|
+ historycopyRow.value = item
|
|
|
editOnline.value = false
|
|
|
cliCC.value = false
|
|
|
- historyPrew.value=true
|
|
|
+ historyPrew.value = true
|
|
|
}
|
|
|
- openForwardFile.value=val
|
|
|
+ openForwardFile.value = val
|
|
|
}
|
|
|
|
|
|
//对mouseCli数组进行筛选,实现菜单的区分显示
|
|
@@ -1166,10 +1165,10 @@ export default {
|
|
|
const typeArr = ['.png','.jpg','.jpeg','.JPG','.mp3','.mp4','.pdf']
|
|
|
const imgTypeArr = ['.png','.jpg','.jpeg','.JPG']
|
|
|
let arr = []
|
|
|
- if(!typeArr.includes(copyFileType.value)){
|
|
|
- arr = mouseCli.value.filter(item=>item.name !== "预览")
|
|
|
- }else{
|
|
|
- arr = mouseCli.value.filter(item=>item.name !== "在线编辑" && item.name !== "协作" && item.name !== "历史版本")
|
|
|
+ if (!typeArr.includes(copyFileType.value)) {
|
|
|
+ arr = mouseCli.value.filter(item => item.name !== "预览")
|
|
|
+ } else {
|
|
|
+ arr = mouseCli.value.filter(item => item.name !== "在线编辑" && item.name !== "协作" && item.name !== "历史版本")
|
|
|
}
|
|
|
if(!imgTypeArr.includes(copyFileType.value)){
|
|
|
arr = arr.filter(item=>item.name !== "文字识别")
|
|
@@ -1180,6 +1179,9 @@ export default {
|
|
|
if (cliCC.value) {
|
|
|
cliCC.value = false
|
|
|
}
|
|
|
+ if (anyP) {
|
|
|
+ anyP.value = false
|
|
|
+ }
|
|
|
}
|
|
|
// 文件夹右键事件
|
|
|
const folderRClick = (row,col,e) => {
|
|
@@ -1330,7 +1332,13 @@ export default {
|
|
|
folderleft,
|
|
|
thisFolder,
|
|
|
folderRClick,
|
|
|
- closeRMenu
|
|
|
+ closeRMenu,
|
|
|
+ //历史版本=========
|
|
|
+ fileUserTreeData,
|
|
|
+ thanks,
|
|
|
+ getCback,
|
|
|
+ mouseClick,
|
|
|
+ workOrEdit,
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -1390,7 +1398,7 @@ p {
|
|
|
width: 88px;
|
|
|
height: 112px;
|
|
|
text-align: center;
|
|
|
- margin-left: 12px;
|
|
|
+ margin-left: 5px;
|
|
|
margin-top: 5px;
|
|
|
position: relative;
|
|
|
}
|
|
@@ -1508,7 +1516,7 @@ p {
|
|
|
width: 156px;
|
|
|
max-height: 380px;
|
|
|
position: absolute;
|
|
|
- top: 20px;
|
|
|
+ top: -70px;
|
|
|
left: 300px;
|
|
|
flex-wrap: 400;
|
|
|
background-color: white;
|
|
@@ -1540,7 +1548,7 @@ p {
|
|
|
// display: flex;
|
|
|
// align-items: center;
|
|
|
// position: relative;
|
|
|
- img{
|
|
|
+ img {
|
|
|
margin-right: 4px;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
@@ -1560,7 +1568,7 @@ p {
|
|
|
}
|
|
|
|
|
|
:deep(.el-collapse-item__content) {
|
|
|
- height: 235px;
|
|
|
+ // height: 235px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
|
|
@@ -1607,4 +1615,8 @@ p {
|
|
|
height: 100%;
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
+
|
|
|
+:deep(.el-collapse-item__wrap) {
|
|
|
+ height: 300px;
|
|
|
+}
|
|
|
</style>
|