提交 0c5cd13d authored 作者: 王鹏飞's avatar 王鹏飞

updates

上级 9b95b3b4
......@@ -15,11 +15,17 @@
<el-button type="primary" @click="showSelectQuestion">自动组卷</el-button>
</template>
</template>
<question-list :list="questions" :disableScore="data.paper_type === 2" style="margin-top: 20px">
<question-list
:list="questions"
:disableScore="data.paper_type === 2"
style="margin-top: 20px"
v-if="questions.length"
>
<template v-slot:selection="item" v-if="data.paper_type === 1">
<el-checkbox @change="handleSelectionChange(arguments[0], item)"></el-checkbox>
</template>
</question-list>
<el-empty description="该试卷无试题,去添加试题吧" v-else></el-empty>
</app-card>
</el-col>
<!-- 试题序号 -->
......
......@@ -7,18 +7,18 @@
</el-radio-group>
</template>
<template v-slot:filter-category="{ params }">
<question-type-cascader v-model="params.question_category" @change="refetchList"></question-type-cascader>
<question-type-treeselect v-model="params.question_category" @change="refetchList"></question-type-treeselect>
</template>
</app-list>
</template>
<script>
import { getQuestionList } from '../api.js'
import QuestionTypeCascader from '@/components/base/QuestionTypeCascader.vue'
import QuestionTypeTreeselect from '@/components/base/QuestionTypeTreeselect.vue'
export default {
props: { data: { type: Object, default: () => ({}) } },
components: { QuestionTypeCascader },
components: { QuestionTypeTreeselect },
data() {
return {}
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论