Commit 8c2a34dd by huaying

fix: 客户标签he客户分组优化

parent 1cc8afad
......@@ -13,8 +13,8 @@
导入多标签值会员
</el-button>
<el-button type="primary" class="ghost-btn" @click="importTagValue">
<i class="iconfont icon-shangc" />
标签值
<i class="iconfont icon-xiazai" />
标签值
</el-button>
<el-button type="primary" class="ghost-btn" @click="exportMember">
<i class="iconfont icon-xiazai" />
......
......@@ -17,15 +17,13 @@
</li>
<li >
<div class="el-loading-spinner" style="width: 86%;" v-if="memberGroupLoading">
<!-- <svg viewBox="25 25 50 50" class="circular">
<circle cx="50" cy="50" r="20" fill="none" class="path"></circle>
</svg> -->
<i class="el-icon-loading"></i>
</div>
</li>
</ul>
<p v-if="searchTip" class="searchTip">没有找到和“{{ listsParams.classifyName }}”相关的内容</p>
<div v-if="$getButtonLimit($buttonCode.memberTagAddCateGory) && activeType == 1" class="add-category">
<el-button @click="editDialog.visible = true" :limit-code="$buttonCode.memberTagAddCateGory" type="primary" class="ghost-btn add-group">新增分类</el-button>
<el-button @click="editDialog.visible = true" :limit-code="$buttonCode.memberTagAddCateGory" type="primary" class="ghost-btn add-group" v-if="lists.length > 1">新增分类</el-button>
</div>
<!--编辑分类-->
<el-dialog :title="editDialog.list.memberTagGroupClassifyId ? '编辑分类' : '新增分类'" :visible.sync="editDialog.visible" width="600px" top="30vh" :close-on-click-modal="false" @close="closeEditGroup">
......@@ -51,6 +49,7 @@ export default {
},
data() {
return {
searchTip: false,
addGroupDialog: false,
listsParams: {
// type: '', // 类型 0:客户分组,1:固化分组
......@@ -214,6 +213,13 @@ export default {
this.memberGroupLoading = false;
if (res.errorCode == 0) {
const { result, totalPage } = res.result || {};
if (this.listsParams.classifyName == '') {
this.searchTip = false;
} else if (this.listsParams.classifyName != '') {
if (result.length <= 0) {
this.searchTip = true;
}
}
if (pageNum == 1) {
this.lists = [];
}
......@@ -290,22 +296,45 @@ export default {
overflow-y: auto;
.active-li {
color: #2F54EB;
background-color: #EBEFFE;
background-color: #ebeffe;
.icon {
width: 16px;
height: 16px;
padding: 1px;
border-radius: 2px;
color: #2f54eb;
&:hover {
background: RGBA(216, 222, 252, 1);
}
}
.wrap span{
padding-left: 6px;
color: #2f54eb;
}
}
.wrap span{
padding-left: 6px;
color: #303133;
}
li:hover {
background-color: #EBEFFE;
background-color: #F2F3F5;
.icon {
color: #2f54eb;
padding: 1px;
border-radius: 2px;
background: RGBA(229, 230, 235, 1);
color: #303133;
}
}
}
li:active {
background-color: #EBEFFE;
.wrap span{
color: #2f54eb;
}
.icon {
color: #2f54eb;
}
}
.more {
line-height: 26px;
......@@ -315,4 +344,11 @@ export default {
color: #2f54eb;
}
}
.searchTip {
width: 100%;
text-align: center;
margin-top: 80%;
color: #909399;
font-size: 14px;
}
</style>
......@@ -676,7 +676,8 @@ export default {
// this.handTag = null;
this.loadMemberTagList({
searchName: this.memberTag,
showSearchResult: true
showSearchResult: true,
id: this.groupId
});
this.pageNum = 1;
// this.handTag = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment