优化资金

This commit is contained in:
ljx
2025-08-26 19:25:15 +08:00
parent 4e08f7387f
commit c1d6a8d92c
3 changed files with 23 additions and 15 deletions

View File

@ -15,7 +15,7 @@ export const totalAmount = () => {
/** /**
* 查询项目位置列表 * 查询项目位置列表
* *
*/ export const projectGis = (clientid) => { */ export const projectGis = (clientid?: any) => {
return request({ return request({
url: '/money/big/screen/project/gis', url: '/money/big/screen/project/gis',
method: 'get', method: 'get',
@ -57,7 +57,8 @@ export const totalAmount = () => {
/** /**
* 支出合同分析 * 支出合同分析
* *
*/ export const expensesAnalyze = (clientid) => { */
export const expensesAnalyze = (clientid) => {
return request({ return request({
url: '/money/big/screen/expenses/analyze', url: '/money/big/screen/expenses/analyze',
method: 'get', method: 'get',
@ -79,14 +80,14 @@ export const totalAmount = () => {
export const monthMoney = () => { export const monthMoney = () => {
return request({ return request({
url: '/money/big/screen/monthMoney', url: '/money/big/screen/monthMoney',
method: 'get', method: 'get'
}); });
}; };
// 现金流 // 现金流
export const monthCash = () => { export const monthCash = () => {
return request({ return request({
url: '/money/big/screen/monthCash', url: '/money/big/screen/monthCash',
method: 'get', method: 'get'
}); });
}; };
// 现金流总和 // 现金流总和
@ -94,6 +95,6 @@ export const monthCash = () => {
export const cashTotal = () => { export const cashTotal = () => {
return request({ return request({
url: '/money/big/screen/cashTotal', url: '/money/big/screen/cashTotal',
method: 'get', method: 'get'
}); });
}; };

View File

@ -23,7 +23,7 @@ const props = defineProps({
}, },
// 数值 // 数值
value: { value: {
type: Number, type: Number || String,
default: 205805.17 default: 205805.17
}, },
// 单位 // 单位

View File

@ -147,14 +147,21 @@ const initEcharts = () => {
}, },
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: (params: any) => { backgroundColor: 'rgba(3, 26, 52, 0.8)',
// 自定义提示框内容,显示更多项目信息 borderColor: '#1e3a6e',
const data = params.data; textStyle: {
return ` color: '#fff'
<div style="font-weight: bold;">${data.name}</div> },
<div>地点:${data.projectSite}</div> formatter: function (params: any) {
<div>经纬度:${data.value[0].toFixed(6)}, ${data.value[1].toFixed(6)}</div> if (params.data) {
`; // 处理散点数据
const data = params.data;
return `
<div style="font-weight: bold;">${data.name}</div>
<div>地点:${data.projectSite}</div>
<div>经纬度:${data.value[0].toFixed(6)}, ${data.value[1].toFixed(6)}</div>
`;
}
} }
}, },
series: [ series: [
@ -219,4 +226,4 @@ onUnmounted(() => {
height: 60%; height: 60%;
} }
} }
</style> </style>