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