小数展示
This commit is contained in:
@@ -82,7 +82,7 @@ export default {
|
||||
title: "二氧化硫", children: [
|
||||
{title: "本次", dataIndex: "so2Current",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "上年同期", dataIndex: "so2SameTimeLastYear",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "增减(%)", dataIndex: "so2ChangePercentage",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":""},
|
||||
{title: "增减(%)", dataIndex: "so2ChangePercentage",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":text},
|
||||
{title: "排名(按浓度值)", dataIndex: "so2Rank",align:"center"},
|
||||
]
|
||||
},
|
||||
@@ -90,7 +90,7 @@ export default {
|
||||
title: "二氧化氮", children: [
|
||||
{title: "本次", dataIndex: "no2Current",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "上年同期", dataIndex: "no2SameTimeLastYear",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "增减(%)", dataIndex: "no2ChangePercentage",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":""},
|
||||
{title: "增减(%)", dataIndex: "no2ChangePercentage",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":text},
|
||||
{title: "排名(按浓度值)", dataIndex: "no2Rank",align:"center"},
|
||||
]
|
||||
},
|
||||
@@ -98,15 +98,15 @@ export default {
|
||||
title: "可吸入颗粒物", children: [
|
||||
{title: "本次", dataIndex: "pm10Current",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "上年同期", dataIndex: "pm10SameTimeLastYear",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "增减(%)", dataIndex: "pm10ChangePercentage",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":""},
|
||||
{title: "增减(%)", dataIndex: "pm10ChangePercentage",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":text},
|
||||
{title: "排名(按浓度值)", dataIndex: "pm10Rank",align:"center"},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "一氧化碳", children: [
|
||||
{title: "本次", dataIndex: "coCurrent",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":""},
|
||||
{title: "上年同期", dataIndex: "coSameTimeLastYear",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":""},
|
||||
{title: "增减(%)", dataIndex: "coChangePercentage",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":""},
|
||||
{title: "本次", dataIndex: "coCurrent",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":text},
|
||||
{title: "上年同期", dataIndex: "coSameTimeLastYear",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":text},
|
||||
{title: "增减(%)", dataIndex: "coChangePercentage",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":text},
|
||||
{title: "排名(按浓度值)", dataIndex: "coRank",align:"center"},
|
||||
]
|
||||
},
|
||||
@@ -114,7 +114,7 @@ export default {
|
||||
title: "臭氧", children: [
|
||||
{title: "本次", dataIndex: "o3Current",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "上年同期", dataIndex: "o3SameTimeLastYear",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "增减(%)", dataIndex: "o3ChangePercentage",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":""},
|
||||
{title: "增减(%)", dataIndex: "o3ChangePercentage",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":text},
|
||||
{title: "排名(按浓度值)", dataIndex: "o3Rank",align:"center"},
|
||||
]
|
||||
},
|
||||
@@ -122,14 +122,14 @@ export default {
|
||||
title: "细颗粒物", children: [
|
||||
{title: "本次", dataIndex: "pm25Current",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "上年同期", dataIndex: "pm25SameTimeLastYear",align:"center",customRender:({text})=>text + ""},
|
||||
{title: "增减(%)", dataIndex: "pm25ChangePercentage",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":""},
|
||||
{title: "增减(%)", dataIndex: "pm25ChangePercentage",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":text},
|
||||
{title: "排名(按浓度值)", dataIndex: "pm25Rank",align:"center"},
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "综合指数", children: [
|
||||
{title: "本次", dataIndex: "comprehensiveAirQualityIndexCurrent",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(2)+"":""},
|
||||
{title: "上年同期", dataIndex: "comprehensiveAirQualityIndexSameTimeLastYear",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(2)+"":""},
|
||||
{title: "本次", dataIndex: "comprehensiveAirQualityIndexCurrent",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(2)+"":text},
|
||||
{title: "上年同期", dataIndex: "comprehensiveAirQualityIndexSameTimeLastYear",align:"center",customRender:({text})=> typeof text == "number"?text.toFixed(2)+"":text},
|
||||
{title: "增减(%)", dataIndex: "comprehensiveAirQualityIndexChangePercentage",customRender:({text})=> typeof text == "number"?text.toFixed(1)+"":""},
|
||||
{title: "排名(按浓度值)", dataIndex: "comprehensiveAirQualityIndexRank",align:"center"},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user