微调
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
height="calc(100vh - 480px)"
|
height="calc(100vh - 480px)"
|
||||||
:style="{ overflow: 'hidden' }"
|
:style="{ overflow: 'hidden' }"
|
||||||
row-key="id"
|
row-key="id"
|
||||||
default-expand-all
|
:expand-row-keys="[props.activeName]"
|
||||||
>
|
>
|
||||||
<el-table-column prop="name" label="指标" show-overflow-tooltip />
|
<el-table-column prop="name" label="指标" show-overflow-tooltip />
|
||||||
<el-table-column align="center" label="参与误差比较" width="110px">
|
<el-table-column align="center" label="参与误差比较" width="110px">
|
||||||
@@ -166,12 +166,13 @@ const info = async () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log('🚀 ~ item.children.forEach ~ tableData.value:', tableData.value)
|
//console.log('🚀 ~ item.children.forEach ~ tableData.value:', tableData.value)
|
||||||
}
|
}
|
||||||
const getData = () => {
|
const getData = () => {
|
||||||
return tableData.value
|
return tableData.value
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
//console.log('🚀 ~ onMounted ~ props:', props)
|
||||||
info()
|
info()
|
||||||
// tableData.value = data.data[0].children || []
|
// tableData.value = data.data[0].children || []
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog v-model="dialogVisible" :title= "titleType" v-bind="dialogBig" >
|
<el-dialog v-model="dialogVisible" :title= "titleType" v-bind="dialogBig" @close="close">
|
||||||
<!-- <el-descriptions :column="5" border>
|
<!-- <el-descriptions :column="5" border>
|
||||||
<el-descriptions-item label="脚本名称">测试</el-descriptions-item>
|
<el-descriptions-item label="脚本名称">测试</el-descriptions-item>
|
||||||
<el-descriptions-item label="参照标准名称">GBT 19862</el-descriptions-item>
|
<el-descriptions-item label="参照标准名称">GBT 19862</el-descriptions-item>
|
||||||
@@ -8,8 +8,8 @@
|
|||||||
<el-descriptions-item label="值类型">相对值</el-descriptions-item>
|
<el-descriptions-item label="值类型">相对值</el-descriptions-item>
|
||||||
</el-descriptions> -->
|
</el-descriptions> -->
|
||||||
<!-- tableData?.channelList -->
|
<!-- tableData?.channelList -->
|
||||||
<el-tabs type="border-card">
|
<el-tabs type="border-card" >
|
||||||
<el-tab-pane :label="`L${item}`" v-for="item in 3">
|
<el-tab-pane :label="`L${item}`" v-for="item in 3" :key="item">
|
||||||
<div class="tabPane">
|
<div class="tabPane">
|
||||||
<el-descriptions :column="4" border>
|
<el-descriptions :column="4" border>
|
||||||
<el-descriptions-item label-align="right" label="电压有效值(%)">
|
<el-descriptions-item label-align="right" label="电压有效值(%)">
|
||||||
@@ -233,6 +233,7 @@ const harmVIsShow = ref(false)
|
|||||||
const harmAIsShow = ref(false)
|
const harmAIsShow = ref(false)
|
||||||
const iHarmVIsShow = ref(false)
|
const iHarmVIsShow = ref(false)
|
||||||
const iHarmAIsShow = ref(false)
|
const iHarmAIsShow = ref(false)
|
||||||
|
const activeTab = ref<string | number>('L1') // 设置默认激活的标签页
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
activeName: {
|
activeName: {
|
||||||
type: String,
|
type: String,
|
||||||
@@ -277,7 +278,8 @@ const tabVisibilityMap: { [key: string]: { harmVIsShow: boolean, harmAIsShow: bo
|
|||||||
'谐波有功功率': { harmVIsShow: true, harmAIsShow: true, iHarmVIsShow: false, iHarmAIsShow: false },
|
'谐波有功功率': { harmVIsShow: true, harmAIsShow: true, iHarmVIsShow: false, iHarmAIsShow: false },
|
||||||
};
|
};
|
||||||
const open = async (row: any,communicationList:any,parentTabName:string,childrenTabName:string) => {
|
const open = async (row: any,communicationList:any,parentTabName:string,childrenTabName:string) => {
|
||||||
|
//重置标签页
|
||||||
|
activeTab.value = 'L1' // 设置默认激活的标签页
|
||||||
//对应表格显示隐藏
|
//对应表格显示隐藏
|
||||||
const visibilitySettings = tabVisibilityMap[parentTabName] || { harmVIsShow: false, harmAIsShow: false, iHarmVIsShow: false, iHarmAIsShow: false };
|
const visibilitySettings = tabVisibilityMap[parentTabName] || { harmVIsShow: false, harmAIsShow: false, iHarmVIsShow: false, iHarmAIsShow: false };
|
||||||
harmVIsShow.value = visibilitySettings.harmVIsShow;
|
harmVIsShow.value = visibilitySettings.harmVIsShow;
|
||||||
@@ -344,7 +346,10 @@ const open = async (row: any,communicationList:any,parentTabName:string,children
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 关闭弹窗
|
||||||
|
const close = () => {
|
||||||
|
dialogVisible.value = false
|
||||||
|
}
|
||||||
|
|
||||||
// 处理多余数据
|
// 处理多余数据
|
||||||
const handleHarmData = (row: any) => {
|
const handleHarmData = (row: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user