Merge branch 'release_electronic_bid_evaluation_room' into 'release_20230102'
1.3 See merge request eshop/fe_service_ebtp_frontend!105
This commit is contained in:
@ -564,7 +564,8 @@ export const GraphChart = (props: { type: string, chartData: any[], chartColor?:
|
|||||||
let mapData: any[] = [];
|
let mapData: any[] = [];
|
||||||
if (type == "map") {//地图处理数据
|
if (type == "map") {//地图处理数据
|
||||||
dataValue = dealWithData(chartData);
|
dataValue = dealWithData(chartData);
|
||||||
mapData = dataValue.splice(0, 3);
|
// mapData = dataValue.splice(0, 3);
|
||||||
|
mapData = dataValue;
|
||||||
}
|
}
|
||||||
const autoTooltip = (index: number) => {
|
const autoTooltip = (index: number) => {
|
||||||
myChart.dispatchAction({
|
myChart.dispatchAction({
|
||||||
@ -739,7 +740,7 @@ export const GraphChart = (props: { type: string, chartData: any[], chartColor?:
|
|||||||
coordinateSystem: "geo",
|
coordinateSystem: "geo",
|
||||||
data: dataValue,
|
data: dataValue,
|
||||||
symbolSize: function (val) {
|
symbolSize: function (val) {
|
||||||
return val[2] == 0 ? 8 : Math.floor(val[2] / 12.5);
|
return val[2] == 0 ? 8 : Math.floor(val[2] / 1.2);
|
||||||
},
|
},
|
||||||
symbol: "circle",
|
symbol: "circle",
|
||||||
// symbolSize: 8,
|
// symbolSize: 8,
|
||||||
@ -773,48 +774,48 @@ export const GraphChart = (props: { type: string, chartData: any[], chartColor?:
|
|||||||
disabled: true
|
disabled: true
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "",
|
// name: "",
|
||||||
type: "effectScatter",
|
// type: "effectScatter",
|
||||||
coordinateSystem: "geo",
|
// coordinateSystem: "geo",
|
||||||
data: mapData,
|
// data: mapData,
|
||||||
symbolSize: 16,
|
// symbolSize: 16,
|
||||||
// symbolSize: function (val) {
|
// // symbolSize: function (val) {
|
||||||
// return Math.floor(val[1] / 4);
|
// // return Math.floor(val[1] / 4);
|
||||||
|
// // },
|
||||||
|
// tooltip: {
|
||||||
|
// formatter(value) {
|
||||||
|
// return value.data.name + "<br/>" + "今日评标总数:" + value.data.value[2] + "<br/>" + "电子招标:" + value.data.value[3] + "<br/>" + "电子评标:" + value.data.value[4];
|
||||||
// },
|
// },
|
||||||
tooltip: {
|
// backgroundColor: "#0a0c11cc",
|
||||||
formatter(value) {
|
// textStyle: {
|
||||||
return value.data.name + "<br/>" + "今日评标总数:" + value.data.value[2] + "<br/>" + "电子招标:" + value.data.value[3] + "<br/>" + "电子评标:" + value.data.value[4];
|
// color: '#fff'
|
||||||
},
|
// },
|
||||||
backgroundColor: "#0a0c11cc",
|
// show: true
|
||||||
textStyle: {
|
// },
|
||||||
color: '#fff'
|
// encode: {
|
||||||
},
|
// value: 2
|
||||||
show: true
|
// },
|
||||||
},
|
// showEffectOn: "render",
|
||||||
encode: {
|
// rippleEffect: {
|
||||||
value: 2
|
// brushType: "stroke",
|
||||||
},
|
// color: "rgb(36,203,255)",
|
||||||
showEffectOn: "render",
|
// period: 9,
|
||||||
rippleEffect: {
|
// scale: 5
|
||||||
brushType: "stroke",
|
// },
|
||||||
color: "rgb(36,203,255)",
|
// label: {
|
||||||
period: 9,
|
// formatter: "{b}",
|
||||||
scale: 5
|
// position: "right",
|
||||||
},
|
// color: "#fff",
|
||||||
label: {
|
// show: true
|
||||||
formatter: "{b}",
|
// },
|
||||||
position: "right",
|
// itemStyle: {
|
||||||
color: "#fff",
|
// color: "rgb(36,203,255)",
|
||||||
show: true
|
// shadowBlur: 2,
|
||||||
},
|
// shadowColor: "#333"
|
||||||
itemStyle: {
|
// },
|
||||||
color: "rgb(36,203,255)",
|
// zlevel: 1
|
||||||
shadowBlur: 2,
|
// }
|
||||||
shadowColor: "#333"
|
|
||||||
},
|
|
||||||
zlevel: 1
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
const gaugeOption: EChartsOption = {
|
const gaugeOption: EChartsOption = {
|
||||||
@ -1237,16 +1238,16 @@ export const GraphChart = (props: { type: string, chartData: any[], chartColor?:
|
|||||||
myChart && myChart.resize();
|
myChart && myChart.resize();
|
||||||
};
|
};
|
||||||
let interval: any = null;
|
let interval: any = null;
|
||||||
if (type == "map") {//地图自动轮播tooltip
|
// if (type == "map") {//地图自动轮播tooltip
|
||||||
let index = 0;
|
// let index = 0;
|
||||||
interval = setInterval(() => {
|
// interval = setInterval(() => {
|
||||||
autoTooltip(index)
|
// autoTooltip(index)
|
||||||
index++;
|
// index++;
|
||||||
if (index >= mapData.length) {
|
// if (index >= mapData.length) {
|
||||||
index = 0;
|
// index = 0;
|
||||||
}
|
// }
|
||||||
}, 10000)
|
// }, 10000)
|
||||||
}
|
// }
|
||||||
window.addEventListener("resize", debounce(() => resize(), 100));
|
window.addEventListener("resize", debounce(() => resize(), 100));
|
||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener("resize", debounce(() => resize(), 100));
|
window.removeEventListener("resize", debounce(() => resize(), 100));
|
||||||
|
Reference in New Issue
Block a user