暂态事件-波形解析修改

This commit is contained in:
zhujiyan
2024-09-27 10:27:33 +08:00
parent a6ee1bd322
commit 1e08891b10
2 changed files with 39 additions and 449 deletions

View File

@@ -1,22 +1,18 @@
<template>
<div class="header_btn" style="display: none">
<!-- <el-button type="primary" size="small" @click="handleWaveFormAnalysis(0)" v-if="!isWaveCharts">
波形解析
</el-button> -->
</div>
<div class="view" >
<TableHeader datePicker ref="headerRef">
<template #operation>
<el-button v-if="isWaveCharts" type="primary" @click="handleBack" :icon="ArrowLeft">返回</el-button>
</template>
</TableHeader>
<div class="view">
<TableHeader datePicker ref="headerRef" v-if="!isWaveCharts"></TableHeader>
<Table ref="tableRef" v-if="!isWaveCharts" />
<waveFormAnalysis v-if="isWaveCharts" ref="waveFormAnalysisRef" :wp="wp" />
<waveFormAnalysis
v-if="isWaveCharts"
ref="waveFormAnalysisRef"
@handleHideCharts="isWaveCharts = false"
:wp="wp"
/>
<el-button v-if="isWaveCharts" type="primary" @click="handleBack" :icon="ArrowLeft">返回</el-button>
</div>
</template>
<script lang="ts" setup>
import { ref, onMounted, provide, nextTick } from 'vue'
import { ref, onMounted, provide, nextTick, defineEmits } from 'vue'
import { getTabsDataByType } from '@/api/cs-device-boot/EquipmentDelivery'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
@@ -88,6 +84,7 @@ const tableStore: any = new TableStore({
// },
click: async row => {
row.loading = true
await analyseWave(row.id)
.then(res => {
row.loading = false
@@ -132,6 +129,7 @@ const getTableParams = (val: any) => {
const handleBack = async () => {
isWaveCharts.value = false
console.log(6666666, isWaveCharts.value)
emit('activeTabsType', '')
await tableStore.index()
}
defineExpose({ getTableParams })