样式调整

This commit is contained in:
stt
2025-11-14 09:50:25 +08:00
parent 5580d0618e
commit 8cd3e14922
3 changed files with 50 additions and 16 deletions

View File

@@ -117,7 +117,7 @@ const showEchart = ref(true)
const num = ref(0)
const timeControl = ref(false)
//值类型
const pageHeight = ref(mainHeight(332))
const pageHeight = ref(mainHeight(412))
const loading = ref(true)
const searchForm: any = ref({})
const tableHeaderRef = ref()
@@ -577,9 +577,9 @@ const setTimeControl = () => {
const selectChange = (flag: boolean) => {
if (flag) {
pageHeight.value = mainHeight(372)
pageHeight.value = mainHeight(452)
} else {
pageHeight.value = mainHeight(332)
pageHeight.value = mainHeight(412)
}
}
//导出

View File

@@ -117,7 +117,7 @@ const showEchart = ref(true)
const num = ref(0)
const timeControl = ref(false)
//值类型
const pageHeight = ref(mainHeight(332))
const pageHeight = ref(mainHeight(412))
const loading = ref(true)
const searchForm: any = ref({})
const tableHeaderRef = ref()
@@ -577,9 +577,9 @@ const setTimeControl = () => {
const selectChange = (flag: boolean) => {
if (flag) {
pageHeight.value = mainHeight(372)
pageHeight.value = mainHeight(452)
} else {
pageHeight.value = mainHeight(332)
pageHeight.value = mainHeight(412)
}
}
//导出

View File

@@ -23,9 +23,14 @@
<Table ref="tableRef" @cell-click="cellClickEvent" isGroup :height="height"></Table>
</el-dialog>
<!-- 查看波形 -->
<el-dialog v-model="isWaveCharts" draggable title="瞬时/RMS波形" append-to-body width="70%">
<waveFormAnalysis v-loading="loading" v-if="isWaveCharts" ref="waveFormAnalysisRef"
@handleHideCharts="isWaveCharts = false" :wp="wp" />
<el-dialog v-model="isWaveCharts" draggable title="瞬时/RMS波形" append-to-body width="70%">
<waveFormAnalysis
v-loading="loading"
v-if="isWaveCharts"
ref="waveFormAnalysisRef"
@handleHideCharts="isWaveCharts = false"
:wp="wp"
/>
</el-dialog>
</div>
</template>
@@ -36,12 +41,14 @@ import TableHeader from '@/components/table/header/index.vue'
import TableStore from '@/utils/tableStore'
import { mainHeight } from '@/utils/layout'
import waveFormAnalysis from '@/views/govern/device/control/tabs/components/waveFormAnalysis.vue'
import { analyseWave } from '@/api/common'
const dialogVisible: any = ref(false)
const harmonicRatioRef: any = ref(null)
const waveFormAnalysisRef: any = ref(null)
// 波形
const isWaveCharts = ref(false)
const loading = ref(false)
const wp = ref({})
const boxoList: any = ref({})
const options = [
{
@@ -67,7 +74,7 @@ const tableStore: any = new TableStore({
},
{
title: '暂态时间',
field: 'time',
field: 'time'
},
{
title: '测点名称',
@@ -77,7 +84,7 @@ const tableStore: any = new TableStore({
{
title: '暂态类型',
field: 'flicker',
width: '100',
width: '100'
},
{
title: '特征幅值(%)',
@@ -94,12 +101,12 @@ const tableStore: any = new TableStore({
field: 'flicker',
width: '100'
},
{
{
title: '严重度',
field: 'flicker',
width: '80'
},
{
{
title: '波形',
width: '100',
render: 'buttons',
@@ -110,7 +117,35 @@ const tableStore: any = new TableStore({
type: 'primary',
icon: 'el-icon-EditPen',
render: 'basicButton',
click: row => {
loading: 'loading1',
// disabled: row => {
// return !row.wavePath
// },
click: async row => {
row.loading1 = true
loading.value = true
isWaveCharts.value = true
await analyseWave(row.id)
.then(res => {
row.loading1 = false
if (res != undefined) {
boxoList.value = row
boxoList.value.featureAmplitude =
row.evtParamVVaDepth != '-' ? row.evtParamVVaDepth - 0 : null
boxoList.value.systemType = 'WX'
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)
})
}
}
]
@@ -152,7 +187,6 @@ const cellClickEvent = ({ row, column }: any) => {
}
}
defineExpose({ open })
</script>
<style lang="scss" scoped></style>