Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
aixianling
2021-12-18 16:47:56 +08:00
3 changed files with 37 additions and 23 deletions

View File

@@ -60,9 +60,9 @@
colConfigs: [ colConfigs: [
{ type: 'selection' }, { type: 'selection' },
{ prop: 'name', label: '标题' }, { prop: 'name', label: '标题' },
{ prop: 'createUserName', align: 'center', label: '类型' },
{ prop: 'description', align: 'center', label: '描述' },
{ prop: 'status', align: 'center', label: '状态', formart: v => v === '1' ? '已开启' : '未开启' }, { prop: 'status', align: 'center', label: '状态', formart: v => v === '1' ? '已开启' : '未开启' },
{ prop: 'description', align: 'center', label: '联系电话' },
{ prop: 'description', align: 'center', label: '发布人' },
{ prop: 'createTime', align: 'center', label: '创建时间' } { prop: 'createTime', align: 'center', label: '创建时间' }
], ],
ids: [], ids: [],
@@ -82,7 +82,7 @@
methods: { methods: {
getList () { getList () {
this.instance.post(`/app/appdiylargescreen/allLargeScreenProjectByPage`, null, { this.instance.post(`/app/appshowagriculturalproduce/list`, null, {
params: { params: {
...this.search ...this.search
} }

View File

@@ -7,17 +7,17 @@
<ai-select <ai-select
v-model="search.isRealName" v-model="search.isRealName"
@change="search.current = 1, getList()" @change="search.current = 1, getList()"
placeholder="是否实名" placeholder="活动状态"
:selectList="dict.getDict('wxCustomerAddWay')"> :selectList="dict.getDict('villageActivityStatus')">
</ai-select> </ai-select>
</template> </template>
<template slot="right"> <template slot="right">
<el-input <el-input
v-model="search.name" v-model="search.title"
class="search-input" class="search-input"
size="small" size="small"
@keyup.enter.native="search.current = 1, getList()" @keyup.enter.native="search.current = 1, getList()"
placeholder="请输入备注、昵称、姓名" placeholder="请输入活动名称"
clearable clearable
@change="getList" @change="getList"
@clear="search.current = 1, search.name = '', getList()" @clear="search.current = 1, search.name = '', getList()"
@@ -64,10 +64,7 @@
search: { search: {
current: 1, current: 1,
size: 10, size: 10,
name: '', title: ''
tagId: '',
wxUserId: '',
isRealName: ''
}, },
isLoading: false, isLoading: false,
ids: [], ids: [],
@@ -85,7 +82,7 @@
prop: 'status', label: '活动状态', align: 'center', prop: 'status', label: '活动状态', align: 'center',
render: (h, params) => { render: (h, params) => {
return h('span', { return h('span', {
}, params.row.status ? '是' : '否') }, this.dict.getLabel('villageActivityStatus', params.row.status))
} }
}, },
{ prop: 'realNum', label: '报名人数', align: 'center' }, { prop: 'realNum', label: '报名人数', align: 'center' },
@@ -108,7 +105,7 @@
created () { created () {
this.isLoading = true this.isLoading = true
this.dict.load(['wxCustomerAddWay']).then(() => { this.dict.load(['villageActivityStatus']).then(() => {
this.getList() this.getList()
}) })
}, },

View File

@@ -5,19 +5,19 @@
<div class="statistics-top"> <div class="statistics-top">
<div class="statistics-top__item"> <div class="statistics-top__item">
<span>活动登记数量</span> <span>活动登记数量</span>
<h2 style="color: #2266FF;">11</h2> <h2 style="color: #2266FF;">{{ info['丧礼登记数量'] }}</h2>
</div> </div>
<div class="statistics-top__item"> <div class="statistics-top__item">
<span>干部参与和操办登记数量</span> <span>干部参与和操办登记数量</span>
<h2 style="color: #22AA99;">11</h2> <h2 style="color: #22AA99;">{{ info['干部参与和操办登记数量'] }}</h2>
</div> </div>
<div class="statistics-top__item"> <div class="statistics-top__item">
<span>婚礼登记数量</span> <span>婚礼登记数量</span>
<h2 style="color: #F8B425">11</h2> <h2 style="color: #F8B425">{{ info['婚礼登记数量'] }}</h2>
</div> </div>
<div class="statistics-top__item"> <div class="statistics-top__item">
<span>丧礼登记数量</span> <span>丧礼登记数量</span>
<h2 style="color: red">11</h2> <h2 style="color: red">{{ info['丧礼登记数量'] }}</h2>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
@@ -77,13 +77,15 @@
size: 10, size: 10,
title: '' title: ''
}, },
info: {},
colConfigs: [ colConfigs: [
{ type: 'selection' }, { type: 'selection' },
{ prop: 'name', label: '标题' }, { prop: 'name', label: '事主姓名' },
{ prop: 'createUserName', align: 'center', label: '类型' }, { prop: 'createUserName', align: 'center', label: '联系电话' },
{ prop: 'description', align: 'center', label: '描述' }, { prop: 'description', align: 'center', label: '类型' },
{ prop: 'status', align: 'center', label: '状态', formart: v => v === '1' ? '已开启' : '未开启' }, { prop: 'status', align: 'center', label: '状态', formart: v => v === '1' ? '已开启' : '未开启' },
{ prop: 'createTime', align: 'center', label: '创建时间' } { prop: 'description', align: 'center', label: '人员性质' },
{ prop: 'createTime', align: 'center', label: '发布时间' }
], ],
ids: [], ids: [],
tableData: [], tableData: [],
@@ -94,6 +96,7 @@
created () { created () {
this.getList() this.getList()
this.getTotalInfo()
}, },
mounted () { mounted () {
@@ -102,7 +105,7 @@
methods: { methods: {
getList () { getList () {
this.instance.post(`/app/appdiylargescreen/allLargeScreenProjectByPage`, null, { this.instance.post(`/app/appmarriagefuneralinfo/list`, null, {
params: { params: {
...this.search ...this.search
} }
@@ -119,9 +122,23 @@
}) })
}, },
getTotalInfo () {
this.instance.post(`/app/appmarriagefuneralinfo/queryDataStatistics`).then(res => {
if (res.code == 0) {
let info = {}
res.data.forEach(v => {
info[v.name] = v.v1
})
this.info = info
}
})
},
remove (id) { remove (id) {
this.$confirm('确定删除该数据?').then(() => { this.$confirm('确定删除该数据?').then(() => {
this.instance.post(`/app/appapplicationinfo/delete?ids=${id}`).then(res => { this.instance.post(`/app/appmarriagefuneralinfo/delete?ids=${id}`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success('删除成功!') this.$message.success('删除成功!')
this.getList() this.getList()