update
parent
06a7306603
commit
4d66be55fd
|
|
@ -368,7 +368,7 @@ const thisSelect = (e) => {
|
||||||
<th>交涉</th>
|
<th>交涉</th>
|
||||||
<td :rowspan="disList[0].budget ==disList[1].budget?'2':''">{{disList[0].budget}}%</td>
|
<td :rowspan="disList[0].budget ==disList[1].budget?'2':''">{{disList[0].budget}}%</td>
|
||||||
<td :rowspan="disList[0].monthOne ==disList[1].monthOne?'2':''">{{disList[0].monthOne}}%</td>
|
<td :rowspan="disList[0].monthOne ==disList[1].monthOne?'2':''">{{disList[0].monthOne}}%</td>
|
||||||
<td :rowspan="disList[0].budget ==disList[1].budget?'2':''">{{disList[0].monthTwo}}%</td>
|
<td :rowspan="disList[0].monthTwo ==disList[1].monthTwo?'2':''">{{disList[0].monthTwo}}%</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>THEME</th>
|
<th>THEME</th>
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ const dataB = ref([])
|
||||||
const dataD = ref([])
|
const dataD = ref([])
|
||||||
const dataC = ref([])
|
const dataC = ref([])
|
||||||
const dataE = ref([])
|
const dataE = ref([])
|
||||||
|
const SCMData = ref([])
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
getData()
|
getData()
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
||||||
const { chartRef, option } = charData()
|
const { chartRef, option } = charData()
|
||||||
const { chartRef: chartRef1, option: option1 } = charData2()
|
const { chartRef: chartRef1, option: option1 } = charData2()
|
||||||
const { chartRef: chartRefP1, option: optionP1 } = pieData1()
|
const { chartRef: chartRefP1, option: optionP1 } = pieData1()
|
||||||
|
import { NNumberAnimation } from "naive-ui";
|
||||||
|
|
||||||
const locale = computed(() => zhCn)
|
const locale = computed(() => zhCn)
|
||||||
const YearTime1 = ref('2020')
|
const YearTime1 = ref('2020')
|
||||||
|
|
@ -129,16 +130,31 @@ const cardsClick = (it) => {
|
||||||
</div>
|
</div>
|
||||||
<div class="m20px h-100px bg-#F5F8FF p10px">
|
<div class="m20px h-100px bg-#F5F8FF p10px">
|
||||||
<div class="py5px">
|
<div class="py5px">
|
||||||
|
<!-- <n-number-animation show-separator :from="0" :to="10700"/>吨,碳排放量159,158吨-->
|
||||||
<span class="text-18px font-bold text-#3164BF">铝</span
|
<span class="text-18px font-bold text-#3164BF">铝</span
|
||||||
><span class="ml5px">使用量0.000吨,碳排放量0.000吨</span>
|
>
|
||||||
|
<span class="ml5px">使用量
|
||||||
|
<n-number-animation show-separator :from="0" :duration="0" :to="10700"/>吨,碳排放量
|
||||||
|
<n-number-animation show-separator :from="0" :duration="0" :to="159158"/>吨
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="py5px">
|
<div class="py5px">
|
||||||
<span class="text-18px font-bold text-#3164BF">铝</span
|
<span class="text-18px font-bold text-#3164BF">铁</span
|
||||||
><span class="ml5px">使用量0.000吨,碳排放量0.000吨</span>
|
>
|
||||||
|
<!-- <span class="ml5px">使用量72,645吨,碳排放量165,731吨</span> -->
|
||||||
|
<span class="ml5px">使用量
|
||||||
|
<n-number-animation show-separator :from="0" :duration="0" :to="72645"/>吨,碳排放量
|
||||||
|
<n-number-animation show-separator :from="0" :duration="0" :to="165731"/>吨
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="py5px">
|
<div class="py5px">
|
||||||
<span class="text-18px font-bold text-#3164BF">铝</span
|
<span class="text-18px font-bold text-#3164BF">铜</span
|
||||||
><span class="ml5px">使用量0.000吨,碳排放量0.000吨</span>
|
>
|
||||||
|
<!-- <span class="ml5px">使用量0.000吨,碳排放量0.000吨</span> -->
|
||||||
|
<span class="ml5px">使用量
|
||||||
|
<n-number-animation show-separator :from="0" :duration="0" :to="14682"/>吨,碳排放量
|
||||||
|
<n-number-animation show-separator :from="0" :duration="0" :to="78942"/>吨
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -342,15 +342,16 @@ export function pieData1() {
|
||||||
containLabel: true
|
containLabel: true
|
||||||
},
|
},
|
||||||
// legend: {
|
// legend: {
|
||||||
// orient: 'vertical',
|
// // orient: 'vertical',
|
||||||
// left: 'left'
|
// left: 'left',
|
||||||
|
// padding: [30, 0, 0, 20]
|
||||||
// },
|
// },
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: 'Access From',
|
name: '',
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
selectedMode: 'single',
|
selectedMode: 'single',
|
||||||
radius: [0, '30%'],
|
radius: [0, '50%'],
|
||||||
label: {
|
label: {
|
||||||
position: 'inner',
|
position: 'inner',
|
||||||
fontSize: 14
|
fontSize: 14
|
||||||
|
|
@ -360,19 +361,24 @@ export function pieData1() {
|
||||||
},
|
},
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
value: 1548,
|
value: 159158,
|
||||||
name: '铝',
|
name: '铝',
|
||||||
label: { color: '#fff', fontSize: '16px', fontWeight: 'bold' }
|
label: { color: '#fff', fontSize: '16px', fontWeight: 'bold' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 775,
|
value: 165731,
|
||||||
name: '铁',
|
name: '铁',
|
||||||
label: { color: '#fff', fontSize: '16px', fontWeight: 'bold' }
|
label: { color: '#fff', fontSize: '16px', fontWeight: 'bold' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 679,
|
value: 78942,
|
||||||
name: '铜',
|
name: '铜',
|
||||||
selected: true,
|
// selected: true,
|
||||||
|
label: { color: '#fff', fontSize: '16px', fontWeight: 'bold' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 10000,
|
||||||
|
name: '树脂',
|
||||||
label: { color: '#fff', fontSize: '16px', fontWeight: 'bold' }
|
label: { color: '#fff', fontSize: '16px', fontWeight: 'bold' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
@ -386,14 +392,19 @@ export function pieData1() {
|
||||||
normal: {
|
normal: {
|
||||||
// 自定义每个扇形的颜色
|
// 自定义每个扇形的颜色
|
||||||
color: function (params) {
|
color: function (params) {
|
||||||
const colorList = ['#3EC22B', '#3EC22B', '#3EC22B']
|
const colorList = ['#3EC22B', '#3EC22B', '#3EC22B', '#3EC22B']
|
||||||
return colorList[params.dataIndex]
|
return colorList[params.dataIndex]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
hoverOffset: 0,
|
||||||
|
hoverAnimation: false,
|
||||||
|
emphasis: {
|
||||||
|
scale: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Access From',
|
name: '',
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
radius: ['45%', '60%'],
|
radius: ['45%', '60%'],
|
||||||
avoidLabelOverlap: false,
|
avoidLabelOverlap: false,
|
||||||
|
|
@ -441,7 +452,8 @@ export function pieData1() {
|
||||||
data: [
|
data: [
|
||||||
{ value: 0.0, name: '铝' },
|
{ value: 0.0, name: '铝' },
|
||||||
{ value: 0.0, name: '铁' },
|
{ value: 0.0, name: '铁' },
|
||||||
{ value: 0.0, name: '铜' }
|
{ value: 0.0, name: '铜' },
|
||||||
|
{ value: 0.0, name: '树脂' }
|
||||||
]
|
]
|
||||||
// 自定义颜色
|
// 自定义颜色
|
||||||
// itemStyle: {
|
// itemStyle: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue