Commit 7cadd8c1 authored by Administrator's avatar Administrator

Merge remote-tracking branch 'origin/zuhuduan' into zuhuduan

parents d41c75fe b508bea3
...@@ -12,8 +12,10 @@ import com.dsk.biz.domain.bo.BusinessListDto; ...@@ -12,8 +12,10 @@ import com.dsk.biz.domain.bo.BusinessListDto;
import com.dsk.biz.domain.bo.CustomerBusinessSearchDto; import com.dsk.biz.domain.bo.CustomerBusinessSearchDto;
import com.dsk.biz.domain.vo.*; import com.dsk.biz.domain.vo.*;
import com.dsk.biz.utils.ExcelUtils; import com.dsk.biz.utils.ExcelUtils;
import com.dsk.biz.utils.OldFileUtils;
import com.dsk.common.annotation.DataColumn; import com.dsk.common.annotation.DataColumn;
import com.dsk.common.annotation.DataPermission; import com.dsk.common.annotation.DataPermission;
import com.dsk.common.utils.file.FileUploadUtils;
import com.dsk.jsk.service.EnterpriseService; import com.dsk.jsk.service.EnterpriseService;
import com.dsk.biz.mapper.BusinessInfoMapper; import com.dsk.biz.mapper.BusinessInfoMapper;
import com.dsk.biz.mapper.BusinessLabelMapper; import com.dsk.biz.mapper.BusinessLabelMapper;
...@@ -131,7 +133,7 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService { ...@@ -131,7 +133,7 @@ public class BusinessInfoServiceImpl implements IBusinessInfoService {
businessBrowseVo.setFollowRecordCount(total.getFollowRecordCount()); businessBrowseVo.setFollowRecordCount(total.getFollowRecordCount());
businessBrowseVo.setRelateCompanyCount(total.getRelateCompanyCount()); businessBrowseVo.setRelateCompanyCount(total.getRelateCompanyCount());
//资料文档统计 //资料文档统计
// businessBrowseVo.setFileCount(FileUtils.getAllFileNames(ShuZhiHuaConfig.getProfile() + businessId).size()); businessBrowseVo.setFileCount(OldFileUtils.getAllFileNames(FileUploadUtils.getDefaultBaseDir() + businessId).size());
return businessBrowseVo; return businessBrowseVo;
} }
......
...@@ -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',
})
}
import request from "@/utils/request"; import request from "@/utils/request";
//企业数据统计 //集团数据统计
export function statistic(data) { export function infoMemberCount(data) {
return request({ return request({
url: '/enterprise/statistic', url: '/combine/info/memberCount',
method: 'post', method: 'post',
data: data data: data
}) })
......
...@@ -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(() => {
......
...@@ -94,31 +94,29 @@ export default { ...@@ -94,31 +94,29 @@ export default {
this.sideRoute = JSON.parse(JSON.stringify(this.defaultRoute)) this.sideRoute = JSON.parse(JSON.stringify(this.defaultRoute))
let arr = JSON.parse(JSON.stringify(val)) let arr = JSON.parse(JSON.stringify(val))
for(var i in arr){ for(var i in arr){
for(var j in arr[i]){ switch (i) {
// switch (j) { case 'member':
// case 'ownershipStructure': if(arr[i]<1){
// if(arr[i][j]<1){ this.sideRoute[0].disabled = true;
// this.sideRoute[0].disabled = true; }
// } break;
// break; case 'qualification':
// case 'qualification': if(arr[i]<1){
// if(arr[i][j]<1){ this.sideRoute[1].disabled = true;
// this.sideRoute[1].disabled = true; }
// } break;
// break; case 'performance':
// case 'performance': if(arr[i]<1){
// if(arr[i][j]<1){ this.sideRoute[2].disabled = true;
// this.sideRoute[2].disabled = true; }
// } break;
// break; case 'biddingAnnouncement':
// case 'biddingAnnouncement': if(arr[i]<1){
// if(arr[i][j]<1){ this.sideRoute[3].disabled = true;
// this.sideRoute[3].disabled = true; }
// } break;
// break; default:
// default: break;
// break;
// }
} }
} }
this.defaultRoute = JSON.parse(JSON.stringify(this.sideRoute)) this.defaultRoute = JSON.parse(JSON.stringify(this.sideRoute))
......
<template> <template>
<div class="app-container group-container"> <div class="app-container group-container">
<div class="header-container" ref="header"> <div class="header-container">
<div class="flex-box part-header"> <div class="flex-box part-header">
<img class="header-logo" :src="require('@/assets/images/detail/company_logo.png')"> <img class="header-logo" :src="details && details.logoUrl || require('@/assets/images/detail/company_logo.png')">
{{name || '--'}} {{name || '--'}}
</div> </div>
</div> </div>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import Performance from "./component/performance" import Performance from "./component/performance"
import Zhaobiao from "./component/zhaobiao" import Zhaobiao from "./component/zhaobiao"
import { infoHeader } from '@/api/detail/party-a/index' import { infoHeader } from '@/api/detail/party-a/index'
import {combineMemberLogo,statistic} from '@/api/detail/groupAccount/groupAccount' import {combineMemberLogo,infoMemberCount} from '@/api/detail/groupAccount/groupAccount'
import elementResizeDetectorMaker from "element-resize-detector" import elementResizeDetectorMaker from "element-resize-detector"
export default { export default {
name: 'GroupAccount', name: 'GroupAccount',
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
isCompany: false, isCompany: false,
isSkeleton: false, isSkeleton: false,
name:'', name:'',
details:{},
} }
}, },
created() { created() {
...@@ -56,9 +57,9 @@ ...@@ -56,9 +57,9 @@
this.customerId = this.$route.params.id this.customerId = this.$route.params.id
} }
combineMemberLogo({combineId: this.customerId}).then(res=>{ combineMemberLogo({combineId: this.customerId}).then(res=>{
console.log(res.data) this.details=res.data;
}) })
statistic({companyId: this.$route.query.cid}).then(res=>{ infoMemberCount({combineId: this.customerId}).then(res=>{
console.log(res.data) console.log(res.data)
if(res.code==200){ if(res.code==200){
this.statisticObj = res.data this.statisticObj = res.data
...@@ -67,13 +68,9 @@ ...@@ -67,13 +68,9 @@
// if (this.$route.query.path) { // 获取跳转对应板块 // if (this.$route.query.path) { // 获取跳转对应板块
// this.currentPath.pathName = this.$route.query.path // this.currentPath.pathName = this.$route.query.path
// } // }
// this.$route.query.name='' this.name=this.$route.query.name ? this.$route.query.name : this.details.companyName
this.name=this.$route.query.name ? this.$route.query.name : '中建集团'
},
mounted(){
// this.mainWidth=this.$refs.header.offsetWidth;
// this.width=this.$refs.contentData.offsetWidth -160;
}, },
mounted(){},
methods: { methods: {
showPartPage(e){ showPartPage(e){
this.currentPath = e this.currentPath = e
......
...@@ -193,7 +193,6 @@ export default { ...@@ -193,7 +193,6 @@ export default {
} }
}, },
created() { created() {
this.defaultRoute = JSON.parse(JSON.stringify(this.sideRoute))
}, },
watch:{ watch:{
statisticObj:{ statisticObj:{
...@@ -336,6 +335,7 @@ export default { ...@@ -336,6 +335,7 @@ export default {
financial({cid:String(id)}).then(res=>{ financial({cid:String(id)}).then(res=>{
if(res.code==200&&!res.data){ if(res.code==200&&!res.data){
this.sideRoute[1].disabled = true this.sideRoute[1].disabled = true
this.defaultRoute = JSON.parse(JSON.stringify(this.sideRoute))
} }
}) })
}, },
......
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
[name]: this.queryParams[name], [name]: this.queryParams[name],
} }
customerUpdate(data).then(res=>{ customerUpdate(data).then(res=>{
if(res.data){ if(res.code==200){
this.$message.success(res.msg) this.$message.success(res.msg)
this.nowedit = 0 this.nowedit = 0
}else{ }else{
......
...@@ -643,9 +643,9 @@ ...@@ -643,9 +643,9 @@
for (var i in arr) { for (var i in arr) {
if (arr[i].parent) { if (arr[i].parent) {
if (!arr[i].parent.checked) { if (!arr[i].parent.checked) {
arr[i].hasChildren && cityIds.push(arr[i].value)&&provinceIds.push(arr[i].parent.value); arr[i].hasChildren && cityIds.push(arr[i].value);
arr[i].hasChildren && this.domicile.push(arr[i].label); arr[i].hasChildren && this.domicile.push(arr[i].label);
!arr[i].hasChildren && areaIds.push(arr[i].value)&& cityIds.push(arr[i].parent.value)&&provinceIds.push(arr[i].parent.parent.value); !arr[i].hasChildren && areaIds.push(arr[i].value);
!arr[i].hasChildren && this.domicile.push(arr[i].label); !arr[i].hasChildren && this.domicile.push(arr[i].label);
} }
} else { } else {
......
...@@ -5,41 +5,9 @@ ...@@ -5,41 +5,9 @@
<el-row> <el-row>
<el-col :span="16"> <el-col :span="16">
<div class="task-wrap"> <div class="task-wrap">
<div class="item"> <div class="item" v-for="item in routerLink" @click="handleUrl(item)">
<router-link to="/project/overview" tag="a"> <img class="icon-img" :src="`${item.imgUrl}`"/>
<img class="icon-img" src="@/assets/images/index/icon1.png"/> <p class="text">{{item.name}}</p>
<p class="text">项目管理</p>
</router-link>
</div>
<div class="item">
<router-link to="/custom/overview" tag="a">
<img class="icon-img" src="@/assets/images/index/icon2.png"/>
<p class="text">客户管理</p>
</router-link>
</div>
<div class="item">
<router-link to="/macro/nationalEconomies" tag="a">
<img class="icon-img" src="@/assets/images/index/icon3.png"/>
<p class="text">全国经济大全</p>
</router-link>
</div>
<div class="item">
<router-link to="/enterpriseData/Group" tag="a">
<img class="icon-img" src="@/assets/images/index/icon4.png"/>
<p class="text">集团户</p>
</router-link>
</div>
<div class="item">
<router-link to="/enterpriseData/Owner" tag="a">
<img class="icon-img" src="@/assets/images/index/icon5.png"/>
<p class="text">查城投平台</p>
</router-link>
</div>
<div class="item">
<router-link to="/radar" tag="a">
<img class="icon-img" src="@/assets/images/index/icon6.png"/>
<p class="text">商机雷达</p>
</router-link>
</div> </div>
</div> </div>
</el-col> </el-col>
...@@ -694,7 +662,16 @@ export default { ...@@ -694,7 +662,16 @@ export default {
timePlaceholder:'中标日期', timePlaceholder:'中标日期',
show_page:true, show_page:true,
MaxPage:500, MaxPage:500,
nickName:'' nickName:'',
permissions:[],
routerLink:[
{url:'/project/overview',name:'项目管理',imgUrl:require('@/assets/images/index/icon1.png')},
{url:'/custom/overview',name:'客户管理',imgUrl:require('@/assets/images/index/icon2.png')},
{url:'/macro/nationalEconomies',name:'全国经济大全',imgUrl:require('@/assets/images/index/icon3.png')},
{url:'/enterpriseData/Group',name:'集团户',imgUrl:require('@/assets/images/index/icon4.png')},
{url:'/enterpriseData/Owner',name:'查城投平台',imgUrl:require('@/assets/images/index/icon5.png')},
{url:'/radar',name:'商机雷达',imgUrl:require('@/assets/images/index/icon6.png')},
]
}; };
}, },
created() { created() {
...@@ -718,6 +695,7 @@ export default { ...@@ -718,6 +695,7 @@ export default {
getInfo(){ getInfo(){
getInfo().then(res=>{ getInfo().then(res=>{
console.log(res) console.log(res)
this.permissions=res.data.permissions;
this.nickName=res.data.user.nickName this.nickName=res.data.user.nickName
}).catch(error=>{}); }).catch(error=>{});
}, },
...@@ -1405,6 +1383,72 @@ export default { ...@@ -1405,6 +1383,72 @@ export default {
let day = String(date.getDate()).padStart(2, 0) let day = String(date.getDate()).padStart(2, 0)
return `${year}-${month}-${day}` return `${year}-${month}-${day}`
}, },
handleUrl(item){
switch (item.name) {
case '项目管理':
if(this.permissions.includes('project:info')){
this.$router.push({ path: item.url })
}else {
this.$message({
message: '您好,请联系管理员开通页面权限',
type: 'warning'
});
}
break;
case '客户管理':
if(this.permissions.includes('customer:info')){
this.$router.push({ path: item.url })
}else {
this.$message({
message: '您好,请联系管理员开通页面权限',
type: 'warning'
});
}
break;
case '全国经济大全':
if(this.permissions.includes('nationalEconomies:query')){
this.$router.push({ path: item.url })
}else {
this.$message({
message: '您好,请联系管理员开通页面权限',
type: 'warning'
});
}
break;
case '集团户':
if(this.permissions.includes('group:query')){
this.$router.push({ path: item.url })
}else {
this.$message({
message: '您好,请联系管理员开通页面权限',
type: 'warning'
});
}
break;
case '查城投平台':
if(this.permissions.includes('owner:query')){
this.$router.push({ path: item.url })
}else {
this.$message({
message: '您好,请联系管理员开通页面权限',
type: 'warning'
});
}
break;
case '商机雷达':
if(this.permissions.includes('radar:query')){
this.$router.push({ path: item.url })
}else {
this.$message({
message: '您好,请联系管理员开通页面权限',
type: 'warning'
});
}
break;
default:
break;
}
}
} }
}; };
</script> </script>
......
...@@ -575,7 +575,7 @@ export default { ...@@ -575,7 +575,7 @@ export default {
type: 'shadow' type: 'shadow'
} }
}, },
grid: { grid: {
left: '3%', left: '3%',
right: '4%', right: '4%',
...@@ -666,7 +666,7 @@ export default { ...@@ -666,7 +666,7 @@ export default {
itemWidth:12, itemWidth:12,
itemHeight:8, itemHeight:8,
}, },
color:['#0081FF','#FFB51B','#8DCF96','#FFDC6B','#FE9C77'],//修改配色 color:['#0081FF','#FFB51B','#8DCF96','#FFDC6B','#FE9C77'],//修改配色
series: [ series: [
{ {
...@@ -706,7 +706,7 @@ export default { ...@@ -706,7 +706,7 @@ export default {
type: 'shadow' type: 'shadow'
} }
}, },
grid: { grid: {
left: '3%', left: '3%',
right: '4%', right: '4%',
...@@ -819,7 +819,7 @@ export default { ...@@ -819,7 +819,7 @@ export default {
normal: { normal: {
show: false, // 省份名称 show: false, // 省份名称
}, },
}, },
itemStyle: { itemStyle: {
normal: { // 未选中状态 normal: { // 未选中状态
...@@ -855,7 +855,7 @@ export default { ...@@ -855,7 +855,7 @@ export default {
itemWidth:12, itemWidth:12,
itemHeight:8, itemHeight:8,
}, },
color:['#0081FF','#FFB51B','#8DCF96','#FFDC6B','#FE9C77'],//修改配色 color:['#0081FF','#FFB51B','#8DCF96','#FFDC6B','#FE9C77'],//修改配色
series: [ series: [
{ {
...@@ -1030,6 +1030,7 @@ export default { ...@@ -1030,6 +1030,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.chart-top{ .chart-top{
margin-bottom: 12px;
.left{ .left{
float: left; float: left;
height: 122px; height: 122px;
...@@ -1039,7 +1040,7 @@ export default { ...@@ -1039,7 +1040,7 @@ export default {
height: 124px; height: 124px;
padding: 16px; padding: 16px;
} }
} }
.right{ .right{
float: right; float: right;
...@@ -1068,7 +1069,7 @@ export default { ...@@ -1068,7 +1069,7 @@ export default {
.el-icon-search{ .el-icon-search{
color: #0081FF; color: #0081FF;
} }
} }
} }
.top-icons{ .top-icons{
width: 33%; width: 33%;
...@@ -1249,7 +1250,7 @@ export default { ...@@ -1249,7 +1250,7 @@ export default {
} }
} }
} }
} }
.item_title{ .item_title{
height: 56px; height: 56px;
...@@ -1261,7 +1262,7 @@ export default { ...@@ -1261,7 +1262,7 @@ export default {
.scroll_box{ .scroll_box{
overflow-y:scroll ; overflow-y:scroll ;
max-height: 509px; max-height: 509px;
.item_wrap{ .item_wrap{
height: 102px; height: 102px;
border-bottom: 1px solid #EFEFEF; border-bottom: 1px solid #EFEFEF;
...@@ -1370,7 +1371,7 @@ export default { ...@@ -1370,7 +1371,7 @@ export default {
background: url("../../../assets/images/project/add.png") no-repeat center center; background: url("../../../assets/images/project/add.png") no-repeat center center;
display: inline-block; display: inline-block;
margin: 10px 8px 0 114px; margin: 10px 8px 0 114px;
} }
// &:hover{ // &:hover{
// background: #0081FF; // background: #0081FF;
......
...@@ -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