试卷管理调整---新

This commit is contained in:
joylink_fanyuhong 2021-12-23 10:07:29 +08:00
parent f906fe891f
commit 321fe3c076
4 changed files with 6 additions and 5 deletions

View File

@ -94,7 +94,7 @@ export default {
columnValue: (row) => {
return row.abnormal ? '异常' : '正常';
},
tagType: (row) => { return ''; }
tagType: (row) => { return row.abnormal ? 'danger' : 'success'; }
},
{
title: '开始时间',

View File

@ -2,12 +2,12 @@
<el-dialog v-dialogDrag :title="title" :visible.sync="dialogShow" :before-close="handleCancel" :close-on-click-modal="false">
<el-form ref="form" :model="form" :rules="rules" label-width="140px">
<el-form-item :label="$t('publish.trainingType')" prop="trainingType">
<el-select v-model="form.trainingType" :placeholder="$t('publish.selectTypeScope')" :disabled="editOk" style="width:240px;" @change="changeCourse">
<el-select v-model="form.trainingType" :placeholder="$t('publish.selectTypeScope')" style="width:240px;" @change="changeCourse">
<el-option v-for="nor in trainingTypeList" :key="nor.value" :label="nor.label" :value="nor.value" :disabled="nor.disabled" />
</el-select>
</el-form-item>
<el-form-item :label="$t('publish.operationType')" prop="operateType">
<el-select v-model="form.operateType" clearable :placeholder="$t('publish.selectScope')" :disabled="editOk" @change="changeOperation">
<el-select v-model="form.operateType" clearable :placeholder="$t('publish.selectScope')" @change="changeOperation">
<el-option v-for="nor in operationTypeList" :key="nor.value" :label="nor.label" :value="nor.value" :disabled="nor.disabled" />
</el-select>
</el-form-item>
@ -146,6 +146,7 @@ export default {
changeCourse(val) {
this.operationTypeList = this.operationTypeMap[val];
this.topicNum = this.trainingTypeNums[val];
this.form.operateType = '';
},
changeOperation(val) {
if (val) {

View File

@ -12,7 +12,7 @@
<template slot-scope="scope">
<span>{{ scope.row.num }}</span>
<el-tooltip v-if="checkNum(scope.row)" effect="dark" content="题库数量不足" placement="top">
<span style="color:red;cursor: pointer;">!</span>
<i class="el-icon-warning-outline"></i>
</el-tooltip>
</template>
</el-table-column>

View File

@ -112,7 +112,7 @@ export default {
columnValue: (row) => {
return row.abnormal ? '异常' : '正常';
},
tagType: (row) => { return ''; }
tagType: (row) => { return row.abnormal ? 'danger' : 'success'; }
},
{
type: 'button',