157 lines
4.6 KiB
Vue
157 lines
4.6 KiB
Vue
<template>
|
|
<div>
|
|
<TableHeader ref="TableHeaderRef" showExport>
|
|
<template #select>
|
|
<el-form-item label="筛选数据">
|
|
<el-input
|
|
style="width: 240px"
|
|
placeholder="请输入用户名称"
|
|
v-model="tableStore.table.params.searchValue"
|
|
clearable
|
|
></el-input>
|
|
</el-form-item>
|
|
</template>
|
|
|
|
<template #operation>
|
|
<!-- <el-button icon="el-icon-Download" type="primary">导出</el-button> -->
|
|
</template>
|
|
</TableHeader>
|
|
<Table ref="tableRef" />
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import { ref, onMounted, provide, nextTick, watch } 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'
|
|
import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity'
|
|
|
|
const dictData = useDictData()
|
|
const lineList = dictData.getBasicData('Line_Type')
|
|
|
|
const tableStore = new TableStore({
|
|
url: '/device-boot/generationUser/getPowerGenerationUserPageList',
|
|
publicHeight: 65,
|
|
isWebPaging: true,
|
|
method: 'POST',
|
|
filename: '监测点台账',
|
|
column: [
|
|
{
|
|
title: '序号',
|
|
width: 80,
|
|
formatter: (row: any) => {
|
|
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
|
}
|
|
},
|
|
|
|
{
|
|
field: 'areaName',
|
|
title: '省公司',
|
|
minWidth: 100
|
|
},
|
|
|
|
{ field: 'gdName', title: '市公司', minWidth: 150 },
|
|
{
|
|
field: 'bdName',
|
|
title: '所属变电站',
|
|
minWidth: 150
|
|
},
|
|
{ field: 'lineName', title: '监测点名称', minWidth: 130 },
|
|
{ field: 'scale', title: '监测点电压等级', minWidth: 120 },
|
|
|
|
{ field: 'loadType', title: '干扰源类型', minWidth: 120 },
|
|
{
|
|
field: 'objName',
|
|
title: '监测对象名称',
|
|
minWidth: 180,
|
|
formatter: (row: any) => {
|
|
return row.cellValue ? row.cellValue : '/'
|
|
}
|
|
},
|
|
{
|
|
field: 'shortCapacity',
|
|
title: '最小短路容量(MVA)',
|
|
minWidth: 150
|
|
},
|
|
{
|
|
field: 'devCapacity',
|
|
title: '供电终端容量(MVA )',
|
|
minWidth: 160
|
|
},
|
|
{
|
|
field: 'dealCapacity',
|
|
title: '用户协议容量(MVA)',
|
|
minWidth: 150
|
|
},
|
|
/* { field: 'comFlag', title: '通讯状态 ', minWidth: 120 },*/
|
|
{ field: 'id', title: '监测点序号', minWidth: 90 },
|
|
{
|
|
field: 'runFlag',
|
|
title: '运行状态',
|
|
minWidth: 80,
|
|
render: 'tag',
|
|
custom: {
|
|
投运: 'success',
|
|
停运: 'danger',
|
|
检修: 'warning',
|
|
调试: 'warning',
|
|
退运: 'danger'
|
|
}
|
|
},
|
|
{ field: 'devName', title: '监测终端编号 ', minWidth: 140 },
|
|
{ field: 'ptType', title: '监测终端接线方式', minWidth: 140 },
|
|
{
|
|
field: 'voltageDev',
|
|
title: '电压偏差上限(%)',
|
|
minWidth: 140
|
|
},
|
|
{
|
|
field: 'uvoltageDev',
|
|
title: '电压偏差下限(%)',
|
|
minWidth: 140
|
|
}
|
|
|
|
/* {
|
|
title: '操作',
|
|
minWidth: 150,
|
|
fixed: 'right',
|
|
render: 'buttons',
|
|
buttons: [
|
|
{
|
|
name: 'productSetting',
|
|
title: '流程详情',
|
|
type: 'primary',
|
|
icon: 'el-icon-EditPen',
|
|
render: 'basicButton',
|
|
click: row => {
|
|
|
|
}
|
|
}
|
|
]
|
|
}*/
|
|
],
|
|
|
|
beforeSearchFun: () => {
|
|
tableStore.table.params.orgId = tableStore.table.params.deptIndex
|
|
}
|
|
})
|
|
|
|
tableStore.table.params.searchValue = ''
|
|
|
|
provide('tableStore', tableStore)
|
|
onMounted(() => {
|
|
tableStore.index()
|
|
})
|
|
const setSearchValue = (val: string) => {
|
|
tableStore.table.params.searchValue = val
|
|
tableStore.index()
|
|
}
|
|
|
|
defineExpose({
|
|
setSearchValue
|
|
})
|
|
</script>
|