|
@@ -437,6 +437,8 @@
|
|
|
<div v-loading.fullscreen="loadingPreview" v-if="loadingPreview" class="lodingBox"></div>
|
|
|
<!-- 新增文档 -->
|
|
|
<AddFile v-if="newAdd" :newAdd="newAdd" @threeBe="threeBe" :clickFileData="clickFileData"></AddFile>
|
|
|
+ <!-- 扫描文档 -->
|
|
|
+ <ScanFile v-if="openScan" :openScan="openScan" @closeOpen="closeOpen"></ScanFile>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -471,6 +473,7 @@ import level3 from "@/assets/images/level3.png";
|
|
|
import level4 from "@/assets/images/level4.png";
|
|
|
import { ElMessage, ElLoading } from 'element-plus'
|
|
|
import ImgPreview from '@/components/ImgPreview/ImgPreview.vue'
|
|
|
+import ScanFile from '@/components/ScanFile/ScanFile.vue'
|
|
|
import PathLabel from '@/components/PathLabel/index.vue'
|
|
|
import { preview } from "@/api/common/common.js";
|
|
|
import historyList from "@/components/historyList/index.vue"; //选择文件发送的列表,历史版本
|
|
@@ -690,6 +693,7 @@ export default {
|
|
|
])
|
|
|
//控制宫格展示
|
|
|
const isList = ref(false); //控制显示方式
|
|
|
+ const openScan = ref(false)//控制扫描文档显示
|
|
|
const changeShow = (fileGrids) => {
|
|
|
// isList.value = !isList.value;
|
|
|
// fileGrid.value = fileGrids
|
|
@@ -1253,7 +1257,10 @@ export default {
|
|
|
}
|
|
|
function getMenu(row, num,canDo) {
|
|
|
if (row.name === '删除') {
|
|
|
- if(!canDo) return
|
|
|
+ if(!canDo){
|
|
|
+ // openScan.value = true
|
|
|
+ return
|
|
|
+ }
|
|
|
const datas = []
|
|
|
const isFile = ref(false)
|
|
|
delMoreFile.value.map(i => {//多选删除
|
|
@@ -1497,6 +1504,9 @@ export default {
|
|
|
copyFolderName.value = nam
|
|
|
copyFileName.value = spa
|
|
|
}
|
|
|
+ const closeOpen = ()=>{
|
|
|
+ openScan.value = false
|
|
|
+ }
|
|
|
//历史版本
|
|
|
const forwardTreeData = reactive({ data: {} });
|
|
|
const historycopyRow = ref({})
|
|
@@ -2126,7 +2136,9 @@ export default {
|
|
|
pathLabelData,
|
|
|
backTopPath,
|
|
|
maxFileSize,
|
|
|
- upBefore
|
|
|
+ upBefore,
|
|
|
+ openScan,
|
|
|
+ closeOpen
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -2146,7 +2158,8 @@ export default {
|
|
|
PlaceGridFolder,
|
|
|
PalaceGridFile,
|
|
|
inputPassword,
|
|
|
- PathLabel
|
|
|
+ PathLabel,
|
|
|
+ ScanFile
|
|
|
},
|
|
|
}
|
|
|
|