|
|
@@ -73,7 +73,7 @@
|
|
|
<div v-if="editOnline">
|
|
|
<!-- 众多功能 -->
|
|
|
<div class="manyUse">
|
|
|
- <div
|
|
|
+ <div v-if="thisFolder.dirType == '1'"
|
|
|
style="display: flex;width: 92px;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
|
|
|
<div style="margin-left: 5px;">
|
|
|
<img src="../../assets/images/upload.png" style="width: 24px;height: 24px;" alt="">
|
|
|
@@ -83,6 +83,16 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div v-else
|
|
|
+ style="display: flex;width: 92px;opacity:0.5;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
|
|
|
+ <div style="margin-left: 5px;">
|
|
|
+ <img src="../../assets/images/upload.png" style="width: 24px;height: 24px;" alt="">
|
|
|
+ </div>
|
|
|
+ <div style="margin-left: 5px;">
|
|
|
+ <span style="color: black;cursor: pointer;">上传
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div
|
|
|
style="display: flex;width: 82px;height: 32px;justify-content: flex-start;align-items: center;">
|
|
|
<div style="margin-left: 5px;">
|
|
|
@@ -114,11 +124,11 @@
|
|
|
<!-- 左侧 -->
|
|
|
<div style="display: flex;justify-content: space-around;align-items: center;">
|
|
|
<!-- 前进后退 -->
|
|
|
- <div style="display: flex;justify-content: space-around;align-items: center;">
|
|
|
+ <!-- <div style="display: flex;justify-content: space-around;align-items: center;">
|
|
|
<img style="display:block;width: 11px;height: 11px;" :src="blueLeft" alt=""
|
|
|
@click="arrowLift">
|
|
|
<img style="display:block;width: 16px;height: 16px;" :src="grayRight" alt="">
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<!-- 面包屑 -->
|
|
|
<div class="topPath">
|
|
|
{{ topPath }}
|
|
|
@@ -360,7 +370,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { ref, toRaw, onMounted } from 'vue'
|
|
|
+import { ref, toRaw, onMounted ,inject} from 'vue'
|
|
|
import myfile from '../../api/myfile/myfile'
|
|
|
import { delFavorite } from '@/api/biz/favorite.js'
|
|
|
import documents from '../../api/document/document'
|
|
|
@@ -573,6 +583,7 @@ export default {
|
|
|
const showPreview = ref(false)//控制图片预览组件显示
|
|
|
const previewData = ref()//需要预览的文件的数据
|
|
|
const router = useRouter(); //注册路由
|
|
|
+ const route = useRoute(); //注册路由
|
|
|
const folderVisible = ref(false); //显示文件夹右键菜单
|
|
|
const foldertop = ref(0);
|
|
|
const folderleft = ref(0);
|
|
|
@@ -590,6 +601,8 @@ export default {
|
|
|
const chooseRow = ref()
|
|
|
const chooseNum = ref()
|
|
|
const loadingPreview = ref(false)
|
|
|
+ const addTab = inject("addTab");
|
|
|
+ const addFolderAdd = inject("addFolderAdd");
|
|
|
// 获取文件夹,中栏,文件
|
|
|
function getAllTop() {
|
|
|
documents.getTop(3).then(res => {
|
|
|
@@ -637,6 +650,13 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
function changeFile(row, num) {
|
|
|
+ // 创建标签
|
|
|
+ console.log('route',route.path);
|
|
|
+ const addData = {
|
|
|
+ path:route.path,
|
|
|
+ row:toRaw(row)
|
|
|
+ }
|
|
|
+ addFolderAdd(addData)
|
|
|
thisFolder.value = row
|
|
|
console.log('row2',row);
|
|
|
if(row.isEncrypt === "Y"){
|
|
|
@@ -864,8 +884,10 @@ export default {
|
|
|
loadingPreview.value = true
|
|
|
const filePreview = canPreviewFile(copyFileType.value)
|
|
|
if (filePreview) {
|
|
|
+ loadingPreview.value = false
|
|
|
+ addTab(clickRow.value);
|
|
|
onlyView.value = true
|
|
|
- editOnline.value = false
|
|
|
+ // editOnline.value = false
|
|
|
cliCC.value = false
|
|
|
} else {
|
|
|
const res = await preview(copyFileId.value)
|
|
|
@@ -1565,6 +1587,7 @@ export default {
|
|
|
closeImgPreview,//关闭预览事件
|
|
|
previewData,//预览文件数据
|
|
|
router,
|
|
|
+ route,
|
|
|
fileTrees,
|
|
|
getChildren,//子传父
|
|
|
copyOrMove,
|
|
|
@@ -1650,7 +1673,9 @@ export default {
|
|
|
chooseRow,
|
|
|
chooseNum,
|
|
|
loadingPreview,
|
|
|
- downLoadfile
|
|
|
+ downLoadfile,
|
|
|
+ addTab,
|
|
|
+ addFolderAdd
|
|
|
}
|
|
|
},
|
|
|
watch: {
|