revive пре 4 година
родитељ
комит
f47880ce6c
7 измењених фајлова са 110 додато и 29 уклоњено
  1. +8
    -0
      public/static/css/main.css
  2. +6
    -4
      src/components/app-header/app-header.vue
  3. +1
    -0
      src/components/search-bar/search-bar.vue
  4. +4
    -8
      src/views/main_web/index/index.vue
  5. +87
    -17
      src/views/main_web/workspace/recyclebin.vue
  6. +2
    -0
      src/views/main_web/workspace/workspace.new.vue
  7. +2
    -0
      src/views/main_web/workspace/workspace.vue

+ 8
- 0
public/static/css/main.css Прегледај датотеку

@@ -6526,6 +6526,14 @@ h4.biaoqianweizhi2{
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
overflow: hidden; overflow: hidden;
} }
.main-title {
text-align: center;
color: rgba(50, 50, 60, 100);
font-size: 18px;
text-shadow: 0 0 1px #32323c;
text-align: center;
font-family: PingFangSC-Semibold;
}
.deletIocn{ .deletIocn{
font-size: 30px; font-size: 30px;
} }


+ 6
- 4
src/components/app-header/app-header.vue Прегледај датотеку

@@ -46,12 +46,12 @@
</div> </div>
<div class="app-header-content-right no-drag"> <div class="app-header-content-right no-drag">
<slot name="right"></slot> <slot name="right"></slot>
<!-- <span @click="toRecycle" v-if="showUserCenter">
<span @click="toRecycle" v-if="showRecycleBin">
<i <i
class="Cicon icon font_family icon-icon_huishouzhan" class="Cicon icon font_family icon-icon_huishouzhan"
:class="{inRecycle:isInRecycle}" :class="{inRecycle:isInRecycle}"
/> />
</span> -->
</span>
<user-center v-if="showUserCenter" /> <user-center v-if="showUserCenter" />
</div> </div>
</div> </div>
@@ -78,6 +78,7 @@ export default {
title: String, title: String,
// 右侧 // 右侧
showUserCenter: Boolean, showUserCenter: Boolean,
showRecycleBin:Boolean,
isInRecycle: Boolean, isInRecycle: Boolean,
// 是否显示左边的状态 // 是否显示左边的状态
isShowLeftState: { isShowLeftState: {
@@ -267,9 +268,10 @@ export default {
&-right { &-right {
display: flex; display: flex;
align-items: center; align-items: center;
> span, > div {
margin-left: 8px;
> span, >div {
margin-left: 12px;
} }

} }
&-left { &-left {
line-height: 40px; line-height: 40px;


+ 1
- 0
src/components/search-bar/search-bar.vue Прегледај датотеку

@@ -138,4 +138,5 @@
width: 235px; width: 235px;
} }



</style> </style>

+ 4
- 8
src/views/main_web/index/index.vue Прегледај датотеку

@@ -19,6 +19,7 @@
<div id="app" v-cloak> <div id="app" v-cloak>
<app-header <app-header
:showUserCenter="true" id="proj-list-page" :showUserCenter="true" id="proj-list-page"
showRecycleBin
> >
<template #left> <template #left>
{{currentPlatform.orgName}} {{currentPlatform.orgName}}
@@ -290,6 +291,7 @@ export default {
}, },
mounted: function () { mounted: function () {
this.cnName = JSON.parse(sessionStorage.user).userName; this.cnName = JSON.parse(sessionStorage.user).userName;
sessionStorage.setItem('pageTitle','我的项目')
//this.setDateTime(); //this.setDateTime();
//setInterval(this.setDateTime, 1000); //setInterval(this.setDateTime, 1000);
this.listProjects(true); this.listProjects(true);
@@ -394,6 +396,7 @@ export default {
sessionStorage.removeItem('projId'); sessionStorage.removeItem('projId');
sessionStorage.setItem('projName', projItem.ProjName); sessionStorage.setItem('projName', projItem.ProjName);
sessionStorage.setItem('projId', projItem.Id); sessionStorage.setItem('projId', projItem.Id);
}, },
/** /**
* 进入回收站 * 进入回收站
@@ -755,14 +758,7 @@ export default {
line-height: inherit; line-height: inherit;
} }


.main-title {
text-align: center;
color: rgba(50, 50, 60, 100);
font-size: 18px;
text-shadow: 0 0 1px #32323c;
text-align: center;
font-family: PingFangSC-Semibold;
}

</style> </style>


<style lang="scss"> <style lang="scss">


+ 87
- 17
src/views/main_web/workspace/recyclebin.vue Прегледај датотеку

@@ -3,35 +3,52 @@
<app-header <app-header
theme="basis" theme="basis"
showBackBtn showBackBtn
backBtnTitle="返回上一界面"
title="回收站"
:backBtnTitle="title"
showUserCenter showUserCenter
isInRecycle isInRecycle
showRecycleBin
> >
<template #center>
<div class="main-title">{{showTitle}}</div>
</template>
<template #right>
<search-bar class="proj-search-bar"
placeholder="请输入要搜索的文件"
@changeSearchContent="changeSearchContent"
@hideSearchBar="hideSearchBar"
@goToSearch="searchForFile"
@showSearchBar="showSearchBar"
@maxTextLengthArrived="maxTextLengthArrived"/>
</template>
</app-header> </app-header>
<div class="clearfile_box">
<!-- <div class="clearfile_box">
<div class="clearfile_content"> <div class="clearfile_content">
清空 清空
</div> </div>
</div>
<div class="recycle_content">
<recycle-file
v-for="file in fileList"
:key="file.id"
:file="file"
@recycleFile="isRecycle"
>
</recycle-file>
</div>
</div> -->

<div class="recycle_content">
<transition-group name="file-fade" tag="p">
<recycle-file
v-for="file in fileList"
:key="file.id"
:file="file"
@recycleFile="isRecycle"
>
</recycle-file>
</transition-group>
</div>



</div> </div>
</template> </template>
<script> <script>
import AppHeader from '../../../components/app-header/app-header.vue'; import AppHeader from '../../../components/app-header/app-header.vue';
import recycleFile from './components/recycle-file.vue'
import {queryFilesFromRecycleBin, removeFromRecycleBin} from './service'
import recycleFile from './components/recycle-file.vue';
import {queryFilesFromRecycleBin, removeFromRecycleBin} from './service';
import SearchBar from "@/components/search-bar/search-bar";
export default { export default {
components: { recycleFile, AppHeader },
components: { recycleFile, AppHeader, SearchBar },
created(){ created(){
this.getRecycleFiles(); this.getRecycleFiles();
}, },
@@ -41,18 +58,56 @@ export default {
data(){ data(){
return{ return{
fileList:[], fileList:[],
searchFileList:[],
title:'返回'+sessionStorage.pageTitle,
isShowSearchBar: false,//控制搜索框显示隐藏
searchContent: '',//搜索的文件名称
} }
}, },
methods:{ methods:{
async getRecycleFiles(){ async getRecycleFiles(){
const res = await queryFilesFromRecycleBin(); const res = await queryFilesFromRecycleBin();
this.fileList = res; this.fileList = res;
this.searchFileList = res;
}, },
isRecycle(flag){ isRecycle(flag){
if(flag){ if(flag){
this.getRecycleFiles(); this.getRecycleFiles();
} }
}
},
changeSearchContent(content) {
this.searchContent = content;
this.searchForFile();
},
hideSearchBar() {
this.isShowSearchBar = false;
this.searchContent = '';
},
showSearchBar() {
this.isShowSearchBar = true;
},
// 搜索框字数超出35个字
maxTextLengthArrived() {
this.$notify({
message: '请输入35个字之内的搜索内容',
type: ["warning"],
})
},
searchForFile() {
let _fileList = this.searchFileList;

_fileList = _fileList.filter(f =>{
const matchArray = f.archName.match(new RegExp(this.searchContent, 'gi'));
return !!matchArray;
});
this.fileList = _fileList;
},
// 搜索文件时 中间导航栏的标题
},
computed: {
showTitle() {
return this.isShowSearchBar && this.searchContent ? `“${this.searchContent}”搜索结果` : '回收站';
},
} }


} }
@@ -73,5 +128,20 @@ export default {
margin-bottom: 13px; margin-bottom: 13px;
cursor: pointer; cursor: pointer;
} }
.file-fade-enter {
opacity: 0.1;
}
.file-fade-enter-active {
opacity: 1;
transition: all 0.3s ease-in;
}

.file-fade-leave {
opacity: 1;
}
.file-fade-leave-active {
opacity: 0.1;
transition: all 0.3s ease-in;
}


</style> </style>

+ 2
- 0
src/views/main_web/workspace/workspace.new.vue Прегледај датотеку

@@ -7,6 +7,7 @@
:showUserCenter="true" :showUserCenter="true"
class="app-header-style workspace-header" class="app-header-style workspace-header"
v-if="!showWorkline" v-if="!showWorkline"
showRecycleBin
> >
<template #center> <template #center>
<!-- 工作链 --> <!-- 工作链 -->
@@ -641,6 +642,7 @@ export default {
}; };
}, },
mounted: function () { mounted: function () {
sessionStorage.pageTitle = '工作空间';
this.hackWorkLine = this.$refs.hackworkline; this.hackWorkLine = this.$refs.hackworkline;
window.addEventListener("scroll", this.onscroll, true); window.addEventListener("scroll", this.onscroll, true);




+ 2
- 0
src/views/main_web/workspace/workspace.vue Прегледај датотеку

@@ -14,6 +14,7 @@
:showUserCenter="true" :showUserCenter="true"
class="app-header-style" class="app-header-style"
v-if="!isShowworklink" v-if="!isShowworklink"
showRecycleBin
> >
</app-header> </app-header>
<app-header <app-header
@@ -2919,6 +2920,7 @@ export default {
this.myComFileBreadNodeData = [initialTempFile('myComFile', '公共文件')]; this.myComFileBreadNodeData = [initialTempFile('myComFile', '公共文件')];
}, },
mounted: function () { mounted: function () {
sessionStorage.pageTitle = '工作空间';
window["refreshFiles"] = () => { window["refreshFiles"] = () => {
this.refreshPages(); this.refreshPages();
}; };


Loading…
Откажи
Сачувај