bcb5ca6d by zhangmeng

看板

1 parent b4a694ed
......@@ -191,50 +191,50 @@ async function handelGetYS003() {
async function handelGetYS004() {
const res = await getYS004()
console.log(res)
// let arrList = res.data.blockgroup
let arrList = [
{
BLOCK: '海上',
list: [
{
BASE: '上海',
DAYS: '6',
DSO: '20'
},
{
BASE: '浙江',
DAYS: '3',
DSO: '202'
},
{
BASE: '青岛',
DAYS: '61',
DSO: '230'
}
]
},
{
BLOCK: '陆地',
list: [
{
BASE: '合肥',
DAYS: '61',
DSO: '20'
},
{
BASE: '北京',
DAYS: '33',
DSO: '202'
},
{
BASE: '河南',
DAYS: '61',
DSO: '230'
}
]
}
]
// console.log(res)
let arrList = res.data.blockgroup
// let arrList = [
// {
// BLOCK: '海上',
// list: [
// {
// BASE: '上海',
// DAYS: '6',
// DSO: '20'
// },
// {
// BASE: '浙江',
// DAYS: '3',
// DSO: '202'
// },
// {
// BASE: '青岛',
// DAYS: '61',
// DSO: '230'
// }
// ]
// },
// {
// BLOCK: '陆地',
// list: [
// {
// BASE: '合肥',
// DAYS: '61',
// DSO: '20'
// },
// {
// BASE: '北京',
// DAYS: '33',
// DSO: '202'
// },
// {
// BASE: '河南',
// DAYS: '61',
// DSO: '230'
// }
// ]
// }
// ]
let haishang
let dalu
for (const v of arrList) {
......@@ -297,6 +297,7 @@ async function handelGetYS004() {
async function handelGetYS005() {
const res = await getYS005()
form.value = res.data
console.log(res)
}
......
......@@ -268,6 +268,8 @@ function handelSelect7() {
async function handelGetYS008() {
const res = await getYS008()
list8.value = res.data.list
console.log(res)
list8Y.value = []
month8.value = []
year8.value = []
......@@ -275,11 +277,11 @@ async function handelGetYS008() {
list8.value[i].itemStyle = itemStyleList.value[i % itemStyleList.value.length]
list8Y.value.push(list8.value[i].BASE)
month8.value.push({
value: list8.value[i].HKQKTOTAL,
value: list8.value[i].HKQKTOTAL / 10000,
itemStyle: list8.value[i].itemStyle,
})
year8.value.push({
value: list8.value[i].HKQKMONTH,
value: list8.value[i].HKQKMONTH / 10000,
itemStyle: list8.value[i].itemStyle,
})
}
......@@ -503,7 +505,7 @@ const setB = (arrY, arr1, arr2) => {
// Use axis to trigger tooltip
type: 'shadow' // 'shadow' as default; can also be 'line' or 'shadow'
},
valueFormatter: (value) => value + '万',
valueFormatter: (value) => (value * 1).toFixed() + '万',
backgroundColor: 'rgba(5, 28, 51, 1)', // 背景色
borderColor: 'rgba(46, 151, 198, 1)', // 边框颜色
borderWidth: 1, // 边框宽度
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!