修改 海南测试bug

This commit is contained in:
GGJ
2024-12-11 16:14:08 +08:00
parent 9b952f2016
commit 16c25ddf6b
28 changed files with 338 additions and 220 deletions

View File

@@ -79,7 +79,7 @@ const init = () => {
opacity: 0.35,
fontSize: 14
},
backgroundColor: 'rgba(0,0,0,0.35)',
backgroundColor: 'rgba(0,0,0,0.55)',
borderWidth: 0
},
calculable: true,

View File

@@ -1119,7 +1119,7 @@ const rendering = () => {
smooth: true,
itemStyle: {
normal: {
color: '#339900'
color: '#009900'
}
},
@@ -1136,7 +1136,7 @@ const rendering = () => {
barWidth: 22,
itemStyle: {
normal: {
color: '#FF3300'
color: '#CC0000'
}
},
data: item.cvalue
@@ -1317,7 +1317,7 @@ const getEcharts = () => {
opacity: 0.35,
fontSize: 14
},
backgroundColor: 'rgba(0,0,0,0.35)',
backgroundColor: 'rgba(0,0,0,0.55)',
formatter: function (params: any) {
let tips = ''
@@ -1546,7 +1546,7 @@ const getEcharts = () => {
symbolSize: 0,
itemStyle: {
normal: {
color: '#FF3300'
color: '#CC0000'
}
}
},

View File

@@ -6,12 +6,8 @@
</el-form-item>
<el-form-item label="对比">
<el-select v-model="searchType" clearable placeholder="可选择同比、环比">
<el-option
v-for="item in searchTypeOptions"
:key="item.value"
:label="item.label"
:value="item.value"
/>
<el-option v-for="item in searchTypeOptions" :key="item.value" :label="item.label"
:value="item.value" />
</el-select>
</el-form-item>
<el-form-item>
@@ -215,7 +211,7 @@ const init = () => {
opacity: 0.35,
fontSize: 14
},
backgroundColor: 'rgba(0,0,0,0.35)',
backgroundColor: 'rgba(0,0,0,0.55)',
formatter: function (params: any) {
//console.log(params)
let msg = ''
@@ -231,7 +227,7 @@ const init = () => {
}
},
xAxis: {
name:'指标类型',
name: '指标类型',
type: 'category',
axisLine: {
lineStyle: {

View File

@@ -77,7 +77,7 @@ const init = () => {
fontSize: 14
},
borderColor: '#fff',
backgroundColor: 'rgba(0,0,0,0.35)',
backgroundColor: 'rgba(0,0,0,0.55)',
formatter: function (params: any) {
if (params.value >= 5) {
return params.name + ' : ' + '优质'
@@ -178,17 +178,17 @@ const init = () => {
}
})
},
itemStyle:{
itemStyle: {
color: (params: any) => {
if(params.value > 5){
if (params.value > 5) {
return gradeColor5[0]
}else if(params.value > 4){
} else if (params.value > 4) {
return gradeColor5[1]
}else if(params.value > 3){
} else if (params.value > 3) {
return gradeColor5[2]
}else if(params.value > 2){
} else if (params.value > 2) {
return gradeColor5[3]
}else{
} else {
return gradeColor5[4]
}
}