fix : 修复首页研发投入资金渲染bug

This commit is contained in:
2024-10-13 22:08:10 +08:00
parent 0fc92b7742
commit ee8df164d1

View File

@@ -380,20 +380,6 @@ const fundPieOption = ref({
color: 'rgba(0,0,0,0.6)',
fontSize: '12px'
},
// formatter: function (name) {
// let data = fundPieOption.value.series[0].data
// let total = 0
// let tarValue
// for (let i = 0; i < data.length; i++) {
// total += data[i].value
// if (data[i].name == name) {
// tarValue = data[i].value
// }
// }
// let v = tarValue
// let p = ((tarValue / total) * 100).toFixed(2)
// return `${name} ${v} ${p}%`
// },
},
graphic: { //图形中间图片
elements: [{
@@ -501,7 +487,6 @@ const moneyPieOption = ref({
},
},
itemStyle: {
normal: {
borderWidth: 8,//设置边框粗细
borderColor: '#fff',
@@ -613,15 +598,15 @@ const getDoneList = () => {
})
}
const changeResearchFundDataByYear = (year) => {
console.info("🚀 ~method:changeResearchFundDataByYear -----")
if (year) {
console.info("🚀 243442-----")
getResearchChart(year)
}
}
const getFundChart = () => {
getSpecialFundChart().then(res => {
if (res.code === 1000) {
moneyData.value = res.data
if (res.data?.length == 0) return;
if (fundPieOption.value.series && fundPieOption.value.series?.length > 0) {
fundPieOption.value.series[0].data[0].value = res.data[0].value
@@ -685,7 +670,6 @@ window.addEventListener('resize', () => {
})
const clickGotoListPage = (item) => {
console.info("🚀 ~method:clickGotoListPage -----", item.type)
if (item.type === 'pending') {
router.push({
name: 'Initiation',