Commit c4e2544b by 李长胜
2 parents 8b31122e 07c0dc50
.el-tag {
color: #666!important;
font-size: 14px!important;
height: 26px;
line-height: 26px;
}
.el-tag.el-tag--info {
background: #fafbfe !important;
......@@ -11,4 +13,16 @@ color: #666;
.el-tag.el-tag--info.el-tag--plain {
background: transparent !important;
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
\ No newline at end of file
......@@ -12,10 +12,16 @@
</div>
<el-form :model="basicForm" :rules="basicRules" ref="basicForm" label-width="124px">
<el-form-item label="组名" prop="orgName">
<el-input v-model="basicForm.orgName" placeholder="为群聊设置一个组名" maxlength="10"></el-input>
<el-input
v-model="basicForm.orgName"
size="small"
placeholder="为群聊设置一个组名"
maxlength="10"
></el-input>
</el-form-item>
<el-form-item label="群聊名称" prop="groupName">
<el-input
size="small"
v-model="basicForm.groupName"
placeholder="设置群聊名称前缀,如新车售后一组"
maxlength="10"
......@@ -35,18 +41,19 @@
</span>
<div class="sale-select" v-show="basicForm.userList">
<div class="el-input-tag input-tag-wrapper">
<el-scrollbar>
<div style="max-height: 64px;">
<el-tag
v-for="(tag, idx) in basicForm.userList"
:key="idx"
type="info"
closable
:disable-transitions="false"
@close="remove(tag, idx)"
>{{ tag.staffName }}</el-tag>
</div>
</el-scrollbar>
<div style="max-height: 64px;">
<el-tag
v-for="(tag, idx) in basicForm.userList"
:key="idx"
type="info"
closable
:disable-transitions="false"
@close="remove(tag, idx)"
>
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
</div>
</div>
<div class="form-tips">必须配置2个及以上成员</div>
......@@ -388,42 +395,51 @@ export default {
.input-tag-wrapper {
max-width: 320px;
// max-height: 68px;
overflow: auto;
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
max-height: 64px;
// box-sizing: border-box;
color: #606266;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
padding: 0 0px 5px 5px;
padding: 0 5px;
flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
width: 450px;
display: flex;
align-items: center;
// overflow: auto;
/deep/ input {
/* input { */
/* background-color: red!important; 调试用的样式 */
outline: none !important;
border: none !important;
}
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
margin-top: 6px;
font-size: 14px;
line-height: 32px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
// // overflow: auto;
// /deep/ input {
// /* input { */
// /* background-color: red!important; 调试用的样式 */
// outline: none !important;
// border: none !important;
// }
// /deep/ .el-input {
// min-width: 150px;
// width: auto;
// flex: 1;
// }
}
.el-tag {
margin: 3px 4px 3px 0;
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.tag-input {
background: transparent;
......
......@@ -12,7 +12,10 @@
closable
:disable-transitions="false"
@close="remove(tag)"
>{{ tag.staffName }}</el-tag>
>
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
<el-input
size="small"
......@@ -183,6 +186,11 @@ export default {
width: 100%;
display: flex;
align-items: center;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
/deep/ input {
/* input { */
/* background-color: red!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!