mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 23:36:46 +08:00
--demand 添加权限
This commit is contained in:
@@ -105,16 +105,16 @@
|
||||
<template #bodyCell="{ record, column }">
|
||||
<template v-if="column.key === 'operation'">
|
||||
<a-space>
|
||||
<a-button v-button-per="record.permissions" v-if="record.state==='草稿'" @click="showPub(record)" type="link">发布</a-button>
|
||||
<a-button v-button-per="record.permissions" v-if="record.state==='草稿'" @click="getLearnPathInfo(record.id)" type="link">编辑</a-button>
|
||||
<a-button v-button-per="record.permissions" v-if="record.state==='已发布'" @click="getLearnPathInfo(record.id)" type="link">编辑</a-button>
|
||||
<a-button v-if="record.state==='草稿' && checkPer(record.permissions)" @click="showPub(record)" type="link">发布</a-button>
|
||||
<a-button v-if="record.state==='草稿' && checkPer(record.permissions)" @click="getLearnPathInfo(record.id)" type="link">编辑</a-button>
|
||||
<a-button v-if="record.state==='已发布' && checkPer(record.permissions)" @click="getLearnPathInfo(record.id)" type="link">编辑</a-button>
|
||||
<a-button @click="manage(record.id)" type="link">管理</a-button>
|
||||
<DropDown v-button-per="record.permissions" value="授权">
|
||||
<DropDown v-if="checkPer(record.permissions)" value="授权">
|
||||
<OwnerTableModelStudent :types="[7,8,9]" :id="record.id" :type="9">权限名单</OwnerTableModelStudent>
|
||||
<CommonStudent :type="7" :id="record.id" title="查看权">查看权</CommonStudent>
|
||||
<CommonStudent :type="8" :id="record.id" title="管理权">管理权</CommonStudent>
|
||||
</DropDown>
|
||||
<DropDown v-button-per="record.permissions" value="更多">
|
||||
<DropDown v-if="checkPer(record.permissions)" value="更多">
|
||||
<a-button @click="showCopyModal(record.id)" type="link">复制</a-button>
|
||||
<a-button @click="showDeleteModal(record.id)" type="link" danger>删除</a-button>
|
||||
<a-button v-if="record.state==='已发布'" @click="showBackModal(record.id)" type="link">撤回</a-button>
|
||||
@@ -225,7 +225,7 @@
|
||||
<!-- <img class="im" src="../../assets/px.jpg" />
|
||||
<img class="im" src="../../assets/px.jpg" />
|
||||
<img class="im" src="../../assets/px.jpg" /> -->
|
||||
|
||||
|
||||
<div
|
||||
@click="chooseImg(item)"
|
||||
v-for="(item, index) in imgData"
|
||||
@@ -354,7 +354,7 @@
|
||||
<!-- <img class="im" src="../../assets/px.jpg" />
|
||||
<img class="im" src="../../assets/px.jpg" />
|
||||
<img class="im" src="../../assets/px.jpg" /> -->
|
||||
|
||||
|
||||
<div
|
||||
@click="chooseImg2(item)"
|
||||
v-for="(item, index) in imgData"
|
||||
@@ -730,6 +730,7 @@ import OrgClass from "@/components/project/OrgClass";
|
||||
import NameInput from "@/components/project/NameInput";
|
||||
import {validateName} from "@/api/index1";
|
||||
import DropDown from "@/components/common/DropDown";
|
||||
import {checkPer} from "@/utils/utils";
|
||||
|
||||
|
||||
export default {
|
||||
@@ -1125,6 +1126,7 @@ export default {
|
||||
pubtime: value.publishTime ? value.publishTime : "-",
|
||||
cretime: value.createTime ? value.createTime : "-",
|
||||
remark: value.remark ? value.remark : "-",
|
||||
permissions:value.permissions
|
||||
};
|
||||
array.push(obj);
|
||||
});
|
||||
@@ -1594,6 +1596,7 @@ export default {
|
||||
searchLearnPath,
|
||||
resetLearnPath,
|
||||
showLearnBgMore,
|
||||
checkPer,
|
||||
closeLearnBgMore,
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user