|
@@ -140,7 +140,6 @@
|
|
<script>
|
|
<script>
|
|
import BackgroundData from 'utils/BackgroundData'
|
|
import BackgroundData from 'utils/BackgroundData'
|
|
// import Worning from "./warning.vue"
|
|
// import Worning from "./warning.vue"
|
|
- import axios from 'axios';
|
|
|
|
import StandAloneImg from "./StandAloneImg.vue";
|
|
import StandAloneImg from "./StandAloneImg.vue";
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
export default {
|
|
export default {
|
|
@@ -251,8 +250,7 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getHealthDate() {
|
|
getHealthDate() {
|
|
- axios.get(`http://18.6.30.53:8070/alarm/statistic?stId=${this.windturbine.stationId}&wtId=${this.windturbine.windturbineId}`)
|
|
|
|
- .then(msg => {
|
|
|
|
|
|
+ api.getHealthDate(this.windturbine.stationId,this.windturbine.windturbineId).then(msg => {
|
|
if (msg.data.code === 200) {
|
|
if (msg.data.code === 200) {
|
|
this.healthInfo = msg.data.data;
|
|
this.healthInfo = msg.data.data;
|
|
}
|
|
}
|
|
@@ -263,8 +261,7 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
getDetial() {
|
|
getDetial() {
|
|
- axios.get(process.env.VUE_APP_API+`/api/windturbine/info/${this.windturbine.windturbineId}`)
|
|
|
|
- .then(msg => {
|
|
|
|
|
|
+ api.getDetial(this.windturbine.windturbineId).then(msg => {
|
|
let restaurants = []
|
|
let restaurants = []
|
|
this.selectValue = (msg.data.lockType === 0 ? '' : String(msg.data.lockType))
|
|
this.selectValue = (msg.data.lockType === 0 ? '' : String(msg.data.lockType))
|
|
this.state1 = msg.data.markValue
|
|
this.state1 = msg.data.markValue
|
|
@@ -295,8 +292,7 @@
|
|
parts = 'yy'
|
|
parts = 'yy'
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- axios.get(`http://18.6.30.53:8070/alarm/list?stId=${this.windturbine.stationId}&wtId=${this.windturbine.windturbineId}&widget=${parts}`)
|
|
|
|
- .then(msg => {
|
|
|
|
|
|
+ api.get(this.windturbine.stationId,this.windturbine.windturbineId,parts).then(msg => {
|
|
if (msg.data.code === 200) {
|
|
if (msg.data.code === 200) {
|
|
msg.data.data && msg.data.data.forEach(item => {
|
|
msg.data.data && msg.data.data.forEach(item => {
|
|
item.time = dayjs(item.time).format('MM-DD HH:mm:ss')
|
|
item.time = dayjs(item.time).format('MM-DD HH:mm:ss')
|
|
@@ -359,8 +355,8 @@
|
|
}
|
|
}
|
|
BackgroundData.getInstance().updateMarks(this.windturbine, this.state1);
|
|
BackgroundData.getInstance().updateMarks(this.windturbine, this.state1);
|
|
},
|
|
},
|
|
- show() {
|
|
|
|
- // axios.get(`http://${config.calcUrl}/alarm/real-time-alarm?objectId=${this.windturbine.windturbineId}&pageIndex=1&pageSize=50`)
|
|
|
|
|
|
+ show() {
|
|
|
|
+ // axiios.get(`http://${config.calcUrl}/alarm/real-time-alarm?objectId=${this.windturbine.windturbineId}&pageIndex=1&pageSize=50`)
|
|
// .then(msg=>{
|
|
// .then(msg=>{
|
|
// var vs = msg.data;
|
|
// var vs = msg.data;
|
|
// if(vs.length<=0)return;
|
|
// if(vs.length<=0)return;
|