终端监测
This commit is contained in:
@@ -567,9 +567,7 @@ const monitoringTerminalList = ref([])
|
||||
//获取关联设备
|
||||
const findAllMonitoringTerminalList = () => {
|
||||
getDeviceList().then(res => {
|
||||
console.log(res, '-------------')
|
||||
monitoringTerminalList.value = res.data
|
||||
console.log(monitoringTerminalList.value[0].monitoringTerminalCode, '++++++++++')
|
||||
})
|
||||
}
|
||||
//查询关联设备下拉框
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
<template>
|
||||
<div class="default-main">
|
||||
666666
|
||||
<el-descriptions :column="2" border>
|
||||
<el-descriptions-item label="监测点台账信息" v-if="detailData.lineFilePath">
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a :href="detailData?.lineFilePath.url">
|
||||
{{ detailData?.lineFilePath.name }}
|
||||
</a>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="填报人">
|
||||
{{ detailData.reporter }}
|
||||
</el-descriptions-item>
|
||||
@@ -33,7 +42,11 @@
|
||||
{{ detailData.lineName }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="监测点电压等级">
|
||||
{{ detailData.voltageLevel }}
|
||||
{{
|
||||
voltageLevelList.find((item)=>{
|
||||
return detailData.voltageLevel==item.id
|
||||
})?.name
|
||||
}}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="接入母线">
|
||||
{{ detailData.connectedBus }}
|
||||
@@ -69,7 +82,7 @@
|
||||
{{ detailData.businessType }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="监测点性质">
|
||||
{{ detailData.pointNature }}
|
||||
{{ detailData.pointNature=='0'?'电网侧':'非电网侧' }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="是否参与统计">
|
||||
{{ detailData.isStatistical == '0' ? '是' : '否' }}
|
||||
@@ -90,17 +103,13 @@
|
||||
{{ detailData.voltageDeviationLowerLimit }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="监测点运行状态">
|
||||
{{ detailData.operationStatus }}
|
||||
{{
|
||||
operationStatusList.find((item)=>{
|
||||
return detailData.operationStatus==item.id
|
||||
})?.name
|
||||
}}
|
||||
</el-descriptions-item>
|
||||
<!--文件地址-->
|
||||
<el-descriptions-item label="监测点台账信息" v-if="detailData.lineFilePath">
|
||||
<el-icon>
|
||||
<Link />
|
||||
</el-icon>
|
||||
<a :href="detailData?.lineFilePath.url">
|
||||
{{ detailData?.lineFilePath.name }}
|
||||
</a>
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="主接线图" v-if="detailData?.mainWiringDiagram">
|
||||
<el-icon>
|
||||
<Link />
|
||||
@@ -220,13 +229,35 @@ const frontEndMachineList = dictData.getBasicData('Front_Type')
|
||||
const terminalWiringMethodTypeList = dictData.getBasicData('Dev_Connect')
|
||||
//字典获取厂家
|
||||
const manufacturerList = dictData.getBasicData('Dev_Manufacturers')
|
||||
//定义监测点运行状态下拉框数据
|
||||
const operationStatusList = [
|
||||
{
|
||||
id: '0',
|
||||
name: '运行'
|
||||
},
|
||||
{
|
||||
id: '1',
|
||||
name: '检修'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
name: '停运'
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
name: '调试'
|
||||
},
|
||||
{
|
||||
id: '4',
|
||||
name: '退运'
|
||||
}
|
||||
]
|
||||
/** 获得数据 */
|
||||
const getInfo = async () => {
|
||||
detailLoading.value = true
|
||||
try {
|
||||
await getTempLineDetailsById({ id: props.id || queryId }).then(res => {
|
||||
detailData.value = res.data
|
||||
console.log(detailData.value, '++++获取监测点详情数据+++++')
|
||||
getFileName()
|
||||
})
|
||||
} finally {
|
||||
@@ -234,124 +265,27 @@ const getInfo = async () => {
|
||||
}
|
||||
}
|
||||
const getFileName = async () => {
|
||||
//验收检验报告
|
||||
if (detailData.value.acceptanceInspectionReport) {
|
||||
await getFileNamePath(detailData.value.acceptanceInspectionReport, 'acceptanceInspectionReport')
|
||||
}
|
||||
//验收检验报告单
|
||||
if (detailData.value.acceptanceInspectionReportSingle) {
|
||||
await getFileNamePath(detailData.value.acceptanceInspectionReportSingle, 'acceptanceInspectionReportSingle')
|
||||
}
|
||||
//出厂检验报告
|
||||
if (detailData.value.factoryInspectionReport) {
|
||||
await getFileNamePath(detailData.value.factoryInspectionReport, 'factoryInspectionReport')
|
||||
}
|
||||
|
||||
//信息安全检测报告
|
||||
if (detailData.value.informationSecurityTestReport) {
|
||||
await getFileNamePath(detailData.value.informationSecurityTestReport, 'informationSecurityTestReport')
|
||||
}
|
||||
//监测点台账信息
|
||||
if (detailData.value.lineFilePath) {
|
||||
await getFileNamePath(detailData.value.lineFilePath, 'lineFilePath')
|
||||
}
|
||||
|
||||
//其他附件
|
||||
if (detailData.value.otherAttachments) {
|
||||
await getFileNamePath(detailData.value.otherAttachments, 'otherAttachments')
|
||||
}
|
||||
|
||||
//性能检测报告
|
||||
if (detailData.value.performanceTestReport) {
|
||||
await getFileNamePath(detailData.value.performanceTestReport, 'performanceTestReport')
|
||||
}
|
||||
|
||||
//型式实验报告
|
||||
if (detailData.value.typeExperimentReport) {
|
||||
await getFileNamePath(detailData.value.typeExperimentReport, 'typeExperimentReport')
|
||||
}
|
||||
|
||||
//主接线图
|
||||
if (detailData.value.mainWiringDiagram) {
|
||||
else if (detailData.value.mainWiringDiagram) {
|
||||
await getFileNamePath(detailData.value.mainWiringDiagram, 'mainWiringDiagram')
|
||||
}
|
||||
|
||||
//其他附件
|
||||
// if (detailData.value.additionalAttachments) {
|
||||
// getFileNamePath(detailData.value.additionalAttachments, 'additionalAttachments')
|
||||
// }
|
||||
}
|
||||
//根据文件名请求
|
||||
const getFileNamePath = async (val: any, pathName: any) => {
|
||||
await getFileNameAndFilePath({ filePath: val }).then(res => {
|
||||
console.log(111111111)
|
||||
if (res.data) {
|
||||
//可研报告
|
||||
if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) {
|
||||
detailData.value.acceptanceInspectionReport = {
|
||||
name: res.data.fileName,
|
||||
url: res.data.url
|
||||
}
|
||||
}
|
||||
//终端台账信息
|
||||
else if (
|
||||
pathName == 'acceptanceInspectionReportSingle' &&
|
||||
detailData.value.acceptanceInspectionReportSingle
|
||||
) {
|
||||
detailData.value.acceptanceInspectionReportSingle = {
|
||||
name: res.data.fileName,
|
||||
url: res.data.url
|
||||
}
|
||||
}
|
||||
//预测评估报告
|
||||
else if (pathName == 'factoryInspectionReport' && detailData.value.factoryInspectionReport) {
|
||||
detailData.value.factoryInspectionReport = {
|
||||
name: res.data.fileName,
|
||||
url: res.data.url
|
||||
}
|
||||
}
|
||||
//预测评估评审意见报告
|
||||
else if (pathName == 'informationSecurityTestReport' && detailData.value.informationSecurityTestReport) {
|
||||
detailData.value.informationSecurityTestReport = {
|
||||
name: res.data.fileName,
|
||||
url: res.data.url
|
||||
}
|
||||
}
|
||||
//用户接入变电站主接线示意图
|
||||
else if (pathName == 'lineFilePath' && detailData.value.lineFilePath) {
|
||||
//监测点台账信息
|
||||
if (pathName == 'lineFilePath' && detailData.value.lineFilePath) {
|
||||
detailData.value.lineFilePath = {
|
||||
name: res.data.fileName,
|
||||
url: res.data.url
|
||||
}
|
||||
}
|
||||
//主要敏感设备清单
|
||||
else if (pathName == 'otherAttachments' && detailData.value.otherAttachments) {
|
||||
detailData.value.otherAttachments = {
|
||||
name: res.data.fileName,
|
||||
url: res.data.url
|
||||
}
|
||||
}
|
||||
//抗扰度测试报告
|
||||
else if (pathName == 'performanceTestReport' && detailData.value.performanceTestReport) {
|
||||
detailData.value.performanceTestReport = {
|
||||
name: res.data.fileName,
|
||||
url: res.data.url
|
||||
}
|
||||
}
|
||||
//背景电能质量测试报告
|
||||
else if (pathName == 'typeExperimentReport' && detailData.value.typeExperimentReport) {
|
||||
detailData.value.typeExperimentReport = {
|
||||
name: res.data.fileName,
|
||||
url: res.data.url
|
||||
}
|
||||
}
|
||||
//其他附件
|
||||
else if (pathName == 'additionalAttachments' && detailData.value.additionalAttachments) {
|
||||
detailData.value.additionalAttachments = {
|
||||
name: res.data.fileName,
|
||||
url: res.data.url
|
||||
}
|
||||
}
|
||||
//主接线图
|
||||
else if (pathName == 'mainWiringDiagram' && detailData.value.mainWiringDiagram) {
|
||||
detailData.value.mainWiringDiagram = {
|
||||
|
||||
@@ -48,9 +48,9 @@
|
||||
<!-- 基础信息 -->
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="填报人:" prop="reporter">
|
||||
<el-form-item label="填报人:" prop="reporterName">
|
||||
<el-input
|
||||
v-model="form.reporter"
|
||||
v-model="form.reporterName"
|
||||
autocomplete="off"
|
||||
place-holder="请输入填报人"
|
||||
:disabled="true"
|
||||
@@ -369,7 +369,8 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-col :span="12" class="required_position">
|
||||
<span class="required_icon_white">*</span>
|
||||
<el-form-item label="电网侧变电站:" prop="powerSubstationName">
|
||||
<el-input
|
||||
v-model="form.powerSubstationName"
|
||||
@@ -390,7 +391,8 @@
|
||||
</el-row>
|
||||
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-col :span="12" class="required_position">
|
||||
<span class="required_icon_white">*</span>
|
||||
<el-form-item label="电压偏差上限:" prop="voltageDeviationUpperLimit">
|
||||
<el-input
|
||||
v-model="form.voltageDeviationUpperLimit"
|
||||
@@ -400,7 +402,8 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12">
|
||||
<el-col :span="12" class="required_position">
|
||||
<span class="required_icon_white">*</span>
|
||||
<el-form-item label="电压偏差下限:" prop="voltageDeviationLowerLimit">
|
||||
<el-input
|
||||
v-model="form.voltageDeviationLowerLimit"
|
||||
@@ -553,6 +556,7 @@ const getSelectableList = () => {
|
||||
...form.value,
|
||||
city: obj.city,
|
||||
reporter: obj.reporter,
|
||||
reporterName:obj.reporterName,
|
||||
reportDate: obj.reportDate,
|
||||
orgId: obj.orgId,
|
||||
orgName:obj.orgName,
|
||||
@@ -567,9 +571,7 @@ const monitoringTerminalList = ref([])
|
||||
//获取关联设备
|
||||
const findAllMonitoringTerminalList = () => {
|
||||
getDeviceList().then(res => {
|
||||
console.log(res, '-------------')
|
||||
monitoringTerminalList.value = res.data
|
||||
console.log(monitoringTerminalList.value[0].monitoringTerminalCode, '++++++++++')
|
||||
monitoringTerminalList.value = res.data;
|
||||
})
|
||||
}
|
||||
//查询关联设备下拉框
|
||||
@@ -589,6 +591,7 @@ selectFormType.value = '0'
|
||||
const resetForm = () => {
|
||||
form.value = {
|
||||
reporter: '', //填报人
|
||||
reporterName:'',//填报人名称
|
||||
reportDate: '', //填报日期
|
||||
orgId: '', //填报部门id
|
||||
orgName:'', //填报部门名称
|
||||
@@ -628,9 +631,6 @@ const resetForm = () => {
|
||||
// form.value.reporter = adminInfo.$state.name
|
||||
// form.value.orgId = adminInfo.$state.deptName
|
||||
}
|
||||
//初始化数据
|
||||
resetForm()
|
||||
getSelectableList()
|
||||
findAllMonitoringTerminalList()
|
||||
|
||||
//获取树形图数据
|
||||
@@ -665,66 +665,27 @@ const changeLoadType = async () => {
|
||||
//选择关联干扰源回显数据
|
||||
const changeUserName = () => {
|
||||
let obj = projectList.value.find(item => {
|
||||
return form.value.userName == item.projectName
|
||||
return form.value.reporter == item.reporter
|
||||
})
|
||||
form.value = {
|
||||
...form.value,
|
||||
city: obj.city,
|
||||
reporter: obj.reporter,
|
||||
reportDate: obj.reportDate,
|
||||
orgId: obj.orgId,
|
||||
orgName: obj.orgName,
|
||||
userName: obj.projectName,
|
||||
userId: obj.id,
|
||||
expectedProductionDate: obj.expectedProductionDate
|
||||
city: obj?.city,
|
||||
reporter: obj?.reporter,
|
||||
reporterName:obj?.reporterName,
|
||||
reportDate: obj?.reportDate,
|
||||
orgId: obj?.orgId,
|
||||
orgName: obj?.orgName,
|
||||
userName: obj?.projectName,
|
||||
userId: obj?.id,
|
||||
expectedProductionDate: obj?.expectedProductionDate
|
||||
}
|
||||
console.log(obj, '选择关联干扰源回显数据')
|
||||
}
|
||||
//监测点信息表单格式
|
||||
const monitorPointForm = ref({
|
||||
reporter: '', //填报人
|
||||
reportDate: '', //填报日期
|
||||
orgId: '', //填报部门
|
||||
orgName:'',
|
||||
expectedProductionDate: '', //工程投产日期
|
||||
city: areaOptionList[0].name, //所属地市
|
||||
userStatus: userStateList[1].id, //用户状态
|
||||
userName: '', //工程名称
|
||||
userId: '',
|
||||
monitoringTerminalCode: '', //关联设备
|
||||
monitoringTerminalName: '',
|
||||
|
||||
//监测点信息实体
|
||||
// supervisionTempLineReportParam: {
|
||||
businessType: '', // 干扰源类别
|
||||
connectedBus: '', // 接入母线
|
||||
ctRatio: '0', //CT变比
|
||||
dealCapacity: '0', //协议容量
|
||||
devCapacity: '0', //设备容量
|
||||
isGridConnectionPoint: '0', //是否并网点
|
||||
isStatistical: '0', // 是否参与统计
|
||||
lineId: '', // 监测点编码
|
||||
lineName: '', // 监测点名称
|
||||
loadType: '', //干扰源类型
|
||||
mainWiringDiagram: '', // 主接线图
|
||||
objName: '', //监测点对象名称
|
||||
operationStatus: '', //监测点运行状态
|
||||
pointNature: '', //监测点性质
|
||||
powerSubstationName: '', //电网侧变电站
|
||||
ptRatio: '0', // PT变比
|
||||
shortCapacity: '0', // 短路容量
|
||||
standardCapacity: '0', //基准容量
|
||||
timeInterval: '0', //测量间隔
|
||||
voltageDeviationLowerLimit: '0', //电压偏差下限
|
||||
voltageDeviationUpperLimit: '0', // 电压偏差上限
|
||||
voltageLevel: '' //监测点电压等级
|
||||
// }
|
||||
})
|
||||
|
||||
//定义校验规则
|
||||
const rules = ref({
|
||||
//基础信息
|
||||
reporter: [
|
||||
reporterName: [
|
||||
{
|
||||
required: true,
|
||||
message: '请输入填报人',
|
||||
@@ -946,6 +907,9 @@ watch(
|
||||
)
|
||||
const open = () => {
|
||||
dialogFormVisible.value = true
|
||||
//初始化数据
|
||||
resetForm()
|
||||
getSelectableList()
|
||||
}
|
||||
const close = () => {
|
||||
//重置表单内容
|
||||
@@ -1088,18 +1052,21 @@ defineExpose({ open })
|
||||
left: -10px;
|
||||
margin-top: 8px;
|
||||
color: #f56c6c;
|
||||
margin-left: 20px;
|
||||
margin-left: 10px;
|
||||
|
||||
}
|
||||
.required_icon_white {
|
||||
color: #fff;
|
||||
position: absolute;
|
||||
left: -10px;
|
||||
padding-left: 30px;
|
||||
margin: 8px 10px 0 30px;
|
||||
}
|
||||
.required_text {
|
||||
padding-left: 20px;
|
||||
// padding-left: 20px;
|
||||
}
|
||||
}
|
||||
.no_required::v-deep .el-form-item__label {
|
||||
padding-left: 10px !important;
|
||||
width: 70px !important;
|
||||
margin-left: 0px !important;
|
||||
}
|
||||
|
||||
// ::v-deep .tabs_form{
|
||||
// height:300px !important;
|
||||
// }
|
||||
|
||||
@@ -277,7 +277,6 @@ const getFileName = async () => {
|
||||
//根据文件名请求
|
||||
const getFileNamePath = async (val: any, pathName: any) => {
|
||||
await getFileNameAndFilePath({ filePath: val }).then(res => {
|
||||
console.log(111111111)
|
||||
if (res.data) {
|
||||
//监测点台账信息
|
||||
if (pathName == 'lineFilePath' && detailData.value.lineFilePath) {
|
||||
|
||||
@@ -210,7 +210,7 @@
|
||||
</el-col>
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item label="检测终端编码:" prop="monitoringTerminalCode">
|
||||
<el-form-item label="监测终端编码:" prop="monitoringTerminalCode">
|
||||
<el-input
|
||||
v-model="form.monitoringTerminalCode"
|
||||
autocomplete="off"
|
||||
@@ -221,7 +221,7 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="检测终端名称:" prop="monitoringTerminalName">
|
||||
<el-form-item label="监测终端名称:" prop="monitoringTerminalName">
|
||||
<el-input
|
||||
v-model="form.monitoringTerminalName"
|
||||
autocomplete="off"
|
||||
|
||||
@@ -402,7 +402,6 @@ const getFileName = async () => {
|
||||
//根据文件名请求
|
||||
const getFileNamePath = async (val: any, pathName: any) => {
|
||||
await getFileNameAndFilePath({ filePath: val }).then(res => {
|
||||
console.log(111111111)
|
||||
if (res.data) {
|
||||
//可研报告
|
||||
if (pathName == 'acceptanceInspectionReport' && detailData.value.acceptanceInspectionReport) {
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted, reactive, ref, provide } from 'vue'
|
||||
import undocumented from './components/undocumented/index.vue'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import terminal from './components/terminainal/index.vue'
|
||||
import monitorpoint from './components/monitorpoint/index.vue'
|
||||
|
||||
Reference in New Issue
Block a user