| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-04-16 15:22:46 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-09-06 14:39:05 |
| | | * @LastEditTime: 2024-10-23 16:13:47 |
| | | * @FilePath: /CPSnew/smart-web/src/views/home/widgets/components/mdcDeviceStatus.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | |
| | | }, |
| | | series: [ |
| | | { |
| | | data: [3.96, 3.95, 3.93, 3.91, 3.91, 3.9, 3.85], |
| | | data: [], |
| | | type: 'bar', |
| | | label: { |
| | | show: true, // 显示标签 |
| | |
| | | // 返回数据值和您想要添加的字符串的组合 |
| | | return params.value + 'h'; // 例如,返回 '3.96 文字' |
| | | } |
| | | } |
| | | }, |
| | | itemStyle: { |
| | | color: '#5CBF7D' |
| | | } |
| | | } |
| | | ] |
| | | }, |
| | |
| | | return newData |
| | | }, |
| | | getParentData() { |
| | | this.$HTTP.post('/api/blade-cps/group/groupWorkstation/type', { |
| | | this.$HTTP.post('/api/smis/group/groupWorkstation/type', { |
| | | groupCategory: 1, |
| | | groupType: "group_workstation" |
| | | }).then(({ code, data }) => { |
| | |
| | | var recordDom = document.getElementById('running'); |
| | | if(res.data.categories.length == 0) return; |
| | | this.option.yAxis.data = res.data.categories; |
| | | this.option.series.data = res.data.series; |
| | | this.option.series[0].data = res.data.series[0].data; |
| | | var myChart = echarts.init(recordDom); |
| | | myChart.setOption(this.option); |
| | | } |