敏感负荷列表联调

This commit is contained in:
stt
2025-11-25 09:30:49 +08:00
parent d450383cfd
commit b0df1157ad
2 changed files with 61 additions and 24 deletions

View File

@@ -180,3 +180,58 @@ export function sensitiveUserTrendData(data: any) {
}) })
} }
// 获取敏感负荷用户列表
export function getList(data: any) {
return request({
url: '/cs-harmonic-boot/pqSensitiveUser/getList',
method: 'post',
params: data
})
}
// F47曲线
export function f47Curve(data: any) {
return request({
url: '/cs-harmonic-boot/csevent/f47Curve',
method: 'post',
params: data
})
}
// 获取电压暂态表及密度坐标图
export function getEventCoords(data: any) {
return request({
url: '/cs-harmonic-boot/csevent/getEventCoords',
method: 'post',
params: data
})
}
// 日历暂降事件详情
export function getEventDate(data: any) {
return request({
url: '/cs-harmonic-boot/csevent/getEventDate',
method: 'post',
params: data
})
}
// 暂降类型分类统计Echart
export function netEventEcharts(data: any) {
return request({
url: '/cs-harmonic-boot/csevent/netEventEcharts',
method: 'post',
params: data
})
}
// 暂降类型分类统计表格
export function netEventTable(data: any) {
return request({
url: '/cs-harmonic-boot/csevent/netEventTable',
method: 'post',
params: data
})
}

View File

@@ -2,14 +2,13 @@
<div> <div>
<!--敏感负荷列表 --> <!--敏感负荷列表 -->
<TableHeader :showReset="false" @selectChange="selectChange" datePicker v-if="fullscreen"></TableHeader> <TableHeader :showReset="false" @selectChange="selectChange" datePicker v-if="fullscreen"></TableHeader>
<Table ref="tableRef" @cell-click="cellClickEvent" :height="`calc(${prop.height} - ${headerHeight}px + ${fullscreen ? 0 : 56}px )`" isGroup></Table> <Table ref="tableRef" @cell-click="cellClickEvent" :height="`calc(${prop.height} - ${headerHeight}px + ${fullscreen ? -58 : 56}px )`" isGroup></Table>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, provide, reactive, watch, h } from 'vue' import { ref, onMounted, provide, reactive, watch, h } from 'vue'
import TableStore from '@/utils/tableStore' import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue' import Table from '@/components/table/index.vue'
import { getTimeOfTheMonth } from '@/utils/formatTime'
import TableHeader from '@/components/table/header/index.vue' import TableHeader from '@/components/table/header/index.vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { useTimeCacheStore } from '@/stores/timeCache' import { useTimeCacheStore } from '@/stores/timeCache'
@@ -53,11 +52,9 @@ const fullscreen = computed(() => {
const OverLimitDetailsRef = ref() const OverLimitDetailsRef = ref()
const tableStore: any = new TableStore({ const tableStore: any = new TableStore({
url: '/user-boot/dept/deptTree', url: '/cs-harmonic-boot/pqSensitiveUser/getList',
method: 'POST', method: 'POST',
showPage: fullscreen.value ? true : false,
showPage: false,
column: [ column: [
{ {
field: 'index', field: 'index',
@@ -75,17 +72,17 @@ const tableStore: any = new TableStore({
{ {
title: '敏感负荷类型', title: '敏感负荷类型',
field: 'type', field: 'loadType',
minWidth: '70' minWidth: '70'
}, },
{ {
title: '是否监测', title: '是否监测',
field: 'type1', field: 'isMonitor',
minWidth: '80' minWidth: '80'
}, },
{ {
title: '是否治理', title: '是否治理',
field: 'type2', field: 'isGovern',
minWidth: '80' minWidth: '80'
} }
], ],
@@ -95,20 +92,6 @@ const tableStore: any = new TableStore({
}, },
loadCallback: () => { loadCallback: () => {
tableStore.table.data = [
{
name: '10kV1#变压器',
type: '机房',
type1: '是',
type2: '100A APF'
},
{
name: '380kV1#母线',
type: 'PLC',
type1: '是',
type2: 'UPS'
}
]
} }
}) })
@@ -151,6 +134,5 @@ watch(
} }
) )
const addMenu = () => {}
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped></style>