From 999cab6fb3fc6d2a288d365da991351c5a396bf0 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期三, 21 九月 2022 15:53:18 +0800
Subject: [PATCH] 删除无用页面

---
 src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue b/src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue
index d349645..86cd9a6 100644
--- a/src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue
+++ b/src/views/accidentManagementSystem/workInjuryDeclaration/component/accidentName.vue
@@ -1,6 +1,6 @@
 <template>
 	<div>
-		<el-dialog v-model="dialogVisible" title="选择事故名称" width="900px" draggable :fullscreen="full">
+		<el-dialog v-model="dialogVisible" title="选择事故名称" width="900px" draggable :fullscreen="full" @close="handleClose">
 			<el-button @click="toggleFullscreen" size="small" class="pot" :icon="FullScreen"></el-button>
 			<el-row>
 				<el-col :span="18">
@@ -85,7 +85,7 @@
 			</el-row>
 			<template #footer>
 				<span class="dialog-footer">
-					<el-button @click="dialogVisible = false" size="default">关闭</el-button>
+					<el-button @click="closeDialog()" size="default">关闭</el-button>
 					<el-button type="primary" @click="submitForm" size="default">确定</el-button>
 				</span>
 			</template>
@@ -146,6 +146,7 @@
 		const submitForm = () => {
 			emit('selectItem', dynamicTags.value);
 			dialogVisible.value = false;
+			radio1.value=''
 		};
 		//查询list数据
 		const listApi = async () => {
@@ -161,6 +162,10 @@
 		};
 		// 右方点击添加后显示标签
 		const dynamicTags = ref([]);
+		const closeDialog=()=>{
+			dialogVisible.value = false
+			handleClose()
+		};
 		const handleClose = () => {
 			dynamicTags.value = [];
 			radio1.value = '';
@@ -196,6 +201,7 @@
 			checkedItem,
 			submitReset,
 			submitForm,
+			closeDialog
 		};
 	},
 });

--
Gitblit v1.9.2