|
@@ -395,6 +395,8 @@ import {
|
|
|
GetWtMonitorInfo,
|
|
|
GetWtTelemeteryInfo,
|
|
|
GetWtOtherInfo,
|
|
|
+ GetMatrixalarmtype,
|
|
|
+ GetMatrixalarmtypeTable
|
|
|
} from "@/api/factoryMonitor/index.js";
|
|
|
import svgIcon from "@/components/coms/icon/svg-icon.vue";
|
|
|
import alarmDialog from "@/components/alarm";
|
|
@@ -602,7 +604,11 @@ export default {
|
|
|
code: "status",
|
|
|
name: "报警状态"
|
|
|
},
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ warnTypeData: {
|
|
|
+ typeData: [],
|
|
|
+ tableData: []
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
components: { svgIcon, alarmDialog, powerAndSpeed, },
|
|
@@ -683,6 +689,33 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ getwarnTypeData() {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ wtid: "NX_FGS_HA_F_WT_0039_EQ"
|
|
|
+ // wtid: that.wind.wtid
|
|
|
+ }
|
|
|
+ GetMatrixalarmtype(params).then(res =>{
|
|
|
+ if (res && res.data) {
|
|
|
+ that.warnTypeData.typeData = res.data
|
|
|
+ that.getwarnTableData(res.data[0])
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getwarnTableData(data) {
|
|
|
+ let that = this
|
|
|
+ let params = {
|
|
|
+ type: "BJXT",
|
|
|
+ wtid: "NX_FGS_HA_F_WT_0039_EQ"
|
|
|
+ // type: data.nemCode,
|
|
|
+ // wtid: that.wind.wtid
|
|
|
+ }
|
|
|
+ GetMatrixalarmtypeTable(params).then(res =>{
|
|
|
+ if (res && res.data) {
|
|
|
+ that.warnTypeData.tableData = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
handleXhClick(wind) {
|
|
|
// console.log(wind);
|
|
|
this.$refs.powerAndSpeed && this.$refs.powerAndSpeed.init(wind);
|