| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | const emit = defineEmits(['refreshMethod']); |
| | | const emit = defineEmits(['refreshMethod','callParentMethod']); |
| | | import EventBus from '@/utils/eventBus'; |
| | | import { ElMessage } from 'element-plus'; |
| | | import dayjs from 'dayjs'; |
| | |
| | | }; |
| | | const cancelHandel = () => { |
| | | clearAllData(); |
| | | emit('callParentMethod'); |
| | | }; |
| | | const submitHandle = () => { |
| | | if (!formData.value.name) { |
| | |
| | | EventBus.emit('gettreeDataApi'); |
| | | emit('refreshMethod'); |
| | | clearAllData(); |
| | | emit('callParentMethod'); |
| | | }); |
| | | } else { |
| | | //文件夹编辑 |
| | |
| | | ElMessage.success('编辑成功'); |
| | | EventBus.emit('gettreeDataApi'); |
| | | clearAllData(); |
| | | emit('callParentMethod'); |
| | | }); |
| | | } |
| | | }; |