修改 冀北 现场运维人提出问题

This commit is contained in:
GGJ
2024-07-31 15:54:35 +08:00
parent 1aba898baa
commit 9dc9799365
15 changed files with 181 additions and 67 deletions

View File

@@ -0,0 +1,52 @@
<template>
<div>
<TableHeader datePicker area ref="TableHeaderRef">
<template #select>
<el-form-item label="信息查询">
<el-input
style="width: 200px"
placeholder="电站名称,终端编号,型号"
v-model="tableStore.table.params.searchValue"
clearable
></el-input>
</el-form-item>
</template>
<template #operation></template>
</TableHeader>
<Table ref="tableRef" :showOverflow="false" />
</div>
</template>
<script setup lang="ts">
import { ref, onMounted, provide, nextTick } from 'vue'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { mainHeight } from '@/utils/layout'
import { useDictData } from '@/stores/dictData'
const TableHeaderRef = ref()
const tableStore = new TableStore({
url: '/harmonic-boot/PollutionSubstation/substationInfo',
publicHeight: 65,
method: 'POST',
isWebPaging: true,
column: [
{ field: 'substationName', title: '变电站名称', minWidth: 100 },
{ field: 'dwLineList', title: '电网侧监测点名称', minWidth: 150 },
{ field: 'yhLineList', title: '非电网侧监测点名称', minWidth: 150 },
{ field: 'alarmFreq', title: '告警频次', minWidth: 80 },
{ field: 'vpollutionData', title: '谐波电压污染值', minWidth: 80 },
{ field: 'ipollutionData', title: '谐波电流污染值', minWidth: 80 }
],
beforeSearchFun: () => {}
})
tableStore.table.params.searchValue = ''
provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()
})
</script>

View File

@@ -7,11 +7,14 @@
<el-tab-pane label='敏感及重要用户台账' name='2' >
<sensitiveUserTable v-if="activeName == '2'" />
</el-tab-pane>
<el-tab-pane label='终端台账' name='3'>
<deviceLedgerTable v-if="activeName == '3'" />
<el-tab-pane label='变电站台账' name='3' >
<substationLedger v-if="activeName == '3'" />
</el-tab-pane>
<el-tab-pane label='监测点台账' name='4'>
<monitorLedgerTable v-if="activeName == '4'" />
<el-tab-pane label='终端台账' name='4'>
<deviceLedgerTable v-if="activeName == '4'" />
</el-tab-pane>
<el-tab-pane label='监测点台账' name='5'>
<monitorLedgerTable v-if="activeName == '5'" />
</el-tab-pane>
</el-tabs>
</div>
@@ -21,6 +24,7 @@
import { onMounted, reactive, ref, provide } from 'vue'
import interferenceUserTable from './components/interferenceUserTable.vue'
import sensitiveUserTable from './components/sensitiveUserTable.vue'
import substationLedger from './components/substationLedger.vue'
import deviceLedgerTable from './components/deviceLedgerTable.vue'
import monitorLedgerTable from './components/monitorLedgerTable.vue'
import { mainHeight } from '@/utils/layout'