|
@@ -170,10 +170,10 @@
|
|
|
</a-form>
|
|
|
<div></div>
|
|
|
</div>
|
|
|
- <!-- 当前题目列表 -->
|
|
|
+ <!-- 当前试题列表 -->
|
|
|
<div class="common-card a-card-margin-top">
|
|
|
<div class="flex-between">
|
|
|
- <div class="current-table-title">当前题目</div>
|
|
|
+ <div class="current-table-title">当前试题</div>
|
|
|
<div class="current-table-title">
|
|
|
总分:{{ current_tableGradesCount }}
|
|
|
</div>
|
|
@@ -237,12 +237,12 @@
|
|
|
</template>
|
|
|
</a-table>
|
|
|
</div>
|
|
|
- <!-- 题库题目列表 -->
|
|
|
+ <!-- 题库试题列表 -->
|
|
|
<div class="common-card a-card-margin-top">
|
|
|
<!-- 过滤条件栏目 -->
|
|
|
<div>
|
|
|
<div class="filter-condition-box">
|
|
|
- <span>所属类目:</span>
|
|
|
+ <span>所属类别:</span>
|
|
|
<ul>
|
|
|
<li
|
|
|
:class="{
|
|
@@ -258,7 +258,7 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="filter-condition-box a-card-margin-top">
|
|
|
- <span>所属类别:</span>
|
|
|
+ <span>所属类型:</span>
|
|
|
<ul>
|
|
|
<li
|
|
|
:class="{
|
|
@@ -404,6 +404,7 @@ const ExamTimeLong = {
|
|
|
<a-input
|
|
|
type='number'
|
|
|
:value="hours"
|
|
|
+ :maxLength="2"
|
|
|
@change="handleNumberChange"
|
|
|
style="width: 35%; margin-right: 2%;"
|
|
|
/>
|
|
@@ -411,6 +412,7 @@ const ExamTimeLong = {
|
|
|
<a-input
|
|
|
type='number'
|
|
|
:value="minutes"
|
|
|
+ :maxLength="2"
|
|
|
@change="handleCurrencyChange"
|
|
|
style="width: 35%; margin-right: 2%;"
|
|
|
/>
|
|
@@ -474,7 +476,7 @@ export default {
|
|
|
examDateTime: '', // 考试时间
|
|
|
examLongTimeHours: '', // 考试时长:小时
|
|
|
examLongTimeMinutes: '', // 考试时长:分钟
|
|
|
- // 当前题目列表
|
|
|
+ // 当前试题列表
|
|
|
current_columns: [], // form表单的列参数
|
|
|
current_tableData: [], // 表单数据
|
|
|
current_pagination: {
|
|
@@ -485,10 +487,10 @@ export default {
|
|
|
current_selectedRowKeys: [], // 多选的结果
|
|
|
current_tableGradesCount: 0, // 总分
|
|
|
// 题库列表
|
|
|
- bank_examQuestionType: [], // 题目类型列表
|
|
|
- bank_checkedExamQuestionType: '', // 所选题目类型
|
|
|
- bank_examQuestionTypeCondition: [], // 题目类别列表
|
|
|
- bank_checkedExamQuestionTypeCondition: '', // 所选题目类别
|
|
|
+ bank_examQuestionType: [], // 试题类型列表
|
|
|
+ bank_checkedExamQuestionType: '', // 所选试题类型
|
|
|
+ bank_examQuestionTypeCondition: [], // 试题类型列表
|
|
|
+ bank_checkedExamQuestionTypeCondition: '', // 所选试题类型
|
|
|
bank_engineeringWorkList: [], // 工种数据列表
|
|
|
bank_engineeringWorkChooseValue: '', // 所选工种
|
|
|
bank_columns: [], // form表单的列参数
|
|
@@ -500,7 +502,7 @@ export default {
|
|
|
}, // 分页参数
|
|
|
bank_selectedRowKeys: [], // 多选的结果
|
|
|
bank_tableGradesCount: 0, // 总分
|
|
|
- disabledIdArr: [], // 当前题目中已有的题目ID(即题库列表中不可选取的行数据Id)
|
|
|
+ disabledIdArr: [], // 当前试题中已有的试题ID(即题库列表中不可选取的行数据Id)
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -510,11 +512,11 @@ export default {
|
|
|
beforeDestroy() {},
|
|
|
watch: {},
|
|
|
computed: {
|
|
|
- // 判断 当前题目 列表中是否有行被选择
|
|
|
+ // 判断 当前试题 列表中是否有行被选择
|
|
|
currentHasSelected() {
|
|
|
return this.current_selectedRowKeys.length > 0;
|
|
|
},
|
|
|
- // 判断 题库题目 列表中是否有行被选择
|
|
|
+ // 判断 题库试题 列表中是否有行被选择
|
|
|
bankHasSelected() {
|
|
|
return this.bank_selectedRowKeys.length > 0;
|
|
|
},
|
|
@@ -529,27 +531,27 @@ export default {
|
|
|
// 考试类型
|
|
|
this.examTypeList = [...EXAM_TYPE];
|
|
|
this.examTypeChooseValue = this.examTypeList[0].code;
|
|
|
- this.initCurrentTableFun(); // 初始化当前题目列表相关数据
|
|
|
- this.initBankTableFun(); // 初始化题库题目列表相关数据
|
|
|
+ this.initCurrentTableFun(); // 初始化当前试题列表相关数据
|
|
|
+ this.initBankTableFun(); // 初始化题库试题列表相关数据
|
|
|
},
|
|
|
- // #region 当前题目列表
|
|
|
- // 初始化当前题目列表
|
|
|
+ // #region 当前试题列表
|
|
|
+ // 初始化当前试题列表
|
|
|
initCurrentTableFun() {
|
|
|
// 表单的列的配置参数
|
|
|
this.current_columns = [
|
|
|
{
|
|
|
- title: '题目编号',
|
|
|
+ title: '试题编号',
|
|
|
dataIndex: 'questionCode',
|
|
|
key: 'questionCode',
|
|
|
width: 200,
|
|
|
},
|
|
|
{
|
|
|
- title: '题目',
|
|
|
+ title: '试题',
|
|
|
dataIndex: 'questionDescription',
|
|
|
key: 'questionDescription',
|
|
|
},
|
|
|
{
|
|
|
- title: '题目类别',
|
|
|
+ title: '试题类别',
|
|
|
dataIndex: 'questionType',
|
|
|
key: 'questionType',
|
|
|
scopedSlots: { customRender: 'questionType' },
|
|
@@ -577,9 +579,9 @@ export default {
|
|
|
width: 150,
|
|
|
},
|
|
|
];
|
|
|
- this.getCurrentQusetionsListFun(); // 查询:当前题目列表数据
|
|
|
+ this.getCurrentQusetionsListFun(); // 查询:当前试题列表数据
|
|
|
},
|
|
|
- // 查询:题目列表数据
|
|
|
+ // 查询:试题列表数据
|
|
|
getCurrentQusetionsListFun() {
|
|
|
// 列表数据
|
|
|
const resData = [];
|
|
@@ -639,7 +641,7 @@ export default {
|
|
|
let that = this;
|
|
|
this.$confirm({
|
|
|
title: '删除',
|
|
|
- content: `确认删除编号为 ${record.questionCode} 的题目吗?`,
|
|
|
+ content: `确认删除编号为 ${record.questionCode} 的试题吗?`,
|
|
|
okText: '确认',
|
|
|
cancelText: '取消',
|
|
|
onOk() {
|
|
@@ -683,9 +685,9 @@ export default {
|
|
|
onCancel() {},
|
|
|
});
|
|
|
},
|
|
|
- // 移除当前题目列表中要删除的数据
|
|
|
+ // 移除当前试题列表中要删除的数据
|
|
|
removeDataFromCurrentTable(ids = [], that) {
|
|
|
- // 移出当前题目
|
|
|
+ // 移出当前试题
|
|
|
that.current_tableData = that.current_tableData.filter((currentItem) => {
|
|
|
if (!ids.includes(currentItem.id)) {
|
|
|
return currentItem;
|
|
@@ -701,15 +703,15 @@ export default {
|
|
|
},
|
|
|
// #endregion
|
|
|
|
|
|
- //#region 题库题目列表
|
|
|
+ //#region 题库试题列表
|
|
|
initBankTableFun() {
|
|
|
- // 题目分类
|
|
|
+ // 试题类型
|
|
|
this.bank_examQuestionType = [
|
|
|
{ name: '全部', code: '' },
|
|
|
...EXAM_QUESTION_TYPE,
|
|
|
];
|
|
|
this.bank_checkedExamQuestionType = this.bank_examQuestionType[0].code;
|
|
|
- // 题目类别
|
|
|
+ // 试题类型
|
|
|
this.bank_examQuestionTypeCondition = [
|
|
|
{ name: '全部', code: '' },
|
|
|
...EXAM_QUESTION_TYPE_CONDITION,
|
|
@@ -724,18 +726,18 @@ export default {
|
|
|
// 表单的列的配置参数
|
|
|
this.bank_columns = [
|
|
|
{
|
|
|
- title: '题目编号',
|
|
|
+ title: '试题编号',
|
|
|
dataIndex: 'questionCode',
|
|
|
key: 'questionCode',
|
|
|
width: 200,
|
|
|
},
|
|
|
{
|
|
|
- title: '题目',
|
|
|
+ title: '试题',
|
|
|
dataIndex: 'questionDescription',
|
|
|
key: 'questionDescription',
|
|
|
},
|
|
|
{
|
|
|
- title: '题目类别',
|
|
|
+ title: '试题类别',
|
|
|
dataIndex: 'questionType',
|
|
|
key: 'questionType',
|
|
|
scopedSlots: { customRender: 'questionType' },
|
|
@@ -756,9 +758,9 @@ export default {
|
|
|
width: 150,
|
|
|
},
|
|
|
];
|
|
|
- this.getBankQusetionsListFun(); // 查询:题目列表数据
|
|
|
+ this.getBankQusetionsListFun(); // 查询:试题列表数据
|
|
|
},
|
|
|
- // 查询:题目列表数据
|
|
|
+ // 查询:试题列表数据
|
|
|
getBankQusetionsListFun() {
|
|
|
// 列表数据
|
|
|
const resData = QUESTIONLISTRES.data;
|
|
@@ -781,17 +783,17 @@ export default {
|
|
|
this.loading = false;
|
|
|
}, 1500);
|
|
|
},
|
|
|
- // 操作:选择某个题目类型
|
|
|
+ // 操作:选择某个试题类型
|
|
|
handleExamQuestionTypeFun(item) {
|
|
|
- console.log('选择某个题目类型', item);
|
|
|
+ console.log('选择某个试题类型', item);
|
|
|
if (this.bank_checkedExamQuestionType === item.code) {
|
|
|
return;
|
|
|
}
|
|
|
this.bank_checkedExamQuestionType = item.code;
|
|
|
},
|
|
|
- // 操作:选择某个题目类别
|
|
|
+ // 操作:选择某个试题类型
|
|
|
handleExamQuestionTypeConditionFun(item) {
|
|
|
- console.log('选择某个题目类别', item);
|
|
|
+ console.log('选择某个试题类型', item);
|
|
|
if (this.bank_checkedExamQuestionTypeCondition === item.code) {
|
|
|
return;
|
|
|
}
|
|
@@ -831,7 +833,7 @@ export default {
|
|
|
},
|
|
|
// 操作:添加
|
|
|
bankTableAddQuestion(record) {
|
|
|
- // 加入当前题目列表
|
|
|
+ // 加入当前试题列表
|
|
|
for (let i = 0; i < this.bank_tableData.length; i++) {
|
|
|
let bankItem = this.bank_tableData[i];
|
|
|
if (bankItem.id === record.id) {
|
|
@@ -857,7 +859,7 @@ export default {
|
|
|
okText: '确认',
|
|
|
cancelText: '取消',
|
|
|
onOk() {
|
|
|
- // 加入当前题目列表
|
|
|
+ // 加入当前试题列表
|
|
|
let arr = [];
|
|
|
that.bank_tableData.forEach((bankItem) => {
|
|
|
that.bank_selectedRowKeys.forEach((id) => {
|