diff --git a/web/src/management/pages/edit/components/MaterialGroup.vue b/web/src/management/pages/edit/components/MaterialGroup.vue index c3edfd9e..37f65439 100644 --- a/web/src/management/pages/edit/components/MaterialGroup.vue +++ b/web/src/management/pages/edit/components/MaterialGroup.vue @@ -10,7 +10,6 @@ > @@ -60,9 +59,9 @@ export default defineComponent({ } } }, + emits: ['change', 'select', 'changeSeq'], setup(props, { emit }) { const store = useStore() - const renderData = computed({ get () { return filterQuestionPreviewData(props.questionDataList) @@ -72,8 +71,12 @@ export default defineComponent({ } }) const handleSelect = (index) => { + console.log('materialGroup-handleSelect', index) emit('select', index) } + const handleChange = (data) => { + emit('change', data) + } const handleChangeSeq = (data) => { emit('changeSeq', data) } @@ -102,6 +105,7 @@ export default defineComponent({ DND_GROUP, renderData, handleSelect, + handleChange, handleChangeSeq, checkMove, checkEnd, diff --git a/web/src/materials/questions/QuestionContainerB/index.jsx b/web/src/materials/questions/QuestionContainerB/index.jsx index 2660c75f..a11debe0 100644 --- a/web/src/materials/questions/QuestionContainerB/index.jsx +++ b/web/src/materials/questions/QuestionContainerB/index.jsx @@ -75,14 +75,10 @@ export default defineComponent({ const onChange = (data) => { emit('change', data) } - const onClick = () => { - emit('select', props.indexNumber) - } return { props, BlockComponent, - onClick, onBlur, onFocus, onChange,