Commit 63bea6c3 authored by danfuman's avatar danfuman

修改

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