zhuhao_dev #399

Merged
zhuhao merged 3 commits from zhuhao_dev into main 2024-11-12 10:36:32 +08:00
1 changed files with 12 additions and 10 deletions
Showing only changes of commit a75f880b30 - Show all commits

View File

@ -2,7 +2,7 @@
<div style="padding: 10px;"> <div style="padding: 10px;">
<el-dialog <el-dialog
v-model="dialogVisible" v-model="dialogVisible"
width="30%" width="350"
append-to-body append-to-body
> >
<div style="display: flex;justify-content: center;"> <div style="display: flex;justify-content: center;">
@ -22,6 +22,8 @@
import { ref, defineExpose } from 'vue' import { ref, defineExpose } from 'vue'
import ChooseTextbook from '@/components/choose-textbook/index.vue' import ChooseTextbook from '@/components/choose-textbook/index.vue'
const emit = defineEmits(['onsuccess'])
const dialogVisible = ref(false) const dialogVisible = ref(false)
const getNodeInfo = ref([]) const getNodeInfo = ref([])
@ -46,11 +48,11 @@
const nodeClick = (data) => { const nodeClick = (data) => {
getNodeInfo.value = getFullObj(data.node) getNodeInfo.value = getFullObj(data.node)
console.log(getNodeInfo.value, 'getNodeInfo.value')
} }
const save = () => { const save = () => {
dialogVisible.value = false dialogVisible.value = false
emit('onsuccess', getNodeInfo.value)
} }
defineExpose({ defineExpose({