代码调整
This commit is contained in:
parent
6d20dcb132
commit
f4a53f6404
@ -49,7 +49,7 @@ export default {
|
||||
},
|
||||
labels: {
|
||||
type: 'select',
|
||||
label: '标 签',
|
||||
label: '分 类',
|
||||
config: {
|
||||
multiple: true,
|
||||
data: []
|
||||
@ -68,7 +68,7 @@ export default {
|
||||
type: 'html'
|
||||
},
|
||||
{
|
||||
title: '标 签',
|
||||
title: '分 类',
|
||||
prop: 'tags',
|
||||
type: 'tagMore',
|
||||
width: '200',
|
||||
@ -274,7 +274,7 @@ export default {
|
||||
const objHeader = {
|
||||
questionTypeIndex: '题型(必填)',
|
||||
topicIndex: '题干(必填)',
|
||||
tagsIndex: '标签',
|
||||
tagsIndex: '分类',
|
||||
option1Index: '选项A(必填)',
|
||||
option2Index: '选项B(必填)',
|
||||
option3Index: '选项C',
|
||||
@ -448,8 +448,8 @@ export default {
|
||||
exportTemplate() {
|
||||
const wb = XLSX.utils.book_new();
|
||||
const data1 = [{A: '理论试题导入模板', B: '', C:'', D:'', E:'', F: '', G: '', H: '', I: '', J: '', K: ''}];
|
||||
const data2 = [{A: '说明:1、本表表头(第一行到第三行)内容不能修改删除;\n 2、支持批量导入的题型:单选题,多选题,判断题,题型不能自定义,只能按照表格提供的进行录入;\n 3、【判断题】在选项A中可填写√ 或正确,选项B中填写× 或错误,答案填写A或B\n 4、【标签】多个标签项使用空格隔开', B: '', C:'', D:'', E:'', F: '', G: '', H: '', I: '', J: '', K: ''}];
|
||||
const data3 = [{A: '序号', B: '题干(必填)', C:'题型(必填)', D:'选项A(必填)', E:'选项B(必填)', F: '选项C', G: '选项D', H: '选项E', I: '选项F', J: '正确答案(必填)', K: '标签'}];
|
||||
const data2 = [{A: '说明:1、本表表头(第一行到第三行)内容不能修改删除;\n 2、支持批量导入的题型:单选题,多选题,判断题,题型不能自定义,只能按照表格提供的进行录入;\n 3、【判断题】在选项A中可填写√ 或正确,选项B中填写× 或错误,答案填写A或B\n 4、【分类】多个分类项使用空格隔开', B: '', C:'', D:'', E:'', F: '', G: '', H: '', I: '', J: '', K: ''}];
|
||||
const data3 = [{A: '序号', B: '题干(必填)', C:'题型(必填)', D:'选项A(必填)', E:'选项B(必填)', F: '选项C', G: '选项D', H: '选项E', I: '选项F', J: '正确答案(必填)', K: '分类'}];
|
||||
const data = [...data1, ...data2, ...data3];
|
||||
const mapType = {
|
||||
select: '单选题',
|
||||
|
@ -18,7 +18,7 @@
|
||||
<div v-html="scope.row.topic" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="tags" label="标签" width="200">
|
||||
<el-table-column prop="tags" label="分类" width="200">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-for="item in getTagesArr(scope.row.tags)" :key="item" type="primary" disable-transitions style="margin-right: 10px;">{{ item }}</el-tag>
|
||||
</template>
|
||||
|
@ -11,8 +11,8 @@
|
||||
<el-option v-for="it in QuestionTypeList" :key="it.value" :label="it.label" :value="it.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="标 签">
|
||||
<el-select v-model="tagsArr" multiple filterable allow-create default-first-option placeholder="请选择标签" @change="tagsChange">
|
||||
<el-form-item label="分 类">
|
||||
<el-select v-model="tagsArr" multiple filterable allow-create default-first-option placeholder="请选择分类" @change="tagsChange">
|
||||
<el-option v-for="item in labelList" :key="item" :label="item" :value="item" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user