feat:增加总积分

This commit is contained in:
lixg
2023-02-09 09:35:07 +08:00
parent 2a026d81ce
commit 6272bb3223
8 changed files with 250 additions and 19 deletions

View File

@@ -179,7 +179,7 @@ export default {
<div
class="opa"
onClick={() => {
updateStuCert(record);
cancelOrAuth(record);
}}
>
<span>取消证书</span>
@@ -213,6 +213,7 @@ export default {
id: props.ACertificateCheckId,
pid: props.projectId,
size: state.pageSize,
current: state.currentPage,
};
state.tableDataTotal = -1;
api
@@ -244,15 +245,15 @@ export default {
state.selectTime = null;
};
//取消授权
const updateStuCert = (text) => {
//取消证书
const cancelOrAuth = (text) => {
console.log("text", text);
let obj = {
id: text.record.id,
ids: [text.record.id],
status: -1,
};
api
.updateStuCert(obj)
.cancelOrAuth(obj)
.then((res) => {
console.log("取消证书成功", res);
if (res.data.code === 200) {