-- fix bug

This commit is contained in:
yuping
2023-02-26 17:15:07 +08:00
parent c756810ea9
commit 2a08720d4b
3 changed files with 11 additions and 5 deletions

View File

@@ -161,12 +161,12 @@
>撤回发布</a-button
>
<a-button
v-if="record.type === 3"
v-if="record.type === 3 && checkPer(record.permissions)"
@click="baseInfo(record)"
type="link"
>管理</a-button
>
<DropDown v-if="checkPer(record.permissions)" value="授权">
<DropDown v-if="checkPer(record.permissions) && checkOwner(record.permissions)" value="授权">
<OwnerTableModelStudent
:types="[4, 5, 6]"
:id="record.id"
@@ -959,7 +959,7 @@ import { validateName } from "@/api/index1";
import CommonStudent from "@/components/student/CommonStudent";
import OwnerTableModelStudent from "@/components/student/OwnerTableModelStudent";
import DropDown from "@/components/common/DropDown";
import { checkPer } from "@/utils/utils";
import { checkPer,checkOwner } from "@/utils/utils";
export default {
name: "projectManage",
@@ -1707,6 +1707,7 @@ export default {
return {
...toRefs(state),
checkOwner,
dayjs,
handleEdit,
baseInfo,