|
@@ -408,7 +408,7 @@
|
|
|
</div>
|
|
|
<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">
|
|
|
- <p @click="chooseSet(item, index, 1)" :class="{'hasLine':item.name == '删除'||item.name == '重命名' ||item.name == '文字识别','btmLine':item.name == '收藏'}" class="chooseSet">
|
|
|
+ <p @click="chooseSet(item, index, 1)" :class="{'hasLine':item.name == '删除' ||item.name == '文字识别','btmLine':item.name == '收藏'||item.name == '下载'}" class="chooseSet">
|
|
|
<img :src="item.img" alt="">
|
|
|
{{ item.name }}
|
|
|
<span v-if=" item.name == '协作' ? true : false"
|
|
@@ -542,8 +542,9 @@
|
|
|
:close-delay='200'
|
|
|
:before-close="closeHis"
|
|
|
>
|
|
|
- <iframe :key="nowTime" :src="hisIfarmeData.src" :name="nowTime" id="iframeHis" frameborder="0" width="1200px"
|
|
|
- height="800px" class="iframeBox" ></iframe>
|
|
|
+ <!-- <iframe :key="nowTime" :src="hisIfarmeData.src" :name="nowTime" id="iframeHis" frameborder="0" width="1200px"
|
|
|
+ height="800px" class="iframeBox" ></iframe> -->
|
|
|
+ <PreHistory v-if="showHis" :historyDocId="historyDocId" :historyFileId="historyFileId"></PreHistory>
|
|
|
</el-dialog>
|
|
|
<!-- 查看模板的iframe -->
|
|
|
<el-dialog
|
|
@@ -560,7 +561,7 @@
|
|
|
<el-icon class="icon" @click="delFull" v-else><CopyDocument /></el-icon>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <iframe :key="nowTime" :src="tempIfarmeData.src" :name="nowTime" id="iframeHis" frameborder="0" width="1200px"
|
|
|
+ <iframe :key="nowTime" :src="tempIfarmeData.src" :name="nowTime" id="iframeHis1" frameborder="0" width="1200px"
|
|
|
height="800px" class="iframeBox" ></iframe>
|
|
|
</el-dialog>
|
|
|
<!-- 给新建的文件命名 -->
|
|
@@ -572,6 +573,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { ref, toRaw, onMounted, inject, onActivated ,watch} from 'vue'
|
|
|
+import PreHistory from "@/components/PreHistory/PreHistory.vue"
|
|
|
import myfile from '../../api/myfile/myfile'
|
|
|
import {documentation}from "@/api/biz/actor.js"
|
|
|
import {getInfo,delInfo}from "@/api/biz/info.js"
|
|
@@ -851,24 +853,28 @@ export default {
|
|
|
const tempIfarmeData = ref({})
|
|
|
const showTemp = ref(false)
|
|
|
const fullscreen = ref(false)
|
|
|
+ const historyDocId = ref()
|
|
|
+ const historyFileId= ref()
|
|
|
const hisIfarmeData = ref({
|
|
|
// src: `${window.location.origin}/fileEdit?clickRowId=7567&canEdit=0&canCopy=0&history=0&fileId=0`,
|
|
|
})
|
|
|
const setHisData = (data)=>{
|
|
|
nowTime.value = new Date().getTime()
|
|
|
+ historyDocId.value = data.docId
|
|
|
+ historyFileId.value = data.fileId
|
|
|
hisIfarmeData.value = {
|
|
|
// src:`${window.location.origin}/fileEdit?clickRowId=${data.docId}&canEdit=0&canCopy=0&history=1&fileId=${data.fileId}`,
|
|
|
src:`${window.location.origin}/preHistory?clickRowId=${data.docId}&fileId=${data.fileId}`,
|
|
|
}
|
|
|
showHis.value = true
|
|
|
- const dom = document.getElementById('iframeHis')
|
|
|
- if(dom){
|
|
|
- dom.contentWindow.location.reload();
|
|
|
- }
|
|
|
- // console.log(21);
|
|
|
- setTimeout(() => {
|
|
|
- iframeSize()
|
|
|
- }, 200);
|
|
|
+ // const dom = document.getElementById('iframeHis')
|
|
|
+ // if(dom){
|
|
|
+ // dom.contentWindow.location.reload();
|
|
|
+ // }
|
|
|
+ // // console.log(21);
|
|
|
+ // setTimeout(() => {
|
|
|
+ // iframeSize()
|
|
|
+ // }, 200);
|
|
|
// console.log('data',data);
|
|
|
}
|
|
|
// 控制iframe大小
|
|
@@ -3059,7 +3065,9 @@ export default {
|
|
|
closeTemp,
|
|
|
fullscreen,
|
|
|
toFull,
|
|
|
- delFull
|
|
|
+ delFull,
|
|
|
+ historyDocId,
|
|
|
+ historyFileId
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -3086,7 +3094,8 @@ export default {
|
|
|
ListShow,
|
|
|
TreeMenu,
|
|
|
addFileDrop,
|
|
|
- addFileTempList
|
|
|
+ addFileTempList,
|
|
|
+ PreHistory
|
|
|
},
|
|
|
}
|
|
|
|