丰都增加显示字段

This commit is contained in:
aixianling
2023-03-15 15:30:05 +08:00
parent 106535fc01
commit 3808155201

View File

@@ -3,13 +3,13 @@
<template slot="content"> <template slot="content">
<ai-search-bar class="search-bar"> <ai-search-bar class="search-bar">
<template slot="left"> <template slot="left">
<!-- <ai-select--> <!-- <ai-select-->
<!-- v-model="search.owner"--> <!-- v-model="search.owner"-->
<!-- filterable--> <!-- filterable-->
<!-- @change="search.current = 1, getList()"--> <!-- @change="search.current = 1, getList()"-->
<!-- placeholder="群主"--> <!-- placeholder="群主"-->
<!-- :selectList="userList">--> <!-- :selectList="userList">-->
<!-- </ai-select>--> <!-- </ai-select>-->
<ai-select <ai-select
v-model="search.tagId" v-model="search.tagId"
@change="search.current = 1, getList()" @change="search.current = 1, getList()"
@@ -114,9 +114,9 @@
</template> </template>
<script> <script>
import {mapState} from 'vuex' import {mapState} from 'vuex'
export default { export default {
name: 'List', name: 'List',
props: { props: {
@@ -143,15 +143,13 @@
// {slot: 'avatar'}, // {slot: 'avatar'},
{slot: 'userinfo'}, {slot: 'userinfo'},
{prop: 'ownerName', label: '群主', align: 'center'}, {prop: 'ownerName', label: '群主', align: 'center'},
{prop: 'departmentName', label: '部门', align: 'center'},
{prop: 'areaName', label: '地区', align: 'center'},
{slot: 'tags'}, {slot: 'tags'},
{ {prop: 'personCount', label: '群人数', align: 'center'},
prop: 'personCount', label: '群人数', align: 'center'
},
{prop: 'increase', label: '当日入群人数', align: 'center'}, {prop: 'increase', label: '当日入群人数', align: 'center'},
{prop: 'decrease', label: '当日退群人数', align: 'center'}, {prop: 'decrease', label: '当日退群人数', align: 'center'},
{ {prop: 'createTime', label: '创建时间', align: 'left'},
prop: 'createTime', label: '创建时间', align: 'left'
},
{slot: 'options', label: '操作', align: 'center'}], {slot: 'options', label: '操作', align: 'center'}],
tableData: [], tableData: [],
subTags: [], subTags: [],
@@ -172,9 +170,8 @@
}, },
methods: { methods: {
getWxUserList () { getWxUserList() {
this.instance.post(`/app/wxcp/wxuser/listByDepartId`, { this.instance.post(`/app/wxcp/wxuser/listByDepartId`, {}).then(res => {
}).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.userList = res.data.map(item => { this.userList = res.data.map(item => {
item.dictName = item.name item.dictName = item.name
@@ -295,11 +292,11 @@
}) })
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.table-tags { .table-tags {
.el-tag { .el-tag {
margin-right: 8px; margin-right: 8px;
margin-bottom: 8px; margin-bottom: 8px;
@@ -313,15 +310,15 @@
margin-right: 0; margin-right: 0;
} }
} }
} }
.ellipsis { .ellipsis {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.tags { .tags {
.tag-item { .tag-item {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -346,9 +343,9 @@
font-size: 14px; font-size: 14px;
} }
} }
} }
.avatar { .avatar {
text-align: right; text-align: right;
img { img {
@@ -359,9 +356,9 @@
border-radius: 2px; border-radius: 2px;
border: 1px solid #CCCCCC; border: 1px solid #CCCCCC;
} }
} }
.userinfo { .userinfo {
display: flex; display: flex;
align-items: center; align-items: center;
line-height: 1; line-height: 1;
@@ -397,5 +394,5 @@
color: #2EA222; color: #2EA222;
white-space: nowrap; white-space: nowrap;
} }
} }
</style> </style>