案例所有人可见和判断没有案例操作

This commit is contained in:
NiSen
2023-06-26 12:21:45 +08:00
parent 914268558a
commit b1bebb8ef1
2 changed files with 16 additions and 12 deletions

View File

@@ -292,7 +292,7 @@
</a-menu-item> --> </a-menu-item> -->
<!-- 案例修改 --> <!-- 案例修改 -->
<!-- <a-sub-menu key="sub12" @titleClick="titleClick" v-if="checkMenu('casemanage')"> --> <!-- <a-sub-menu key="sub12" @titleClick="titleClick" v-if="checkMenu('casemanage')"> -->
<a-sub-menu key="sub12" @titleClick="titleClick" v-if="checkMenu('casemanage')"> <a-sub-menu key="sub12" @titleClick="titleClick" >
<template #icon> <template #icon>
<div class="imgBox"> <div class="imgBox">
<img <img

View File

@@ -71,7 +71,7 @@ import {
} from "@/api/case"; } from "@/api/case";
import dialog from "@/utils/dialog"; import dialog from "@/utils/dialog";
import InitiateRecommend from "@/components/drawers/InitiateRecommend.vue"; import InitiateRecommend from "@/components/drawers/InitiateRecommend.vue";
import { checkMenu } from "@/utils/utils";
const column = [ const column = [
{ {
title: "推荐人", title: "推荐人",
@@ -153,17 +153,18 @@ const column = [
return text ? text : "-"; return text ? text : "-";
}, },
}, },
{
title: "操作",
width: "20%",
className: "h",
dataIndex: "id",
key: "id",
fixed: "right",
align: "center",
slots: { customRender: "operation" },
},
]; ];
const authenticationColumn = {
title: "操作",
width: "20%",
className: "h",
dataIndex: "id",
key: "id",
fixed: "right",
align: "center",
slots: { customRender: "operation" },
}
const state = reactive({ const state = reactive({
data: [], data: [],
total: 0, total: 0,
@@ -209,6 +210,9 @@ onMounted(() => {
if (isOpen) { if (isOpen) {
newNext.value = true; newNext.value = true;
} }
if (checkMenu('casemanage')) {
column.push(authenticationColumn)
}
}); });
const { resetFields } = Form.useForm(searchData, {}); const { resetFields } = Form.useForm(searchData, {});