Browse Source

修改项目、产品、迭代关联图

master
chentaiyu 5 years ago
parent
commit
4196de0427
  1. 62
      src/views/xm/core/xmProduct/XmProductOverview.vue
  2. 62
      src/views/xm/core/xmProject/XmProjectOverview.vue

62
src/views/xm/core/xmProduct/XmProductOverview.vue

@ -206,7 +206,7 @@
<span>产品相关联项目与迭代数</span> <span>产品相关联项目与迭代数</span>
</div> </div>
<div> <div>
<div id="projectAndIteration" :style="{width: '420px', height: '415px'}"></div>
<div id="projectAndIteration" :style="{width: '450px', height: '350px'}"></div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
@ -449,57 +449,39 @@ export default {
let projectAndIteration = this.$echarts.init(document.getElementById("projectAndIteration")); let projectAndIteration = this.$echarts.init(document.getElementById("projectAndIteration"));
let option = { let option = {
tooltip: { tooltip: {
trigger: 'item',
formatter: '{b} :<br/> {c} ({d}%)'
trigger: 'axis',
formatter: '{b} : {c}',
axisPointer: { //
type: 'shadow' // 线'line' | 'shadow'
}, },
legend: {
bottom: 10,
left: 'center',
}, },
series: [
{
center:['55%','40%'],//
type: 'pie',
radius: '60%',//
label:{ //
normal:{
show:true,
position:'outer', //:
textStyle : {
fontWeight : 100 ,
fontSize: document.body.clientWidth / 120, //
color: "#000000"
yAxis: {
type: 'category',
data: ['项目数', '迭代数']
}, },
formatter:'{b}\n{c}({d}%)',//bname,c:value,d:
alignTo:'edge',
margin:10
}
xAxis: {
type: 'value'
}, },
data: [
{value: this.xmProduct.iterationCnt,
itemStyle: {
series: [{
label: {
normal:{ normal:{
color: '#EE6666'
show: true,
position: 'inside',
color:'#000000',
} }
}, },
name: '迭代数'},
{value: this.xmProduct.projectCnt,
data: [this.xmProduct.projectCnt, this.xmProduct.iterationCnt],
type: 'bar',
showBackground: true,
itemStyle: { itemStyle: {
normal:{ normal:{
color: '#F4A460'
color: '#99CCFF'
} }
}, },
name: '项目数'},
],
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
backgroundStyle: {
color: '#FFFFFF'
} }
}
]
}]
}; };
// //

62
src/views/xm/core/xmProject/XmProjectOverview.vue

@ -239,7 +239,7 @@
<span>所含产品和迭代情况</span> <span>所含产品和迭代情况</span>
</div> </div>
<div> <div>
<div id="iterationAndProduct" :style="{width: '400px', height: '415px'}"></div>
<div id="iterationAndProduct" :style="{width: '450px', height: '350px'}"></div>
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
@ -713,57 +713,39 @@ export default {
let iterationAndProduct = this.$echarts.init(document.getElementById("iterationAndProduct")); let iterationAndProduct = this.$echarts.init(document.getElementById("iterationAndProduct"));
let option = { let option = {
tooltip: { tooltip: {
trigger: 'item',
formatter: '{b} :<br/> {c} ({d}%)'
trigger: 'axis',
formatter: '{b} : {c}',
axisPointer: { //
type: 'shadow' // 线'line' | 'shadow'
}, },
legend: {
bottom: 10,
left: 'center',
}, },
series: [
{
center:['55%','40%'],//
type: 'pie',
radius: '60%',//
label:{ //
normal:{
show:true,
position:'outer', //:
textStyle : {
fontWeight : 100 ,
fontSize: document.body.clientWidth / 120, //
color: "#000000"
yAxis: {
type: 'category',
data: ['产品数', '迭代数']
}, },
formatter:'{b}\n{c}({d}%)',//bname,c:value,d:
alignTo:'edge',
margin:10
}
xAxis: {
type: 'value'
}, },
data: [
{value: this.selProject.iterationCnt,
itemStyle: {
series: [{
label: {
normal:{ normal:{
color: '#EE6666'
show: true,
position: 'inside',
color:'#000000',
} }
}, },
name: '迭代数'},
{value: this.selProject.productCnt,
data: [this.selProject.productCnt, this.selProject.iterationCnt],
type: 'bar',
showBackground: true,
itemStyle: { itemStyle: {
normal:{ normal:{
color: '#73C0DE'
color: '#FFE4C4'
} }
}, },
name: '产品数'},
],
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
backgroundStyle: {
color: '#FFFFFF'
} }
}
]
}]
}; };
// //

Loading…
Cancel
Save