Browse Source

fit:1、地图3色

master
pengwei 5 months ago
parent
commit
2ed2cbfacd
  1. 1
      src/views/datav/CaseVerif.vue
  2. 14
      src/views/datav/Jwpy.vue

1
src/views/datav/CaseVerif.vue

@ -553,6 +553,7 @@ const getCaseVerificationMapData = async (timeValue) => {
{gte: range60Percent, lte: range80Percent, label: "介于最大问题的60%~80%", color: "#F6A149"}, {gte: range60Percent, lte: range80Percent, label: "介于最大问题的60%~80%", color: "#F6A149"},
{gte: range80Percent, label: "高于最大问题80%", color: "#D34343"}, {gte: range80Percent, label: "高于最大问题80%", color: "#D34343"},
]; ];
console.log('option.value',option.value)
} }
const getCaseVerificationTrendData = async (year) => { const getCaseVerificationTrendData = async (year) => {
const res = await getCaseVerificationTrend(year); const res = await getCaseVerificationTrend(year);

14
src/views/datav/Jwpy.vue

@ -417,7 +417,6 @@ const option = ref({
map: "changsha", map: "changsha",
}, },
visualMap: { visualMap: {
show: false,
type: "piecewise", type: "piecewise",
bottom: 10, bottom: 10,
pieces: [ pieces: [
@ -425,13 +424,16 @@ const option = ref({
{gte: 200, lte: 400, label: "满意度一般", color: "#F6A149"}, {gte: 200, lte: 400, label: "满意度一般", color: "#F6A149"},
{gte: 400, label: "满意度较差", color: "#D34343"}, {gte: 400, label: "满意度较差", color: "#D34343"},
], ],
right: 10, right: 10, //
realtime: false, realtime: false,
orient: "horizontal", orient: "horizontal", //
textStyle: { textStyle: {
color: "#fff", color: "#fff", //
}, },
calculable: true, calculable: true,
inRange: {
color: ["#4987F6", "#F6A149", "#D34343"],
},
}, },
series: [ series: [
{ {
@ -882,9 +884,9 @@ function GetDITUFun(){
option.value.visualMap.pieces=[ option.value.visualMap.pieces=[
{min: listData[2].value, max: 100, label: "满意度前三", color: "#4987F6"}, {min: listData[2].value, max: 100, label: "满意度前三", color: "#4987F6"},
{min: listData[6].value, max: listData[3].value, label: "满意度中等", color: "#F6A149"}, {min: listData[6].value, max: listData[3].value, label: "满意度中等", color: "#F6A149"},
{max: listData[4].value, label: "满意度较差", color: "#D34343"}, {max: listData[6].value, label: "满意度较差", color: "#D34343"},
] ]
option.value.series.data =listData option.value.series[0].data = listData;
mapDataList.value = tempMap.value.map(org => { mapDataList.value = tempMap.value.map(org => {
return {name: org.OrganizeName, value: org.OrganizeID}; return {name: org.OrganizeName, value: org.OrganizeID};
}) })

Loading…
Cancel
Save