mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 16:26:45 +08:00
-- fix 权限管理
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user