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:
jl-zhoujl2
2023-01-02 17:34:13 +00:00

View File

@ -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: { // tooltip: {
formatter(value) { // formatter(value) {
return value.data.name + "<br/>" + "今日评标总数:" + value.data.value[2] + "<br/>" + "电子招标:" + value.data.value[3] + "<br/>" + "电子评标:" + value.data.value[4]; // return value.data.name + "<br/>" + "今日评标总数:" + value.data.value[2] + "<br/>" + "电子招标:" + value.data.value[3] + "<br/>" + "电子评标:" + value.data.value[4];
}, // },
backgroundColor: "#0a0c11cc", // backgroundColor: "#0a0c11cc",
textStyle: { // textStyle: {
color: '#fff' // color: '#fff'
}, // },
show: true // show: true
}, // },
encode: { // encode: {
value: 2 // value: 2
}, // },
showEffectOn: "render", // showEffectOn: "render",
rippleEffect: { // rippleEffect: {
brushType: "stroke", // brushType: "stroke",
color: "rgb(36,203,255)", // color: "rgb(36,203,255)",
period: 9, // period: 9,
scale: 5 // scale: 5
}, // },
label: { // label: {
formatter: "{b}", // formatter: "{b}",
position: "right", // position: "right",
color: "#fff", // color: "#fff",
show: true // show: true
}, // },
itemStyle: { // itemStyle: {
color: "rgb(36,203,255)", // color: "rgb(36,203,255)",
shadowBlur: 2, // shadowBlur: 2,
shadowColor: "#333" // shadowColor: "#333"
}, // },
zlevel: 1 // 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));