This commit is contained in:
yanran200730
2023-04-19 10:13:33 +08:00
parent 908a11d268
commit 8c5e95859a
2 changed files with 9 additions and 8 deletions

View File

@@ -140,7 +140,7 @@
onUserChange (e) { onUserChange (e) {
this.deptList = e this.deptList = e
this.onChange(e) this.onChange(e)
}, },
getTalkList() { getTalkList() {

View File

@@ -1,7 +1,7 @@
<template> <template>
<ai-list class="notice"> <ai-list class="notice">
<template slot="title"> <template slot="title">
<ai-title title="禁言列表" isShowBack isShowBottomBorder @onBackClick="cancel(false)"></ai-title> <ai-title title="禁言列表" isShowBack isShowBottomBorder @onBackClick="cancel"></ai-title>
</template> </template>
<template slot="content"> <template slot="content">
<ai-search-bar> <ai-search-bar>
@@ -9,13 +9,13 @@
</template> </template>
<template #right> <template #right>
<el-input <el-input
v-model="search.createUserName" v-model="search.userName"
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.createUserName = '', getList()" @clear="search.current = 1, search.userName = '', getList()"
suffix-icon="iconfont iconSearch"> suffix-icon="iconfont iconSearch">
</el-input> </el-input>
</template> </template>
@@ -31,7 +31,7 @@
<el-table-column slot="options" width="100px" fixed="right" label="操作" align="center"> <el-table-column slot="options" width="100px" fixed="right" label="操作" align="center">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<div class="table-options"> <div class="table-options">
<el-button type="text" @click="remove(row.createUserId)">解除禁言</el-button> <el-button type="text" @click="remove(row.userId)">解除禁言</el-button>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -54,11 +54,11 @@
search: { search: {
current: 1, current: 1,
size: 10, size: 10,
createUserName: '' userName: ''
}, },
total: 0, total: 0,
colConfigs: [ colConfigs: [
{ prop: 'createUserName', label: '用户昵称', align: 'left' }, { prop: 'userName', label: '用户昵称', align: 'left' },
{ prop: 'areaName', label: '所属地区', align: 'center' }, { prop: 'areaName', label: '所属地区', align: 'center' },
{ prop: 'createTime', label: '被禁言时间', align: 'center' } { prop: 'createTime', label: '被禁言时间', align: 'center' }
], ],
@@ -97,7 +97,8 @@
cancel () { cancel () {
this.$emit('change', { this.$emit('change', {
type: 'List' type: 'List',
isRefresh: true
}) })
} }
} }