Commit 36ef2908 authored by huangjie's avatar huangjie

*

parent c5fcb911
...@@ -24,3 +24,11 @@ export const historyClaim= function historyClaim(name) { ...@@ -24,3 +24,11 @@ export const historyClaim= function historyClaim(name) {
method: 'Put', method: 'Put',
}) })
} }
//获取大司空open 插件访问token
export function dskAccessToken() {
return request({
url: '/system/config/dsk/accessToken',
method: 'get',
})
}
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
localStorage.removeItem('views') //清空导航栏上的数据 sessionStorage.removeItem('views') //清空导航栏上的数据
location.href = '/index'; location.href = '/index';
}) })
}).catch(() => {}); }).catch(() => {});
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
setToken(res.data.token) setToken(res.data.token)
setTenantid(id) setTenantid(id)
store.commit('SET_TOKEN', res.data.token) store.commit('SET_TOKEN', res.data.token)
localStorage.removeItem('views') //清空导航栏上的数据 sessionStorage.removeItem('views') //清空导航栏上的数据
if(this.$route.path == '/index'){ if(this.$route.path == '/index'){
location.reload(); location.reload();
}else{ }else{
......
...@@ -8,8 +8,7 @@ ...@@ -8,8 +8,7 @@
<!--<i class="el-icon-arrow-down" v-if="!showall"></i> <i class="el-icon-arrow-up" v-if="showall"></i>--> <!--<i class="el-icon-arrow-down" v-if="!showall"></i> <i class="el-icon-arrow-up" v-if="showall"></i>-->
</div> </div>
<el-collapse-transition> <el-collapse-transition>
<div class="tagslist" v-if="showall"> <div class="tagslist" :class="{'noshow':!showall}">
<draggable v-model="visitedViews" :options="dragOptions" @end="end">
<router-link <router-link
v-for="(tag, index) in visitedViews" v-for="(tag, index) in visitedViews"
ref="tag" ref="tag"
...@@ -22,12 +21,10 @@ ...@@ -22,12 +21,10 @@
> >
<div @click="changetags"> <div @click="changetags">
<i class="el-icon-check"></i> <i class="el-icon-check"></i>
<span :id="isActive(tag)?'tagTitle':''">{{ tag.title }}</span> <span :id="isActive(tag)?'tagTitles':''">{{ tag.title }}</span>
</div> </div>
</router-link> </router-link>
<div class="clasall" @click="closeAllTag(selectedTag)">关闭全部标签</div> <div class="clasall" @click="closeAllTag(selectedTag)">关闭全部标签</div>
</draggable>
</div> </div>
</el-collapse-transition> </el-collapse-transition>
</div> </div>
...@@ -154,7 +151,7 @@ export default { ...@@ -154,7 +151,7 @@ export default {
// li.matched = view.matched //此条数据放出会报错 // li.matched = view.matched //此条数据放出会报错
viewlist.push(li) viewlist.push(li)
}) })
localStorage.setItem("views",JSON.stringify(viewlist)) sessionStorage.setItem("views",JSON.stringify(viewlist))
}, },
changetags(){ changetags(){
this.showall = false this.showall = false
...@@ -463,6 +460,8 @@ export default { ...@@ -463,6 +460,8 @@ export default {
height: 24px; height: 24px;
} }
.tagslist{ .tagslist{
transition: all 0.2s;
display: block;
position: absolute; position: absolute;
left: 0; left: 0;
top: 32px; top: 32px;
...@@ -517,6 +516,11 @@ export default { ...@@ -517,6 +516,11 @@ export default {
} }
} }
} }
.noshow{
display: none;
opacity: 0;
/*height: 0;*/
}
} }
} }
</style> </style>
......
...@@ -62,12 +62,11 @@ export default { ...@@ -62,12 +62,11 @@ export default {
mounted(){ mounted(){
this.$nextTick(() => { this.$nextTick(() => {
this.listenSider() this.listenSider()
}) })
// console.log(9999) let views = sessionStorage.getItem('views')
let views = localStorage.getItem('views')
if(views!=null){ if(views!=null){
this.$store.state.tagsView.visitedViews = JSON.parse(views) this.$store.state.tagsView.visitedViews = JSON.parse(views)
localStorage.removeItem('views') // sessionStorage.removeItem('views')
} }
}, },
methods: { methods: {
......
...@@ -32,6 +32,7 @@ router.beforeEach((to, from, next) => { ...@@ -32,6 +32,7 @@ router.beforeEach((to, from, next) => {
}).catch(err => { }).catch(err => {
store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
Message.error(err) Message.error(err)
sessionStorage.removeItem('views')
next({ path: '/' }) next({ path: '/' })
}) })
}) })
......
...@@ -107,6 +107,7 @@ service.interceptors.response.use(res => { ...@@ -107,6 +107,7 @@ service.interceptors.response.use(res => {
MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
isRelogin.show = false; isRelogin.show = false;
store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
sessionStorage.removeItem('views')
location.href = '/index'; location.href = '/index';
}) })
}).catch(() => { }).catch(() => {
......
...@@ -125,30 +125,38 @@ ...@@ -125,30 +125,38 @@
</div> </div>
</div> </div>
</div> </div>
<div class="tables" style="margin-top: 0" v-if="recordlist.rows && recordlist.rows.length == 0">
<div class="empty">
<img class="img" src="@/assets/images/project/empty.png">
<div class="p1">抱歉,您还未添加跟进动态</div>
</div>
</div>
<div class="tables" v-if="recordlist.total>pageSize"> <div class="tables" v-if="recordlist.total>pageSize">
<div class="bottems"> <div class="bottems">
<el-pagination <el-pagination
background background
:page-size="pageSize" :page-size="pageSize"
:current-page="pageNum" :current-page="pageNum"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
layout="prev, pager, next" layout="prev, pager, next"
:total="recordlist.total"> :total="recordlist.total">
</el-pagination> </el-pagination>
</div>
</div> </div>
</div> </div>
</div>
</div> </div>
</el-card> </el-card>
</div> </div>
</template> </template>
<script> <script>
import "@/assets/styles/project.scss" import '@/assets/styles/project.scss'
import {getFollowList,addFollowRecord,getUserList,delFollowRecord} from '@/api/custom/custom' import { addFollowRecord, delFollowRecord, getFollowList, getUserList } from '@/api/custom/custom'
import {getGJJL,addGJJL,delGJJL,relateProject,allRecord} from '@/api/project/project' import { addGJJL, allRecord, delGJJL, getGJJL, relateProject } from '@/api/project/project'
import {getEnterprise,getDictType,} from '@/api/main' import { getDictType, getEnterprise } from '@/api/main'
import skeleton from './skeleton' import skeleton from './skeleton'
export default { export default {
components:{skeleton}, components:{skeleton},
props:{ props:{
......
...@@ -203,20 +203,26 @@ ...@@ -203,20 +203,26 @@
}, },
getList(){ getList(){
this.isSkeleton = true this.isSkeleton = true
getZLWD(this.param).then(res=>{ getZLWD(this.param).then(res => {
this.fileDatas = res
this.isSkeleton = false this.isSkeleton = false
if(this.fileDatas.rows!=null && this.fileDatas.rows.length>0){ if (res.code == 200) {
this.fileDatas.rows.forEach(item=>{ this.fileDatas = res
let names = item.filePath.split('/') if (this.fileDatas.rows != null && this.fileDatas.rows.length > 0) {
item.name = names[names.length-1] this.fileDatas.rows.forEach(item => {
let types = item.name.split('.') let names = item.filePath.split('/')
item.type = types.length>1?types[1]:'file' item.name = names[names.length - 1]
if(item.type == 'xls' || item.type == 'xlsx' ) let types = item.name.split('.')
item.type = 'excel' item.type = types.length > 1 ? types[1] : 'file'
if(item.type == 'doc' || item.type == 'docx' ) if (item.type == 'xls' || item.type == 'xlsx') {
item.type = 'word' item.type = 'excel'
}) }
if (item.type == 'doc' || item.type == 'docx') {
item.type = 'word'
}
})
}
}else{
this.fileDatas.total = 0
} }
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment