| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-04-16 15:22:46 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-09-09 11:50:56 |
| | | * @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 |
| | | --> |
| | | <template> |
| | | <el-card shadow="hover" header="设备运行时长排名12" style="height: 100%;" class="running"> |
| | | <el-card shadow="hover" header="设备运行时长排名" style="height: 100%;" class="running"> |
| | | <div class="running-icon"> |
| | | <el-icon @click="refreshBtn"><RefreshLeft /></el-icon> |
| | | <el-icon @click="showSearch"><Filter /></el-icon> |
| | |
| | | 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 }) => { |
| | |
| | | }) |
| | | }, |
| | | getRunData() { |
| | | console.log(this.apiResource,112333) |
| | | this.$HTTP.post(`/api/blade-visual/status/running-top`,this.apiResource).then(res=> { |
| | | if(res.code == 200) { |
| | | this.isSearch = false; |
| | |
| | | if(res.data.categories.length == 0) return; |
| | | this.option.yAxis.data = res.data.categories; |
| | | this.option.series[0].data = res.data.series[0].data; |
| | | console.log(this.option.series.data,res.data.series[0].data,2) |
| | | var myChart = echarts.init(recordDom); |
| | | myChart.setOption(this.option); |
| | | } |