|
|
|
|
@ -197,11 +197,7 @@ const colors = [
|
|
|
|
|
{ |
|
|
|
|
color: "linear-gradient( 270deg, #FFB90E 0%, #71501D 100%)", |
|
|
|
|
percentage: 60, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
color: "linear-gradient( 270deg, #63E700 0%, #19674C 100%)", |
|
|
|
|
percentage: 40, |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
const activeOrgTab = ref("1"); |
|
|
|
|
@ -416,6 +412,8 @@ const proTrend = ref({
|
|
|
|
|
const getOrganizationRankData = async (timeValue = time.value) => { |
|
|
|
|
const res = await getOrganizationRank(timeValue); |
|
|
|
|
fxsjlist.value = res.fxsjlist; |
|
|
|
|
// 5, 3, 2, 1 |
|
|
|
|
// console.log(fxsjlist.value); |
|
|
|
|
jsdwlist.value = res.jsdwlist; |
|
|
|
|
} |
|
|
|
|
const getBusinessRateData = async (timeValue = time.value) => { |
|
|
|
|
@ -474,16 +472,14 @@ const getGlobalMapData = async (timeValue = time.value) => {
|
|
|
|
|
}); |
|
|
|
|
// 总数 |
|
|
|
|
const maxItem = mappedData.reduce((max, item) => (Number(item.value) > Number(max.value) ? item : max), mappedData[0]); |
|
|
|
|
const range40Percent = maxItem.value * 0.4 // 不用取整,小数也可以 |
|
|
|
|
const range60Percent = maxItem.value * 0.6 // 不用取整,小数也可以 |
|
|
|
|
const range80Percent = maxItem.value * 0.8 // 不用取整,小数也可以 |
|
|
|
|
globalTempMapVoList.value = mappedData; |
|
|
|
|
option.value.series[0].data = globalTempMapVoList; |
|
|
|
|
console.log(range40Percent, range60Percent, range80Percent); |
|
|
|
|
option.value.visualMap.pieces = [ |
|
|
|
|
{gte: 0, lte: range40Percent, label: "低于最大问题的40%", color: "#4987F6"}, |
|
|
|
|
{gte: range40Percent, lte: range60Percent, label: "平均问题上下浮动30%内", color: "#F6A149"}, |
|
|
|
|
{gte: range80Percent, label: "高于平均问题30%", color: "#D34343"}, |
|
|
|
|
{gte: 0, lte: range60Percent, label: "低于最大问题的60%", color: "#4987F6"}, |
|
|
|
|
{gte: range60Percent, lte: range80Percent, label: "介于最大问题的60%~80%", color: "#F6A149"}, |
|
|
|
|
{gte: range80Percent, label: "高于最大问题80%", color: "#D34343"}, |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
const getGlobalTrendData = async (year = selectedYear.value) => { |
|
|
|
|
|