@@ -233,6 +233,7 @@ const harmVIsShow = ref(false)
const harmAIsShow = ref(false)
const iHarmVIsShow = ref(false)
const iHarmAIsShow = ref(false)
+const activeTab = ref('L1') // 设置默认激活的标签页
const props = defineProps({
activeName: {
type: String,
@@ -277,7 +278,8 @@ const tabVisibilityMap: { [key: string]: { harmVIsShow: boolean, harmAIsShow: bo
'谐波有功功率': { harmVIsShow: true, harmAIsShow: true, iHarmVIsShow: false, iHarmAIsShow: false },
};
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 };
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) => {