|
@@ -7,17 +7,24 @@
|
|
|
:props="{ expandTrigger: 'hover' }"
|
|
|
@change="handleChange"
|
|
|
/>
|
|
|
- <div class="intelligent-recognition"><SvgIcon icon-class="copy" :size="14" />智能识别</div>
|
|
|
+ <div class="intelligent-recognition" @click="showRecognition"><SvgIcon icon-class="copy" :size="14" />智能识别</div>
|
|
|
<div class="save-tip">{{ saveDate }} 已自动保存</div>
|
|
|
+
|
|
|
+ <IntelligentRecognition :visible.sync="dialogVisible" @recognition="recognition" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { questionTypeOption } from '@/views/exercise_questions/data/common';
|
|
|
|
|
|
+import IntelligentRecognition from '../common/IntelligentRecognition.vue';
|
|
|
+
|
|
|
export default {
|
|
|
name: 'SelectQuestionType',
|
|
|
- inject: ['curSaveDate'],
|
|
|
+ components: {
|
|
|
+ IntelligentRecognition
|
|
|
+ },
|
|
|
+ inject: ['curSaveDate', 'recognition'],
|
|
|
props: {
|
|
|
type: {
|
|
|
type: Array,
|
|
@@ -26,6 +33,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogVisible: false, // 智能识别弹窗
|
|
|
typeArr: this.type,
|
|
|
options: questionTypeOption
|
|
|
};
|
|
@@ -38,6 +46,10 @@ export default {
|
|
|
methods: {
|
|
|
handleChange(val) {
|
|
|
console.log(val);
|
|
|
+ },
|
|
|
+
|
|
|
+ showRecognition() {
|
|
|
+ this.dialogVisible = true;
|
|
|
}
|
|
|
}
|
|
|
};
|