diff --git a/project/fengdu/app/AppHelp/components/List.vue b/project/fengdu/app/AppHelp/components/List.vue index bc291b28..dd4acd88 100644 --- a/project/fengdu/app/AppHelp/components/List.vue +++ b/project/fengdu/app/AppHelp/components/List.vue @@ -72,11 +72,11 @@ total: 10, colConfigs: [ { prop: 'content', label: '内容', align: 'left'}, - { prop: 'createUserName', label: '发帖人', align: 'left', width: '120' }, - { prop: 'createTime', label: '创建时间', align: 'left', width: '120' }, - { prop: 'commentCount', label: '评论数', align: 'left', width: '120' }, - { prop: 'appreciateCount', label: '点赞数', align: 'left', width: '120' }, - { prop: 'sharedCount', label: '分享数', align: 'left', width: '120' }, + { prop: 'createUserName', label: '发帖人', align: 'center', width: '120' }, + { prop: 'createTime', label: '创建时间', align: 'center', width: '120' }, + { prop: 'commentCount', label: '评论数', align: 'center', width: '120' }, + { prop: 'appreciateCount', label: '点赞数', align: 'center', width: '120' }, + { prop: 'sharedCount', label: '分享数', align: 'center', width: '120' }, { slot: 'options'}, ], tableData: [], @@ -92,7 +92,9 @@ getList() { this.instance.post(`/app/appneighborhoodassistance/list`, null, { params: { - ...this.search + ...this.search, + beginDate: this.dateList[0] || '', + endDate: this.dateList[1] || '' } }).then(res => { if (res.code == 0) { diff --git a/project/fengdu/app/AppPageSet/AppPageSet.vue b/project/fengdu/app/AppPageSet/AppPageSet.vue index 582db0ac..396b398b 100644 --- a/project/fengdu/app/AppPageSet/AppPageSet.vue +++ b/project/fengdu/app/AppPageSet/AppPageSet.vue @@ -89,11 +89,11 @@ size: 10, }, colConfigs: [ - { slot: 'index', label: '序号'}, + { slot: 'index', label: '序号', align: 'center'}, { slot: 'urlList' }, - { prop: 'title', label: '引导页名称' }, - { prop: 'createTime', label: '创建时间', width: '200' }, - { prop: 'createUserName', label: '创建人', width: '200' }, + { prop: 'title', label: '引导页名称', align: 'center' }, + { prop: 'createTime', label: '创建时间', width: '200', align: 'center' }, + { prop: 'createUserName', label: '创建人', width: '200', align: 'center' }, { slot: 'option'} ], tableData: [], diff --git a/project/fengdu/app/AppSubjectSet/components/List.vue b/project/fengdu/app/AppSubjectSet/components/List.vue index 025d82fa..15e8689f 100644 --- a/project/fengdu/app/AppSubjectSet/components/List.vue +++ b/project/fengdu/app/AppSubjectSet/components/List.vue @@ -119,15 +119,22 @@ }, changeStatus(row) { - console.log(row) 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) { this.$message.success('操作成功!') 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() + // } + // }) } } }