2024-05-16 10:50:06 +08:00
|
|
|
<template>
|
|
|
|
|
<div>
|
2025-03-28 16:05:03 +08:00
|
|
|
<TableHeader area ref='TableHeaderRef' showExport>
|
2024-05-16 10:50:06 +08:00
|
|
|
<template #select>
|
2024-06-06 19:18:00 +08:00
|
|
|
<el-form-item label='运行状态'>
|
|
|
|
|
<el-select v-model="tableStore.table.params.runF" clearable placeholder="请选择运行状态">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in runFlagList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
2024-05-16 10:50:06 +08:00
|
|
|
</el-form-item>
|
2024-06-06 20:42:25 +08:00
|
|
|
<el-form-item label='信息查询'>
|
2025-03-28 16:05:03 +08:00
|
|
|
<el-input style="width:200px;" placeholder="电站名称,终端编号,型号" v-model='tableStore.table.params.searchValue' clearable></el-input>
|
2024-06-06 20:42:25 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
|
2024-05-16 10:50:06 +08:00
|
|
|
</template>
|
|
|
|
|
<template #operation>
|
2024-05-28 15:08:10 +08:00
|
|
|
<!-- <el-button icon='el-icon-Download' type='primary'>导出</el-button> -->
|
2024-05-16 10:50:06 +08:00
|
|
|
</template>
|
|
|
|
|
</TableHeader>
|
|
|
|
|
<Table ref='tableRef' />
|
|
|
|
|
</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'
|
|
|
|
|
import { addUse, updateUse, removeUse } from '@/api/advance-boot/bearingCapacity'
|
|
|
|
|
|
|
|
|
|
const dictData = useDictData()
|
|
|
|
|
const interferenceType = dictData.getBasicData('Interference_Source')
|
|
|
|
|
const istatusList = dictData.getBasicData('On-network_Status')
|
|
|
|
|
const TableHeaderRef = ref()
|
|
|
|
|
const areaOptionList = dictData.getBasicData('jibei_area')
|
|
|
|
|
const tableStore = new TableStore({
|
|
|
|
|
url: '/device-boot/runManage/getDeviceLedger',
|
|
|
|
|
publicHeight: 65,
|
|
|
|
|
method: 'POST',
|
2025-03-28 16:05:03 +08:00
|
|
|
filename:'终端台账',
|
2024-05-16 10:50:06 +08:00
|
|
|
column: [
|
2025-03-28 16:05:03 +08:00
|
|
|
{ title: '序号', width: 80,formatter: (row: any) => {
|
|
|
|
|
return (tableStore.table.params.pageNum - 1) * tableStore.table.params.pageSize + row.rowIndex + 1
|
|
|
|
|
} },
|
2024-05-16 10:50:06 +08:00
|
|
|
{
|
|
|
|
|
field: 'areaName',
|
|
|
|
|
title: '省公司',
|
|
|
|
|
minWidth: 100
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'gdName',
|
|
|
|
|
title: '市公司',
|
|
|
|
|
minWidth: 150
|
|
|
|
|
},
|
2024-06-06 19:18:00 +08:00
|
|
|
{ field: 'bdName', title: '所属变电站', minWidth: 120 },
|
|
|
|
|
{ field: 'devName', title: '终端编号', minWidth: 110 },
|
|
|
|
|
{ field: 'loginTime', title: '投运时间', minWidth: 100 },
|
2024-05-16 10:50:06 +08:00
|
|
|
{
|
|
|
|
|
field: 'manufacturer',
|
|
|
|
|
title: '厂家',
|
2024-06-06 19:18:00 +08:00
|
|
|
minWidth: 80
|
2024-05-16 10:50:06 +08:00
|
|
|
},
|
2024-05-16 13:23:01 +08:00
|
|
|
{ field: 'devType', title: '终端型号', minWidth: 100 },
|
2024-05-16 10:50:06 +08:00
|
|
|
|
2024-06-13 13:32:50 +08:00
|
|
|
{ field: 'ip', title: '终端网络参数', minWidth: 100 },
|
2024-06-06 19:18:00 +08:00
|
|
|
{ field: 'port', title: '端口号', minWidth: 40 },
|
2024-06-05 15:08:24 +08:00
|
|
|
{
|
2024-06-06 19:18:00 +08:00
|
|
|
field: 'runFlag',
|
|
|
|
|
title: '运行状态',
|
2024-06-05 15:08:24 +08:00
|
|
|
minWidth: 80,
|
2024-06-06 19:18:00 +08:00
|
|
|
render: 'tag',
|
|
|
|
|
custom: {
|
|
|
|
|
'投运': 'success',
|
|
|
|
|
'停运': 'danger',
|
|
|
|
|
'检修': 'warning',
|
2024-06-07 10:12:15 +08:00
|
|
|
'调试': 'warning',
|
|
|
|
|
'退运': 'danger',
|
2024-06-06 19:18:00 +08:00
|
|
|
|
|
|
|
|
},
|
2024-06-05 15:08:24 +08:00
|
|
|
},
|
2024-05-16 10:50:06 +08:00
|
|
|
|
|
|
|
|
/* {
|
|
|
|
|
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.serverName = 'harmonic-boot'
|
|
|
|
|
tableStore.table.params.statisticalType = {
|
|
|
|
|
name: '电网拓扑',
|
|
|
|
|
code: 'Power_Network'
|
|
|
|
|
}
|
2024-10-30 09:29:39 +08:00
|
|
|
|
|
|
|
|
tableStore.table.params.runFlag = []
|
2024-06-06 19:18:00 +08:00
|
|
|
if(tableStore.table.params.runF!=null){
|
|
|
|
|
tableStore.table.params.runFlag = [tableStore.table.params.runF]
|
|
|
|
|
}
|
2024-05-16 10:50:06 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|
2024-06-07 10:12:15 +08:00
|
|
|
|
|
|
|
|
tableStore.table.params.runF=null
|
2024-06-07 10:18:49 +08:00
|
|
|
tableStore.table.params.runFlag=[]
|
2024-06-06 23:03:55 +08:00
|
|
|
tableStore.table.params.searchValue=''
|
2024-05-16 10:50:06 +08:00
|
|
|
|
2024-10-30 09:29:39 +08:00
|
|
|
const runFlagList = [{id:0,name:'投运'},{id:1,name:'检修'},{id:2,name:'停运'},{id:3,name:'调试'},{id:4,name:'退运'}]
|
2024-06-06 19:18:00 +08:00
|
|
|
|
2024-05-16 10:50:06 +08:00
|
|
|
|
|
|
|
|
provide('tableStore', tableStore)
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
tableStore.index()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
2024-06-06 19:18:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-05-16 10:50:06 +08:00
|
|
|
</script>
|