Browse Source

feat:图表的单位添加

dev
zhaobing 2 years ago
parent
commit
137a4e373f
  1. 15
      web/client/src/sections/analysis/containers/operationData.jsx
  2. 10
      web/client/src/sections/analysis/containers/problemData.jsx

15
web/client/src/sections/analysis/containers/operationData.jsx

@ -190,7 +190,11 @@ const Console = (props) => {
}, {
t: '运维人员分析',
echartOption: {
tooltip: {},
tooltip: {
formatter:(params)=>{
return params?.data.name+':'+params?.data.value+'次'
}
},
series: [
{
// name: right2List?.map((item)=>{
@ -206,6 +210,15 @@ const Console = (props) => {
}
}
],
// graphic: {
// type: 'text',
// left: 'center',
// top: 'middle',
// style: {
// text: '',
// fontSize: 14
// }
// },
media: [
{
query: { minAspectRatio: 1 },

10
web/client/src/sections/analysis/containers/problemData.jsx

@ -137,6 +137,7 @@ const Console = (props) => {
// },
},
yAxis: {
name:'单位:次数',
type: 'category',
data: left1List.map((item) => {
return item.projectName
@ -294,6 +295,7 @@ const Console = (props) => {
},
},
yAxis: {
name:'单位:次数',
type: 'value',
// name: "",
// nameLocation: "end",
@ -322,7 +324,11 @@ const Console = (props) => {
}, {
t: '维修状态分析',
echartOption: {
tooltip: {},
tooltip: {
formatter:(params)=>{
return params?.data.name+':'+params?.data.value+'个'
}
},
series: [
{
name:'维修状态分析',
@ -332,6 +338,8 @@ const Console = (props) => {
return {value: Number(item.count), name: item.status}
})),
label: {
show: true,
//formatter: ':',
// name: right2List.map((item=>{
// return{}
// }))

Loading…
Cancel
Save