Your Name
2022-08-11 988558aaa309068fd393cc654be537434b0a15ea
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
      };
   },
});