微调
This commit is contained in:
@@ -63,7 +63,7 @@ const info = () => {
|
|||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
if (arr3.length) {
|
if (arr3.length) {
|
||||||
//初始化选中
|
//初始化选中
|
||||||
treRef.value.treeRef1.setCurrentKey(arr3[0].id)
|
treRef.value.treeRef.setCurrentKey(arr3[0].id)
|
||||||
// 注册父组件事件
|
// 注册父组件事件
|
||||||
emit('init', {
|
emit('init', {
|
||||||
level: 2,
|
level: 2,
|
||||||
|
|||||||
@@ -24,8 +24,6 @@
|
|||||||
@node-click="handleNodeClick"
|
@node-click="handleNodeClick"
|
||||||
:default-checked-keys="defaultCheckedKeys"
|
:default-checked-keys="defaultCheckedKeys"
|
||||||
v-bind='$attrs'
|
v-bind='$attrs'
|
||||||
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<template #default='{ node, data }'>
|
<template #default='{ node, data }'>
|
||||||
<span class='custom-tree-node'>
|
<span class='custom-tree-node'>
|
||||||
|
|||||||
@@ -10,6 +10,15 @@
|
|||||||
<div class="device-control-right" v-if="deviceData">
|
<div class="device-control-right" v-if="deviceData">
|
||||||
<el-descriptions title="监测点信息" class="mb10" width="180" :column="3" border>
|
<el-descriptions title="监测点信息" class="mb10" width="180" :column="3" border>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
|
<!-- <el-button v-if="deviceType == '1'" type="primary" @click="handleDownLoadTemplate">
|
||||||
|
模版下载
|
||||||
|
</el-button> -->
|
||||||
|
<!-- <el-button v-if="deviceType == '1'" type="primary" icon="el-icon-Connection" @click="handleImport">
|
||||||
|
离线补召
|
||||||
|
</el-button>
|
||||||
|
<el-button v-if="deviceType == '1'" type="primary" icon="el-icon-Monitor" @click="handleaddDevice">
|
||||||
|
在线补召
|
||||||
|
</el-button> -->
|
||||||
<el-button
|
<el-button
|
||||||
v-if="deviceType == '1'"
|
v-if="deviceType == '1'"
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -36,6 +45,9 @@
|
|||||||
}}
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<!-- <el-descriptions-item label="安装位置" width="160">
|
||||||
|
{{ devData.position || '/' }}
|
||||||
|
</el-descriptions-item> -->
|
||||||
|
|
||||||
<el-descriptions-item label="PT变比" width="160">
|
<el-descriptions-item label="PT变比" width="160">
|
||||||
{{ devData.ptRatio || '/' }}
|
{{ devData.ptRatio || '/' }}
|
||||||
@@ -44,9 +56,28 @@
|
|||||||
{{ devData.ctRatio || '/' }}
|
{{ devData.ctRatio || '/' }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<!-- <el-descriptions-item label="名称">
|
||||||
|
{{ devData.name ? devData.name : '/' }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="类型">
|
||||||
|
{{ echoName(devData.devType, devTypeOptions) }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item label="接入方式">
|
||||||
|
{{ devData.devAccessMethod ? devData.devAccessMethod : '/' }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="网络设备ID">
|
||||||
|
{{ devData.ndid ? devData.ndid : '/' }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="型号">
|
||||||
|
{{ echoName(devData.devModel, devModelOptions) }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label="接入日期">
|
||||||
|
{{ devData.time ? devData.time : '/' }}
|
||||||
|
</el-descriptions-item> -->
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-tabs v-model.trim="dataSet" type="border-card" class="mb10" @tab-click="handleClick">
|
<el-tabs v-model.trim="dataSet" type="border-card" class="device-control-box-card" @tab-click="handleClick">
|
||||||
|
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
lazy
|
lazy
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
@@ -468,7 +499,7 @@
|
|||||||
v-if="dataSet.indexOf('_event') != -1"
|
v-if="dataSet.indexOf('_event') != -1"
|
||||||
v-loading="tableLoading"
|
v-loading="tableLoading"
|
||||||
>
|
>
|
||||||
<Event ref="eventRef" :device-type="deviceType"></Event>
|
<Event ref="eventRef"></Event>
|
||||||
</div>
|
</div>
|
||||||
<!-- 测试项记录 -->
|
<!-- 测试项记录 -->
|
||||||
<div
|
<div
|
||||||
@@ -898,7 +929,6 @@ const nodeClick = async (e: anyObj) => {
|
|||||||
const deviceType = ref('0')
|
const deviceType = ref('0')
|
||||||
const pointTypeChange = (val: any, obj: any) => {
|
const pointTypeChange = (val: any, obj: any) => {
|
||||||
deviceType.value = val
|
deviceType.value = val
|
||||||
console.log('pointTypeChange', val)
|
|
||||||
nodeClick(obj)
|
nodeClick(obj)
|
||||||
}
|
}
|
||||||
const realTimeRef: any = ref()
|
const realTimeRef: any = ref()
|
||||||
@@ -1390,7 +1420,9 @@ const echoName = (value: any, arr: any[]) => {
|
|||||||
return value ? arr.find(item => item.value == value)?.label : '/'
|
return value ? arr.find(item => item.value == value)?.label : '/'
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {})
|
onMounted(() => {
|
||||||
|
|
||||||
|
})
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
clearInterval(realDataTimer.value)
|
clearInterval(realDataTimer.value)
|
||||||
clearInterval(trendTimer.value)
|
clearInterval(trendTimer.value)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import TableStore from '@/utils/tableStore'
|
|||||||
import Table from '@/components/table/index.vue'
|
import Table from '@/components/table/index.vue'
|
||||||
import TableHeader from '@/components/table/header/index.vue'
|
import TableHeader from '@/components/table/header/index.vue'
|
||||||
import waveFormAnalysis from './components/waveFormAnalysis.vue'
|
import waveFormAnalysis from './components/waveFormAnalysis.vue'
|
||||||
import { ArrowLeft } from '@element-plus/icons-vue'
|
import { ArrowLeft, Message } from '@element-plus/icons-vue'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { analyseWave,getFileByEventId } from '@/api/common'
|
import { analyseWave,getFileByEventId } from '@/api/common'
|
||||||
import { getFileZip } from '@/api/cs-harmonic-boot/datatrend'
|
import { getFileZip } from '@/api/cs-harmonic-boot/datatrend'
|
||||||
@@ -173,6 +173,7 @@ const tableStore: any = new TableStore({
|
|||||||
},
|
},
|
||||||
click: row => {
|
click: row => {
|
||||||
getFileByEventId(row.id).then(res => {
|
getFileByEventId(row.id).then(res => {
|
||||||
|
ElMessage.success(res.message)
|
||||||
tableStore.index()
|
tableStore.index()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ const tableStore: any = new TableStore({
|
|||||||
{
|
{
|
||||||
field: 'engineeringName',
|
field: 'engineeringName',
|
||||||
title: '项目名称',
|
title: '项目名称',
|
||||||
minWidth: 170,
|
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.cellValue ? row.cellValue : '/'
|
return row.cellValue ? row.cellValue : '/'
|
||||||
}
|
}
|
||||||
@@ -49,7 +49,7 @@ const tableStore: any = new TableStore({
|
|||||||
{
|
{
|
||||||
field: 'projectName',
|
field: 'projectName',
|
||||||
title: '工程名称',
|
title: '工程名称',
|
||||||
minWidth: 170,
|
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.cellValue ? row.cellValue : '/'
|
return row.cellValue ? row.cellValue : '/'
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@ const tableStore: any = new TableStore({
|
|||||||
{
|
{
|
||||||
field: 'deviceName',
|
field: 'deviceName',
|
||||||
title: '设备名称',
|
title: '设备名称',
|
||||||
minWidth: 170,
|
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.cellValue ? row.cellValue : '/'
|
return row.cellValue ? row.cellValue : '/'
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@ const tableStore: any = new TableStore({
|
|||||||
{
|
{
|
||||||
field: 'lineName',
|
field: 'lineName',
|
||||||
title: '监测点名称',
|
title: '监测点名称',
|
||||||
minWidth: 170,
|
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.cellValue ? row.cellValue : '/'
|
return row.cellValue ? row.cellValue : '/'
|
||||||
}
|
}
|
||||||
@@ -73,15 +73,15 @@ const tableStore: any = new TableStore({
|
|||||||
{
|
{
|
||||||
field: 'logTime',
|
field: 'logTime',
|
||||||
title: '补召时间',
|
title: '补召时间',
|
||||||
minWidth: 170,
|
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.cellValue ? row.cellValue : '/'
|
return row.cellValue ? row.cellValue : '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'log',
|
field: 'log',
|
||||||
title: '日志',
|
title: '类型',
|
||||||
minWidth: 170,
|
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.cellValue ? row.cellValue : '/'
|
return row.cellValue ? row.cellValue : '/'
|
||||||
}
|
}
|
||||||
@@ -89,7 +89,15 @@ const tableStore: any = new TableStore({
|
|||||||
{
|
{
|
||||||
field: 'status',
|
field: 'status',
|
||||||
title: '状态',
|
title: '状态',
|
||||||
minWidth: 170,
|
|
||||||
|
formatter: row => {
|
||||||
|
return row.cellValue ? row.cellValue : '/'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'result',
|
||||||
|
title: '结果',
|
||||||
|
|
||||||
formatter: row => {
|
formatter: row => {
|
||||||
return row.cellValue ? row.cellValue : '/'
|
return row.cellValue ? row.cellValue : '/'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
style="position: relative"
|
style="position: relative"
|
||||||
>
|
>
|
||||||
<!-- @init="nodeClick" -->
|
<!-- @init="nodeClick" -->
|
||||||
<PointTree @node-click="nodeClick" @checkChange="handleCheckedNodesChange"></PointTree>
|
<PointTree @node-click="nodeClick" @init="nodeClick" @checkChange="handleCheckedNodesChange"></PointTree>
|
||||||
<div class="device-control-right" >
|
<div class="device-control-right" >
|
||||||
<el-tabs type="border-card" class="mb10" @tab-click="handleClick" v-model="activeTab">
|
<el-tabs type="border-card" class="mb10" @tab-click="handleClick" v-model="activeTab">
|
||||||
<el-tab-pane label="稳态补召" name="deviceInfo1">
|
<el-tab-pane label="稳态补召" name="deviceInfo1">
|
||||||
@@ -42,7 +42,7 @@ const checkedNodes = ref<any[]>([]) // 存储左侧树勾选的节点
|
|||||||
const currentNode = ref<any>(null) // 存储当前点击的树节点
|
const currentNode = ref<any>(null) // 存储当前点击的树节点
|
||||||
|
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'govern/monitorRecall/index'
|
name: '/cs-device-boot/monitorRecall'
|
||||||
})
|
})
|
||||||
|
|
||||||
// 处理子组件传递的勾选节点变化
|
// 处理子组件传递的勾选节点变化
|
||||||
@@ -78,6 +78,7 @@ const triggerEventRecallQuery = () => {
|
|||||||
if (activeTab.value === 'deviceInfo2' && eventRef.value) {
|
if (activeTab.value === 'deviceInfo2' && eventRef.value) {
|
||||||
// 将当前点击的节点传递给暂态补召组件
|
// 将当前点击的节点传递给暂态补召组件
|
||||||
if (eventRef.value.handleTreeNodeClick) {
|
if (eventRef.value.handleTreeNodeClick) {
|
||||||
|
|
||||||
eventRef.value.handleTreeNodeClick(currentNode.value)
|
eventRef.value.handleTreeNodeClick(currentNode.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -85,7 +86,7 @@ const triggerEventRecallQuery = () => {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
.device-control {
|
.device-control {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user