Commit 63bea6c3 authored by danfuman's avatar danfuman

修改

parent f7031374
import request from "@/utils/request";
//企业数据统计
export function statistic(data) {
return request({
url: '/enterprise/statistic',
method: 'post',
data: data
})
}
// 集团logo
export function combineMemberLogo(data) {
return request({
......
import request from "@/utils/request";
// 获取用户详细信息
export function getInfo() {
return request({
url: '/getInfo',
method: 'get'
})
}
// 集团中标统计
export function countByCompany(data) {
return request({
......
......@@ -17,7 +17,7 @@
@open="handleOpen">
<template v-for="(item, index) in sideRoute">
<template>
<el-menu-item :index="index.toString()" @click="handleItem(item)">{{item.title}}</el-menu-item>
<el-menu-item :index="index.toString()" :disabled="item.disabled" @click="handleItem(item)">{{item.title}}</el-menu-item>
</template>
</template>
</el-menu>
......@@ -45,6 +45,10 @@ export default {
type: Boolean,
default: true
},
statisticObj:{
type:Object,
default: {}
},
},
data() {
return {
......@@ -85,7 +89,41 @@ export default {
this.defaultRoute = JSON.parse(JSON.stringify(this.sideRoute))
},
watch:{
statisticObj:{
handler(val) {
this.sideRoute = JSON.parse(JSON.stringify(this.defaultRoute))
let arr = JSON.parse(JSON.stringify(val))
for(var i in arr){
for(var j in arr[i]){
// switch (j) {
// case 'ownershipStructure':
// if(arr[i][j]<1){
// this.sideRoute[0].disabled = true;
// }
// break;
// case 'qualification':
// if(arr[i][j]<1){
// this.sideRoute[1].disabled = true;
// }
// break;
// case 'performance':
// if(arr[i][j]<1){
// this.sideRoute[2].disabled = true;
// }
// break;
// case 'biddingAnnouncement':
// if(arr[i][j]<1){
// this.sideRoute[3].disabled = true;
// }
// break;
// default:
// break;
// }
}
}
this.defaultRoute = JSON.parse(JSON.stringify(this.sideRoute))
}
},
},
methods: {
handleOpen(key, keyPath) {
......
......@@ -341,6 +341,8 @@
}else {
this.cgblName=name;
}
this.queryParams.maxStockPercent=''
this.paramsData.maxStockPercent=''
if(this.cgblName){
if(name === '100%'){
this.queryParams.minStockPercent=1
......
......@@ -8,7 +8,7 @@
</div>
<div class="flex-box group-main" ref="contentData">
<div class="group-left">
<side-bar ref="sidebar" @currentPath="showPartPage" :pathName="currentPath.pathName" :customerId="customerId"/>
<side-bar ref="sidebar" :statisticObj="statisticObj" @currentPath="showPartPage" :pathName="currentPath.pathName" :customerId="customerId"/>
</div>
<div class="group-right">
<div id="groupBox" v-if="customerId">
......@@ -30,7 +30,7 @@
import Performance from "./component/performance"
import Zhaobiao from "./component/zhaobiao"
import { infoHeader } from '@/api/detail/party-a/index'
import {combineMemberLogo} from '@/api/detail/groupAccount/groupAccount'
import {combineMemberLogo,statistic} from '@/api/detail/groupAccount/groupAccount'
import elementResizeDetectorMaker from "element-resize-detector"
export default {
name: 'GroupAccount',
......@@ -41,6 +41,7 @@
return{
customerId: '', //集团Id(测试默认'81de7ca2a967d91c2afad9cb5fc30e6d')
companyInfo: {},
statisticObj: {},
cooDetail: {},
currentPath: {
pathName: 'members' //默认展示页
......@@ -57,6 +58,12 @@
combineMemberLogo({combineId: this.customerId}).then(res=>{
console.log(res.data)
})
statistic({companyId: this.$route.query.cid}).then(res=>{
console.log(res.data)
if(res.code==200){
this.statisticObj = res.data
}
})
// if (this.$route.query.path) { // 获取跳转对应板块
// this.currentPath.pathName = this.$route.query.path
// }
......@@ -86,9 +93,9 @@
}
.group-main{
margin-top: 12px;
position: fixed;
/*width: 100%;*/
width: calc(100% - 192px);
/*position: fixed;*/
width: 100%;
/*width: calc(100% - 192px);*/
height: calc(100vh - 155px);
overflow-y: auto;
align-items: initial;
......
......@@ -45,7 +45,7 @@
</el-col>
<el-col :span="8">
<div class="user" @click="handleChange">
<h3>刘毅<span>总经理</span></h3>
<h3>{{nickName}}<span>总经理</span></h3>
<p>您好,祝您工作顺利每一天</p>
</div>
</el-col>
......@@ -478,7 +478,7 @@
import CustomTimeSelect from './component/CustomTimeSelect'
import CustomMoneySelect from './component/CustomMoneySelect'
import skeleton from './component/skeleton'
import { countByCompany,bidRank,bigWinningBidsPage,bigBidPage } from '@/api/index'
import { countByCompany,bidRank,bigWinningBidsPage,bigBidPage,getInfo } from '@/api/index'
import { getUipIdByCid } from '@/api/macro/macro'
import api from '@/api/radar/radar.js';
export default {
......@@ -694,10 +694,12 @@ export default {
timePlaceholder:'中标日期',
show_page:true,
MaxPage:500,
nickName:''
};
},
created() {
this.searchDic()
this.getInfo()
this.dataRegion()
this.$nextTick(() => {
this.getCountByCompany()
......@@ -713,6 +715,12 @@ export default {
this.projectType = res.projectType;
}).catch(error=>{});
},
getInfo(){
getInfo().then(res=>{
console.log(res)
this.nickName=res.data.user.nickName
}).catch(error=>{});
},
getCountByCompany(){
let params={};
if(this.queryParams.time.length > 1){
......
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