1
lzhe
2024-06-05 dcf9c9e0410fe1186239e3f8d6f7bdc789c08010
src/views/mdc/components/Time.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2024-04-18 21:52:18
 * @LastEditors: Sneed
 * @LastEditTime: 2024-04-23 19:44:57
 * @LastEditTime: 2024-04-27 23:30:06
 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/Time.vue
-->
<template>
@@ -140,11 +140,16 @@
                    xAxis: {
                        type: 'category',
                        axisLabel: {
                            interval: 'auto'
                            interval: 'auto',
                        }
                    },
                    yAxis: {
                        type: 'value'
                        type: 'value',
                        axisLabel: {
                            formatter: (value) => {
                                return value + '%'
                            }
                        },
                    },
                    dataZoom: [
                        { type: 'slider' }
@@ -166,7 +171,7 @@
                res.data.items.records.forEach(v => {
                    let current = [v.id]
                    Object.keys(v.nameData).forEach(key => {
                        current.push(row.data[key] - 0)
                        current.push((v.data[key] - 0) * 100)
                    })
                    option2.dataset.source.push(current)
                });