邻里互助
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
"@jiaminghi/data-view": "^2.10.0",
|
"@jiaminghi/data-view": "^2.10.0",
|
||||||
"bin-ace-editor": "^3.2.0",
|
"bin-ace-editor": "^3.2.0",
|
||||||
"dayjs": "^1.8.35",
|
"dayjs": "^1.8.35",
|
||||||
"dui": "file:ui",
|
"dui": "^2.0.0",
|
||||||
"echarts": "^5.1.2",
|
"echarts": "^5.1.2",
|
||||||
"hash.js": "^1.1.7",
|
"hash.js": "^1.1.7",
|
||||||
"mp4box": "^0.4.1",
|
"mp4box": "^0.4.1",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-list class="notice">
|
<ai-list class="notice">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<ai-title title="邻里互助" isShowBottomBorder>
|
<ai-title title="邻里互助" isShowBottomBorder isShowArea :disabledLevel="disabledLevel" v-model="search.areaId" @change="changeArea">
|
||||||
</ai-title>
|
</ai-title>
|
||||||
</template>
|
</template>
|
||||||
<template slot="content">
|
<template slot="content">
|
||||||
@@ -54,6 +54,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: 'List',
|
name: 'List',
|
||||||
|
|
||||||
@@ -68,6 +69,7 @@
|
|||||||
current: 1,
|
current: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
createUserName: '',
|
createUserName: '',
|
||||||
|
areaId: ''
|
||||||
},
|
},
|
||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
@@ -76,15 +78,22 @@
|
|||||||
{ prop: 'appreciateCount', label: '点赞数', align: 'center', width: '120' },
|
{ prop: 'appreciateCount', label: '点赞数', align: 'center', width: '120' },
|
||||||
{ prop: 'sharedCount', label: '分享数', align: 'center', width: '120' },
|
{ prop: 'sharedCount', label: '分享数', align: 'center', width: '120' },
|
||||||
{ prop: 'createUserName', label: '发帖人', align: 'center', width: '120' },
|
{ prop: 'createUserName', label: '发帖人', align: 'center', width: '120' },
|
||||||
|
{ prop: 'createUserAreaName', label: '所在地区', align: 'center', width: '120' },
|
||||||
{ prop: 'createTime', label: '创建时间', align: 'center', width: '180' },
|
{ prop: 'createTime', label: '创建时间', align: 'center', width: '180' },
|
||||||
{ slot: 'options'},
|
{ slot: 'options'},
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
dateList: []
|
dateList: [],
|
||||||
|
disabledLevel: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
|
this.disabledLevel = this.user.info.areaList.length - 1
|
||||||
|
this.search.areaId = this.user.info.areaId
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -93,8 +102,9 @@
|
|||||||
this.instance.post(`/app/appneighborhoodassistance/list`, null, {
|
this.instance.post(`/app/appneighborhoodassistance/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search,
|
...this.search,
|
||||||
|
createUserAreaId: this.search.areaId,
|
||||||
beginDate: this.dateList[0] || '',
|
beginDate: this.dateList[0] || '',
|
||||||
endDate: this.dateList[1] || ''
|
endDate: this.dateList[1] || '',
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -104,6 +114,14 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
changeArea () {
|
||||||
|
this.search.current = 1
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
remove (id) {
|
remove (id) {
|
||||||
this.$confirm('确定删除该帖子?').then(() => {
|
this.$confirm('确定删除该帖子?').then(() => {
|
||||||
this.instance.post(`/app/appneighborhoodassistance/delete?id=${id}`).then(res => {
|
this.instance.post(`/app/appneighborhoodassistance/delete?id=${id}`).then(res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user