-- fix 权限管理

This commit is contained in:
yuping
2023-03-08 01:07:03 +08:00
parent e3cec35d86
commit 44dd643f41
4 changed files with 45 additions and 12 deletions

View File

@@ -56,7 +56,7 @@
重置
</a-button>
</div>
<div class="batch" @click="cancelOrAuthAll">批量取消证书</div>
<div v-if="checkPer(permissions,createId)" class="batch" @click="cancelOrAuthAll">批量取消证书</div>
<div class="tableBox" style="margin-top: 20px">
<a-table
:columns="tablecolumns"
@@ -94,6 +94,7 @@ import * as api from "@/api/index1";
import OrgClass from "@/components/project/OrgClass";
import { message } from "ant-design-vue";
import dayjs from "dayjs";
import {checkPer} from "@/utils/utils";
export default {
name: "TableCertificateStudent",
components: {
@@ -113,6 +114,14 @@ export default {
type: Boolean,
default: false,
},
createId: {
type: Number,
default: null,
},
permissions: {
type: String,
default: null,
},
},
setup(props, ctx) {
const state = reactive({
@@ -171,7 +180,7 @@ export default {
customRender: (record) => {
// console.log(text.record.checked1);
return (
<div>
checkPer(props.permissions,props.createId)?<div>
{record.record.status === -1 ? (
<div class="opa">
<span>证书已取消</span>
@@ -186,7 +195,7 @@ export default {
<span>取消证书</span>
</div>
)}
</div>
</div>:''
);
},
},
@@ -323,6 +332,7 @@ export default {
stuCertList,
search,
reset,
checkPer,
onSelectChange,
changePaginationStu,
returnClick,