mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 17:55:39 +08:00
--demand 添加权限
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<!-- <div class="split"></div> -->
|
||||
<div class="noticeTitle">
|
||||
<!-- <div class="notitle"><span class="titlespan">公告</span></div> -->
|
||||
<div v-button-per="permissions" class="switch">
|
||||
<div v-if="checkPer(permissions)" class="switch">
|
||||
<a-switch
|
||||
v-model:checked="noticeChecked"
|
||||
@click="noticeFlag"
|
||||
@@ -25,7 +25,7 @@
|
||||
style="margin-top: -10px; height: 220px;border:1px solid #fff; resize: none;background-color: #fff;color:#666;"
|
||||
/>
|
||||
<!-- <pre>{{noticeContent1}}</pre> -->
|
||||
<div class="btn-content" v-button-per="permissions">
|
||||
<div class="btn-content" v-if="checkPer(permissions)">
|
||||
<a-button type="primary" @click="handleEdit">编辑</a-button>
|
||||
</div>
|
||||
</template>
|
||||
@@ -49,7 +49,7 @@
|
||||
placeholder="公告信息最多输入150个字"
|
||||
style="margin-top: -10px; height: 160px;"
|
||||
/>
|
||||
<div class="btn-content" v-button-per="permissions">
|
||||
<div class="btn-content" v-if="checkPer(permissions)">
|
||||
<a-button class="cancel" @click="handleCancel">取消</a-button>
|
||||
<a-button type="primary" @click="pubNotice" class="sure">
|
||||
发布
|
||||
@@ -66,6 +66,8 @@ import { editProj, getTask } from "../../api/indexTaskadd";
|
||||
// import { editProj } from "../../api/indexTaskadd";
|
||||
import { publishNotice } from "../../api/indexNotice";
|
||||
import emitter from "../../utils/bus";
|
||||
import {checkPer} from "@/utils/utils";
|
||||
|
||||
export default {
|
||||
name: "NoticePub",
|
||||
props: {
|
||||
@@ -159,6 +161,7 @@ export default {
|
||||
return {
|
||||
...toRefs(state),
|
||||
getTaskInfo,
|
||||
checkPer,
|
||||
pubNotice,
|
||||
handleEdit,
|
||||
handleCancel,
|
||||
|
||||
Reference in New Issue
Block a user