Merge branch 'main' of https://git.jsspisoft.com/ry-das
This commit is contained in:
commit
1f4d81f208
@ -124,4 +124,9 @@ public class SysEquipmentVo implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String options;
|
private String options;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属工程
|
||||||
|
*/
|
||||||
|
private String belongProject;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -143,4 +143,10 @@ public class SysEquipment extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
@TableField(value = "options")
|
@TableField(value = "options")
|
||||||
private String options;
|
private String options;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 所属工程
|
||||||
|
*/
|
||||||
|
@TableField(value = "belong_project")
|
||||||
|
private String belongProject;
|
||||||
}
|
}
|
||||||
|
@ -301,7 +301,7 @@ const StatusListData = () => {
|
|||||||
objectType: 10002,
|
objectType: 10002,
|
||||||
belongProject: '',
|
belongProject: '',
|
||||||
attributesList: [
|
attributesList: [
|
||||||
'iwindspeed"',
|
'iwindspeed',
|
||||||
'iturbineoperationmode',
|
'iturbineoperationmode',
|
||||||
'iyplevel',
|
'iyplevel',
|
||||||
'gridlostdetected',
|
'gridlostdetected',
|
||||||
|
@ -203,9 +203,10 @@ const StatusListData = () => {
|
|||||||
getWindTurbineMatrixData(
|
getWindTurbineMatrixData(
|
||||||
{
|
{
|
||||||
objectType: 10002,
|
objectType: 10002,
|
||||||
|
/*belongProject: overviewSlotData.value,*/
|
||||||
belongProject: '',
|
belongProject: '',
|
||||||
attributesList: [
|
attributesList: [
|
||||||
'iwindspeed"',
|
'iwindspeed',
|
||||||
'iturbineoperationmode',
|
'iturbineoperationmode',
|
||||||
'iyplevel',
|
'iyplevel',
|
||||||
'gridlostdetected',
|
'gridlostdetected',
|
||||||
@ -233,9 +234,12 @@ const StatusListData = () => {
|
|||||||
let color:any=''
|
let color:any=''
|
||||||
const state = getRealTimeState(item.attributeMap)
|
const state = getRealTimeState(item.attributeMap)
|
||||||
let firsttriggeredcode=item.attributeMap.firsttriggeredcode
|
let firsttriggeredcode=item.attributeMap.firsttriggeredcode
|
||||||
/* if (enumStore.keys.includes('FirstTriggeredCode')) {
|
if (enumStore.keys.includes('FirstTriggeredCode')) {
|
||||||
firsttriggeredcode = enumStore.data['FirstTriggeredCode'][firsttriggeredcode]
|
firsttriggeredcode = enumStore.data['FirstTriggeredCode'][firsttriggeredcode]
|
||||||
}*/
|
}
|
||||||
|
if (malFunctionKeys.includes('FirstTriggeredCode')) {
|
||||||
|
firsttriggeredcode = malFunctionEnums?.[firsttriggeredcode] ?? firsttriggeredcode
|
||||||
|
}
|
||||||
|
|
||||||
paramColorData.value.forEach((item, index) => {
|
paramColorData.value.forEach((item, index) => {
|
||||||
if (item.state == state) {
|
if (item.state == state) {
|
||||||
@ -329,6 +333,7 @@ const StatusListData = () => {
|
|||||||
belongLine: item.belongLine || '-',
|
belongLine: item.belongLine || '-',
|
||||||
standard: item.standard,
|
standard: item.standard,
|
||||||
layout:paramLayoutData.value[0],
|
layout:paramLayoutData.value[0],
|
||||||
|
madeinFactory: item.madeinFactory || '-',
|
||||||
attributeMap: {
|
attributeMap: {
|
||||||
iwindspeed: item.attributeMap.iwindspeed,
|
iwindspeed: item.attributeMap.iwindspeed,
|
||||||
igenpower: item.attributeMap.igenpower,
|
igenpower: item.attributeMap.igenpower,
|
||||||
@ -338,7 +343,7 @@ const StatusListData = () => {
|
|||||||
color:color,
|
color:color,
|
||||||
locked: item.attributeMap.locked,
|
locked: item.attributeMap.locked,
|
||||||
irotorspeed: item.attributeMap.irotorspeed,
|
irotorspeed: item.attributeMap.irotorspeed,
|
||||||
firsttriggeredcode:item.attributeMap.firsttriggeredcode,
|
firsttriggeredcode:firsttriggeredcode,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -351,7 +356,21 @@ const StatusListData = () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
let malFunctionEnums: any = {}
|
||||||
|
const getMalfunctionEnums = () => {
|
||||||
|
/*queryfaultCodeDict({ madeinfactory: item!.madeinFactory, model: item!.model }).then((res) => {*/
|
||||||
|
queryfaultCodeDict({ madeinfactory: '广东明阳风电', model: 'MY1.5/89' }).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
const data: any = {}
|
||||||
|
res.data.forEach((item: any) => {
|
||||||
|
data[item.code] = item.description
|
||||||
|
})
|
||||||
|
malFunctionEnums = data
|
||||||
|
} else {
|
||||||
|
console.warn('查询故障代码字典失败:', res.message);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
let autoUpdateForSecondTimer: any = null
|
let autoUpdateForSecondTimer: any = null
|
||||||
@ -386,7 +405,7 @@ onMounted(() => {
|
|||||||
getList()
|
getList()
|
||||||
window.addEventListener('resize', sizeChange)
|
window.addEventListener('resize', sizeChange)
|
||||||
sizeChange()
|
sizeChange()
|
||||||
//getAllChartData()
|
getMalfunctionEnums()
|
||||||
overviewList()
|
overviewList()
|
||||||
StatusListData()
|
StatusListData()
|
||||||
autoUpdate()
|
autoUpdate()
|
||||||
|
@ -72,6 +72,9 @@
|
|||||||
<span :style="item.attributeMap.locked == 1 ? 'max-width:120px;' : 'max-width:150px;'">
|
<span :style="item.attributeMap.locked == 1 ? 'max-width:120px;' : 'max-width:150px;'">
|
||||||
{{ item.attributeMap.firsttriggeredcode }}
|
{{ item.attributeMap.firsttriggeredcode }}
|
||||||
</span>
|
</span>
|
||||||
|
<!-- <span :style="item.attributeMap.locked == 1 ? 'max-width:120px;' : 'max-width:150px;'">
|
||||||
|
{{ getFaultDescription(item) }}
|
||||||
|
</span>-->
|
||||||
<!-- <el-tag class="tag-panel is-danger">已锁定</el-tag>-->
|
<!-- <el-tag class="tag-panel is-danger">已锁定</el-tag>-->
|
||||||
<el-tag v-if="item.attributeMap.locked === 1" class="tag-panel is-danger">已锁定</el-tag>
|
<el-tag v-if="item.attributeMap.locked === 1" class="tag-panel is-danger">已锁定</el-tag>
|
||||||
</div>
|
</div>
|
||||||
@ -125,6 +128,10 @@ import { sendCommandReq, sendManualCommandReq } from '/@/api/backend/control/req
|
|||||||
import {ElMessage, ElMessageBox} from "element-plus";
|
import {ElMessage, ElMessageBox} from "element-plus";
|
||||||
import {equipUpdate} from '/@/api/backend/index.ts'
|
import {equipUpdate} from '/@/api/backend/index.ts'
|
||||||
import {queryfaultCodeDict} from "/@/api/backend/theoreticalpowerCurve/request";
|
import {queryfaultCodeDict} from "/@/api/backend/theoreticalpowerCurve/request";
|
||||||
|
import { malFunctionKeys } from '/@/views/backend/equipment/airBlower/utils'
|
||||||
|
import { useEnumStore } from '/@/stores/enums'
|
||||||
|
|
||||||
|
const enumStore = useEnumStore()
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -404,20 +411,30 @@ const getSafeImagePath = (item, type) => {
|
|||||||
return imagePath;
|
return imagePath;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
/*const getFaultDescription=(item)=>{
|
||||||
|
getMalfunctionEnums(item)
|
||||||
|
let firsttriggeredcode=item.attributeMap.firsttriggeredcode
|
||||||
|
if (malFunctionKeys.includes('FirstTriggeredCode')) {
|
||||||
|
firsttriggeredcode = malFunctionEnums?.[firsttriggeredcode] ?? firsttriggeredcode
|
||||||
|
}
|
||||||
|
return firsttriggeredcode
|
||||||
|
}*/
|
||||||
|
|
||||||
let malFunctionEnums: any = {}
|
/*let malFunctionEnums: any = {}
|
||||||
const getMalfunctionEnums = () => {
|
const getMalfunctionEnums = (item) => {
|
||||||
const curWindBlower = airBlowerList.value.find((item) => item.irn === route.query.irn)
|
/!*queryfaultCodeDict({ madeinfactory: item!.madeinFactory, model: item!.model }).then((res) => {*!/
|
||||||
queryfaultCodeDict({ madeinfactory: curWindBlower!.madeinfactory, model: curWindBlower!.model }).then((res) => {
|
queryfaultCodeDict({ madeinfactory: '广东明阳风电', model: 'MY1.5/89' }).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) => {
|
||||||
data[item.code] = item.description
|
data[item.code] = item.description
|
||||||
})
|
})
|
||||||
malFunctionEnums = data
|
malFunctionEnums = data
|
||||||
|
} else {
|
||||||
|
console.warn('查询故障代码字典失败:', res.message);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}*/
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
Loading…
Reference in New Issue
Block a user