bb19620c by zhangmeng

看版

1 parent ea14d3b4
...@@ -327,13 +327,12 @@ async function handelGetYS005() { ...@@ -327,13 +327,12 @@ async function handelGetYS005() {
327 327
328 328
329 function getdata() { 329 function getdata() {
330 total = 0 330 clear()
331 api.getDegree().then(res => { 331 handelGetYS001()
332 list.value = res.data 332 handelGetYS002()
333 for (let n in list.value) { 333 handelGetYS003()
334 total = total + (list.value[n] || 0) 334 handelGetYS004()
335 } 335 handelGetYS005()
336 })
337 } 336 }
338 337
339 function handleResize() { 338 function handleResize() {
......
...@@ -417,25 +417,11 @@ async function handelGetYS009() { ...@@ -417,25 +417,11 @@ async function handelGetYS009() {
417 } 417 }
418 418
419 const getdata = () => { 419 const getdata = () => {
420 getA() 420 handelGetYS007()
421 getB() 421 handelGetYS008()
422 } 422 handelGetYS009()
423 const getA = () => {
424 //定时更新
425 api.getJieYue({type: radioA.value}).then(res => {
426 dataA.value = []
427 kindList.value = []
428 for (let n of res.data) {
429 if (n.count > 0) {
430 kindList.value.push(n.name)
431 dataA.value.push(n.count)
432 }
433 }
434 setA()
435 })
436 } 423 }
437 424
438
439 const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => { 425 const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => {
440 chartA = echarts.init(zhuRef.value) 426 chartA = echarts.init(zhuRef.value)
441 const option = { 427 const option = {
...@@ -619,20 +605,6 @@ const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => { ...@@ -619,20 +605,6 @@ const setA = (arrY, arr1, arr2, arr3, markLineName, BC) => {
619 chartA.setOption(option) 605 chartA.setOption(option)
620 autoHover(chartA, option, 0, 2000) 606 autoHover(chartA, option, 0, 2000)
621 } 607 }
622
623 const getB = () => {
624 api.getJieShou().then(res => {
625 dataA.value = []
626 kindList.value = []
627 for (let n of res.data) {
628 if (n.count > 0) {
629 kindList.value.push(n.name)
630 dataA.value.push(n.count)
631 }
632 }
633 setB()
634 })
635 }
636 const setB = (arrY, arr1, arr2) => { 608 const setB = (arrY, arr1, arr2) => {
637 chartB = echarts.init(lineRef.value) 609 chartB = echarts.init(lineRef.value)
638 const option = { 610 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!