Commit a521e700 authored by anxixi's avatar anxixi

活动审核

parent 238210fe
......@@ -542,6 +542,26 @@ export default new Router({
component: resolve => require(['./views/publishactivity/proactivity.vue'], resolve),
meta: {title: '发布活动'}
},
{
path: '/activityaudit',
component: resolve => require(['./views/publishactivity/activityaudit.vue'], resolve),
meta: {title: '活动审核'}
},
{
path: '/activitydel',
component: resolve => require(['./views/publishactivity/activitydel.vue'], resolve),
meta: {title: '活动审核详情'}
},
{
path: '/applyactivity',
component: resolve => require(['./views/publishactivity/applyactivity.vue'], resolve),
meta: {title: '活动报名列表'}
},
{
path: '/applydetail',
component: resolve => require(['./views/publishactivity/applydetail.vue'], resolve),
meta: {title: '活动报名详情'}
},
]
},
{
......
<template>
<div class="soutform loginedWrapper">
<div class="breadcrumb">
<el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/projectdynamics' }">{{$t("litemlistjson.wrkbench")}}</el-breadcrumb-item>
<el-breadcrumb-item>{{$t("operationjson.projectreview")}}</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div style="margin-top: 10px;">
<el-row class="projectTab">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane :label="authcount.counts" name="first">
</el-tab-pane>
<el-tab-pane :label="authcount.submited" name="second">
</el-tab-pane>
<el-tab-pane :label="authcount.success" name="third">
</el-tab-pane>
<el-tab-pane :label="authcount.reject" name="fourth">
</el-tab-pane>
</el-tabs>
</el-row>
<el-row class="contentPadding">
<el-form :inline="true">
<el-form-item>
活动列表
</el-form-item>
<el-form-item class="formcontentnk">
<el-input placeholder="请输入活动名称关键字" v-model="search.channelTitle" class="input-with-select" style="width: 290px">
<el-button slot="append" icon="el-icon-search" @click="searchchannel"></el-button>
</el-input>
</el-form-item>
</el-form>
<el-row>
<el-table :data="publishActivitydata" tooltip-effect="dark" class="projectTable2">
<el-table-column label="活动图片" align="center">
<template slot-scope="scope">
<img v-if="scope.row.channelPic" :src="scope.row.channelPic" alt="图片" style="border-radius: 3px; border:1px solid #DCDFF1; width: 120px;height: 72px;">
</template>
</el-table-column>
<el-table-column prop="channelTitle" label="活动名称" align="center">
</el-table-column>
<el-table-column prop="channelType" label="活动类型" align="center">
<template slot-scope="scope">
{{scope.row.channelType == '2' ? '项目收集': scope.row.channelType == '3' ? '线下沙龙' : ''}}
</template>
</el-table-column>
<el-table-column prop="publishUser" label="活动发布人" align="center">
</el-table-column>
<el-table-column prop="submissionTime" label="审核提交时间时间" align="center">
</el-table-column>
<el-table-column prop="channelState" label="活动状态" align="center">
<template slot-scope="scope">
<span v-if="scope.row.channelState == 0" style="color:#FF9E29;">审核中</span>
<span v-if="scope.row.channelState == 1" style="color:#3F3F53;">未开始</span>
<span v-if="scope.row.channelState == 2" style="color:#FF5D5D;">审核驳回</span>
<span v-if="scope.row.channelState == 3" style="color:#0ABB87;">进行中</span>
<span v-if="scope.row.channelState == 4" style="color:#FF5D5D;">已结束</span>
</template>
</el-table-column>
<el-table-column :label="$t('listjson.action')" width="150" align='center'>
<template slot-scope="scope">
<el-button type="text" @click="gethand(scope.row)">{{$t('listjson.seeaction')}}</el-button>
<el-button type="text" @click="">报名列表</el-button>
</template>
</el-table-column>
<template slot="empty">
<i class="iconfont icon-hezi501 datai"></i>
<p class="datap">{{$t('listjson.notfoundyet')}}</p>
</template>
</el-table>
<div class="pagination">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
background
:page-sizes="[10, 20, 30, 40, 50]"
:page-size="10"
:current-page="cur_page"
layout=" total, prev, pager, next"
:total="totalListResult">
</el-pagination>
</div>
</el-row>
</el-row>
</div>
</div>
</template>
<script>
import api from './api/api'
export default {
name : "activityaudit",
data() {
return {
search:{
channelState:'',
},
activeName:'first',
authcount:{
counts:this.$t('operationjson.counts'),
submited:this.$t('operationjson.pendingreview'),
reject:this.$t('operationjson.audited'),
success:this.$t('operationjson.dismissed'),
},
cur_page: 1, //页数
totalListResult: 0,
numberData: 10, //设置个数
publishActivitydata:[],
}
},
methods : {
handleClick(tab){
if(tab.name == 'first'){
this.search.channelState = null;
this.cur_page = 1;
this.add();
}else if(tab.name == 'second'){
this.search.channelState = 0;
this.cur_page = 1;
this.add();
}
else if(tab.name == 'third'){
this.search.channelState = 2;
this.cur_page = 1;
this.add();
}
else if(tab.name == 'fourth'){
this.search.channelState = 1;
this.cur_page = 1;
this.add();
}
},
searchchannel(){
this.cur_page = 1;
this.add();
},
gethand(val){
this.$router.push({path:"/activitydel",query:{channelId:val.channelId}});
},
// 分页导航
handleCurrentChange(val) {
this.cur_page = val;
this.add();
},
//设置个数
handleSizeChange(val) {
this.numberData = val;
this.add();
},
add(){
let params = {
pagination: {
number: this.numberData,
start: 0,
numberOfPages: this.cur_page || 1,
totalItemCount: 0
},
search: this.search,
sort: {}
};
api.verifyActivityList(params).then(response => {
if(response.code == 0) {
this.publishActivitydata = response.result.records;
this.totalListResult = response.result.total;
} else {
this.$message.error(response.msgCode);
}
})
.catch(error => {
console.log("提交出错");
return false;
});
},
},
mounted() {
this.add();
}
}
</script>
<style scoped>
.pagination {
padding: 20px 0;
text-align: center;
}
.formcontentnk {
float: right;
}
</style>
\ No newline at end of file
This diff is collapsed.
......@@ -57,7 +57,7 @@
{key:6,value:'时间段(含时间)'},
{key:7,value:'时间段(不含时间)'},
{key:8,value:'上传图片'},
{key:9,value:'上传附件'},
// {key:9,value:'上传附件'},
],
addVisible:false,
rules:{
......
......@@ -17,4 +17,19 @@ export default {
publishActivityList (params){
return api.fetchPost('/base/activity/publishActivityList',params);
},
verifyActivityList (params){
return api.fetchPost('/base/activity/verifyActivityList',params);
},
verifyActivityDetail( params ) {
return api.fetchGet( '/base/activity/verifyActivityDetail?channelId=' + params );
},
verifyActivity (params){
return api.fetchPost('/base/activity/verifyActivity',params);
},
applyActivityList (params){
return api.fetchPost('/base/activity/applyActivityList',params);
},
applyActivityDetail( params ) {
return api.fetchGet( '/base/activity/applyActivityDetail?enterId=' + params );
},
}
\ No newline at end of file
<template>
<div class="soutform loginedWrapper">
<div class="breadcrumb">
<el-breadcrumb separator="/">
<el-breadcrumb-item>我的工作台</el-breadcrumb-item>
<el-breadcrumb-item>活动</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="contentPadding">
<el-form :inline="true">
<el-form-item>
<p>活动名称:{{channelTitle}}</p>
</el-form-item>
<el-form-item class="formcontentnk">
<el-input placeholder="请输入活动名称关键字" v-model="search.channelTitle" class="input-with-select" style="width: 290px">
<el-button slot="append" icon="el-icon-search" @click="searchchannel"></el-button>
</el-input>
</el-form-item>
</el-form>
<el-row>
<el-table :data="publishActivitydata" tooltip-effect="dark" class="projectTable2">
<el-table-column prop="contactsName" label="联系人" align="center">
</el-table-column>
<el-table-column prop="contactsPhone" label="手机号" align="center">
</el-table-column>
<el-table-column prop="contactsEmail" label="邮箱" align="center">
</el-table-column>
<el-table-column prop="contactsCompany" label="公司名称" align="center">
</el-table-column>
<el-table-column prop="contactsPosition" label="职位" align="center">
</el-table-column>
<el-table-column prop="applyTime" label="报名时间" align="center">
</el-table-column>
<el-table-column :label="$t('listjson.action')" width="100" align='center'>
<template slot-scope="scope">
<el-button type="text" @click="$router.push({path:'/applydetail',query:{enterId:scope.row.enterId}})">
{{$t('listjson.seeaction')}}
</el-button>
</template>
</el-table-column>
<template slot="empty">
<i class="iconfont icon-hezi501 datai"></i>
<p class="datap">{{$t('listjson.notfoundyet')}}</p>
</template>
</el-table>
<div class="pagination">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
background
:page-sizes="[10, 20, 30, 40, 50]"
:page-size="10"
:current-page="cur_page"
layout=" total, prev, pager, next"
:total="totalListResult">
</el-pagination>
</div>
</el-row>
</div>
</div>
</template>
<script>
import api from './api/api';
export default {
name : "applyactivity",
data() {
return {
cur_page: 1, //页数
totalListResult: 0,
numberData: 5, //设置个数
publishActivitydata:[],
search:{
channelId:47
},
channelTitle:this.$route.query.channelTitle,
}
},
methods: {
// 分页导航
handleCurrentChange(val) {
this.cur_page = val;
this.getpublishActivityList();
},
//设置个数
handleSizeChange(val) {
this.numberData = val;
this.getpublishActivityList();
},
soutClk(){
this.$router.push({path:"/newtemplate",query:{}});
},
searchchannel(){
this.getpublishActivityList();
},
getpublishActivityList(){
let params = {
pagination: {
number: this.numberData,
start: 0,
numberOfPages: this.cur_page || 1,
totalItemCount: 0
},
search: this.search,
sort: {}
};
api.applyActivityList(params).then(response => {
if(response.code == 0) {
this.publishActivitydata = response.result.records;
this.totalListResult = response.result.total;
} else {
this.$message.error(response.msgCode);
}
})
.catch(error => {
console.log("提交出错");
return false;
});
},
},
mounted() {
this.getpublishActivityList();
}
}
</script>
<style scoped>
.formcontentnk {
float: right;
}
</style>
\ No newline at end of file
<template>
<div class="soutform loginedWrapper">
<div class="breadcrumb">
<el-breadcrumb separator="/">
<el-breadcrumb-item :to="{ path: '/litemlist' }">{{$t("releasejson.wrkbench")}}</el-breadcrumb-item>
<el-breadcrumb-item>活动</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="projectTabadd" style="margin-top: 10px;position: relative;border-radius: 3px;min-height: 700px">
<el-tabs v-model="activeName">
<el-tab-pane label="报名信息" name="first">
</el-tab-pane>
</el-tabs>
<p @click="$router.push('/proactivity')" style="position: absolute;top: 25px;right: 10px;color: #5D78FF;font-size: 14px;width: 80px;cursor: pointer;">
<i style="color: #5D78FF;font-size: 14px;padding-right: 5px" class="iconfont icon-fanhui1"></i>
返回
</p>
</div>
</div>
</template>
<script>
import api from './api/api';
export default {
name : "applydetail",
data() {
return {
activeName:'first'
}
},
methods:{
soutClk(val){
this.$router.push({path:"/addproactivity",query:{type:val}});
},
},
mounted() {
api.applyActivityDetail(11).then(response => {
if(response.code == 0) {
} else {
this.$message.error(response.msgCode);
}
})
.catch(error => {
console.log("提交出错");
return false;
});
}
}
</script>
<style scoped lang="scss">
.templatecss{
text-align: center;
padding: 30px 0 0 25px;
>img{
width: 255px;
height: 150px
}
>p{
font-weight: bold;
margin: 20px 0 ;
}
}
</style>
\ No newline at end of file
......@@ -30,7 +30,7 @@
</el-table-column>
<el-table-column prop="channelType" label="活动类型" align="center">
<template slot-scope="scope">
{{scope.row.channelType == '2' ? '项目收集': scope.row.channelType == '3' ? '' : '线下沙龙'}}
{{scope.row.channelType == '2' ? '项目收集': scope.row.channelType == '3' ? '线下沙龙' : ''}}
</template>
</el-table-column>
<el-table-column prop="channelState" label="活动状态" align="center">
......@@ -48,7 +48,9 @@
</el-table-column>
<el-table-column :label="$t('listjson.action')" width="100" align='center'>
<template slot-scope="scope">
<el-button type="text" @click="">{{$t('listjson.seeaction')}}</el-button>
<el-button type="text" @click="$router.push({path:'/applyactivity',query:{channelTitle:scope.row.channelTitle}})">
{{$t('listjson.seeaction')}}
</el-button>
</template>
</el-table-column>
<template slot="empty">
......
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