diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue index e905407..03c24ee 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/questionUpload/quesItem/index.vue @@ -77,7 +77,8 @@ />
- + + 识别
@@ -106,7 +107,8 @@
- + + 识别
@@ -141,7 +143,8 @@
- + + 识别
@@ -169,7 +172,8 @@
- + + 识别
@@ -205,7 +209,8 @@ }" />
- + + 识别
@@ -273,7 +278,8 @@ 温馨提示:这里 - 号删除的是最后一道题目哟!
- + + 识别
@@ -394,7 +400,8 @@
-
- + + 识别
@@ -423,7 +431,8 @@ }" />
- + + 识别
@@ -441,7 +450,8 @@ }" />
- + + 识别
@@ -466,7 +476,7 @@ import useUserStore from '@/store/modules/user' const userStore = useUserStore().user const { proxy } = getCurrentInstance() // 定义要发送的emit事件 -const emit = defineEmits(['submit-exam-single-callback','cancel-exam-single-callback','cropper-exam-questForm-item']) +const emit = defineEmits(['submit-exam-single-callback','cancel-exam-single-callback','cropper-exam-form-item']) const props = defineProps({ bookobj: { type: Object, @@ -521,7 +531,7 @@ const initKonwPointFlagByUpdateForm = ref(true); // 表单[知识点]显示内容集合 const curKnowledgePointList = ref([]); // 表单数据参数 -let questForm = reactive({ +const questForm = reactive({ id: 0, title: '', worktype: '单选题', @@ -717,7 +727,7 @@ const checkBoxChangefh=(item, index, indexOp)=>{ }; /** 表单重置 */ const resetForm = () =>{ - questForm = { + Object.assign(questForm, { id: 0, title: '', worktype: '单选题', @@ -768,7 +778,7 @@ const resetForm = () =>{ }, ], }, - }; + }); }; /** * @desc: 赋值表单 @@ -1061,7 +1071,7 @@ const updateForm= async(item, submitIndex=0, submitType=1) =>{ }); } - questForm = { + Object.assign(questForm,{ id: item.id, title: item.worktype == '复合题' ? titleMulList : item.title, worktype: item.worktype, @@ -1090,7 +1100,7 @@ const updateForm= async(item, submitIndex=0, submitType=1) =>{ worktype: '填空题', params: newSubjListparams, }, - }; + }); // proxy.resetForm("questFormRef");? //上传完成反馈状态 @@ -1654,7 +1664,7 @@ const cropperFormItem=(curItem)=> { // 需识别的试题标识: 单选题/多选题/填空题/判断题/主观题/复合题 const examType = questForm.worktype; - emit('cropper-exam-questForm-item', examType, curItem); + emit('cropper-exam-form-item', examType, curItem); }; /** @@ -1712,6 +1722,7 @@ const myMessageShow=(title, msg, status)=>{ // deep: true // 深度监听,适用于对象内部属性的变化 // }, // }, + watch(() => props.bookobj.levelSecondId, (newVal, oldVal) => { console.log(props.bookobj,'课程选择') // props.bookobj.levelSecondId? props.bookobj.levelSecondId : props.bookobj.levelFirstId @@ -1721,7 +1732,8 @@ watch(() => props.bookobj.levelSecondId, (newVal, oldVal) => { // 暴露给父组件的参数和方法(外部需要什么,都可以从这里暴露出去) defineExpose({ - updateForm + updateForm, + cropperFormItemCallBack, })