清除审核状态不正确的加分记录
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
export function cleanCancelRecord() {
|
||||
return request({
|
||||
url: '/comprehensive/auditDetails/cleanCancelRecord',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteError(id) {
|
||||
return request({
|
||||
url: '/system/iam/deleteError/' + id,
|
||||
@@ -7,61 +14,61 @@ export function deleteError(id) {
|
||||
})
|
||||
}
|
||||
|
||||
export function listErrorAddRecord(params = {}){
|
||||
export function listErrorAddRecord(params = {}) {
|
||||
return request({
|
||||
method: 'GET',
|
||||
url:"/system/iam/listErrorAddRecord",
|
||||
url: "/system/iam/listErrorAddRecord",
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
export function listIamByStuNoYear(params = {}){
|
||||
export function listIamByStuNoYear(params = {}) {
|
||||
return request({
|
||||
method: 'GET',
|
||||
url:"/system/iam/listIamByStuNoYear",
|
||||
url: "/system/iam/listIamByStuNoYear",
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
export function getOwnRecord(year,query={}){
|
||||
export function getOwnRecord(year, query = {}) {
|
||||
return request({
|
||||
url:"/system/iam/getOwnRecord/"+year,
|
||||
method:"get",
|
||||
params:query
|
||||
url: "/system/iam/getOwnRecord/" + year,
|
||||
method: "get",
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function fdyAdd(param){
|
||||
export function fdyAdd(param) {
|
||||
return request({
|
||||
method:"post",
|
||||
url:"/system/iam/CounsellorAdd",
|
||||
data:param
|
||||
method: "post",
|
||||
url: "/system/iam/CounsellorAdd",
|
||||
data: param
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function getStuByClass(id){
|
||||
export function getStuByClass(id) {
|
||||
return request({
|
||||
url:"/system/student/list/name?classId="+id,
|
||||
method:"get"
|
||||
url: "/system/student/list/name?classId=" + id,
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
//学生提交
|
||||
export function stuAdd(data){
|
||||
export function stuAdd(data) {
|
||||
return request({
|
||||
url:"/system/iam/stuAdd",
|
||||
method:"post",
|
||||
data:data
|
||||
url: "/system/iam/stuAdd",
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
//连表查询
|
||||
export function listLeftJoin(query){
|
||||
export function listLeftJoin(query) {
|
||||
return request({
|
||||
url:"/system/iam/list",
|
||||
method:"get",
|
||||
params:query
|
||||
url: "/system/iam/list",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
@@ -84,7 +91,7 @@ export function listSumScore(query) {
|
||||
})
|
||||
}
|
||||
//导出思想品德
|
||||
export function toExport(params={}) {
|
||||
export function toExport(params = {}) {
|
||||
return request({
|
||||
url: '/system/teacher/exportsxzz',
|
||||
method: 'get',
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</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"
|
||||
@click="cleanCancelRecord">清理审核状态异常的加分项</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -78,7 +80,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getStuByClass, getIam, delIam, addIam, updateIam, listSumScore, fdyAdd, listErrorAddRecord, deleteError } from "@/api/stuCQS/info-fill/iam";
|
||||
import { getStuByClass, getIam, delIam, addIam, updateIam, listSumScore, fdyAdd, listErrorAddRecord, deleteError, cleanCancelRecord } from "@/api/stuCQS/info-fill/iam";
|
||||
import { treeStudent } from "@/api/stuCQS/basedata/student";
|
||||
import { listAllYear as listYear } from "@/api/stuCQS/basedata/year";
|
||||
import { listIamChild } from "@/api/stuCQS/basedata/cphRules";
|
||||
@@ -199,12 +201,20 @@ export default {
|
||||
|
||||
},
|
||||
methods: {
|
||||
async cleanCancelRecord() {
|
||||
let loading = fullLoading(this);
|
||||
let res = await cleanCancelRecord();
|
||||
loading.close();
|
||||
if (res.code == 200) {
|
||||
this.$message.success(res.msg + ",请前往重新生成综测成绩");
|
||||
}
|
||||
},
|
||||
async deleteError(row) {
|
||||
let id = row.id;
|
||||
let loading = fullLoading(this);
|
||||
let res = await deleteError(id);
|
||||
loading.close();
|
||||
if(res.code == 200){
|
||||
if (res.code == 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.listErrorAddRecord();
|
||||
this.getList();
|
||||
|
||||
Reference in New Issue
Block a user