2025-10-20 13:25:30 +08:00
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<!--F47曲线 -->
|
2025-11-07 11:28:24 +08:00
|
|
|
<TableHeader :showReset="false" @selectChange="selectChange" datePicker v-if="fullscreen"></TableHeader>
|
2025-10-20 13:25:30 +08:00
|
|
|
<el-descriptions class="mt2" direction="vertical" :column="4" border>
|
|
|
|
|
<el-descriptions-item align="center" label="名称">{{ data.name }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item align="center" label="事件总数">{{ data.gs }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item align="center" label="可容忍">{{ data.krr }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item align="center" label="不可容忍">{{ data.bkrr }}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<my-echart
|
2025-11-27 15:00:35 +08:00
|
|
|
v-loading="tableStore.table.loading"
|
2025-10-28 11:23:17 +08:00
|
|
|
ref="chartRef"
|
2025-10-20 13:25:30 +08:00
|
|
|
class="tall"
|
|
|
|
|
:options="echartList"
|
2025-11-14 09:34:39 +08:00
|
|
|
:style="{
|
|
|
|
|
width: prop.width,
|
|
|
|
|
height: `calc(${prop.height} - 80px - ${headerHeight}px + ${fullscreen ? 0 : 56}px)`
|
|
|
|
|
}"
|
2025-10-28 11:23:17 +08:00
|
|
|
@chart-click="handleChartClick"
|
2025-10-20 13:25:30 +08:00
|
|
|
/>
|
2025-11-27 14:38:30 +08:00
|
|
|
<el-dialog v-model="isWaveCharts" draggable :title="dialogTitle" append-to-body width="70%">
|
2025-11-14 09:34:39 +08:00
|
|
|
<waveFormAnalysis
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
v-if="isWaveCharts"
|
|
|
|
|
ref="waveFormAnalysisRef"
|
|
|
|
|
@handleHideCharts="isWaveCharts = false"
|
|
|
|
|
:wp="wp"
|
|
|
|
|
/>
|
2025-10-28 11:23:17 +08:00
|
|
|
</el-dialog>
|
2025-10-20 13:25:30 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { ref, onMounted, provide, reactive, watch, h } from 'vue'
|
|
|
|
|
import TableStore from '@/utils/tableStore'
|
|
|
|
|
import MyEchart from '@/components/echarts/MyEchart.vue'
|
2025-11-14 09:34:39 +08:00
|
|
|
import waveFormAnalysis from '@/views/govern/device/control/tabs/components/waveFormAnalysis.vue'
|
2025-11-07 11:28:24 +08:00
|
|
|
import TableHeader from '@/components/table/header/index.vue'
|
2025-11-14 09:34:39 +08:00
|
|
|
import { analyseWave } from '@/api/common'
|
2025-11-07 11:28:24 +08:00
|
|
|
|
2025-10-20 13:25:30 +08:00
|
|
|
const prop = defineProps({
|
2025-11-27 14:38:30 +08:00
|
|
|
w: { type: [String, Number] },
|
|
|
|
|
h: { type: [String, Number] },
|
|
|
|
|
width: { type: [String, Number] },
|
|
|
|
|
height: { type: [String, Number] },
|
|
|
|
|
timeKey: { type: [String, Number] },
|
2025-10-20 13:25:30 +08:00
|
|
|
timeValue: { type: Object }
|
|
|
|
|
})
|
|
|
|
|
|
2025-11-07 11:28:24 +08:00
|
|
|
const headerHeight = ref(57)
|
|
|
|
|
|
2025-11-27 14:38:30 +08:00
|
|
|
const dialogTitle = ref('波形分析')
|
2025-11-07 11:28:24 +08:00
|
|
|
const selectChange = (showSelect: any, height: any, datePickerValue?: any) => {
|
|
|
|
|
headerHeight.value = height
|
|
|
|
|
|
2025-11-14 14:09:34 +08:00
|
|
|
if (datePickerValue && datePickerValue.timeValue) {
|
|
|
|
|
// 更新时间参数
|
|
|
|
|
tableStore.table.params.searchBeginTime = datePickerValue.timeValue[0]
|
|
|
|
|
tableStore.table.params.searchEndTime = datePickerValue.timeValue[1]
|
2025-11-07 11:28:24 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 计算是否全屏展示
|
|
|
|
|
const fullscreen = computed(() => {
|
|
|
|
|
const w = Number(prop.w)
|
|
|
|
|
const h = Number(prop.h)
|
|
|
|
|
if (!isNaN(w) && !isNaN(h) && w === 12 && h === 6) {
|
|
|
|
|
// 执行相应逻辑
|
|
|
|
|
return true
|
|
|
|
|
} else {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2025-11-28 16:33:32 +08:00
|
|
|
const echartList = ref()
|
2025-10-28 11:23:17 +08:00
|
|
|
|
|
|
|
|
const chartRef = ref()
|
|
|
|
|
// 波形
|
|
|
|
|
const isWaveCharts = ref(false)
|
|
|
|
|
|
|
|
|
|
const loading = ref(false)
|
|
|
|
|
|
|
|
|
|
const wp = ref({})
|
|
|
|
|
|
2025-11-14 09:34:39 +08:00
|
|
|
const boxoList: any = ref({})
|
|
|
|
|
|
|
|
|
|
const waveFormAnalysisRef: any = ref(null)
|
|
|
|
|
|
2025-10-20 13:25:30 +08:00
|
|
|
const data = reactive({
|
|
|
|
|
name: '事件个数',
|
|
|
|
|
gs: 0,
|
|
|
|
|
krr: 0,
|
|
|
|
|
bkrr: 0
|
|
|
|
|
})
|
|
|
|
|
const tableStore: any = new TableStore({
|
2025-11-25 11:00:35 +08:00
|
|
|
url: '/cs-harmonic-boot/csevent/f47Curve',
|
2025-10-20 13:25:30 +08:00
|
|
|
method: 'POST',
|
|
|
|
|
|
|
|
|
|
showPage: false,
|
|
|
|
|
|
|
|
|
|
column: [],
|
2025-11-27 14:38:30 +08:00
|
|
|
beforeSearchFun: () => {
|
2025-11-14 14:09:34 +08:00
|
|
|
tableStore.table.params.searchBeginTime = tableStore.table.params.searchBeginTime || prop.timeValue?.[0]
|
|
|
|
|
tableStore.table.params.searchEndTime = tableStore.table.params.searchEndTime || prop.timeValue?.[1]
|
2025-10-20 13:25:30 +08:00
|
|
|
},
|
|
|
|
|
loadCallback: () => {
|
2025-11-25 11:00:35 +08:00
|
|
|
const gongData = gongfunction(tableStore.table.data)
|
|
|
|
|
data.gs = tableStore.table.data.length
|
2025-10-20 13:25:30 +08:00
|
|
|
data.krr = gongData.pointI.length
|
|
|
|
|
data.bkrr = gongData.pointIun.length
|
|
|
|
|
echartList.value = {
|
|
|
|
|
title: {
|
|
|
|
|
text: `F47曲线`
|
|
|
|
|
},
|
|
|
|
|
legend: {
|
2025-10-28 11:23:17 +08:00
|
|
|
data: ['可容忍事件', '不可容忍事件'],
|
|
|
|
|
itemWidth: 10,
|
|
|
|
|
itemHeight: 10,
|
|
|
|
|
itemGap: 15
|
2025-10-20 13:25:30 +08:00
|
|
|
},
|
|
|
|
|
tooltip: {
|
|
|
|
|
trigger: 'item',
|
|
|
|
|
show: true,
|
|
|
|
|
axisPointer: {
|
|
|
|
|
type: 'shadow',
|
|
|
|
|
label: {
|
|
|
|
|
color: '#fff',
|
|
|
|
|
fontSize: 16
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
textStyle: {
|
|
|
|
|
color: '#fff',
|
|
|
|
|
fontStyle: 'normal',
|
|
|
|
|
opacity: 0.35,
|
|
|
|
|
fontSize: 14
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: 'rgba(0,0,0,0.55)',
|
|
|
|
|
borderWidth: 0,
|
|
|
|
|
formatter: function (a: any) {
|
|
|
|
|
var relVal = ''
|
|
|
|
|
relVal = "<font style='color:" + "'>发生时间:" + a.value[2] + '</font><br/>'
|
|
|
|
|
relVal += "<font style='color:" + "'>持续时间:" + a.value[0] + 's</font><br/>'
|
|
|
|
|
relVal += "<font style='color:" + "'>特征幅值:" + a.value[1].toFixed(2) + '%</font>'
|
|
|
|
|
return relVal
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
xAxis: [
|
|
|
|
|
{
|
|
|
|
|
type: 'log',
|
|
|
|
|
min: 0.001,
|
|
|
|
|
max: 1000,
|
|
|
|
|
splitLine: {
|
|
|
|
|
show: false
|
|
|
|
|
},
|
|
|
|
|
name: 's'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
yAxis: [
|
|
|
|
|
{
|
|
|
|
|
type: 'value',
|
|
|
|
|
max: function (value: any) {
|
|
|
|
|
return value.max + 20
|
|
|
|
|
},
|
|
|
|
|
splitNumber: 10,
|
|
|
|
|
minInterval: 0.1,
|
|
|
|
|
name: '%'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
color: ['#DAA520', 'green', 'red'],
|
|
|
|
|
options: {
|
|
|
|
|
dataZoom: null,
|
|
|
|
|
series: [
|
|
|
|
|
{
|
|
|
|
|
name: '边界线',
|
|
|
|
|
type: 'line',
|
|
|
|
|
data: [
|
|
|
|
|
[0.05, 0],
|
|
|
|
|
[0.05, 50],
|
|
|
|
|
[0.2, 50],
|
|
|
|
|
[0.2, 70],
|
|
|
|
|
[0.5, 70],
|
|
|
|
|
[0.5, 80],
|
|
|
|
|
[10, 80],
|
|
|
|
|
[1000, 80]
|
|
|
|
|
],
|
|
|
|
|
showSymbol: false,
|
|
|
|
|
tooltips: {
|
|
|
|
|
show: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '可容忍事件',
|
|
|
|
|
type: 'scatter',
|
|
|
|
|
symbol: 'circle',
|
2025-10-28 11:23:17 +08:00
|
|
|
symbolSize: 8,
|
2025-11-25 11:00:35 +08:00
|
|
|
data: gongData.pointF,
|
|
|
|
|
// data: [
|
|
|
|
|
// [0.2, 10, '2023-01-01 10:00:00'],
|
|
|
|
|
// [0.4, 50, '2023-01-01 11:00:00']
|
|
|
|
|
// ],
|
2025-10-28 11:23:17 +08:00
|
|
|
legendSymbol: 'circle',
|
|
|
|
|
emphasis: {
|
|
|
|
|
focus: 'series',
|
|
|
|
|
itemStyle: {
|
|
|
|
|
borderColor: '#fff',
|
|
|
|
|
borderWidth: 2,
|
|
|
|
|
shadowBlur: 10,
|
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tooltip: {
|
|
|
|
|
show: true,
|
|
|
|
|
trigger: 'item',
|
|
|
|
|
formatter: function (params: any) {
|
|
|
|
|
return `<strong>可容忍事件</strong><br/>
|
|
|
|
|
持续时间: ${params.value[0]}s<br/>
|
|
|
|
|
特征幅值: ${params.value[1].toFixed(2)}%<br/>
|
|
|
|
|
发生时间: ${params.value[2] || 'N/A'}`
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-10-20 13:25:30 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '不可容忍事件',
|
|
|
|
|
type: 'scatter',
|
2025-11-27 15:00:35 +08:00
|
|
|
symbol: 'circle',
|
2025-10-28 11:23:17 +08:00
|
|
|
symbolSize: 8,
|
|
|
|
|
data: gongData.pointFun,
|
|
|
|
|
legendSymbol: 'rect'
|
2025-10-20 13:25:30 +08:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const tableRef = ref()
|
|
|
|
|
provide('tableRef', tableRef)
|
|
|
|
|
provide('tableStore', tableStore)
|
|
|
|
|
|
|
|
|
|
function gongfunction(arr: any) {
|
|
|
|
|
let standI = 0
|
|
|
|
|
let unstandI = 0
|
|
|
|
|
let standF = 0
|
|
|
|
|
let unstandF = 0
|
|
|
|
|
let total = 0
|
|
|
|
|
let pointIun = []
|
|
|
|
|
let pointI = []
|
|
|
|
|
let pointF = []
|
|
|
|
|
let pointFun = []
|
|
|
|
|
total = arr.length
|
|
|
|
|
if (total == 0) {
|
|
|
|
|
} else {
|
|
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
|
|
|
let point = []
|
|
|
|
|
let xx = arr[i].persistTime
|
|
|
|
|
let yy = arr[i].eventValue
|
|
|
|
|
let time = arr[i].time
|
|
|
|
|
let eventId = arr[i].eventId
|
2025-11-28 16:33:32 +08:00
|
|
|
let lineName = arr[i].lineName
|
2025-10-20 13:25:30 +08:00
|
|
|
// let index =arr[i].eventDetailIndex;
|
2025-11-28 16:33:32 +08:00
|
|
|
point = [xx, yy, time, eventId, lineName]
|
2025-10-20 13:25:30 +08:00
|
|
|
|
|
|
|
|
if (xx <= 0.003) {
|
|
|
|
|
let line = 0
|
|
|
|
|
line = 250 - 30000 * xx
|
|
|
|
|
if (yy > line) {
|
|
|
|
|
unstandI++
|
|
|
|
|
pointIun.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'red' } }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
standI++
|
|
|
|
|
pointI.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'green' } }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else if (xx <= 0.02) {
|
|
|
|
|
if (yy > 120) {
|
|
|
|
|
unstandI++
|
|
|
|
|
pointIun.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'red' } }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
standI++
|
|
|
|
|
pointI.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'green' } }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else if (xx <= 0.5) {
|
|
|
|
|
if (yy > 120 || yy < 70) {
|
|
|
|
|
unstandI++
|
|
|
|
|
pointIun.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'red' } }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
standI++
|
|
|
|
|
pointI.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'green' } }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else if (xx <= 10) {
|
|
|
|
|
if (yy > 110 || yy < 80) {
|
|
|
|
|
unstandI++
|
|
|
|
|
pointIun.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'red' } }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
standI++
|
|
|
|
|
pointI.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'green' } }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (yy > 110 || yy < 90) {
|
|
|
|
|
unstandI++
|
|
|
|
|
pointIun.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'red' } }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
standI++
|
|
|
|
|
pointI.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'green' } }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (xx < 0.05) {
|
|
|
|
|
standF++
|
|
|
|
|
pointF.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'green' } }
|
|
|
|
|
})
|
|
|
|
|
} else if (xx < 0.2) {
|
|
|
|
|
if (yy > 50) {
|
|
|
|
|
standF++
|
|
|
|
|
pointF.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'green' } }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
unstandF++
|
|
|
|
|
pointFun.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'red' } }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else if (xx < 0.5) {
|
|
|
|
|
if (yy > 70) {
|
|
|
|
|
standF++
|
|
|
|
|
pointF.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'green' } }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
unstandF++
|
|
|
|
|
pointFun.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'red' } }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (yy > 80) {
|
|
|
|
|
standF++
|
|
|
|
|
pointF.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'green' } }
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
unstandF++
|
|
|
|
|
pointFun.push({
|
|
|
|
|
value: point,
|
|
|
|
|
itemStyle: { normal: { color: 'red' } }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
standI,
|
|
|
|
|
unstandI,
|
|
|
|
|
pointI,
|
|
|
|
|
pointIun,
|
|
|
|
|
standF,
|
|
|
|
|
unstandF,
|
|
|
|
|
pointF,
|
|
|
|
|
pointFun
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
tableStore.index()
|
|
|
|
|
}, 100)
|
|
|
|
|
})
|
2025-10-28 11:23:17 +08:00
|
|
|
|
|
|
|
|
// 点击事件处理函数
|
2025-11-28 16:33:32 +08:00
|
|
|
const handleChartClick = (params: any) => {
|
2025-10-28 11:23:17 +08:00
|
|
|
if (params.seriesName === '可容忍事件') {
|
|
|
|
|
// 处理可容忍事件点击
|
2025-11-27 14:38:30 +08:00
|
|
|
dialogTitle.value = '可容忍事件波形分析'
|
2025-10-28 11:23:17 +08:00
|
|
|
handleTolerableEventClick(params)
|
|
|
|
|
} else if (params.seriesName === '不可容忍事件') {
|
2025-11-27 14:38:30 +08:00
|
|
|
dialogTitle.value = '不可容忍事件波形分析'
|
2025-10-28 11:23:17 +08:00
|
|
|
// 处理不可容忍事件点击
|
2025-11-27 14:38:30 +08:00
|
|
|
// ElMessage.info(`点击了不可容忍事件: 持续时间${params.value[0]}s, 幅值${params.value[1].toFixed(2)}%`)
|
|
|
|
|
handleTolerableEventClick(params)
|
2025-10-28 11:23:17 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 可容忍事件点击处理函数
|
2025-11-14 09:34:39 +08:00
|
|
|
const handleTolerableEventClick = async (row: any) => {
|
2025-10-28 11:23:17 +08:00
|
|
|
isWaveCharts.value = true
|
2025-11-14 09:34:39 +08:00
|
|
|
loading.value = true
|
|
|
|
|
isWaveCharts.value = true
|
2025-11-27 14:38:30 +08:00
|
|
|
nextTick(() => {
|
|
|
|
|
if (waveFormAnalysisRef.value) {
|
2025-11-27 16:21:52 +08:00
|
|
|
//waveFormAnalysisRef.value.setHeight(false, 360)
|
2025-11-28 16:33:32 +08:00
|
|
|
waveFormAnalysisRef.value.setHeight(999, 130, 1.6666666)
|
2025-11-27 14:38:30 +08:00
|
|
|
}
|
|
|
|
|
})
|
2025-11-28 16:33:32 +08:00
|
|
|
await analyseWave(row.value[3]) //eventId
|
2025-11-14 09:34:39 +08:00
|
|
|
.then(res => {
|
|
|
|
|
row.loading1 = false
|
|
|
|
|
if (res != undefined) {
|
2025-11-28 16:33:32 +08:00
|
|
|
boxoList.value = {
|
|
|
|
|
persistTime: row.value[0], //持续时间
|
|
|
|
|
featureAmplitude: (row.value[1] / 100).toFixed(2), //残余电压
|
|
|
|
|
startTime: row.value[2], //时间
|
|
|
|
|
lineName: row.value[4] //监测点名称
|
|
|
|
|
}
|
2025-11-27 14:38:30 +08:00
|
|
|
boxoList.value.systemType = 'YPT'
|
2025-11-14 09:34:39 +08:00
|
|
|
wp.value = res.data
|
|
|
|
|
}
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
row.loading1 = false
|
|
|
|
|
loading.value = false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
waveFormAnalysisRef.value && waveFormAnalysisRef.value.getWpData(wp.value, boxoList.value, true)
|
|
|
|
|
})
|
2025-10-28 11:23:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 不可容忍事件点击处理函数
|
|
|
|
|
const handleIntolerableEventClick = (params: any) => {
|
|
|
|
|
console.log('不可容忍事件详情:', params)
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-20 13:25:30 +08:00
|
|
|
watch(
|
|
|
|
|
() => prop.timeKey,
|
|
|
|
|
val => {
|
|
|
|
|
tableStore.index()
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
watch(
|
2025-11-14 14:09:34 +08:00
|
|
|
() => prop.timeValue,
|
2025-10-20 13:25:30 +08:00
|
|
|
(newVal, oldVal) => {
|
2025-11-14 14:09:34 +08:00
|
|
|
// 当外部时间值变化时,更新表格的时间参数
|
|
|
|
|
if (newVal && (!oldVal || newVal[0] !== oldVal[0] || newVal[1] !== oldVal[1])) {
|
|
|
|
|
tableStore.table.params.searchBeginTime = newVal[0]
|
|
|
|
|
tableStore.table.params.searchEndTime = newVal[1]
|
|
|
|
|
tableStore.index()
|
|
|
|
|
}
|
2025-10-20 13:25:30 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-11-14 14:09:34 +08:00
|
|
|
deep: true
|
2025-10-20 13:25:30 +08:00
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const addMenu = () => {}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped></style>
|