2ee51b13 by zhangmeng

看板

1 parent 528071db
<template>
<div class="pd20">
<div class="chartCard">
<div class="title">应收款余额</div>
<div class="title">应收款余额</div>
<div ref="zhuRef" style="width: 100%; height: 24vh;"></div>
</div>
......@@ -401,7 +401,7 @@ const setA = (arr, arr2, arr3) => {
]
},
{
name: '应收款余额',
name: '应收款余额',
type: 'pie',
center: ['25%', '50%'],
radius: ['30%', '70%'],
......
......@@ -12,7 +12,7 @@
placeholder="全部基地(可多选)"
size="small"
@change="handelSelect7">
<el-option v-for="val in list7" :key="val.BASE" :label="val.BASE" :value="val.BASE"/>
<el-option v-for="val in list7" :key="val.BASE" :label="val.BASEJC" :value="val.BASEJC"/>
</el-select>
</div>
</div>
......@@ -45,7 +45,7 @@
@change="handelSelect8">
<el-option
v-for="(val,i) in list8"
:key="i" :label="val.BASE" :value="val.BASE"/>
:key="i" :label="val.BASEJC" :value="val.BASEJC"/>
</el-select>
</div>
......@@ -236,14 +236,16 @@ const init = () => {
async function handelGetYS007() {
const res = await getYS007()
list7.value = res.data.list
console.log(list7.value)
list7.value.sort((a, b) => a.EXERATIO - b.EXERATIO);
list7Y.value = []
let arr1 = []
let arr2 = []
let arr3 = []
let num = 0
for (const val of list7.value) {
list7Y.value.push(val.BASE)
list7Y.value.push(val.BASEJC)
arr1.push(
{
value: Math.round(val.PLANCOST / 10000),
......@@ -263,13 +265,13 @@ async function handelGetYS007() {
}
function handelSelect7() {
let arr = list7Y.value.map(val => list7.value.find(item => item.BASE === val))
let arr = list7Y.value.map(val => list7.value.find(item => item.BASEJC === val))
let arr1 = []
let arr2 = []
let arr3 = []
list7Y.value = []
for (const val of arr) {
list7Y.value.push(val.BASE)
list7Y.value.push(val.BASEJC)
arr1.push(Math.round(val.PLANCOST / 10000))
arr2.push(Math.round(val.EXECOST / 10000))
arr3.push(val.EXERATIO)
......@@ -285,7 +287,7 @@ async function handelGetYS008() {
year8.value = []
for (let i = 0; i < list8.value.length; i++) {
list8.value[i].itemStyle = itemStyleList.value[i % itemStyleList.value.length]
list8Y.value.push(list8.value[i].BASE)
list8Y.value.push(list8.value[i].BASEJC)
month8.value.push({
value: list8.value[i].HKQKTOTAL / 10000,
itemStyle: list8.value[i].itemStyle,
......@@ -302,7 +304,7 @@ async function handelGetYS008() {
function handelSelect8() {
month8.value = []
year8.value = []
let arr = list8Y.value.map(val => list8.value.find(item => item.BASE === val));
let arr = list8Y.value.map(val => list8.value.find(item => item.BASEJC === val));
for (let i = 0; i < arr.length; i++) {
month8.value.push({
value: list8.value[i].HKQKTOTAL / 10000,
......@@ -973,7 +975,7 @@ onUnmounted(() => {
}
.itemBox {
width: 70%;
width: 60%;
background: #0B2239;
box-shadow: 0 0 24px 0 rgba(130, 220, 255, 0.5), 0 0 16px 0 rgba(130, 220, 255, 0.27);
border-radius: 5px;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!