Compare commits
No commits in common. "169d6d7c31e565a02d089484fc143bd6d063919b" and "f0fcbed61e461999715536d843673718a7ea6a22" have entirely different histories.
169d6d7c31
...
f0fcbed61e
|
@ -2,7 +2,7 @@
|
||||||
<div style="padding: 10px;">
|
<div style="padding: 10px;">
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="dialogVisible"
|
v-model="dialogVisible"
|
||||||
width="350"
|
width="30%"
|
||||||
append-to-body
|
append-to-body
|
||||||
>
|
>
|
||||||
<div style="display: flex;justify-content: center;">
|
<div style="display: flex;justify-content: center;">
|
||||||
|
@ -22,8 +22,6 @@
|
||||||
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([])
|
||||||
|
|
||||||
|
@ -48,11 +46,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({
|
||||||
|
|
Loading…
Reference in New Issue