试卷管理调整new

This commit is contained in:
joylink_fanyuhong 2021-12-22 16:25:51 +08:00
parent c4af4ee996
commit e15460322b
2 changed files with 19 additions and 1 deletions

View File

@ -15,6 +15,11 @@
<span>{{ Number(scope.row.num) * Number(scope.row.point) }}</span>
</template>
</el-table-column>
<el-table-column label="题库题数">
<template slot-scope="scope">
<span>{{ getTopicNum(scope.row) }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('global.operate')" width="100">
<template slot-scope="scope">
<el-button type="text" size="small" @click="handleForm(scope)">{{ $t('global.edit') }}</el-button>
@ -136,7 +141,6 @@ export default {
}
},
async updateOk() {
console.log(this.examData, '===')
if (this.ruleList.length) {
let flag = 0;
this.ruleList.forEach(rule => {
@ -246,6 +250,11 @@ export default {
return trainingName;
}
},
getTopicNum(row) {
//this.operationTypeNums
//console.log(row, this.operationTypeNums);
return this.operationTypeNums[row.trainingType] ? this.operationTypeNums[row.trainingType][row.operateType]: 0;
},
handleForm(data) {
this.indexCourse = data.$index;
const list = JSON.stringify(data.row);

View File

@ -104,6 +104,15 @@ export default {
default: return 'danger';
}
}
},
{
title: '试卷规则状态',
prop: 'abnormal',
type: 'tag',
columnValue: (row) => {
return row.abnormal ? '异常' : '正常';
},
tagType: (row) => { return ''; }
},
{
type: 'button',