Merge pull request 'fix : 修复首页研发投入资金渲染bug' (#834) from dj into master
Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/834
This commit is contained in:
@@ -380,20 +380,6 @@ const fundPieOption = ref({
|
|||||||
color: 'rgba(0,0,0,0.6)',
|
color: 'rgba(0,0,0,0.6)',
|
||||||
fontSize: '12px'
|
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: { //图形中间图片
|
graphic: { //图形中间图片
|
||||||
elements: [{
|
elements: [{
|
||||||
@@ -501,7 +487,6 @@ const moneyPieOption = ref({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
|
|
||||||
normal: {
|
normal: {
|
||||||
borderWidth: 8,//设置边框粗细
|
borderWidth: 8,//设置边框粗细
|
||||||
borderColor: '#fff',
|
borderColor: '#fff',
|
||||||
@@ -613,15 +598,15 @@ const getDoneList = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const changeResearchFundDataByYear = (year) => {
|
const changeResearchFundDataByYear = (year) => {
|
||||||
|
console.info("🚀 ~method:changeResearchFundDataByYear -----")
|
||||||
if (year) {
|
if (year) {
|
||||||
|
console.info("🚀 243442-----")
|
||||||
getResearchChart(year)
|
getResearchChart(year)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const getFundChart = () => {
|
const getFundChart = () => {
|
||||||
getSpecialFundChart().then(res => {
|
getSpecialFundChart().then(res => {
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
moneyData.value = res.data
|
|
||||||
if (res.data?.length == 0) return;
|
if (res.data?.length == 0) return;
|
||||||
if (fundPieOption.value.series && fundPieOption.value.series?.length > 0) {
|
if (fundPieOption.value.series && fundPieOption.value.series?.length > 0) {
|
||||||
fundPieOption.value.series[0].data[0].value = res.data[0].value
|
fundPieOption.value.series[0].data[0].value = res.data[0].value
|
||||||
@@ -685,7 +670,6 @@ window.addEventListener('resize', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const clickGotoListPage = (item) => {
|
const clickGotoListPage = (item) => {
|
||||||
console.info("🚀 ~method:clickGotoListPage -----", item.type)
|
|
||||||
if (item.type === 'pending') {
|
if (item.type === 'pending') {
|
||||||
router.push({
|
router.push({
|
||||||
name: 'Initiation',
|
name: 'Initiation',
|
||||||
|
|||||||
Reference in New Issue
Block a user