bibi 3 years ago
parent 6bb01721f5
commit bdb5efd205

@ -219,6 +219,7 @@ export default {
addClose() { addClose() {
this.$refs.ruleForm.resetFields(); this.$refs.ruleForm.resetFields();
this.fileList = []; this.fileList = [];
this.form.imgUrls = [];
this.$emit("addClose"); this.$emit("addClose");
}, },
success() { success() {

@ -118,6 +118,7 @@ export default {
addClose() { addClose() {
this.$refs.ruleForm.resetFields(); this.$refs.ruleForm.resetFields();
this.fileList = []; this.fileList = [];
this.form.imgUrls = [];
this.$emit("addClose"); this.$emit("addClose");
}, },
success() { success() {

@ -121,6 +121,8 @@ export default {
this.$refs.ruleForm.resetFields(); this.$refs.ruleForm.resetFields();
this.fileList = []; this.fileList = [];
this.documentList = []; this.documentList = [];
this.form.coverImgUrls = [];
this.form.annexUrls = [];
this.$emit("addClose"); this.$emit("addClose");
}, },
success() { success() {

@ -110,6 +110,7 @@ export default {
addClose() { addClose() {
this.$refs.ruleForm.resetFields(); this.$refs.ruleForm.resetFields();
this.fileList = [] this.fileList = []
this.form.imgUrls = []
this.$emit('addClose'); this.$emit('addClose');
}, },
success() { success() {

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<a-drawer <a-drawer
title="活动-详情" title="资讯-详情"
:width="720" :width="720"
:visible="show" :visible="show"
:body-style="{ paddingBottom: '80px' }" :body-style="{ paddingBottom: '80px' }"
@ -9,56 +9,40 @@
> >
<div class="drawer-content"> <div class="drawer-content">
<div class="content-title"> <div class="content-title">
{{ detailData.title }} {{ detailData.title }}
</div> <a-tag color="blue">{{
<img v-for="item,index in detailData.imgList" :key='index' :src="$ImgUrl(item.url)" class="content-img"> detailData.status === 1 ? "未发布" : "已发布"
}}</a-tag>
</div>
<a-divider></a-divider>
<a-descriptions> <a-descriptions>
<a-descriptions-item label="创建时间"> <a-descriptions-item label="资讯类型">
{{ detailData.createDate }} {{ detailData.categoryName }}
</a-descriptions-item>
<a-descriptions-item label="是否显示在app上">
{{ detailData.isShow ? "是" : "否" }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="活动对象"> <a-descriptions-item label="阅读量">
{{ detailData.activityObject | activityObject }} {{ detailData.viewsNum }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="活动内容"> <a-descriptions-item label="创建人">
{{ detailData.content }} {{ detailData.createName }}
</a-descriptions-item>
<a-descriptions-item label="活动主办方">
{{ detailData.organizerName }}
</a-descriptions-item>
</a-descriptions>
<a-descriptions title="报名设置">
<a-descriptions-item label="报名开始时间">
{{ detailData.registrationStartTime }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="报名结束时间"> <a-descriptions-item label="创建时间">
{{ detailData.registrationEndTime }} {{ detailData.createDate }}
</a-descriptions-item>
<a-descriptions-item label="报名人数上限">
{{ detailData.registrationNumMax }}
</a-descriptions-item>
<a-descriptions-item label="活动地点">
{{ detailData.activityAddress }}
</a-descriptions-item> </a-descriptions-item>
</a-descriptions> </a-descriptions>
<a-descriptions title="活动设置"> <a-descriptions :column="1">
<a-descriptions-item label="活动开始时间"> <a-descriptions-item label="资讯内容">
{{ detailData.activityStartTime }} {{ detailData.content }}
</a-descriptions-item>
<a-descriptions-item label="活动结束时间">
{{ detailData.activityEndTime }}
</a-descriptions-item>
<a-descriptions-item label="活动联系人">
{{ detailData.activityContact }}
</a-descriptions-item> </a-descriptions-item>
<a-descriptions-item label="活动联系方式"> <a-descriptions-item label="公告封面图">
{{ detailData.activityTel }} <img
v-for="(item, index) in detailData.imgList"
:key="index"
:src="$ImgUrl(item.url)"
class="content-img"
/>
</a-descriptions-item> </a-descriptions-item>
</a-descriptions> </a-descriptions>
报名记录
<a-divider></a-divider>
</div> </div>
<div class="drawer-footer"> <div class="drawer-footer">
<a-button :style="{ marginRight: '8px' }" @click="detailClose"> <a-button :style="{ marginRight: '8px' }" @click="detailClose">
@ -120,8 +104,8 @@ export default {
font-size: 18px; font-size: 18px;
line-height: 25px; line-height: 25px;
} }
.content-img{ .content-img {
width: 108px; width: 108px;
height: 86px; height: 86px;
} }
</style> </style>

@ -123,6 +123,7 @@ export default {
addClose() { addClose() {
this.$refs.ruleForm.resetFields(); this.$refs.ruleForm.resetFields();
this.fileList = []; this.fileList = [];
this.form.imgUrls = [];
this.$emit("addClose"); this.$emit("addClose");
}, },
success() { success() {

@ -198,6 +198,7 @@ export default {
title: "添加轮播图", title: "添加轮播图",
}; };
this.fileList = []; this.fileList = [];
this.form.imgUrls = [];
this.form = { this.form = {
id: undefined, id: undefined,
type: undefined, type: undefined,

Loading…
Cancel
Save