bb19620c by zhangmeng

看版

1 parent ea14d3b4
......@@ -327,13 +327,12 @@ async function handelGetYS005() {
function getdata() {
total = 0
api.getDegree().then(res => {
list.value = res.data
for (let n in list.value) {
total = total + (list.value[n] || 0)
}
})
clear()
handelGetYS001()
handelGetYS002()
handelGetYS003()
handelGetYS004()
handelGetYS005()
}
function handleResize() {
......
......@@ -417,24 +417,10 @@ async function handelGetYS009() {
}
const getdata = () => {
getA()
getB()
handelGetYS007()
handelGetYS008()
handelGetYS009()
}
const getA = () => {
//定时更新
api.getJieYue({type: radioA.value}).then(res => {
dataA.value = []
kindList.value = []
for (let n of res.data) {
if (n.count > 0) {
kindList.value.push(n.name)
dataA.value.push(n.count)
}
}
setA()
})
}
const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => {
chartA = echarts.init(zhuRef.value)
......@@ -619,20 +605,6 @@ const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => {
chartA.setOption(option)
autoHover(chartA, option, 0, 2000)
}
const getB = () => {
api.getJieShou().then(res => {
dataA.value = []
kindList.value = []
for (let n of res.data) {
if (n.count > 0) {
kindList.value.push(n.name)
dataA.value.push(n.count)
}
}
setB()
})
}
const setB = (arrY, arr1, arr2) => {
chartB = echarts.init(lineRef.value)
const option = {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!