试卷管理调整new
This commit is contained in:
parent
c4af4ee996
commit
e15460322b
@ -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);
|
||||
|
@ -104,6 +104,15 @@ export default {
|
||||
default: return 'danger';
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '试卷规则状态',
|
||||
prop: 'abnormal',
|
||||
type: 'tag',
|
||||
columnValue: (row) => {
|
||||
return row.abnormal ? '异常' : '正常';
|
||||
},
|
||||
tagType: (row) => { return ''; }
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
|
Loading…
Reference in New Issue
Block a user