Commit 07c0dc50 by 胡悦

提交一客一群

1 parent a2037a1c
.el-tag {
color: #666!important;
font-size: 14px!important;
height: 26px;
line-height: 26px;
}
.el-tag.el-tag--info {
background: #fafbfe !important;
......
......@@ -8,25 +8,72 @@
</div>
<div class="container">
<search-form class="searchTop border-shadow" :formModel="searchForm" :formList="searchFormData">
<search-form
class="searchTop border-shadow"
:formModel="searchForm"
:formList="searchFormData"
>
<span class="inline-b" slot="form-slot">
<el-button type="primary" @click="searchTable">查询</el-button>
</span>
</search-form>
<!-- 表格区域 开始 -->
<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">
<span v-for="(i, index) in scope.scope.userList" :key="index">
<!-- <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>
<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">
<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-popover
placement="top-start"
width="600"
trigger="hover"
content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<span slot="reference">...({{scope.scope.userList.length}})</span>
<div class="entmicro-hover">
<el-tag
type="info"
v-for="(i, index) in scope.scope.userList"
:key="index"
:disable-transitions="false"
>
<i class="el-icon-user-solid"></i>
{{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }}
</el-tag>
</div>
</el-popover>
</el-tag>
</div>
</div>
<span slot="status" slot-scope="scope">
<span class="statusText" :class="{ 'red-text': scope.scope.status === '2', 'green-text': scope.scope.status === '1' }">{{ scope.scope.status == '1' ? '启用' : '停用' }}</span>
<span
class="statusText"
:class="{ 'red-text': scope.scope.status === '2', 'green-text': scope.scope.status === '1' }"
>{{ scope.scope.status == '1' ? '启用' : '停用' }}</span>
</span>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="btnClick('edit', scope.scope)">修改</el-button>
<el-button type="text" @click="btnClick('status', scope.scope)">{{ scope.scope.status == 1 ? '停用' : '启用' }}</el-button>
<el-button
type="text"
@click="btnClick('status', scope.scope)"
>{{ scope.scope.status == 1 ? '停用' : '启用' }}</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
......@@ -61,19 +108,19 @@ export default {
tableColumns: [
{
label: '组名',
prop: 'orgName'
prop: 'orgName',
width: 200
},
{
label: '默认成员',
prop: 'entmicroName',
line: 2,
minWidth: '100px',
addHtml: 'entmicro-name'
},
{
label: '创建时间',
prop: 'createdTime',
line: 2
width: 180
},
{
label: '状态',
......@@ -288,15 +335,39 @@ export default {
line-height: 20px;
}
.entmicro {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
// overflow: hidden;
// text-overflow: ellipsis;
// display: -webkit-box;
// -webkit-line-clamp: 2;
// -webkit-box-orient: vertical;
text-align: left;
span {
line-height: 20px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
&-tag {
display: inline-block;
}
&-hover {
max-height: 214px;
overflow: auto;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
// span {
// line-height: 20px;
// }
}
.el-tag {
margin-right: 10px;
margin-bottom: 10px;
cursor: pointer;
background-color: #fff !important;
}
/deep/ {
.search-form {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!