|
|
@@ -22,12 +22,12 @@
|
|
|
<Search />
|
|
|
</el-icon>
|
|
|
<div class="left_changeShow">
|
|
|
- <img v-if="leftShowList" src="@/assets/images/squre.png" @click="changeLeftShow" alt="">
|
|
|
+ <img v-if="leftShowList == 1" src="@/assets/images/squre.png" @click="changeLeftShow" alt="">
|
|
|
<img v-else src="@/assets/images/Frame_187.png" @click="changeLeftShow" alt="">
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- v-for盒子 -->
|
|
|
- <div v-if="leftShowList"
|
|
|
+ <div v-if="leftShowList == 1"
|
|
|
style="display: flex;justify-content: flex-start;align-items: flex-start;flex-wrap: wrap;align-content: flex-start;overflow-y: auto;">
|
|
|
<template v-for="(item, index) in fileMenu" :key="index">
|
|
|
<div class="setBox">
|
|
|
@@ -62,7 +62,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
|
- <LeftList v-else :spaceType="3" @folderClick="folderClick"></LeftList>
|
|
|
+ <LeftList v-else :spaceType="3" @listfolderClick="listfolderClick"></LeftList>
|
|
|
</div>
|
|
|
<div class="expansion">
|
|
|
<div class="top_box">
|
|
|
@@ -192,7 +192,7 @@
|
|
|
<span>使用右键进行文件操作</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="leftShowList">
|
|
|
+ <div v-if="leftShowList == 1">
|
|
|
<!-- 面包屑功能栏 -->
|
|
|
<div class="breadBox">
|
|
|
<!-- 左侧 -->
|
|
|
@@ -350,7 +350,7 @@
|
|
|
@lastBB="lastBB" @collectByStar="collectByStar" @delCollect="delCollect" @setScroll="setScroll" @handleRowClick="handleRowClick" @onlineCase="onlineCase" @shareBack="shareBack" :thisFolder="thisFolder" :fileList="fileList"></PalaceGridFile>
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
|
- <div class="setCli" v-if="cliCC" :style="{ left: xz + 'px', top: yz - 260 + 'px' }">
|
|
|
+ <!-- <div class="setCli" v-if="cliCC" :style="{ left: xz + 'px', top: yz - 260 + 'px' }">
|
|
|
<template v-for="(item, index) in filterMouseCli()" :key="index">
|
|
|
<p @click="chooseSet(item, index, 1)" class="chooseSet">
|
|
|
<img :src="item.img" alt="">
|
|
|
@@ -369,15 +369,34 @@
|
|
|
<img src="../../assets/images/archiveTray.png" alt="">
|
|
|
归档
|
|
|
</p>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <ListShow v-else></ListShow>
|
|
|
+ <ListShow v-else :fileList="fileList" @handleRowClick="handleRowClick"></ListShow>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+ <div class="setCli" v-if="cliCC" :style="{ left: xz + 'px', top: yz - 260 + 'px' }">
|
|
|
+ <template v-for="(item, index) in filterMouseCli()" :key="index">
|
|
|
+ <p @click="chooseSet(item, index, 1)" class="chooseSet">
|
|
|
+ <img :src="item.img" alt="">
|
|
|
+ {{ item.name }}
|
|
|
+ <span v-if=" item.name == '协作' ? true : false"
|
|
|
+ style="color: #7084B4;float: right;position: relative;" class="arrow">></span>
|
|
|
+ </p>
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+ <div class="setCli1" v-if="anyP" :style="{ left: xz + 155 + 'px', top: yz + 'px' }">
|
|
|
+ <p @click="chooseSet1(0)" class="chooseSet">
|
|
|
+ <img src="../../assets/images/user.png" alt="">
|
|
|
+ 选择人员
|
|
|
+ </p>
|
|
|
+ <p class="chooseSet" @click="goLock" v-if="clickRow.isActor === 'Y' && clickRow.isFiled != 'Y'">
|
|
|
+ <img src="../../assets/images/archiveTray.png" alt="">
|
|
|
+ 归档
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
<!-- 扩容弹窗 -->
|
|
|
<div>
|
|
|
<SpaceBig v-if="spaces" :spaces="spaces" :impSpaceId="impSpaceId" @getSpaceC="getSpaceC"></SpaceBig>
|
|
|
@@ -734,6 +753,7 @@ export default {
|
|
|
const addFileTab = inject("addFileTab");
|
|
|
const addFolderAdd = inject("addFolderAdd");
|
|
|
const upFileData = inject("upFileData");
|
|
|
+ const clickPath = inject("clickPath");
|
|
|
const spaceName = ref()
|
|
|
const filePageNum = ref(1) //获取文件分页
|
|
|
const tableBeEnd = ref(true)//控制下拉是否到底
|
|
|
@@ -758,7 +778,8 @@ export default {
|
|
|
const inputTitle = ref()//验证框标题
|
|
|
const isCode = ref(false)// 验证的类型
|
|
|
const isAsc = ref("desc");
|
|
|
- const leftShowList = ref(false)
|
|
|
+ const leftShowList = ref(localStorage.getItem('leftShowList') ||1)
|
|
|
+ const thisFirst = ref()
|
|
|
const changeSort = async () => {
|
|
|
isAsc.value == "asc" ? (isAsc.value = "desc") : (isAsc.value = "asc");
|
|
|
refreshFile()
|
|
|
@@ -1453,7 +1474,10 @@ export default {
|
|
|
}
|
|
|
|
|
|
// 文件夹每行点击事件
|
|
|
- function folderClick(row, list,e,jump) {
|
|
|
+ function folderClick(row, list,e,jump,firstData) {
|
|
|
+ // console.log('firstData',firstData);
|
|
|
+ // console.log('list',list);
|
|
|
+ // console.log('row',row);
|
|
|
// console.log('rightRow',row);
|
|
|
// 如果label没有值说明点的是一级目录
|
|
|
if(!pathLabelData.value[0]){
|
|
|
@@ -1545,6 +1569,54 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ // 左边树节点每行点击事件
|
|
|
+ function listfolderClick(row,firstData) {
|
|
|
+ thisFolder.value = row
|
|
|
+ if (row.isEncrypt === "Y") {
|
|
|
+ getLeveldetailFn(row.encryptLevel)
|
|
|
+ } else {
|
|
|
+ thisFolderRole.value = null
|
|
|
+ }
|
|
|
+ console.log('row',row);
|
|
|
+ newDirId.value = row.dirId
|
|
|
+ newSpaceId.value = row.spaceId
|
|
|
+ clickFileData.value = row
|
|
|
+ const query = `${newDirId.value}?isAsc=${isAsc.value}&orderByColumn=createTime&pageSize=9999&pageNum=1`
|
|
|
+ documents.getALLdocumentByType({
|
|
|
+ parentId: newDirId.value - 0,
|
|
|
+ spaceId: newSpaceId.value - 0,
|
|
|
+ isAsc: isAsc.value,
|
|
|
+ orderByColumn: "createTime"
|
|
|
+ }, 3).then(res => {
|
|
|
+ folderList.value = res.rows
|
|
|
+ if (res.rows.length === 0) {
|
|
|
+ myfile.getById(query).then(res => {
|
|
|
+ // console.log('res = ',res);
|
|
|
+ if (res.code === 200) {
|
|
|
+ tableTotal.value = res.total
|
|
|
+ if (res.rows.length < res.total) {
|
|
|
+ //第一次拿到的数据少于总数开启下拉事件
|
|
|
+ tableBeEnd.value = false
|
|
|
+ }
|
|
|
+ fileList.value = JSON.parse(JSON.stringify(res.rows))
|
|
|
+ }
|
|
|
+ // console.log('folderClickshijian1',tableTotal.value,tableBeEnd.value);
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ myfile.getById(query).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ tableTotal.value = res.total
|
|
|
+ if (res.rows.length < res.total) {
|
|
|
+ //第一次拿到的数据少于总数开启下拉事件
|
|
|
+ tableBeEnd.value = false
|
|
|
+ }
|
|
|
+ fileList.value = JSON.parse(JSON.stringify(res.rows))
|
|
|
+ }
|
|
|
+ // console.log('fileList',fileList.value);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
// 确认文件重命名
|
|
|
function sureChangeName() {
|
|
|
myfile.editNewMenu({
|
|
|
@@ -2101,7 +2173,20 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
const changeLeftShow = ()=>{
|
|
|
- leftShowList.value = leftShowList.value?false:true
|
|
|
+ console.log('changeLeftShow',leftShowList.value);
|
|
|
+ leftShowList.value = leftShowList.value == 1?0:1
|
|
|
+ console.log('changeLeftShow-',leftShowList.value);
|
|
|
+ thisFolder.value = {}
|
|
|
+ localStorage.setItem('leftShowList',leftShowList.value)
|
|
|
+ if(!leftShowList.value){
|
|
|
+ console.log('toList');
|
|
|
+ // 创建标签
|
|
|
+ const addData = {
|
|
|
+ path: '/myfile',
|
|
|
+ label: '我的文件'
|
|
|
+ }
|
|
|
+ clickPath(null,addData)
|
|
|
+ }
|
|
|
}
|
|
|
watch(() => folder.value, async(newValue, oldValue) => {
|
|
|
// console.log('iFrameData 发生改变了', newValue, oldValue);
|
|
|
@@ -2157,6 +2242,7 @@ export default {
|
|
|
});
|
|
|
onMounted(() => {
|
|
|
// if(!thisFolder.value){
|
|
|
+ leftShowList.value = localStorage.getItem('leftShowList') ||0
|
|
|
getAllTop()
|
|
|
// }
|
|
|
getSpaceList()
|
|
|
@@ -2171,11 +2257,12 @@ export default {
|
|
|
changePageSizeFn()
|
|
|
window.addEventListener("click", closeRMenu, true);
|
|
|
window.addEventListener("click", mouseClick, true);
|
|
|
- // console.log('onMounted');
|
|
|
+ console.log('leftShowList',leftShowList.value);
|
|
|
+ console.log('onMounted');
|
|
|
})
|
|
|
// 组件显示
|
|
|
onActivated(() => {
|
|
|
- // console.log('onActivated.query',route.query);
|
|
|
+ console.log('onActivated.query',route.query);
|
|
|
loadingPreview.value = true
|
|
|
//给pagesize复制
|
|
|
|
|
|
@@ -2191,7 +2278,7 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
if (route.query.clickRowId) {
|
|
|
const newRow = JSON.parse(route.query.clickRowId)
|
|
|
- // console.log('newRow',newRow);
|
|
|
+ console.log('newRow',newRow);
|
|
|
myfile.getDir(newRow).then(res => {
|
|
|
// console.log('tores',res);
|
|
|
thisFolder.value = res.data
|
|
|
@@ -2205,6 +2292,7 @@ export default {
|
|
|
refreshFile()
|
|
|
})
|
|
|
}
|
|
|
+ leftShowList.value = localStorage.getItem('leftShowList') ||0
|
|
|
loadingPreview.value = false
|
|
|
}, 500)
|
|
|
|
|
|
@@ -2452,7 +2540,10 @@ export default {
|
|
|
isAsc,
|
|
|
changeSort,
|
|
|
leftShowList,
|
|
|
- changeLeftShow
|
|
|
+ changeLeftShow,
|
|
|
+ thisFirst,
|
|
|
+ listfolderClick,
|
|
|
+ clickPath
|
|
|
}
|
|
|
},
|
|
|
watch: {
|