修复思想品德加分问题
This commit is contained in:
@@ -1,5 +1,32 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export function plusCheckRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: "/comprehensive/auditDetails/plusCheckRecord",
|
||||||
|
method: "post",
|
||||||
|
data: data
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export function listCheckAuditAndRecord(params) {
|
||||||
|
return request({
|
||||||
|
url: '/comprehensive/auditDetails/listCheckAuditAndRecord',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function checkIamList() {
|
||||||
|
return request({
|
||||||
|
url: '/comprehensive/auditDetails/checkIamList',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export function cleanCancelRecord() {
|
export function cleanCancelRecord() {
|
||||||
return request({
|
return request({
|
||||||
url: '/comprehensive/auditDetails/cleanCancelRecord',
|
url: '/comprehensive/auditDetails/cleanCancelRecord',
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
<el-button type="warning" plain icon="el-icon-refresh" size="mini"
|
<el-button type="warning" plain icon="el-icon-refresh" size="mini"
|
||||||
@click="cleanCancelRecord">清理审核状态异常的加分项</el-button>
|
@click="cleanCancelRecord">清理审核状态异常的加分项</el-button>
|
||||||
|
<el-button type="success" plain icon="el-icon-view" size="mini" @click="checkVClick">查看异常分数</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
@@ -76,11 +77,57 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<el-dialog title="查看异常分数" :visible.sync="checkV" :fullscreen="true" :append-to-body="true"
|
||||||
|
:close-on-click-modal="false">
|
||||||
|
<el-table :data="checkList">
|
||||||
|
<el-table-column label="学年id" align="center" prop="stuYearId" />
|
||||||
|
<el-table-column label="学号" align="center" prop="stuNo" />
|
||||||
|
<el-table-column label="审核记录分数" align="center" prop="q2Score" />
|
||||||
|
<el-table-column label="加分记录分数" align="center" prop="q1Score" />
|
||||||
|
<el-table-column label="差异类型" align="center" prop="diffType" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" type="text" icon="el-icon-view" @click="lookCheckVClick(scope.row)">查看</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<el-dialog title="查看异常记录" :visible.sync="lookCheckV" :append-to-body="true" :close-on-click-modal="false">
|
||||||
|
<el-table :data="auditList">
|
||||||
|
<el-table-column label="审核记录" align="center">
|
||||||
|
<el-table-column label="学年id" align="center" prop="stuYearId" />
|
||||||
|
<el-table-column label="学号" align="center" prop="stuNo" />
|
||||||
|
<el-table-column label="项目" align="center" prop="projectName" />
|
||||||
|
<el-table-column label="分数" align="center" prop="iamScore" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" type="text" icon="el-icon-plus"
|
||||||
|
@click="plusCheckRecord(scope.row)">添加到加分记录中</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<el-table :data="recordList">
|
||||||
|
<el-table-column label="加分记录" align="center">
|
||||||
|
<el-table-column label="学年id" align="center" prop="stuYearId" />
|
||||||
|
<el-table-column label="学号" align="center" prop="stuNo" />
|
||||||
|
<el-table-column label="加分项" align="center" prop="ruleName" />
|
||||||
|
<el-table-column label="分数" align="center" prop="recordScore" />
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getStuByClass, getIam, delIam, addIam, updateIam, listSumScore, fdyAdd, listErrorAddRecord, deleteError, cleanCancelRecord } from "@/api/stuCQS/info-fill/iam";
|
import {
|
||||||
|
getStuByClass, getIam, delIam, addIam, updateIam, listSumScore, fdyAdd, listErrorAddRecord, deleteError,
|
||||||
|
cleanCancelRecord, checkIamList, listCheckAuditAndRecord, plusCheckRecord
|
||||||
|
} from "@/api/stuCQS/info-fill/iam";
|
||||||
import { treeStudent } from "@/api/stuCQS/basedata/student";
|
import { treeStudent } from "@/api/stuCQS/basedata/student";
|
||||||
import { listAllYear as listYear } from "@/api/stuCQS/basedata/year";
|
import { listAllYear as listYear } from "@/api/stuCQS/basedata/year";
|
||||||
import { listIamChild } from "@/api/stuCQS/basedata/cphRules";
|
import { listIamChild } from "@/api/stuCQS/basedata/cphRules";
|
||||||
@@ -172,7 +219,16 @@ export default {
|
|||||||
errorQuery: {
|
errorQuery: {
|
||||||
stuNo: null,
|
stuNo: null,
|
||||||
stuYearId: null
|
stuYearId: null
|
||||||
}
|
},
|
||||||
|
|
||||||
|
checkV: false,
|
||||||
|
checkList: [],
|
||||||
|
|
||||||
|
lookCheckV: false,
|
||||||
|
lookCheckForm: {},
|
||||||
|
auditList: [],
|
||||||
|
recordList: [],
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -201,6 +257,46 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async plusCheckRecord(row) {
|
||||||
|
let loading = fullLoading(this);
|
||||||
|
let res = await plusCheckRecord(row);
|
||||||
|
loading.close();
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$message.success(res.msg + ",请前往重新生成综测成绩");
|
||||||
|
this.listCheckAuditAndRecord();
|
||||||
|
this.checkIamList();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async listCheckAuditAndRecord() {
|
||||||
|
this.auditList = [];
|
||||||
|
this.recordList = [];
|
||||||
|
let loading = fullLoading(this);
|
||||||
|
let res = await listCheckAuditAndRecord(this.lookCheckForm);
|
||||||
|
loading.close();
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.auditList = [...res.data.auditList];
|
||||||
|
this.recordList = [...res.data.recordList];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
lookCheckVClick(row) {
|
||||||
|
this.lookCheckForm = {};
|
||||||
|
this.lookCheckForm = { ...row };
|
||||||
|
this.listCheckAuditAndRecord();
|
||||||
|
this.lookCheckV = true;
|
||||||
|
},
|
||||||
|
async checkIamList() {
|
||||||
|
this.checkList = [];
|
||||||
|
let loading = fullLoading(this);
|
||||||
|
let res = await checkIamList();
|
||||||
|
loading.close();
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.checkList = [...res.data];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
checkVClick() {
|
||||||
|
this.checkIamList();
|
||||||
|
this.checkV = true;
|
||||||
|
},
|
||||||
async cleanCancelRecord() {
|
async cleanCancelRecord() {
|
||||||
let loading = fullLoading(this);
|
let loading = fullLoading(this);
|
||||||
let res = await cleanCancelRecord();
|
let res = await cleanCancelRecord();
|
||||||
|
|||||||
Reference in New Issue
Block a user