Commit c4e2544b by 李长胜
2 parents 8b31122e 07c0dc50
.el-tag { .el-tag {
color: #666!important; color: #666!important;
font-size: 14px!important; font-size: 14px!important;
height: 26px;
line-height: 26px;
} }
.el-tag.el-tag--info { .el-tag.el-tag--info {
background: #fafbfe !important; background: #fafbfe !important;
...@@ -11,4 +13,16 @@ color: #666; ...@@ -11,4 +13,16 @@ color: #666;
.el-tag.el-tag--info.el-tag--plain { .el-tag.el-tag--info.el-tag--plain {
background: transparent !important; 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 \ No newline at end of file
...@@ -12,10 +12,16 @@ ...@@ -12,10 +12,16 @@
</div> </div>
<el-form :model="basicForm" :rules="basicRules" ref="basicForm" label-width="124px"> <el-form :model="basicForm" :rules="basicRules" ref="basicForm" label-width="124px">
<el-form-item label="组名" prop="orgName"> <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>
<el-form-item label="群聊名称" prop="groupName"> <el-form-item label="群聊名称" prop="groupName">
<el-input <el-input
size="small"
v-model="basicForm.groupName" v-model="basicForm.groupName"
placeholder="设置群聊名称前缀,如新车售后一组" placeholder="设置群聊名称前缀,如新车售后一组"
maxlength="10" maxlength="10"
...@@ -35,18 +41,19 @@ ...@@ -35,18 +41,19 @@
</span> </span>
<div class="sale-select" v-show="basicForm.userList"> <div class="sale-select" v-show="basicForm.userList">
<div class="el-input-tag input-tag-wrapper"> <div class="el-input-tag input-tag-wrapper">
<el-scrollbar> <div style="max-height: 64px;">
<div style="max-height: 64px;"> <el-tag
<el-tag v-for="(tag, idx) in basicForm.userList"
v-for="(tag, idx) in basicForm.userList" :key="idx"
:key="idx" type="info"
type="info" closable
closable :disable-transitions="false"
:disable-transitions="false" @close="remove(tag, idx)"
@close="remove(tag, idx)" >
>{{ tag.staffName }}</el-tag> <i class="el-icon-user-solid"></i>
</div> {{ tag.staffName }}
</el-scrollbar> </el-tag>
</div>
</div> </div>
</div> </div>
<div class="form-tips">必须配置2个及以上成员</div> <div class="form-tips">必须配置2个及以上成员</div>
...@@ -388,42 +395,51 @@ export default { ...@@ -388,42 +395,51 @@ export default {
.input-tag-wrapper { .input-tag-wrapper {
max-width: 320px; max-width: 320px;
// max-height: 68px;
overflow: auto;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
background-color: #fff; background-color: #fff;
background-image: none; background-image: none;
border-radius: 4px; border-radius: 4px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
max-height: 64px; box-sizing: border-box;
// box-sizing: border-box; color: #666;
color: #606266;
display: inline-block; display: inline-block;
outline: none; outline: none;
padding: 0 0px 5px 5px; padding: 0 5px;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%; width: 450px;
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 6px;
// overflow: auto; font-size: 14px;
/deep/ input { line-height: 32px;
/* input { */ i {
/* background-color: red!important; 调试用的样式 */ color: #75acff;
outline: none !important; margin-right: 3px;
border: none !important; font-size: 14px;
}
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
} }
// // 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 { .el-tag {
margin: 3px 4px 3px 0; margin-right: 4px;
height: 26px; height: 26px;
line-height: 24px; line-height: 24px;
margin-bottom: 5px;
} }
.tag-input { .tag-input {
background: transparent; background: transparent;
......
...@@ -12,7 +12,10 @@ ...@@ -12,7 +12,10 @@
closable closable
:disable-transitions="false" :disable-transitions="false"
@close="remove(tag)" @close="remove(tag)"
>{{ tag.staffName }}</el-tag> >
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div> </div>
<el-input <el-input
size="small" size="small"
...@@ -183,6 +186,11 @@ export default { ...@@ -183,6 +186,11 @@ export default {
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
/deep/ input { /deep/ input {
/* input { */ /* input { */
/* background-color: red!important; 调试用的样式 */ /* background-color: red!important; 调试用的样式 */
......
...@@ -8,25 +8,72 @@ ...@@ -8,25 +8,72 @@
</div> </div>
<div class="container"> <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"> <span class="inline-b" slot="form-slot">
<el-button type="primary" @click="searchTable">查询</el-button> <el-button type="primary" @click="searchTable">查询</el-button>
</span> </span>
</search-form> </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"> <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})` : '' }} {{ 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> </div>
<span slot="status" slot-scope="scope"> <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> </span>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <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('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> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -61,19 +108,19 @@ export default { ...@@ -61,19 +108,19 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '组名', label: '组名',
prop: 'orgName' prop: 'orgName',
width: 200
}, },
{ {
label: '默认成员', label: '默认成员',
prop: 'entmicroName', prop: 'entmicroName',
line: 2,
minWidth: '100px', minWidth: '100px',
addHtml: 'entmicro-name' addHtml: 'entmicro-name'
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createdTime', prop: 'createdTime',
line: 2 width: 180
}, },
{ {
label: '状态', label: '状态',
...@@ -288,15 +335,39 @@ export default { ...@@ -288,15 +335,39 @@ export default {
line-height: 20px; line-height: 20px;
} }
.entmicro { .entmicro {
overflow: hidden; // overflow: hidden;
text-overflow: ellipsis; // text-overflow: ellipsis;
display: -webkit-box; // display: -webkit-box;
-webkit-line-clamp: 2; // -webkit-line-clamp: 2;
-webkit-box-orient: vertical; // -webkit-box-orient: vertical;
text-align: left; text-align: left;
span { i {
line-height: 20px; 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/ { /deep/ {
.search-form { .search-form {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!