|
@@ -192,7 +192,7 @@
|
|
|
</el-table>
|
|
|
<div class="setCli" v-if="cliCC">
|
|
|
<template v-for="(item, index) in mouseCli">
|
|
|
- <p @click="chooseSet(item, index)" class="chooseSet">
|
|
|
+ <p @click="chooseSet(item, index, 1)" class="chooseSet">
|
|
|
<img :src="item.img" alt="">
|
|
|
{{ item.name }}
|
|
|
<span v-if="item.name == '在线编辑' || item.name == '协作' ? true : false"
|
|
@@ -201,7 +201,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>
|
|
@@ -219,7 +219,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>
|
|
@@ -379,22 +380,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>
|
|
@@ -470,7 +466,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
|
|
@@ -618,6 +614,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
])
|
|
|
+ let workOrEdit = ref(0)
|
|
|
const showPreview = ref(false)//控制图片预览组件显示
|
|
|
const previewData = ref()//需要预览的文件的数据
|
|
|
const router = useRouter(); //注册路由
|
|
@@ -735,13 +732,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
|
|
@@ -791,9 +789,9 @@ export default {
|
|
|
if (row.name === '文字识别') {
|
|
|
router.push({
|
|
|
path: '/identifyFont',
|
|
|
- query:{
|
|
|
- fileId:copyFileId.value,
|
|
|
- fileType:copyFileType.value
|
|
|
+ query: {
|
|
|
+ fileId: copyFileId.value,
|
|
|
+ fileType: copyFileType.value
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -811,7 +809,8 @@ export default {
|
|
|
openForwardFile.value = true
|
|
|
}
|
|
|
}
|
|
|
- function chooseSet1() {
|
|
|
+ function chooseSet1(num) {
|
|
|
+ workOrEdit.value = num
|
|
|
thanks.value = true
|
|
|
anyP.value = false
|
|
|
}
|
|
@@ -1125,32 +1124,35 @@ 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数组进行筛选,实现菜单的区分显示
|
|
|
- const filterMouseCli = ()=>{
|
|
|
- const typeArr = ['.png','.jpg','.jpeg','.JPG','.mp3','.mp4']
|
|
|
+ const filterMouseCli = () => {
|
|
|
+ const typeArr = ['.png', '.jpg', '.jpeg', '.JPG', '.mp3', '.mp4']
|
|
|
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 !== "历史版本")
|
|
|
}
|
|
|
return arr
|
|
|
- }
|
|
|
+ }
|
|
|
function mouseClick() {
|
|
|
if (cliCC.value) {
|
|
|
cliCC.value = false
|
|
|
}
|
|
|
+ if (anyP) {
|
|
|
+ anyP.value = false
|
|
|
+ }
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
getAllTop()
|
|
@@ -1271,12 +1273,12 @@ export default {
|
|
|
changeMsgClose,
|
|
|
historyPrew,
|
|
|
historycopyRow,
|
|
|
- //历史版本=========
|
|
|
- forwardChangeMsg,
|
|
|
+ //历史版本=========
|
|
|
fileUserTreeData,
|
|
|
thanks,
|
|
|
getCback,
|
|
|
mouseClick,
|
|
|
+ workOrEdit,
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -1336,7 +1338,7 @@ p {
|
|
|
width: 88px;
|
|
|
height: 112px;
|
|
|
text-align: center;
|
|
|
- margin-left: 12px;
|
|
|
+ margin-left: 5px;
|
|
|
margin-top: 5px;
|
|
|
position: relative;
|
|
|
}
|
|
@@ -1454,7 +1456,7 @@ p {
|
|
|
width: 156px;
|
|
|
max-height: 380px;
|
|
|
position: absolute;
|
|
|
- top: 20px;
|
|
|
+ top: -70px;
|
|
|
left: 300px;
|
|
|
flex-wrap: 400;
|
|
|
background-color: white;
|
|
@@ -1486,7 +1488,7 @@ p {
|
|
|
// display: flex;
|
|
|
// align-items: center;
|
|
|
// position: relative;
|
|
|
- img{
|
|
|
+ img {
|
|
|
margin-right: 4px;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
@@ -1506,7 +1508,7 @@ p {
|
|
|
}
|
|
|
|
|
|
:deep(.el-collapse-item__content) {
|
|
|
- height: 235px;
|
|
|
+ // height: 235px;
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
|
|
@@ -1529,4 +1531,8 @@ p {
|
|
|
height: 100%;
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
+
|
|
|
+:deep(.el-collapse-item__wrap) {
|
|
|
+ height: 300px;
|
|
|
+}
|
|
|
</style>
|