| | |
| | | <!-- |
| | | * @Date: 2024-04-09 22:11:21 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-10-07 00:51:38 |
| | | * @LastEditTime: 2024-10-07 21:48:45 |
| | | * @FilePath: /mdc/Users/mache/Documents/demo/cps-web/src/views/mdc/realtime-status/index.vue |
| | | 实时看板 |
| | | --> |
| | |
| | | this.$HTTP.get("/api/blade-cps/group/get-mdc-group").then(res => { |
| | | if (res.code == 200) { |
| | | this.stationlabelList = res.data; |
| | | if(res.data.length != 0) { |
| | | this.stationlabel = res.data[0].groupName; |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | changestatus(name) { |
| | | if(this.stationlabelList.length == 0) { |
| | | this.station = "状态视图"; |
| | | //this.$message.error("不能点击"); |
| | | return; |
| | | } |
| | | this.station = name; |
| | | if (this.station == '状态视图') { |
| | | this.workStationGroupIdList = []; |
| | |
| | | } |
| | | }, |
| | | goSet() { |
| | | this.$router.push('/mdc/configuration'); |
| | | //console.log(this.$TOOL.data.get("MENU"));name == "配置中心" |
| | | this.$router.push('/mdc/configuration'); //分析设置 |
| | | }, |
| | | gostatus(item) { |
| | | this.$router.push('/mdc/station-live?code=' + item.id); |
| | |
| | | } |
| | | }); |
| | | }; |
| | | console.log(this.timestatus,214) |
| | | // var len = res.data.records.length; |
| | | // intervalId = setInterval(function() { |
| | | // if (num === len) { |