|
@@ -61,17 +61,19 @@
|
|
|
<el-table-column v-if="tabsPitchon === 2" align="center" label="路演回放" min-width="100">
|
|
|
<template slot-scope="{ row }"> {{ row.IsUpload ? "已上传" : "" }} </template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="center" width="146" label="操作">
|
|
|
+ <el-table-column align="center" width="156" label="操作">
|
|
|
<template slot-scope="{ row }">
|
|
|
- <span v-if="row.PublishStatus == 0 && tabsPitchon == 0" class="editsty" @click="operationBtn(row.ActivityId, '发布')">发布</span>
|
|
|
- <span v-if="row.PublishStatus == 3" class="editsty" @click="operationBtn(row.ActivityId, '重新发布')">重新发布</span>
|
|
|
- <span v-if="row.PublishStatus == 1" class="editsty" @click="operationBtn(row.ActivityId, '取消发布')">取消发布</span>
|
|
|
-
|
|
|
- <span class="editsty" @click="editBtn(row.ActivityId, row.PublishStatus)">编辑</span>
|
|
|
-
|
|
|
- <span class="deletesty" v-if="row.PublishStatus == 0 && tabsPitchon == 0" @click="operationBtn(row.ActivityId, '删除')">删除</span>
|
|
|
- <span class="editsty" v-if="row.IsShowSigninButton" @click="handleDownLoadImg(row)">下载签到码</span>
|
|
|
- <span v-if="row.ActivityTypeId === 8" class="editsty" @click="editBtn(row.ActivityId, row.PublishStatus)">取消置顶</span>
|
|
|
+ <div class="operate-box">
|
|
|
+ <p v-if="row.PublishStatus == 0 && tabsPitchon == 0" class="editsty" @click="operationBtn(row.ActivityId, '发布')">发布</p>
|
|
|
+ <p v-if="row.PublishStatus == 3" class="editsty" @click="operationBtn(row.ActivityId, '重新发布')">重新发布</p>
|
|
|
+ <p v-if="row.PublishStatus == 1" class="editsty" @click="operationBtn(row.ActivityId, '取消发布')">取消发布</p>
|
|
|
+
|
|
|
+ <p class="editsty" @click="editBtn(row.ActivityId, row.PublishStatus)">编辑</p>
|
|
|
+
|
|
|
+ <p class="deletesty" v-if="row.PublishStatus == 0 && tabsPitchon == 0" @click="operationBtn(row.ActivityId, '删除')">删除</p>
|
|
|
+ <p class="editsty" v-if="row.IsShowSigninButton" @click="handleDownLoadImg(row)">下载签到码</p>
|
|
|
+ <p v-if="row.ActivityTypeId === 8" class="editsty" @click="overheadHandler(row.ActivityId, '置顶')"> {{ row.TopTime == 0 ? "置顶" : "取消置顶" }}</p>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -350,6 +352,15 @@ export default {
|
|
|
childrenImgMeetingHandler() {
|
|
|
this.$refs.imgUpload.clearFiles();
|
|
|
},
|
|
|
+ // 是否置顶
|
|
|
+ async overheadHandler(id) {
|
|
|
+ const res = await raiInterface.yanxuan_tope_change({
|
|
|
+ ActivityId: id,
|
|
|
+ });
|
|
|
+ if (res.Ret !== 200) return;
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ this.getsummaryManageList();
|
|
|
+ },
|
|
|
},
|
|
|
/* 页面跳转前记录参数 */
|
|
|
beforeRouteLeave(to, form, next) {
|
|
@@ -365,6 +376,7 @@ export default {
|
|
|
activityLabel: this.activityLabel,
|
|
|
publishDate: this.publishDate,
|
|
|
};
|
|
|
+ ActivityId: id;
|
|
|
sessionStorage.setItem("cativityBack", JSON.stringify(backData));
|
|
|
next();
|
|
|
},
|
|
@@ -419,5 +431,12 @@ export default {
|
|
|
.customWidth {
|
|
|
width: 550px !important;
|
|
|
}
|
|
|
+ .operate-box {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ p {
|
|
|
+ flex-shrink: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|