mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
t
This commit is contained in:
@@ -12,29 +12,34 @@
|
||||
</div>
|
||||
<template v-if="noticeChecked">
|
||||
<p>公告内容</p>
|
||||
<!-- 文本 -->
|
||||
<div
|
||||
v-if="!editOn"
|
||||
style="height: 120px; border: 1px solid rgb(217, 217, 217"
|
||||
>
|
||||
<!-- 预览 -->
|
||||
<template v-if="!editOn">
|
||||
<div style="height: 120px; border: 1px solid rgb(217, 217, 217">
|
||||
{{ noticeContent }}
|
||||
</div>
|
||||
<div class="btn-content">
|
||||
<a-button type="primary" @click="handleEdit">编辑</a-button>
|
||||
</div>
|
||||
</template>
|
||||
<!-- 编辑 -->
|
||||
<template v-if="editOn">
|
||||
<div style="height: 120px; border: 1px solid rgb(217, 217, 217">
|
||||
{{ noticeContent }}
|
||||
</div>
|
||||
<a-textarea
|
||||
v-if="editOn"
|
||||
v-model:value="noticeContent"
|
||||
:maxlength="150"
|
||||
placeholder="公告信息最多输入150个字"
|
||||
style="margin-top: -10px; height: 120px"
|
||||
/>
|
||||
<!-- 按钮 -->
|
||||
<div v-if="!editOn" class="btn-content">
|
||||
<a-button type="primary" @click="handleEdit">编辑</a-button>
|
||||
</div>
|
||||
<div v-if="editOn" class="btn-content">
|
||||
<div class="btn-content">
|
||||
<a-button class="cancel" @click="handleCancel">取消</a-button>
|
||||
<a-button type="primary" @click="pubNotice" class="sure">发布</a-button>
|
||||
<a-button type="primary" @click="pubNotice" class="sure">
|
||||
发布
|
||||
</a-button>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
</div>
|
||||
</template>s
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user