diff --git a/ui/dasadmin/src/views/backend/dashboard.vue b/ui/dasadmin/src/views/backend/dashboard.vue index eab68704..726d2645 100644 --- a/ui/dasadmin/src/views/backend/dashboard.vue +++ b/ui/dasadmin/src/views/backend/dashboard.vue @@ -341,6 +341,23 @@ const currentDayStatus = ref({ }) const deviceCode = ref([]) const FanList = ref([]) +const getRealTimeState = (data: any) => { + if (data.iturbineoperationmode) { + if (data.iturbineoperationmode > 1 && data.iturbineoperationmode < 6) { + return 2 + } + if (data.iturbineoperationmode === 21) { + return 20 + } + return data.iturbineoperationmode + } else if (data.iyplevel === 10) { + return 1110 + } else if (data.gridlostdetected === 1) { + return 1111 + } else if (data.ibplevel === 200) { + return 1112 + } +} const StatusListData = () => { getWindTurbineMatrixData().then((res) => { if (res.code == 200) { @@ -437,6 +454,7 @@ const StatusListData = () => { igenpower: item.attributeMap.igenpower, ikwhthisday: item.attributeMap.ikwhthisday, iturbineoperationmode: state, + processedoperationmode: state, locked: item.attributeMap.locked, irotorspeed: item.attributeMap.irotorspeed, }, diff --git a/ui/dasadmin/src/views/backend/home/windMatrix.vue b/ui/dasadmin/src/views/backend/home/windMatrix.vue index 2b359490..5d0ae852 100644 --- a/ui/dasadmin/src/views/backend/home/windMatrix.vue +++ b/ui/dasadmin/src/views/backend/home/windMatrix.vue @@ -12,24 +12,24 @@ {{ item.name }} - 并网 - 待机 - 启动 - 并网 + 待机 + 启动 + 维护 - 离线 - 限功率运行 - 正常停机 - 离线 + 限功率运行 + 正常停机 + 外部因素导致停机 - 停机 - 解缆状态 - 停机 + 解缆状态 + 电网故障停机 - 安全链停机 @@ -82,7 +82,7 @@ class="control-btn" type="primary" @click="sendCommand('setTurbineFastStart')" - v-if="realTimeData.iturbineoperationmode !== 16" + v-if="realTimeData.processedoperationmode !== 16" >启动 停机 复位 @@ -160,7 +160,7 @@ const contextMenuPos = ref({ y: 0, }) const realTimeData = ref({ - iturbineoperationmode: 1111, + processedoperationmode: 1111, locked: 0, deviceId: '', name:'' @@ -168,7 +168,7 @@ const realTimeData = ref({ const windContextMenu = (event: any,curnodeData) => { contextMenuPos.value.x = event.pageX contextMenuPos.value.y = event.pageY - realTimeData.value.iturbineoperationmode=curnodeData.attributeMap.iturbineoperationmode + realTimeData.value.processedoperationmode=curnodeData.attributeMap.processedoperationmode realTimeData.value.locked=curnodeData.attributeMap.locked realTimeData.value.deviceId=curnodeData.irn realTimeData.value.name=curnodeData.name diff --git a/ui/dasadmin/src/views/backend/malfunction/index.vue b/ui/dasadmin/src/views/backend/malfunction/index.vue index b823a6ba..8b5e3c4f 100644 --- a/ui/dasadmin/src/views/backend/malfunction/index.vue +++ b/ui/dasadmin/src/views/backend/malfunction/index.vue @@ -29,12 +29,12 @@ 日期 @@ -273,7 +273,7 @@ const getTreeDataList = () => { const searchData = reactive<{ fileName: ''; date: Date[] }>({ fileName: '', - date: [dayjs().toDate(), dayjs().toDate()], + date: [dayjs().startOf('month').toDate(), dayjs().toDate()], }) const shortcuts = [ { @@ -287,15 +287,15 @@ const shortcuts = [ { text: '上月', value: () => { - const start = dayjs().subtract(1, 'month').toDate() - const end = dayjs().subtract(1, 'month').toDate() + const start = dayjs().subtract(1, 'month').startOf('month').toDate() + const end = dayjs().subtract(1, 'month').endOf('month').toDate() return [start, end] }, }, { text: '近三月', value: () => { - const start = dayjs().subtract(2, 'month').toDate() + const start = dayjs().subtract(2, 'month').startOf('month').toDate() const end = dayjs().toDate() return [start, end] }, @@ -325,8 +325,8 @@ const changePageSetting = () => {} const getListForAirBlower = () => { const data = { deviceCode: curTreeData.value.code, - startTime: dayjs(searchData.date[0]).format('YYYY-MM'), - endTime: dayjs(searchData.date[1]).format('YYYY-MM'), + startTime: dayjs(searchData.date[0]).format('YYYY-MM-DD'), + endTime: dayjs(searchData.date[1]).format('YYYY-MM-DD'), } if (activeName.value === 'malFunction') { diff --git a/ui/dasadmin/src/views/backend/node/index.vue b/ui/dasadmin/src/views/backend/node/index.vue index 95979094..a7f784b5 100644 --- a/ui/dasadmin/src/views/backend/node/index.vue +++ b/ui/dasadmin/src/views/backend/node/index.vue @@ -99,8 +99,10 @@