|
@@ -408,7 +408,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="setCli" id="setCli" v-if="cliCC" :style="{ left: xz + 'px', top: yz - 160 + 'px' }">
|
|
<div class="setCli" id="setCli" v-if="cliCC" :style="{ left: xz + 'px', top: yz - 160 + '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="{'hasLine':item.name == '删除' ||item.name == '文字识别','btmLine':item.name == '收藏'||item.name == '下载'}" class="chooseSet">
|
|
|
|
|
|
|
+ <p @click="chooseSet(item, index, 1)" :class="{'hasLine':item.name == '删除' ||item.name == '文字识别','btmLine':(item.name == '收藏' && !noHis)||item.name == '下载'}" class="chooseSet">
|
|
|
<img :src="item.img" alt="">
|
|
<img :src="item.img" alt="">
|
|
|
{{ item.name }}
|
|
{{ item.name }}
|
|
|
<span v-if=" item.name == '协作' ? true : false"
|
|
<span v-if=" item.name == '协作' ? true : false"
|
|
@@ -858,6 +858,7 @@ export default {
|
|
|
const hisIfarmeData = ref({
|
|
const hisIfarmeData = ref({
|
|
|
// src: `${window.location.origin}/fileEdit?clickRowId=7567&canEdit=0&canCopy=0&history=0&fileId=0`,
|
|
// src: `${window.location.origin}/fileEdit?clickRowId=7567&canEdit=0&canCopy=0&history=0&fileId=0`,
|
|
|
})
|
|
})
|
|
|
|
|
+ const noHis = ref(false)
|
|
|
const setHisData = (data)=>{
|
|
const setHisData = (data)=>{
|
|
|
nowTime.value = new Date().getTime()
|
|
nowTime.value = new Date().getTime()
|
|
|
historyDocId.value = data.docId
|
|
historyDocId.value = data.docId
|
|
@@ -1201,6 +1202,12 @@ export default {
|
|
|
console.log('row', row);
|
|
console.log('row', row);
|
|
|
isFolder.value = "N"
|
|
isFolder.value = "N"
|
|
|
clickRow.value = row
|
|
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']
|
|
|
|
|
+ if(!canEditArr.includes(row.fileType)){
|
|
|
|
|
+ noHis.value = true
|
|
|
|
|
+ }else{
|
|
|
|
|
+ noHis.value = false
|
|
|
|
|
+ }
|
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
|
xz.value = e.pageX
|
|
xz.value = e.pageX
|
|
@@ -1476,6 +1483,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
function threeBe(data,newFileData) {
|
|
function threeBe(data,newFileData) {
|
|
|
|
|
+ addTempId.value = null
|
|
|
if(thisFolderRole.value && thisFolderRole.value.roles.l0800){
|
|
if(thisFolderRole.value && thisFolderRole.value.roles.l0800){
|
|
|
addFileTab(newFileData, 1,1);
|
|
addFileTab(newFileData, 1,1);
|
|
|
}else{
|
|
}else{
|
|
@@ -3067,7 +3075,8 @@ export default {
|
|
|
toFull,
|
|
toFull,
|
|
|
delFull,
|
|
delFull,
|
|
|
historyDocId,
|
|
historyDocId,
|
|
|
- historyFileId
|
|
|
|
|
|
|
+ historyFileId,
|
|
|
|
|
+ noHis
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|