This commit is contained in:
yanran200730
2023-02-23 15:33:20 +08:00
parent e7d30c38cd
commit bfef93c8a8
2 changed files with 19 additions and 27 deletions

View File

@@ -1,12 +1,12 @@
<template> <template>
<ai-list> <ai-list>
<template slot="title"> <template slot="title">
<ai-title title="居民积分" :isShowArea="currIndex === '0'" :hideLevel="$store.state.user.info.areaList.length - 1" v-model="areaId" :instance="instance" @change="search.current = 1, getList()"></ai-title> <ai-title title="居民积分" :isShowArea="currIndex === '0'" :hideLevel="$store.state.user.info.areaList.length - 1" v-model="areaId" :instance="instance" @change="onAreaChange"></ai-title>
</template> </template>
<template slot="tabs"> <template slot="tabs">
<el-tabs v-model="currIndex"> <el-tabs v-model="currIndex">
<el-tab-pane v-for="(tab,i) in tabs" :key="i" :label="tab.label"> <el-tab-pane v-for="(tab,i) in tabs" :key="i" :label="tab.label">
<component :areaId="areaId" :ref="String(i)" v-if="currIndex == i" :is="tab.comp" @change="onChange" lazy :instance="instance" :dict="dict" :permissions="permissions"/> <component :ref="component" :areaId="areaId" v-if="currIndex == i" :is="tab.comp" @change="onChange" lazy :instance="instance" :dict="dict" :permissions="permissions"/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</template> </template>
@@ -68,6 +68,10 @@
this.component = 'Rule' this.component = 'Rule'
this.params = data.params this.params = data.params
} }
},
onAreaChange () {
this.$refs.List[0].refresh()
} }
} }
} }

View File

@@ -10,7 +10,7 @@
class="search-input" class="search-input"
size="small" size="small"
v-throttle="() => {search.current = 1, getList()}" v-throttle="() => {search.current = 1, getList()}"
placeholder="请输入标题" placeholder="姓名/身份证/手机号/微信昵称"
clearable clearable
@clear="search.current = 1, search.title = '', getList()" @clear="search.current = 1, search.title = '', getList()"
suffix-icon="iconfont iconSearch"> suffix-icon="iconfont iconSearch">
@@ -25,22 +25,6 @@
:current.sync="search.current" :current.sync="search.current"
:size.sync="search.size" :size.sync="search.size"
@getList="getList"> @getList="getList">
<el-table-column slot="comment" label="评论数" align="center" v-if="permissions('app_appcontentcomment_detail')">
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="toComment(row.id)">{{ row.msgCount }}</el-button>
</div>
</template>
</el-table-column>
<el-table-column slot="options" width="160px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }">
<div class="table-options">
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
<el-button type="text" @click="toDetail(row.id)">详情</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button>
</div>
</template>
</el-table-column>
</ai-table> </ai-table>
</template> </template>
</ai-list> </ai-list>
@@ -66,14 +50,12 @@
}, },
total: 10, total: 10,
colConfigs: [ colConfigs: [
{ prop: 'title', label: '标题', align: 'left', width: '200px' }, { prop: 'title', label: '微信昵称', align: 'left', width: '200px' },
{ prop: 'areaName', label: '地区', align: 'left' }, { prop: 'areaName', label: '手机号', align: 'left' },
{ prop: 'examineStatus', label: '状态', align: 'center', format: v => this.dict.getLabel('auditStatus', v) }, { prop: 'examineOpinion', label: '姓名', align: 'center' },
{ prop: 'examineOpinion', label: '审核意见', align: 'center' }, { prop: 'viewCount', label: '身份证号', align: 'center' },
{ prop: 'viewCount', label: '浏览次数', align: 'center' }, { slot: 'comment', label: '地址', align: 'center' },
{ slot: 'comment', label: '评论次数', align: 'center' }, { prop: 'createUserName', label: '积分总分', align: 'center' }
{ prop: 'createUserName', label: '发布人', align: 'center' },
{ prop: 'createTime', label: '发布时间', align: 'center' }
], ],
tableData: [] tableData: []
} }
@@ -86,6 +68,12 @@
}, },
methods: { methods: {
refresh () {
this.search.current = 1
this.getList()
},
getList() { getList() {
this.instance.post(`/app/appintegralsystemrule/listByAppletQJ`, null, { this.instance.post(`/app/appintegralsystemrule/listByAppletQJ`, null, {
params: { params: {