邻里互助
This commit is contained in:
@@ -72,11 +72,11 @@
|
|||||||
total: 10,
|
total: 10,
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{ prop: 'content', label: '内容', align: 'left'},
|
{ prop: 'content', label: '内容', align: 'left'},
|
||||||
{ prop: 'createUserName', label: '发帖人', align: 'left', width: '120' },
|
{ prop: 'createUserName', label: '发帖人', align: 'center', width: '120' },
|
||||||
{ prop: 'createTime', label: '创建时间', align: 'left', width: '120' },
|
{ prop: 'createTime', label: '创建时间', align: 'center', width: '120' },
|
||||||
{ prop: 'commentCount', label: '评论数', align: 'left', width: '120' },
|
{ prop: 'commentCount', label: '评论数', align: 'center', width: '120' },
|
||||||
{ prop: 'appreciateCount', label: '点赞数', align: 'left', width: '120' },
|
{ prop: 'appreciateCount', label: '点赞数', align: 'center', width: '120' },
|
||||||
{ prop: 'sharedCount', label: '分享数', align: 'left', width: '120' },
|
{ prop: 'sharedCount', label: '分享数', align: 'center', width: '120' },
|
||||||
{ slot: 'options'},
|
{ slot: 'options'},
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
@@ -92,7 +92,9 @@
|
|||||||
getList() {
|
getList() {
|
||||||
this.instance.post(`/app/appneighborhoodassistance/list`, null, {
|
this.instance.post(`/app/appneighborhoodassistance/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search
|
...this.search,
|
||||||
|
beginDate: this.dateList[0] || '',
|
||||||
|
endDate: this.dateList[1] || ''
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
@@ -89,11 +89,11 @@
|
|||||||
size: 10,
|
size: 10,
|
||||||
},
|
},
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{ slot: 'index', label: '序号'},
|
{ slot: 'index', label: '序号', align: 'center'},
|
||||||
{ slot: 'urlList' },
|
{ slot: 'urlList' },
|
||||||
{ prop: 'title', label: '引导页名称' },
|
{ prop: 'title', label: '引导页名称', align: 'center' },
|
||||||
{ prop: 'createTime', label: '创建时间', width: '200' },
|
{ prop: 'createTime', label: '创建时间', width: '200', align: 'center' },
|
||||||
{ prop: 'createUserName', label: '创建人', width: '200' },
|
{ prop: 'createUserName', label: '创建人', width: '200', align: 'center' },
|
||||||
{ slot: 'option'}
|
{ slot: 'option'}
|
||||||
],
|
],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
|||||||
@@ -119,15 +119,22 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
changeStatus(row) {
|
changeStatus(row) {
|
||||||
console.log(row)
|
|
||||||
this.$confirm(`确定${row.status == 1 ? '启用' : '关闭'}该话题?`).then(() => {
|
this.$confirm(`确定${row.status == 1 ? '启用' : '关闭'}该话题?`).then(() => {
|
||||||
this.instance.post(`/app/appneighborhoodassistancetheme/enable?ids=${id}`).then(res => {
|
this.instance.post(`/app/appneighborhoodassistancetheme/enable?id=${row.id}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('操作成功!')
|
this.$message.success('操作成功!')
|
||||||
this.getList()
|
this.getList()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}).catch(() => {
|
||||||
|
this.getList()
|
||||||
})
|
})
|
||||||
|
// this.instance.post(`/app/appneighborhoodassistancetheme/enable?id=${row.id}`).then(res => {
|
||||||
|
// if (res.code == 0) {
|
||||||
|
// this.$message.success('操作成功!')
|
||||||
|
// this.getList()
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user