样式调整

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

View File

@@ -117,7 +117,7 @@ const showEchart = ref(true)
const num = ref(0) const num = ref(0)
const timeControl = ref(false) const timeControl = ref(false)
//值类型 //值类型
const pageHeight = ref(mainHeight(332)) const pageHeight = ref(mainHeight(412))
const loading = ref(true) const loading = ref(true)
const searchForm: any = ref({}) const searchForm: any = ref({})
const tableHeaderRef = ref() const tableHeaderRef = ref()
@@ -577,9 +577,9 @@ const setTimeControl = () => {
const selectChange = (flag: boolean) => { const selectChange = (flag: boolean) => {
if (flag) { if (flag) {
pageHeight.value = mainHeight(372) pageHeight.value = mainHeight(452)
} else { } 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> <Table ref="tableRef" @cell-click="cellClickEvent" isGroup :height="height"></Table>
</el-dialog> </el-dialog>
<!-- 查看波形 --> <!-- 查看波形 -->
<el-dialog v-model="isWaveCharts" draggable title="瞬时/RMS波形" append-to-body width="70%"> <el-dialog v-model="isWaveCharts" draggable title="瞬时/RMS波形" append-to-body width="70%">
<waveFormAnalysis v-loading="loading" v-if="isWaveCharts" ref="waveFormAnalysisRef" <waveFormAnalysis
@handleHideCharts="isWaveCharts = false" :wp="wp" /> v-loading="loading"
v-if="isWaveCharts"
ref="waveFormAnalysisRef"
@handleHideCharts="isWaveCharts = false"
:wp="wp"
/>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@@ -36,12 +41,14 @@ import TableHeader from '@/components/table/header/index.vue'
import TableStore from '@/utils/tableStore' import TableStore from '@/utils/tableStore'
import { mainHeight } from '@/utils/layout' import { mainHeight } from '@/utils/layout'
import waveFormAnalysis from '@/views/govern/device/control/tabs/components/waveFormAnalysis.vue' import waveFormAnalysis from '@/views/govern/device/control/tabs/components/waveFormAnalysis.vue'
import { analyseWave } from '@/api/common'
const dialogVisible: any = ref(false) const dialogVisible: any = ref(false)
const harmonicRatioRef: any = ref(null) const waveFormAnalysisRef: any = ref(null)
// 波形 // 波形
const isWaveCharts = ref(false) const isWaveCharts = ref(false)
const loading = ref(false) const loading = ref(false)
const wp = ref({}) const wp = ref({})
const boxoList: any = ref({})
const options = [ const options = [
{ {
@@ -67,7 +74,7 @@ const tableStore: any = new TableStore({
}, },
{ {
title: '暂态时间', title: '暂态时间',
field: 'time', field: 'time'
}, },
{ {
title: '测点名称', title: '测点名称',
@@ -77,7 +84,7 @@ const tableStore: any = new TableStore({
{ {
title: '暂态类型', title: '暂态类型',
field: 'flicker', field: 'flicker',
width: '100', width: '100'
}, },
{ {
title: '特征幅值(%)', title: '特征幅值(%)',
@@ -94,12 +101,12 @@ const tableStore: any = new TableStore({
field: 'flicker', field: 'flicker',
width: '100' width: '100'
}, },
{ {
title: '严重度', title: '严重度',
field: 'flicker', field: 'flicker',
width: '80' width: '80'
}, },
{ {
title: '波形', title: '波形',
width: '100', width: '100',
render: 'buttons', render: 'buttons',
@@ -110,7 +117,35 @@ const tableStore: any = new TableStore({
type: 'primary', type: 'primary',
icon: 'el-icon-EditPen', icon: 'el-icon-EditPen',
render: 'basicButton', 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 }) defineExpose({ open })
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped></style>