1.6 第十一版
This commit is contained in:
@ -658,6 +658,11 @@ export const GraphChart = (props: { type: string, chartData: any[], chartColor?:
|
|||||||
seriesIndex: 0,
|
seriesIndex: 0,
|
||||||
dataIndex: index,
|
dataIndex: index,
|
||||||
});
|
});
|
||||||
|
myChart.dispatchAction({
|
||||||
|
type: 'showTip',
|
||||||
|
seriesIndex: 0,
|
||||||
|
dataIndex: index,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
const colors = ['#1B7EF2', '#29F1FA', '#1B7EF2'];
|
const colors = ['#1B7EF2', '#29F1FA', '#1B7EF2'];
|
||||||
const categoryOption: EChartsOption = {
|
const categoryOption: EChartsOption = {
|
||||||
@ -1011,9 +1016,6 @@ export const GraphChart = (props: { type: string, chartData: any[], chartColor?:
|
|||||||
}
|
}
|
||||||
const mapTwiceOption: EChartsOption = {
|
const mapTwiceOption: EChartsOption = {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
|
||||||
showDelay: 0,
|
|
||||||
transitionDuration: 0.2,
|
|
||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
geo: {
|
geo: {
|
||||||
@ -1031,8 +1033,8 @@ export const GraphChart = (props: { type: string, chartData: any[], chartColor?:
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
visualMap: {
|
visualMap: {
|
||||||
min: 1,
|
min: 0,
|
||||||
max: 50,
|
max: 100,
|
||||||
inRange: {
|
inRange: {
|
||||||
color: [
|
color: [
|
||||||
'#01417f',
|
'#01417f',
|
||||||
@ -1057,6 +1059,19 @@ export const GraphChart = (props: { type: string, chartData: any[], chartColor?:
|
|||||||
// label: {
|
// label: {
|
||||||
// show: false
|
// show: false
|
||||||
// },
|
// },
|
||||||
|
tooltip: {
|
||||||
|
formatter(value) {
|
||||||
|
if (value.data?.name) {
|
||||||
|
return value.data.name + "<br/>" + "活跃供应商数量:" + value.data?.data.supplierCount + "<br/>" + "投标次数总量:" + value.data?.data.tenderCount;
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
},
|
||||||
|
backgroundColor: "#0a0c11cc",
|
||||||
|
textStyle: {
|
||||||
|
color: '#fff'
|
||||||
|
},
|
||||||
|
show: true
|
||||||
|
},
|
||||||
emphasis: {
|
emphasis: {
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
@ -1310,7 +1325,7 @@ export const GraphChart = (props: { type: string, chartData: any[], chartColor?:
|
|||||||
if (type == "mapTwice") {
|
if (type == "mapTwice") {
|
||||||
myChart.on('selectchanged', function (params: any) {
|
myChart.on('selectchanged', function (params: any) {
|
||||||
if (params.selected.length > 0) {
|
if (params.selected.length > 0) {
|
||||||
onSelect(chartData[params.selected[0].dataIndex[0]].name);
|
onSelect(chartData[params.selected[0].dataIndex[0]]?.name);
|
||||||
} else {
|
} else {
|
||||||
onSelect("");
|
onSelect("");
|
||||||
}
|
}
|
||||||
@ -1466,7 +1481,7 @@ const MonitorHome: React.FC<{}> = () => {
|
|||||||
}
|
}
|
||||||
//参与供应商数
|
//参与供应商数
|
||||||
const getSupplierCount = (ym: string) => {
|
const getSupplierCount = (ym: string) => {
|
||||||
getSupplierCountAPI(ym).then(res => {
|
getSupplierCountAPI({ year: Number(ym) }).then(res => {
|
||||||
if (res?.code == 200) {
|
if (res?.code == 200) {
|
||||||
setSupplierCount(res?.data);
|
setSupplierCount(res?.data);
|
||||||
}
|
}
|
||||||
|
@ -115,8 +115,9 @@ const Supplier: React.FC<{}> = () => {
|
|||||||
const getProvinceActiveSupplierInfo = (ym: string) => {
|
const getProvinceActiveSupplierInfo = (ym: string) => {
|
||||||
getProvinceActiveSupplierInfoAPI(ym).then(res => {
|
getProvinceActiveSupplierInfoAPI(ym).then(res => {
|
||||||
if (res?.code == 200) {
|
if (res?.code == 200) {
|
||||||
provinceActiveSupplierInfoData.current = res?.data;
|
const data = res?.data ? res?.data : [];
|
||||||
setProvinceData(res?.data.map((item: any) => ({ name: item.provinceName, value: 0 })))
|
provinceActiveSupplierInfoData.current = data;
|
||||||
|
setProvinceData(data.map((item: any) => ({ name: item.provinceName, value: item.supplierCount, data: item })))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -55,8 +55,9 @@ export async function getActiveSupplierAPI(params: any) {
|
|||||||
* 首页-参与供应商数
|
* 首页-参与供应商数
|
||||||
*/
|
*/
|
||||||
export async function getSupplierCountAPI(params: any) {
|
export async function getSupplierCountAPI(params: any) {
|
||||||
return request(`/api/biz-service-ebtp-statistics/v1/tenderMonitor/supplierCount/${params}`, {
|
return request(`/api/biz-service-ebtp-statistics/v1/tenderMonitor/supplierCount`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
params: params
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user