Merge branch 'main' of https://git.jsspisoft.com/ry-das
This commit is contained in:
commit
695c95769e
@ -58,6 +58,7 @@ import { useRoute } from 'vue-router'
|
|||||||
import { getParamList } from '/@/api/backend/SystemParam/request'
|
import { getParamList } from '/@/api/backend/SystemParam/request'
|
||||||
import { queryfaultCodeDict } from '/@/api/backend/theoreticalpowerCurve/request'
|
import { queryfaultCodeDict } from '/@/api/backend/theoreticalpowerCurve/request'
|
||||||
import { useEnumStore } from '/@/stores/enums'
|
import { useEnumStore } from '/@/stores/enums'
|
||||||
|
import {equipList} from "/@/api/backend/realData/request";
|
||||||
|
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@ -66,6 +67,7 @@ const d = new Date()
|
|||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
let timer: any = null
|
let timer: any = null
|
||||||
let myTable = ref<TableInstance>()
|
let myTable = ref<TableInstance>()
|
||||||
|
const windList=ref([])
|
||||||
|
|
||||||
const overviewSlotData= ref('一期')
|
const overviewSlotData= ref('一期')
|
||||||
|
|
||||||
@ -203,7 +205,7 @@ const StatusListData = () => {
|
|||||||
getWindTurbineMatrixData(
|
getWindTurbineMatrixData(
|
||||||
{
|
{
|
||||||
objectType: 10002,
|
objectType: 10002,
|
||||||
/*belongProject: overviewSlotData.value,*/
|
/* belongProject: overviewSlotData.value,*/
|
||||||
belongProject: '',
|
belongProject: '',
|
||||||
attributesList: [
|
attributesList: [
|
||||||
'iwindspeed',
|
'iwindspeed',
|
||||||
@ -344,6 +346,7 @@ const StatusListData = () => {
|
|||||||
locked: item.attributeMap.locked,
|
locked: item.attributeMap.locked,
|
||||||
irotorspeed: item.attributeMap.irotorspeed,
|
irotorspeed: item.attributeMap.irotorspeed,
|
||||||
firsttriggeredcode:firsttriggeredcode,
|
firsttriggeredcode:firsttriggeredcode,
|
||||||
|
//firsttriggeredcode:item.attributeMap.firsttriggeredcode,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -358,8 +361,9 @@ const StatusListData = () => {
|
|||||||
}
|
}
|
||||||
let malFunctionEnums: any = {}
|
let malFunctionEnums: any = {}
|
||||||
const getMalfunctionEnums = () => {
|
const getMalfunctionEnums = () => {
|
||||||
/*queryfaultCodeDict({ madeinfactory: item!.madeinFactory, model: item!.model }).then((res) => {*/
|
windList.value.forEach((item)=> {
|
||||||
queryfaultCodeDict({ madeinfactory: '广东明阳风电', model: 'MY1.5/89' }).then((res) => {
|
console.log({madeinfactory: item.madeinfactory, model: item.model })
|
||||||
|
queryfaultCodeDict({madeinfactory: item.madeinfactory, model: item.model }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
const data: any = {}
|
const data: any = {}
|
||||||
res.data.forEach((item: any) => {
|
res.data.forEach((item: any) => {
|
||||||
@ -370,6 +374,8 @@ const getMalfunctionEnums = () => {
|
|||||||
console.warn('查询故障代码字典失败:', res.message);
|
console.warn('查询故障代码字典失败:', res.message);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -405,7 +411,19 @@ onMounted(() => {
|
|||||||
getList()
|
getList()
|
||||||
window.addEventListener('resize', sizeChange)
|
window.addEventListener('resize', sizeChange)
|
||||||
sizeChange()
|
sizeChange()
|
||||||
|
equipList({ objectType: 10002 }).then((res) => {
|
||||||
|
res.data.map((item: any) => {
|
||||||
|
deviceCode.value.push(item.code)
|
||||||
|
})
|
||||||
|
windList.value=res.data.map((item: any) => {
|
||||||
|
return {
|
||||||
|
madeinfactory:item.madeinFactory,
|
||||||
|
model: item.model ?? '-',
|
||||||
|
}
|
||||||
|
})
|
||||||
getMalfunctionEnums()
|
getMalfunctionEnums()
|
||||||
|
})
|
||||||
|
|
||||||
overviewList()
|
overviewList()
|
||||||
StatusListData()
|
StatusListData()
|
||||||
autoUpdate()
|
autoUpdate()
|
||||||
@ -490,7 +508,6 @@ $labelHeight: 30px;
|
|||||||
}
|
}
|
||||||
.homeHeader{
|
.homeHeader{
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: 10px;
|
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.cardLabel{
|
.cardLabel{
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
@ -418,9 +418,9 @@ const getSafeImagePath = (item, type) => {
|
|||||||
firsttriggeredcode = malFunctionEnums?.[firsttriggeredcode] ?? firsttriggeredcode
|
firsttriggeredcode = malFunctionEnums?.[firsttriggeredcode] ?? firsttriggeredcode
|
||||||
}
|
}
|
||||||
return firsttriggeredcode
|
return firsttriggeredcode
|
||||||
}*/
|
}
|
||||||
|
|
||||||
/*let malFunctionEnums: any = {}
|
let malFunctionEnums: any = {}
|
||||||
const getMalfunctionEnums = (item) => {
|
const getMalfunctionEnums = (item) => {
|
||||||
/!*queryfaultCodeDict({ madeinfactory: item!.madeinFactory, model: item!.model }).then((res) => {*!/
|
/!*queryfaultCodeDict({ madeinfactory: item!.madeinFactory, model: item!.model }).then((res) => {*!/
|
||||||
queryfaultCodeDict({ madeinfactory: '广东明阳风电', model: 'MY1.5/89' }).then((res) => {
|
queryfaultCodeDict({ madeinfactory: '广东明阳风电', model: 'MY1.5/89' }).then((res) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user