|
@@ -8,8 +8,8 @@
|
|
|
<div class="page-container">
|
|
|
<div class="page-form-title-box" style="border:none;">
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
- <el-form-item label="" prop="overStatus">
|
|
|
- <el-select v-model="queryParams.overStatus" clearable placeholder="请选择状态">
|
|
|
+ <el-form-item label="" prop="status">
|
|
|
+ <el-select v-model="queryParams.status" clearable placeholder="请选择状态">
|
|
|
<el-option
|
|
|
v-for="dict in bonusTypeOptions"
|
|
|
:key="dict.id"
|
|
@@ -37,45 +37,34 @@
|
|
|
</div>
|
|
|
<div class="page-content-box" style="padding-top:0;">
|
|
|
<el-table class="table-box" v-loading="loading" border :data="recordList">
|
|
|
- <el-table-column label="姓名" align="left" prop="joinUserName" width="120" show-overflow-tooltip/>
|
|
|
- <el-table-column label="违规原因" align="left" prop="reason" show-overflow-tooltip/>
|
|
|
- <el-table-column label="实验室" align="left" prop="subjectName" width="200" show-overflow-tooltip/>
|
|
|
- <el-table-column label="添加人" align="left" prop="createByName" width="120" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="姓名" align="left" prop="name" width="120" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="违规原因" align="left" prop="foulsName" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="实验室" align="left" prop="labName" width="200" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="添加人" align="left" prop="createBy" width="120" show-overflow-tooltip/>
|
|
|
<el-table-column label="添加时间" align="left" prop="createTime" width="160" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="扣分值" align="left" prop="deductionVal" width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column label="扣分值" align="left" prop="reduceScore" width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <span style="color:#FF3131;">-{{scope.row.deductionVal}}</span>
|
|
|
+ <span style="color:#FF3131;">-{{scope.row.reduceScore}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="处理方式" align="left" prop="treatmentMethod" width="180" show-overflow-tooltip/>
|
|
|
- <el-table-column label="处理状态" align="left" width="310" show-overflow-tooltip>
|
|
|
+ <el-table-column label="处理方式" align="left" prop="meansCollect" width="180" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="处理状态" align="left" width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <div style="display: flex">
|
|
|
- <div class="scope-big-box" v-if="scope.row.learnStatus == 0 || scope.row.learnStatus == 1 || scope.row.learnStatus == 2">
|
|
|
- <p>学习</p>
|
|
|
- <p :class="scope.row.learnStatus == 0 ?'scopeColorA':(scope.row.learnStatus == 1 ?'scopeColorB':(scope.row.learnStatus == 2 ?'scopeColorC':''))">{{scope.row.learnStatus == 0 ?'未完成':(scope.row.learnStatus == 1 ?'已完成':(scope.row.learnStatus == 2 ?'已恢复':''))}}</p>
|
|
|
- </div>
|
|
|
- <div style="margin-left:10px;" class="scope-big-box" v-if="scope.row.practiceStatus == 0 || scope.row.practiceStatus == 1 || scope.row.practiceStatus == 2">
|
|
|
- <p>做题</p>
|
|
|
- <p :class="scope.row.practiceStatus == 0 ?'scopeColorA':(scope.row.practiceStatus == 1 ?'scopeColorB':(scope.row.practiceStatus == 2 ?'scopeColorC':''))">{{scope.row.practiceStatus == 0 ?'未完成':(scope.row.practiceStatus == 1 ?'已完成':(scope.row.practiceStatus == 2 ?'已恢复':''))}}</p>
|
|
|
- </div>
|
|
|
- <div style="margin-left:10px;" class="scope-big-box" v-if="scope.row.testStatus == 0 || scope.row.testStatus == 1 || scope.row.testStatus == 2">
|
|
|
- <p>考试</p>
|
|
|
- <p :class="scope.row.testStatus == 0 ?'scopeColorA':(scope.row.testStatus == 1 ?'scopeColorB':(scope.row.testStatus == 2 ?'scopeColorC':''))">{{scope.row.testStatus == 0 ?'未完成':(scope.row.testStatus == 1 ?'已完成':(scope.row.testStatus == 2 ?'已恢复':''))}}</p>
|
|
|
- </div>
|
|
|
+ <div class="scope-big-box">
|
|
|
+ <span style="margin:0 auto;text-align: center" :class="scope.row.count==0?'scopeColorB':'scopeColorA'">{{scope.row.count==0?'已完成':'未完成'}}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="处理截止日期" align="left" prop="handleDay" width="160" show-overflow-tooltip>
|
|
|
+ <el-table-column label="处理截止日期" align="left" prop="deadline" width="160" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ parseTime(scope.row.handleDay,"{y}-{m}-{d} {h}:{i}") }}</span>
|
|
|
+ <span>{{ parseTime(scope.row.deadline,"{y}-{m}-{d} {h}:{i}") }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="信用分" align="left" prop="creditScore" width="100" show-overflow-tooltip/>
|
|
|
+ <el-table-column label="信用分" align="left" prop="scoreCredit" width="100" show-overflow-tooltip/>
|
|
|
</el-table>
|
|
|
<pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
v-show="total>0"
|
|
@@ -91,7 +80,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import { examViolationHistoryList,getSemesterList } from "@/api/creditViolation/index";
|
|
|
+ import { creditFoulsHis } from "@/api/creditViolation/newIndex";
|
|
|
export default {
|
|
|
props:{
|
|
|
propsData:{},
|
|
@@ -107,13 +96,12 @@
|
|
|
queryParams: {
|
|
|
page: 1,
|
|
|
pageSize:20,
|
|
|
- overStatus: null,
|
|
|
+ status: null,
|
|
|
},
|
|
|
//状态条件
|
|
|
bonusTypeOptions:[
|
|
|
- {id:1,name:"已完成"},
|
|
|
- {id:0,name:"未完成"},
|
|
|
- {id:2,name:"已恢复"},
|
|
|
+ {id:0,name:"已完成"},
|
|
|
+ {id:1,name:"未完成"},
|
|
|
],
|
|
|
//列表数据
|
|
|
recordList:[],
|
|
@@ -141,8 +129,8 @@
|
|
|
obj.startTime=null;
|
|
|
obj.endTime=null
|
|
|
}
|
|
|
- obj.joinUserId = this.propsData.joinUserId;
|
|
|
- examViolationHistoryList(obj).then( response => {
|
|
|
+ obj.identity = this.propsData.identity;
|
|
|
+ creditFoulsHis(obj).then( response => {
|
|
|
this.$set(this,'recordList',response.data.records);
|
|
|
this.$set(this,'total',response.data.total);
|
|
|
this.loading = false;
|
|
@@ -159,7 +147,7 @@
|
|
|
this.$set(this,'queryParams',{
|
|
|
page: 1,
|
|
|
pageSize:20,
|
|
|
- overStatus: null,
|
|
|
+ status: null,
|
|
|
});
|
|
|
this.handleQuery();
|
|
|
},
|