diff --git a/project/fengdu/app/AppHelp/AppHelp.vue b/project/fengdu/app/AppHelp/AppHelp.vue index 893d9383..7a70e60c 100644 --- a/project/fengdu/app/AppHelp/AppHelp.vue +++ b/project/fengdu/app/AppHelp/AppHelp.vue @@ -10,6 +10,7 @@ import Detail from './components/Detail' import List from './components/List' import Add from './components/Add' + import GagList from './components/GagList' export default { name: 'AppHelp', @@ -31,11 +32,16 @@ components: { Add, List, - Detail + Detail, + GagList }, methods: { onChange (data) { + if (data.type === 'GagList') { + this.component = 'GagList' + } + if (data.type === 'Add') { this.component = 'Add' this.params = data.params diff --git a/project/fengdu/app/AppHelp/components/GagList.vue b/project/fengdu/app/AppHelp/components/GagList.vue new file mode 100644 index 00000000..53ae3269 --- /dev/null +++ b/project/fengdu/app/AppHelp/components/GagList.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/project/fengdu/app/AppHelp/components/List.vue b/project/fengdu/app/AppHelp/components/List.vue index d525bcc4..bd5aced0 100644 --- a/project/fengdu/app/AppHelp/components/List.vue +++ b/project/fengdu/app/AppHelp/components/List.vue @@ -2,6 +2,9 @@ @@ -71,7 +75,7 @@ createUserName: '', areaId: '' }, - total: 10, + total: 0, colConfigs: [ { prop: 'content', label: '内容', align: 'left', 'show-overflow-tooltip': true }, { prop: 'commentCount', label: '评论数', align: 'center', width: '120' }, @@ -123,6 +127,23 @@ }) }, + toGagList () { + this.$emit('change', { + type: 'GagList' + }) + }, + + gag (id) { + this.$confirm('确定禁言该用户?').then(() => { + this.instance.post(`/app/appneighborhoodassistance/delete?id=${id}`).then(res => { + if (res.code == 0) { + this.$message.success('禁言成功!') + this.getList() + } + }) + }) + }, + remove (id) { this.$confirm('确定删除该帖子?').then(() => { this.instance.post(`/app/appneighborhoodassistance/delete?id=${id}`).then(res => { diff --git a/project/fengdu/app/AppIntegratingPublic/components/Add.vue b/project/fengdu/app/AppIntegratingPublic/components/Add.vue index 99391a45..94121857 100644 --- a/project/fengdu/app/AppIntegratingPublic/components/Add.vue +++ b/project/fengdu/app/AppIntegratingPublic/components/Add.vue @@ -8,9 +8,6 @@