本村活动

This commit is contained in:
yanran200730
2021-12-18 11:27:54 +08:00
parent 5134ae67f1
commit 3188da1ad3
5 changed files with 89 additions and 88 deletions

View File

@@ -3,7 +3,7 @@
<template slot="content">
<ai-search-bar class="search-bar">
<template slot="left">
<el-button type="primary" icon="iconfont iconAdd" @click="toAdd">发布活动</el-button>
<el-button type="primary" icon="iconfont iconAdd" @click="toAdd('')">发布活动</el-button>
<ai-select
v-model="search.isRealName"
@change="search.current = 1, getList()"
@@ -73,18 +73,29 @@
ids: [],
total: 10,
colConfigs: [
{ prop: 'realName', label: '真实姓名', align: 'center' },
{
prop: 'identityNumber', label: '是否实名', align: 'center',
{ prop: 'title', label: '活动名称', align: 'left' },
{
prop: 'areaName', label: '活动地区', align: 'center' ,
render: (h, params) => {
return h('span', {
}, params.row.realName ? '是' : '否')
}, params.row.areaName + params.row.address)
}
},
{
prop: 'status', label: '活动状态', align: 'center',
render: (h, params) => {
return h('span', {
}, params.row.status ? '是' : '否')
}
},
{ prop: 'realNum', label: '报名人数', align: 'center' },
{
prop: 'beginTime', width: '300px', label: '活动时间', align: 'center',
render: (h, params) => {
return h('span', {
}, params.row.beginTime + ' - ' + params.row.endTime)
}
},
{ prop: 'wxUserNames', label: '所属员工', align: 'center' },
{ slot: 'tags' },
{ prop: 'createTime', label: '添加时间', align: 'left' },
{ prop: 'addWay', label: '添加渠道', align: 'center', formart: v => this.dict.getLabel('wxCustomerAddWay', v) },
{ slot: 'options', label: '操作', align: 'center' }
],
tableData: []
@@ -104,7 +115,7 @@
methods: {
getList() {
this.instance.post(`/app/wxcp/wxcustomer/list`, null, {
this.instance.post(`/app/appvillageactivityinfo/list`, null, {
params: {
...this.search
}