| | |
| | | <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"> |
| | |
| | | </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> |
| | |
| | | const submitForm = () => { |
| | | emit('selectItem', dynamicTags.value); |
| | | dialogVisible.value = false; |
| | | radio1.value='' |
| | | }; |
| | | //查询list数据 |
| | | const listApi = async () => { |
| | |
| | | }; |
| | | // 右方点击添加后显示标签 |
| | | const dynamicTags = ref([]); |
| | | const closeDialog=()=>{ |
| | | dialogVisible.value = false |
| | | handleClose() |
| | | }; |
| | | const handleClose = () => { |
| | | dynamicTags.value = []; |
| | | radio1.value = ''; |
| | |
| | | checkedItem, |
| | | submitReset, |
| | | submitForm, |
| | | closeDialog |
| | | }; |
| | | }, |
| | | }); |