|
@@ -7,7 +7,7 @@
|
|
|
:announcement-id="editAnnouncementId"
|
|
|
@save-success="handleFormSaveSuccess"
|
|
|
/>
|
|
|
-
|
|
|
+
|
|
|
<!-- 公告列表 -->
|
|
|
<avue-crud
|
|
|
v-if="!announcementFormVisible"
|
|
@@ -29,17 +29,13 @@
|
|
|
@refresh-change="refreshChange"
|
|
|
@on-load="onLoad"
|
|
|
>
|
|
|
- <template slot="menuLeft">
|
|
|
+ <template slot="menu" slot-scope="{ row, index }">
|
|
|
<el-button
|
|
|
- type="primary"
|
|
|
+ type="text"
|
|
|
size="small"
|
|
|
icon="el-icon-view"
|
|
|
- plain
|
|
|
- @click="handleDetail"
|
|
|
- v-if="selectionList.length === 1"
|
|
|
- >
|
|
|
- 查看详情
|
|
|
- </el-button>
|
|
|
+ @click="handleDetail(row)"
|
|
|
+ >详情</el-button>
|
|
|
</template>
|
|
|
|
|
|
<!-- 客户黑名单字段自定义插槽 -->
|
|
@@ -92,35 +88,9 @@
|
|
|
</avue-crud>
|
|
|
|
|
|
<!-- 详情对话框 -->
|
|
|
- <el-dialog title="公告详情" :visible.sync="detailVisible" width="60%" :close-on-click-modal="false">
|
|
|
+ <el-dialog title="公告详情" :visible.sync="detailVisible" append-to-body width="60%" :close-on-click-modal="false">
|
|
|
<div class="detail-content" v-if="currentDetail.id">
|
|
|
- <div class="detail-info">
|
|
|
- <p><strong>公告标题:</strong>{{ currentDetail.title }}</p>
|
|
|
- <p><strong>分类:</strong>{{ currentDetail.categoryName }}</p>
|
|
|
- <p><strong>组织:</strong>{{ currentDetail.orgName }}</p>
|
|
|
- <p><strong>创建时间:</strong>{{ currentDetail.createTime }}</p>
|
|
|
- <p><strong>可见角色:</strong>
|
|
|
- <span v-for="role in parseRolesMask(currentDetail.visibleRoles)" :key="role.value">
|
|
|
- <el-tag :type="getRoleTagType(role.value)" size="mini" style="margin-right: 4px;">
|
|
|
- {{ role.label }}
|
|
|
- </el-tag>
|
|
|
- </span>
|
|
|
- </p>
|
|
|
- <p><strong>状态:</strong>
|
|
|
- <el-tag :type="getStatusTagType(currentDetail.status)">
|
|
|
- {{ getStatusLabel(currentDetail.status) }}
|
|
|
- </el-tag>
|
|
|
- </p>
|
|
|
- <!-- 显示客户黑名单信息 -->
|
|
|
- <p v-if="currentDetail.customerBlacklist && currentDetail.customerBlacklist.length > 0">
|
|
|
- <strong>客户黑名单:</strong>
|
|
|
- <span v-for="(customer) in currentDetail.customerBlacklist" :key="customer.id">
|
|
|
- <el-tag size="mini" style="margin-right: 4px; margin-bottom: 4px;">
|
|
|
- {{ getCustomerDisplayName(customer) }}
|
|
|
- </el-tag>
|
|
|
- </span>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
+ <!-- 仅展示富文本内容 -->
|
|
|
<div class="detail-body" v-html="currentDetail.content"></div>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|