Commit 8e8f6424 authored by 罗超's avatar 罗超

1

parent ed291154
...@@ -706,7 +706,7 @@ export default { ...@@ -706,7 +706,7 @@ export default {
if (res.data.data && res.data.data.BottomNavIsShadow) { if (res.data.data && res.data.data.BottomNavIsShadow) {
this.mallMsg.BottomNavIsShadow = res.data.data.BottomNavIsShadow; this.mallMsg.BottomNavIsShadow = res.data.data.BottomNavIsShadow;
} }
if (res.data.data && res.data.data.IsShowIcon) { if (res.data.data) {
this.mallMsg.IsShowIcon = res.data.data.IsShowIcon; this.mallMsg.IsShowIcon = res.data.data.IsShowIcon;
} }
this.mallMsg.BottomTagList = res.data.data.BottomTagList; this.mallMsg.BottomTagList = res.data.data.BottomTagList;
......
<style> <style>
.activityMain { .activityMain {
background: #fff; background: #fff;
width: 740px; width: 740px;
min-height: 500px; min-height: 500px;
margin-top:10px; margin-top: 10px;
} }
.activityTitle { .activityTitle {
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
color: #000; color: #000;
} }
.activityContent { .activityContent {
font-size: 14px; font-size: 14px;
line-height: 24px; line-height: 24px;
color: #333; color: #333;
margin: 20px 0; margin: 20px 0;
} }
.activityContent img{ .activityContent img {
width: 100% !important; width: 100% !important;
height: 100% !important; height: 100% !important;
}
}
.activeImgContent { .activeImgContent {
width: 100%; width: 100%;
} }
.activeImgContent img { .activeImgContent img {
max-width: 100%; max-width: 100%;
} }
.activityFlex { .activityFlex {
display: flex; display: flex;
padding: 20px; padding: 20px;
border-bottom: 1px solid #E1E4E6; border-bottom: 1px solid #e1e4e6;
position: relative; position: relative;
} }
.aImg { .aImg {
width: 88px; width: 88px;
height: 88px; height: 88px;
position: relative; position: relative;
} }
.aUserName { .aUserName {
margin: 5px 0; margin: 5px 0;
color: #2d64b3; color: #2d64b3;
text-align: center; text-align: center;
} }
.active_NameLeft { .active_NameLeft {
flex-shrink: 0; flex-shrink: 0;
margin-right: 20px; margin-right: 20px;
} }
.activeComment { .activeComment {
width: 100%; width: 100%;
background-color: #f7f8fa; background-color: #f7f8fa;
margin-top: 10px; margin-top: 10px;
padding: 15px; padding: 15px;
} }
.activeComList { .activeComList {
display: flex; display: flex;
padding-bottom: 10px; padding-bottom: 10px;
border-bottom: 1px #d7d7d7 dotted; border-bottom: 1px #d7d7d7 dotted;
display: flex; display: flex;
margin-bottom: 10px; margin-bottom: 10px;
position: relative; position: relative;
} }
.compentImg { .compentImg {
width: 32px; width: 32px;
height: 32px; height: 32px;
padding: 1px; padding: 1px;
border: 1px solid #ccc; border: 1px solid #ccc;
flex-shrink: 0; flex-shrink: 0;
} }
.compentRight { .compentRight {
color: #333; color: #333;
font-size: 14px; font-size: 14px;
line-height: 20px; line-height: 20px;
margin-left: 10px; margin-left: 10px;
width: 100%; width: 100%;
} }
.compentName { .compentName {
color: #2d64b3; color: #2d64b3;
} }
.commonDate { .commonDate {
font-size: 12px; font-size: 12px;
color: #999; color: #999;
} }
.activeDel { .activeDel {
width: 25px; width: 25px;
position: absolute; position: absolute;
right: -8px; right: -8px;
top: -8px; top: -8px;
display: none; display: none;
cursor: pointer; cursor: pointer;
} }
.compentDel { .compentDel {
width: 25px; width: 25px;
position: absolute; position: absolute;
right: 7px; right: 7px;
top: 4px; top: 4px;
display: none; display: none;
cursor: pointer; cursor: pointer;
} }
.activeDel img, .activeDel img,
.compentDel img { .compentDel img {
width: 100%; width: 100%;
} }
.activityFlex:hover .compentDel { .activityFlex:hover .compentDel {
display: block; display: block;
} }
.activeComList:hover .activeDel { .activeComList:hover .activeDel {
display: block; display: block;
} }
.activeLouzhu { .activeLouzhu {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
} }
.showMoreCompent { .showMoreCompent {
width: 100%; width: 100%;
text-align: right; text-align: right;
color: #333; color: #333;
font-size: 13px; font-size: 13px;
margin-top: 15px; margin-top: 15px;
color: #2d64b3; color: #2d64b3;
} }
.activeInfoMain { .activeInfoMain {
width: 100%; width: 100%;
background-color: #f7f8fa; background-color: #f7f8fa;
margin-top: 10px; margin-top: 10px;
padding: 15px; padding: 15px;
border-radius: 10px; border-radius: 10px;
font-size: 14px; font-size: 14px;
color: #333; color: #333;
} }
.activeSpace { .activeSpace {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-bottom: 10px; margin-bottom: 10px;
} }
.active_LeftTitle { .active_LeftTitle {
width: 100px; width: 100px;
text-align: right; text-align: right;
} }
.activeRightCon {
width: 140px;
text-align: left;
}
.activeRightCon {
width: 140px;
text-align: left;
}
</style> </style>
<template> <template>
<div class="activityInfo"> <div class="activityInfo">
<div class="head-title"> <div class="head-title">
<span @click="CommonJump('recruitStick')" class="blue point">招募贴</span> / 招募贴详情 <span @click="CommonJump('recruitStick')" class="blue point">招募贴</span>
/ 招募贴详情
</div> </div>
<div class="activityMain"> <div class="activityMain">
<div class="activityFlex"> <div class="activityFlex">
<div class="active_NameLeft"> <div class="active_NameLeft">
<div class="aImg"> <div class="aImg">
<img style="width:100%;height:100%;" :src="dataList.Photo" /> <img style="width: 100%; height: 100%" :src="dataList.Photo" />
<img src="../../assets/img/userman/louzhu.png" class="activeLouzhu" alt="" /> <img
src="../../assets/img/userman/louzhu.png"
class="activeLouzhu"
alt=""
/>
</div> </div>
<div class="aUserName">{{dataList.UserName}}</div> <div class="aUserName">{{ dataList.UserName }}</div>
</div> </div>
<div style="width: 600px;"> <div style="width: 600px">
<div class="activityTitle"> <div class="activityTitle">
<template v-if="labelArr&&labelArr.length>0"> <template v-if="labelArr && labelArr.length > 0">
<el-tag v-for="(tag,index) in labelArr" size="mini" :key="index"> <el-tag v-for="(tag, index) in labelArr" size="mini" :key="index">
{{tag}} {{ tag }}
</el-tag> </el-tag>
</template> </template>
<span style="margin-left:5px;">{{dataList.ActivityTitle}}</span> <span style="margin-left: 5px">{{ dataList.ActivityTitle }}</span>
</div> </div>
<div class="activityContent" v-html="dataList.Content"></div> <div class="activityContent" v-html="dataList.Content"></div>
<div style="display:flex;justify-content:space-between;margin-bottom:10px;"> <div
<div class="commonDate">回复数:{{dataList.ReplyNum}}</div> style="
<div class="commonDate">{{dataList.CreateDate}}</div> display: flex;
justify-content: space-between;
margin-bottom: 10px;
"
>
<div class="commonDate">回复数:{{ dataList.ReplyNum }}</div>
<div class="commonDate">{{ dataList.CreateDate }}</div>
</div> </div>
<div class="activeImgContent" v-for="(item,index) in dataList.ImageList" :key="index"> <div
class="activeImgContent"
v-for="(item, index) in dataList.ImageList"
:key="index"
>
<img :src="item" alt="" /> <img :src="item" alt="" />
</div> </div>
<div class="activeInfoMain"> <div class="activeInfoMain" v-if="dataList.IsTieZi === 0">
<div class="activeSpace"> <div class="activeSpace">
<div style="display:flex;"> <div style="display: flex">
<div class="active_LeftTitle">是否开启报名:</div> <div class="active_LeftTitle">是否开启报名:</div>
<div class="activeRightCon">{{dataList.IsOpenEnroll==1?'是':'否'}}</div> <div class="activeRightCon">
{{ dataList.IsOpenEnroll == 1 ? "是" : "否" }}
</div>
</div> </div>
<div style="display:flex;"> <div style="display: flex">
<div class="active_LeftTitle">截止报名日期:</div> <div class="active_LeftTitle">截止报名日期:</div>
<div class="activeRightCon">{{dataList.Deadline}}</div> <div class="activeRightCon">{{ dataList.Deadline }}</div>
</div> </div>
</div> </div>
<div class="activeSpace"> <div class="activeSpace">
<div style="display:flex;"> <div style="display: flex">
<div class="active_LeftTitle">活动开始时间:</div> <div class="active_LeftTitle">活动开始时间:</div>
<div class="activeRightCon">{{dataList.StartTime}}</div> <div class="activeRightCon">{{ dataList.StartTime }}</div>
</div> </div>
<div style="display:flex;"> <div style="display: flex">
<div class="active_LeftTitle">活动结束时间:</div> <div class="active_LeftTitle">活动结束时间:</div>
<div class="activeRightCon">{{dataList.EndTime}}</div> <div class="activeRightCon">{{ dataList.EndTime }}</div>
</div> </div>
</div> </div>
<div class="activeSpace"> <div class="activeSpace">
<div style="display:flex;" v-if="dataList.Distinguish==1"> <div style="display: flex" v-if="dataList.Distinguish == 1">
<div class="active_LeftTitle">总数量:</div> <div class="active_LeftTitle">总数量:</div>
<div class="activeRightCon">{{dataList.ManNum}}</div> <div class="activeRightCon">{{ dataList.ManNum }}</div>
</div> </div>
<div style="display:flex;" v-if="dataList.Distinguish==0"> <div style="display: flex" v-if="dataList.Distinguish == 0">
<div class="active_LeftTitle">男数量:</div> <div class="active_LeftTitle">男数量:</div>
<div class="activeRightCon">{{dataList.ManNum}}</div> <div class="activeRightCon">{{ dataList.ManNum }}</div>
</div> </div>
<div style="display:flex;" v-if="dataList.Distinguish==0"> <div style="display: flex" v-if="dataList.Distinguish == 0">
<div class="active_LeftTitle">女数量:</div> <div class="active_LeftTitle">女数量:</div>
<div class="activeRightCon">{{dataList.WoManNum}}</div> <div class="activeRightCon">{{ dataList.WoManNum }}</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div> <div>
<div class="activityFlex" v-for="(subItem,cindex) in compentList" :key="cindex"> <div
class="activityFlex"
v-for="(subItem, cindex) in compentList"
:key="cindex"
>
<div class="active_NameLeft"> <div class="active_NameLeft">
<div class="aImg"> <div class="aImg">
<img style="width:100%;height:100%;" :src="subItem.Photo" /> <img style="width: 100%; height: 100%" :src="subItem.Photo" />
<img src="../../assets/img/userman/louzhu.png" v-if="subItem.UserId==dataList.UserId" class="activeLouzhu" <img
alt="" /> src="../../assets/img/userman/louzhu.png"
v-if="subItem.UserId == dataList.UserId"
class="activeLouzhu"
alt=""
/>
</div> </div>
<div class="aUserName">{{subItem.UserName}}</div> <div class="aUserName">{{ subItem.UserName }}</div>
</div> </div>
<div style="width:100%;"> <div style="width: 100%">
<div class="activityContent" style="margin-top:0;"> <div class="activityContent" style="margin-top: 0">
{{subItem.Content}} {{ subItem.Content }}
</div> </div>
<div style="text-align:right;margin-bottom:10px;"> <div style="text-align: right; margin-bottom: 10px">
<span class="commonDate">{{subItem.CreateDate}}</span> <span class="commonDate">{{ subItem.CreateDate }}</span>
</div> </div>
<div class="activeImgContent" v-for="(item,index) in subItem.ImageList" :key="index"> <div
class="activeImgContent"
v-for="(item, index) in subItem.ImageList"
:key="index"
>
<img :src="item" alt="" /> <img :src="item" alt="" />
</div> </div>
<div class="activeComment" v-if="subItem.ReplyNum>0"> <div class="activeComment" v-if="subItem.ReplyNum > 0">
<div class="activeComList" v-for="(cItem,cindex) in subItem.ReplyList" :key="cindex"> <div
class="activeComList"
v-for="(cItem, cindex) in subItem.ReplyList"
:key="cindex"
>
<div class="compentImg"> <div class="compentImg">
<img style="width:100%;height:100%;" :src="cItem.Photo" alt="" /> <img
style="width: 100%; height: 100%"
:src="cItem.Photo"
alt=""
/>
</div> </div>
<div class="compentRight"> <div class="compentRight">
<div> <div>
<span class="compentName">{{cItem.UserName}}:</span>{{cItem.Content}} <span class="compentName">{{ cItem.UserName }}:</span
>{{ cItem.Content }}
</div> </div>
<div style="text-align:right;"> <div style="text-align: right">
<span class="commonDate">{{cItem.CreateDate}}</span> <span class="commonDate">{{ cItem.CreateDate }}</span>
</div> </div>
</div> </div>
<div class="activeDel" @click="delCompent(cItem)"> <div class="activeDel" @click="delCompent(cItem)">
<img src="../../assets/img/userman/del.png" alt="" /> <img src="../../assets/img/userman/del.png" alt="" />
</div> </div>
</div> </div>
<div class="showMoreCompent" v-if="subItem.ReplyNum>4"> <div class="showMoreCompent" v-if="subItem.ReplyNum > 4">
<span style="cursor:pointer;" @click="getCompentItem(subItem)">查看更多{{subItem.ReplyNum}}条评论</span> <span style="cursor: pointer" @click="getCompentItem(subItem)"
>查看更多{{ subItem.ReplyNum }}条评论</span
>
</div> </div>
</div> </div>
</div> </div>
...@@ -285,180 +323,216 @@ ...@@ -285,180 +323,216 @@
<img src="../../assets/img/userman/del.png" alt="" /> <img src="../../assets/img/userman/del.png" alt="" />
</div> </div>
</div> </div>
<el-pagination style="text-align:center" background @current-change="handleCurrentChange" <el-pagination
:page-size="comMsg.pageSize" layout="prev, pager, next" :total="pageCount"> style="text-align: center"
background
@current-change="handleCurrentChange"
:page-size="comMsg.pageSize"
layout="prev, pager, next"
:total="pageCount"
>
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
<el-dialog title="查看评论" :visible.sync="showCompoent" width="800px"> <el-dialog title="查看评论" :visible.sync="showCompoent" width="800px">
<div class="activityFlex" style="max-height:500px;overflow:scroll;"> <div class="activityFlex" style="max-height: 500px; overflow: scroll">
<div class="active_NameLeft"> <div class="active_NameLeft">
<div class="aImg"> <div class="aImg">
<img style="width:100%;height:100%;" :src="replyObj.Photo" /> <img style="width: 100%; height: 100%" :src="replyObj.Photo" />
<img src="../../assets/img/userman/louzhu.png" v-if="replyObj.UserId==dataList.UserId" class="activeLouzhu" <img
alt="" /> src="../../assets/img/userman/louzhu.png"
v-if="replyObj.UserId == dataList.UserId"
class="activeLouzhu"
alt=""
/>
</div> </div>
<div class="aUserName">{{replyObj.UserName}}</div> <div class="aUserName">{{ replyObj.UserName }}</div>
</div> </div>
<div style="width:100%;"> <div style="width: 100%">
<div class="activityContent" style="margin-top:0;"> <div class="activityContent" style="margin-top: 0">
{{replyObj.Content}} {{ replyObj.Content }}
</div> </div>
<div style="text-align:right;margin-bottom:10px;"> <div style="text-align: right; margin-bottom: 10px">
<span class="commonDate">{{replyObj.CreateDate}}</span> <span class="commonDate">{{ replyObj.CreateDate }}</span>
</div> </div>
<div class="activeImgContent" v-if="replyObj.ImageList.length>0" v-for="(Iitem,Iindex) in replyObj.ImageList" <div
:key="Iindex"> class="activeImgContent"
v-if="replyObj.ImageList.length > 0"
v-for="(Iitem, Iindex) in replyObj.ImageList"
:key="Iindex"
>
<img :src="Iitem" alt="" /> <img :src="Iitem" alt="" />
</div> </div>
<div class="activeComment"> <div class="activeComment">
<div class="activeComList" v-for="(rItem,rIndex) in replayList" :key="rIndex"> <div
class="activeComList"
v-for="(rItem, rIndex) in replayList"
:key="rIndex"
>
<div class="compentImg"> <div class="compentImg">
<img style="width:100%;height:100%;" :src="rItem.Photo" alt="" /> <img
style="width: 100%; height: 100%"
:src="rItem.Photo"
alt=""
/>
</div> </div>
<div class="compentRight"> <div class="compentRight">
<div> <div>
<span class="compentName">{{rItem.UserName}}:</span> <span class="compentName">{{ rItem.UserName }}:</span>
{{rItem.Content}} {{ rItem.Content }}
</div> </div>
<div style="text-align:right;"> <div style="text-align: right">
<span class="commonDate">{{rItem.CreateDate}}</span> <span class="commonDate">{{ rItem.CreateDate }}</span>
</div> </div>
</div> </div>
<div class="activeDel" @click="delCompent(rItem)"> <div class="activeDel" @click="delCompent(rItem)">
<img src="../../assets/img/userman/del.png" alt="" /> <img src="../../assets/img/userman/del.png" alt="" />
</div> </div>
</div> </div>
<el-pagination style="text-align:center;padding:0;margin-top:15px;" background <el-pagination
@current-change="handleCurrentReplay" :page-size="replayMsg.pageSize" layout="prev, pager, next" style="text-align: center; padding: 0; margin-top: 15px"
:total="replayCount"> background
@current-change="handleCurrentReplay"
:page-size="replayMsg.pageSize"
layout="prev, pager, next"
:total="replayCount"
>
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="danger" size="small" @click="showCompoent = false">取消</el-button> <el-button type="danger" size="small" @click="showCompoent = false"
>取消</el-button
>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
msg: { msg: {
ActivityId: 0 ActivityId: 0,
}, },
comMsg: { comMsg: {
pageIndex: 1, pageIndex: 1,
pageSize: 20, pageSize: 20,
ActivityId: 0 ActivityId: 0,
}, },
replayMsg: { replayMsg: {
pageIndex: 1, pageIndex: 1,
pageSize: 20, pageSize: 20,
ParentId: 0 ParentId: 0,
},
dataList: {},
compentList: [],
pageCount: 0,
replayCount: 0,
replayList: [],
showCompoent: false, //显示评论弹窗
replyObj: {},
labelArr: [], //标签数组
}
},
created() {},
mounted() {
if (this.$route.query.Id) {
this.msg.ActivityId = this.$route.query.Id;
this.comMsg.ActivityId = this.$route.query.Id;
}
this.getList();
this.getCommentList();
},
methods: {
//获取帖子头部数据
getList() {
this.apipost("/api/Miai/GetActivityInfo", this.msg, res => {
if (res.data.resultCode == 1) {
this.dataList = res.data.data;
this.labelArr = [];
if(this.dataList.Label){
this.labelArr.push(this.dataList.Label);
}
} else {
this.Error(res.data.message);
}
})
}, },
//获取评论 dataList: {},
getCommentList() { compentList: [],
this.apipost("/api/Miai/GetActivityDiscussPageList", this.comMsg, res => { pageCount: 0,
replayCount: 0,
replayList: [],
showCompoent: false, //显示评论弹窗
replyObj: {},
labelArr: [], //标签数组
};
},
created() {},
mounted() {
if (this.$route.query.Id) {
this.msg.ActivityId = this.$route.query.Id;
this.comMsg.ActivityId = this.$route.query.Id;
}
this.getList();
this.getCommentList();
},
methods: {
//获取帖子头部数据
getList() {
this.apipost("/api/Miai/GetActivityInfo", this.msg, (res) => {
if (res.data.resultCode == 1) {
this.dataList = res.data.data;
this.labelArr = [];
if (this.dataList.Label) {
this.labelArr.push(this.dataList.Label);
}
} else {
this.Error(res.data.message);
}
});
},
//获取评论
getCommentList() {
this.apipost(
"/api/Miai/GetActivityDiscussPageList",
this.comMsg,
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.pageCount = res.data.data.pageCount; this.pageCount = res.data.data.pageCount;
this.compentList = res.data.data.pageData; this.compentList = res.data.data.pageData;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}) }
}, );
//评论翻页 },
handleCurrentChange(val) { //评论翻页
this.comMsg.pageIndex = val; handleCurrentChange(val) {
this.getCommentList(); this.comMsg.pageIndex = val;
}, this.getCommentList();
//回复翻页 },
handleCurrentReplay(val) { //回复翻页
this.replayMsg.pageIndex = val; handleCurrentReplay(val) {
this.getSecondReply(); this.replayMsg.pageIndex = val;
}, this.getSecondReply();
//获取二级回复 },
getSecondReply() { //获取二级回复
this.apipost("/api/Miai/GetActivityReplyPageList", this.replayMsg, res => { getSecondReply() {
this.apipost(
"/api/Miai/GetActivityReplyPageList",
this.replayMsg,
(res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.replayCount = res.data.data.pageCount; this.replayCount = res.data.data.pageCount;
this.replayList = res.data.data.pageData; this.replayList = res.data.data.pageData;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}
);
},
//删除评论
delCompent(item) {
let that = this;
that
.$confirm("是否删除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}) })
}, .then(() => {
//删除评论
delCompent(item) {
let that = this;
that.$confirm('是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let msg = { let msg = {
DiscussId: item.Id DiscussId: item.Id,
} };
this.apipost("/api/Miai/DelActivityDiscussInfo", msg, res => { this.apipost("/api/Miai/DelActivityDiscussInfo", msg, (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.getCommentList(); this.getCommentList();
this.getSecondReply(); this.getSecondReply();
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}) });
}).catch(() => { })
.catch(() => {});
}); },
}, //点击更多评论
//点击更多评论 getCompentItem(item) {
getCompentItem(item) { this.showCompoent = true;
this.showCompoent = true; this.replyObj = item;
this.replyObj = item; this.replayMsg.ParentId = item.Id;
this.replayMsg.ParentId = item.Id; this.getSecondReply();
this.getSecondReply(); },
} },
} };
}
</script> </script>
...@@ -92,36 +92,62 @@ ...@@ -92,36 +92,62 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DianZanNum" label="点赞数" width="80">
<template slot-scope="scope">
<div v-if="scope.row.IsTieZi === 1">{{ scope.row.DianZanNum }}</div>
</template>
</el-table-column>
<el-table-column prop="ReplyNum" label="回复数量" width="80"> <el-table-column prop="ReplyNum" label="回复数量" width="80">
</el-table-column> </el-table-column>
<el-table-column prop="EnrollNum" label="报名人数" width="80"> <el-table-column prop="EnrollNum" label="报名人数" width="80">
<template slot-scope="scope">
<div v-if="scope.row.IsTieZi === 0">{{ scope.row.EnrollNum }}</div>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="EnrollNum" label="是否开启报名" width="120"> <el-table-column prop="EnrollNum" label="是否开启报名" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.IsOpenEnroll == 1" style="color: green" <span
v-if="scope.row.IsOpenEnroll == 1 && scope.row.IsTieZi === 0"
style="color: green"
></span ></span
> >
<span v-if="scope.row.IsOpenEnroll == 2" style="color: red" <span
v-if="scope.row.IsOpenEnroll == 2 && scope.row.IsTieZi === 0"
style="color: red"
></span ></span
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="标签" width="70"> <el-table-column label="标签" width="70">
<template slot-scope="scope" v-if="scope.row.Label"> <template slot-scope="scope" v-if="scope.row.Label">
<el-tag> <el-tag v-if="scope.row.IsTieZi === 0">
{{ scope.row.Label }} {{ scope.row.Label }}
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="活动时间" width="220"> <el-table-column label="活动时间" width="220">
<template slot-scope="scope"> <template slot-scope="scope">
<div>开始时间:{{ scope.row.StartTime }}</div> <div v-if="scope.row.IsTieZi === 0">
<div>结束时间:{{ scope.row.EndTime }}</div> 开始时间:{{ scope.row.StartTime }}
</div>
<div v-if="scope.row.IsTieZi === 0">
结束时间:{{ scope.row.EndTime }}
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ManNum" label="男数量" width="70"> <el-table-column prop="ManNum" label="男数量" width="70">
<template slot-scope="scope">
<div v-if="scope.row.IsTieZi === 0">
{{ scope.row.ManNum }}
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="WoManNum" label="女数量" width="70"> <el-table-column prop="WoManNum" label="女数量" width="70">
<template slot-scope="scope">
<div v-if="scope.row.IsTieZi === 0">
{{ scope.row.WoManNum }}
</div>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="Deadline" label="截止报名日期" width="150"> <el-table-column prop="Deadline" label="截止报名日期" width="150">
</el-table-column> </el-table-column>
......
...@@ -734,7 +734,7 @@ ...@@ -734,7 +734,7 @@
<div v-if="cat.isCustom === 0">{{ cat.name }}</div> <div v-if="cat.isCustom === 0">{{ cat.name }}</div>
<el-input v-else v-model="cat.name" size="small"></el-input> <el-input v-else v-model="cat.name" size="small"></el-input>
</div> </div>
<div flex="box:first"> <div flex="box:first" v-if="cat.isCustom === 1">
<div class="diy-goods-label">帖子范围</div> <div class="diy-goods-label">帖子范围</div>
<div> <div>
<el-radio-group <el-radio-group
...@@ -762,6 +762,17 @@ ...@@ -762,6 +762,17 @@
<el-input v-model="cat.menuName" size="small"></el-input> <el-input v-model="cat.menuName" size="small"></el-input>
</div> </div>
</div> </div>
<div flex="box:first" v-if="cat.isCustom === 0">
<div class="diy-goods-label">自定义帖子</div>
<div>
<el-switch
v-model="cat.range"
:active-value="3"
:inactive-value="1"
></el-switch>
</div>
</div>
<div flex="box:first" v-if="cat.range === 1 || cat.range === 2"> <div flex="box:first" v-if="cat.range === 1 || cat.range === 2">
<div class="diy-goods-label">贴子数量</div> <div class="diy-goods-label">贴子数量</div>
<div> <div>
......
...@@ -886,7 +886,7 @@ export default { ...@@ -886,7 +886,7 @@ export default {
miaiuser, miaiuser,
miaiactivitytype, miaiactivitytype,
miaiactivityCustom, miaiactivityCustom,
Posts, Posts, //帖子
}, },
methods: { methods: {
//选择图片 //选择图片
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment