|
@@ -41,9 +41,11 @@
|
|
|
class="box-item tool-tip"
|
|
|
effect="dark"
|
|
|
placement="top-start"
|
|
|
+ v-if="item.encryptLevel"
|
|
|
>
|
|
|
- <template #content> 安全级别: {{ item.encryptLevel == 'L1'?'敏感':(item.encryptLevel == 'L2'?'涉密':(item.encryptLevel == 'L3'?'机密':'绝密')) }} </template>
|
|
|
+ <template #content><span>安全级别: {{ item.encryptLevel == 'L1'?'敏感':(item.encryptLevel == 'L2'?'涉密':(item.encryptLevel == 'L3'?'机密':'绝密')) }}</span> </template>
|
|
|
<img src="../../assets/images/fileStyle.png" style="width: 72px;height: 72px;"></el-tooltip>
|
|
|
+ <img src="../../assets/images/fileStyle.png" style="width: 72px;height: 72px;" v-else>
|
|
|
<p class="ellipsis-text">{{ item.dirName }}</p>
|
|
|
<img class="levelImg" v-if="item.isEncrypt === 'Y'" :src="getLevelImg(item.encryptLevel)" alt="">
|
|
|
</div>
|
|
@@ -126,6 +128,19 @@
|
|
|
<span style="font-size: 14px;" class="shouzhi">新建</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div
|
|
|
+ style="display: flex;width: 102px;height: 32px;justify-content: flex-start;align-items: center;" :class="!thisFolder.dirType?'yincang':'xianshi'">
|
|
|
+ <div style="margin-left: 5px;">
|
|
|
+ <el-icon
|
|
|
+ style="background-color: #7084B4;width: 24px;height: 24px;border-radius: 50%;color: white;"
|
|
|
+ @click="createNewMenu(1)">
|
|
|
+ <Plus />
|
|
|
+ </el-icon>
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 5px;" @click="createNewMenu(1)">
|
|
|
+ <span style="font-size: 14px;" class="shouzhi">新建文档</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<template v-for="(item, index) in useMenu" :key="index">
|
|
|
<div :class="{ 'isCheck': haveCheck }"
|
|
|
style="display: flex;width: 82px;opacity:0.5;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;cursor: pointer;"
|
|
@@ -188,10 +203,12 @@
|
|
|
:content="scope.row.dirName"
|
|
|
placement="top"
|
|
|
:show-after="1000"
|
|
|
+ v-if="scope.row.encryptLevel"
|
|
|
>
|
|
|
<template #content> {{ scope.row.encryptLevel == 'L1'?'敏感':(scope.row.encryptLevel == 'L2'?'涉密':(scope.row.encryptLevel == 'L3'?'机密':'绝密')) }} </template>
|
|
|
<span class="shouzhi">{{ scope.row.dirName }}</span>
|
|
|
</el-tooltip>
|
|
|
+ <span class="shouzhi" v-else>{{ scope.row.dirName }}</span>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -253,10 +270,12 @@
|
|
|
effect="dark"
|
|
|
placement="top"
|
|
|
:show-after="1000"
|
|
|
+ v-if="scope.row.encryptLevel"
|
|
|
>
|
|
|
<template #content> {{ scope.row.encryptLevel == 'L1'?'敏感':(scope.row.encryptLevel == 'L2'?'涉密':(scope.row.encryptLevel == 'L3'?'机密':'绝密')) }} </template>
|
|
|
<span class="shouzhi">{{ scope.row.fileName }}</span>
|
|
|
</el-tooltip>
|
|
|
+ <span class="shouzhi" v-else>{{ scope.row.fileName }}</span>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -389,6 +408,8 @@
|
|
|
<!-- 二次密码验证 -->
|
|
|
<inputPassword v-if="showInputPassword" @surePass="surePass" @closeIptPass="closeIptPass" :showInputPassword="showInputPassword"></inputPassword>
|
|
|
<div v-loading.fullscreen="loadingPreview" v-if="loadingPreview" class="lodingBox"></div>
|
|
|
+ <!-- 新增文档 -->
|
|
|
+ <AddFile v-if="newAdd" :newAdd="newAdd" @threeBe="threeBe"></AddFile>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -400,6 +421,7 @@ import documents from '../../api/document/document'
|
|
|
import fileCount from '../../api/fileCount/fileCount'
|
|
|
import FileTree from './components/FileTree.vue'
|
|
|
import BreadMenu from './components/BreadMenu.vue'
|
|
|
+import AddFile from '../myjoin/components/AddFile.vue'
|
|
|
// import FileEdit from './components/FileEdit.vue'
|
|
|
import TransferModal from './modalComponebts/Transfer.vue'
|
|
|
import CreateFloder from './modalComponebts/CreateFloder.vue'
|
|
@@ -488,6 +510,7 @@ export default {
|
|
|
const historyPrew = ref(false)
|
|
|
let xz = ref(0)
|
|
|
let yz = ref(0)
|
|
|
+ let newAdd = ref(false)
|
|
|
const fileUserTreeData = reactive({ data: {} });
|
|
|
let fileList = ref()
|
|
|
let menuList = ref([
|
|
@@ -964,8 +987,16 @@ export default {
|
|
|
anyP.value = false
|
|
|
}
|
|
|
function createNewMenu(num) {
|
|
|
- oneOrTwo.value = num
|
|
|
- folderCase.value = true
|
|
|
+ if(num==1) {
|
|
|
+ newAdd.value = true
|
|
|
+ }else{
|
|
|
+ oneOrTwo.value = num
|
|
|
+ folderCase.value = true
|
|
|
+ }
|
|
|
+ console.log('num', num,newAdd.value)
|
|
|
+ }
|
|
|
+ function threeBe(data){
|
|
|
+ newAdd.value = data
|
|
|
}
|
|
|
function cancleHistoryPrew(val) {
|
|
|
historyPrew.value = false
|
|
@@ -1775,12 +1806,14 @@ export default {
|
|
|
downLoadfile,
|
|
|
addTab,
|
|
|
addFolderAdd,
|
|
|
- addFileTab
|
|
|
+ addFileTab,
|
|
|
+ threeBe
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
},
|
|
|
components: {
|
|
|
+ AddFile,
|
|
|
BreadMenu,
|
|
|
// FileEdit,
|
|
|
ImgPreview,
|
|
@@ -2122,4 +2155,7 @@ p {
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
}
|
|
|
+.yincang{
|
|
|
+ opacity:0.5;
|
|
|
+}
|
|
|
</style>
|