Compare commits
3 Commits
a9732218f4
...
a34226f29f
Author | SHA1 | Date |
---|---|---|
baigl | a34226f29f | |
白了个白 | 30b2b9b964 | |
白了个白 | cadb8088a6 |
|
@ -77,7 +77,8 @@
|
|||
/>
|
||||
</el-form-item>
|
||||
<div class="item-cropper-btn">
|
||||
<el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('title')"></el-button>
|
||||
<!-- <el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('title')"></el-button> -->
|
||||
<el-button v-show="isCropper" circle @click="cropperFormItem('title')">识别</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -106,7 +107,8 @@
|
|||
</el-form-item>
|
||||
</div>
|
||||
<div class="item-cropper-btn">
|
||||
<el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workdesc')"></el-button>
|
||||
<!-- <el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workdesc')"></el-button> -->
|
||||
<el-button v-show="isCropper" circle @click="cropperFormItem('workdesc')">识别</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -141,7 +143,8 @@
|
|||
</el-form-item>
|
||||
</div>
|
||||
<div class="item-cropper-btn">
|
||||
<el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workdesc')"></el-button>
|
||||
<!-- <el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workdesc')"></el-button> -->
|
||||
<el-button v-show="isCropper" circle @click="cropperFormItem('workdesc')">识别</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -169,7 +172,8 @@
|
|||
</el-form-item>
|
||||
</div>
|
||||
<div class="item-cropper-btn">
|
||||
<el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workdesc')"></el-button>
|
||||
<!-- <el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workdesc')"></el-button> -->
|
||||
<el-button v-show="isCropper" circle @click="cropperFormItem('workdesc')">识别</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -205,7 +209,8 @@
|
|||
}" />
|
||||
</el-form-item>
|
||||
<div class="item-cropper-btn">
|
||||
<el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workanswer')"></el-button>
|
||||
<!-- <el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workanswer')"></el-button> -->
|
||||
<el-button v-show="isCropper" circle @click="cropperFormItem('workanswer')">识别</el-button>
|
||||
</div>
|
||||
|
||||
<!-- subjList -->
|
||||
|
@ -273,7 +278,8 @@
|
|||
<el-tag v-else type="danger" style=" margin-left: 10px ">温馨提示:这里 - 号删除的是最后一道题目哟!</el-tag>
|
||||
</el-form-item>
|
||||
<div class="item-cropper-btn-multi">
|
||||
<el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workdesc')"></el-button>
|
||||
<!-- <el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('workdesc')"></el-button> -->
|
||||
<el-button v-show="isCropper" circle @click="cropperFormItem('workdesc')">识别</el-button>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -394,7 +400,8 @@
|
|||
<!-- 答案分析 -->
|
||||
<div class="questForm-item-cover">
|
||||
<el-form-item label="答案分析" prop="method">
|
||||
<Tinymce v-model="questForm.method"
|
||||
<Tinymce
|
||||
v-model="questForm.method"
|
||||
:upFileParams = "{
|
||||
deptId: userStore.deptId,
|
||||
userId: userStore.userId,
|
||||
|
@ -405,7 +412,8 @@
|
|||
}" />
|
||||
</el-form-item>
|
||||
<div class="item-cropper-btn">
|
||||
<el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('method')"></el-button>
|
||||
<!-- <el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('method')"></el-button> -->
|
||||
<el-button v-show="isCropper" circle @click="cropperFormItem('method')">识别</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -423,7 +431,8 @@
|
|||
}" />
|
||||
</el-form-item>
|
||||
<div class="item-cropper-btn">
|
||||
<el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('analyse')"></el-button>
|
||||
<!-- <el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('analyse')"></el-button> -->
|
||||
<el-button v-show="isCropper" circle @click="cropperFormItem('analyse')">识别</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -441,7 +450,8 @@
|
|||
}" />
|
||||
</el-form-item>
|
||||
<div class="item-cropper-btn">
|
||||
<el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('discuss')"></el-button>
|
||||
<!-- <el-button v-show="isCropper" circle icon="Search" @click="cropperFormItem('discuss')"></el-button> -->
|
||||
<el-button v-show="isCropper" circle @click="cropperFormItem('discuss')">识别</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -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,
|
||||
})
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
|
|
Loading…
Reference in New Issue