Commit 312ede53 by 前端

Merge branch 'xuyl_dev_2.1.0' into 'v2.1.0'

Xuyl dev 2.1.0

See merge request !49
2 parents 874dab7f 788b377e
......@@ -10,13 +10,13 @@
</el-tab-pane>
</el-tabs>
<div class="pageContent">
<search-form class="searchTop border-shadow" :formModel="searchForm" :formList="tagsPartFormList" @setTableHeightEvent="setTableHeightEvent">
<search-form class="searchTop border-shadow" :formModel="searchForm" :formList="tagsPartFormList">
<span class="inline-b" slot="form-slot">
<!-- <el-button @click="resetTable" plain>重置</el-button> -->
<el-button class="searchBtn" type="primary" @click="searchTable">查询</el-button>
</span>
</search-form>
<GLTable class="crowdTable" @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="crowdManage" :hasNum="false" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable class="crowdTable" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="crowdManage" :hasNum="false" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<span slot="crowdName" slot-scope="scope">
<span class="line-ellipsis">{{ scope.scope.crowdName.slice(0, 24) }}</span>
</span>
......@@ -67,7 +67,7 @@ export default {
prop: 'crowdName',
addHtml: 'crowdName',
align: 'left',
minWidth:160
minWidth: 160
// width: 431
},
{
......@@ -75,7 +75,7 @@ export default {
prop: 'crowdDesc',
addHtml: 'crowdDesc',
align: 'left',
minWidth:160
minWidth: 160
},
{
label: '人数',
......@@ -108,17 +108,7 @@ export default {
}
this.searchForm = { 'req.merchantId': this.merchantId, 'req.crowdType': this.crowdType }
},
mounted() {
//没数据的时候要算高度
setTimeout(() => {
// if (!this.$refs.crowdManage.data.length) {
this.loading = true
this.$refs.crowdManage.setTableHeightFun()
this.loading = false
// }
}, 200)
},
mounted() {},
methods: {
btnClick(type, data) {
if (type == 'detail') {
......@@ -132,15 +122,17 @@ export default {
addClick() {
this.$router.push('/crowdManage/crowdAdd')
},
setTableHeightEvent() {
this.$refs.clientGroupDetail.setTableHeightFun()
setTableFinishFun() {
console.log(this.$refs.crowdManage.data.length)
if (!this.$refs.crowdManage.data.length) {
this.$nextTick(() => this.$refs.crowdManage.setTableHeightFun())
} else {
this.$refs.crowdManage.tableHeightValues = ''
}
},
handleClick() {
this.searchForm = { 'req.keyword': '' }
this.searchTable()
setTimeout(() => {
this.$refs.crowdManage.setTableHeightFun()
}, 200)
},
beforeSearchFn() {
return new Promise(resolve => {
......
......@@ -17,18 +17,12 @@
<!-- 表格区域 开始 -->
<GLTable ref="gueastGroup" @setTableFinishFun="setTableFinishFun" :noDataImg="url" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf">
<div slot="entmicro-name" class="entmicro" slot-scope="scope">
<!-- <span v-for="(i, index) in scope.scope.userList" :key="index">
{{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }}
<span
v-show="scope.scope.userList.length - 1 != index"
>;</span>
</span>-->
<div class="entmicro-tag" v-for="(tag, idx) in scope.scope.userList" :key="idx">
<el-tag type="info" v-if="idx < 9" :disable-transitions="false">
<el-tag type="info" v-if="idx < 2" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}{{ tag.departmentName ? `(${tag.departmentName})` : '' }}
</el-tag>
<el-tag type="info" v-if="scope.scope.userList.length > 9 && idx == 9">
<el-tag type="info" v-if="scope.scope.userList.length > 2 && idx == 2">
<el-popover placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...({{ scope.scope.userList.length }})</span>
<div class="entmicro-hover">
......@@ -91,23 +85,25 @@ export default {
{
label: '群聊名称',
prop: 'groupName',
width: 200
line: 1
// width: 200
},
{
label: '默认成员',
prop: 'entmicroName',
minWidth: '100px',
minWidth: 150,
addHtml: 'entmicro-name'
},
{
label: '创建时间',
prop: 'createdTime',
width: 180
line: 1
// width: 180
},
{
label: '状态',
prop: 'status',
width: '80px',
// width: '80px',
addHtml: 'status'
},
{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!