Commit f449dddb by 李长胜

标签表格颜色

1 parent 8b8b4c3f
......@@ -85,22 +85,22 @@ export default {
{
label: '客户群名称',
prop: 'custGroupName',
width: 180
minWidth: 160
},
{
label: '当前客户数',
prop: 'totalCount',
width: 100
minWidth: 100
},
{
label: '新增入群客户数',
prop: 'newCustomerCount',
width: 120
minWidth: 140
},
{
label: '新增退群客户数',
prop: 'delCustomerCount',
width: 120
minWidth: 140
},
{
label: '群主',
......
......@@ -5,19 +5,23 @@
<!-- <button class="addTagsBtn" @click="btnClick('edit')">修改标签组</button> -->
<span class="toptips">
<!-- v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))" -->
<span>共有{{ numberObj.groupCount || 0 }}个标签组,{{ numberObj.bizLabelCount || 0 }}个企业标签<template v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))">,{{ numberObj.rcLabelCount || 0 }}个自店标签</template></span>
<span>
共有{{ numberObj.groupCount || 0 }}个标签组,{{ numberObj.bizLabelCount || 0 }}个企业标签
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">,{{ numberObj.rcLabelCount || 0 }}个自店标签</template>
</span>
<span class="iconPanelWrap" v-if="!isFirstShow">
<el-popover placement="top" width="666" trigger="hover" >
<el-popover placement="top" width="666" trigger="hover">
<div>企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</div>
<div v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;</div>
<div v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;</div>
<div>行业标签为通过大数据算法规则生成的标签</div>
<img src="@/assets/tagsManage/question.png" slot="reference" alt="" />
</el-popover>
</span>
</span>
<div class="initPanel" v-if="isFirstShow">
可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;<template v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;</template>行业标签为通过大数据算法规则生成的标签
可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;</template>
行业标签为通过大数据算法规则生成的标签
<img src="@/assets/tagsManage/Shape.png" alt="" />
<i class="el-icon-close" @click="closeInitPanel"></i>
</div>
......@@ -59,7 +63,7 @@
</div>
</span>
<template slot="xxx" slot-scope="scope">
<!-- 这版关掉自店标签 -->
<!-- //这版关掉自店标签 -->
<span @click="btnClick('edit', scope.scope)" class="blue-text" v-if="scope.scope.labelType != '行业标签' && isShowEditBtn(scope.scope)">编辑标签组</span>
</template>
<!-- <div slot="additionalContent">
......@@ -77,7 +81,11 @@
<el-option v-for="item in tagsGroupList" :key="item.id" :label="item.name" :value="item.id"></el-option>
</el-select>
<!-- id="tagTipMsgRef" -->
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup">企业标签<template v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))">和自店标签</template>分别最多3000个</span>
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup">
企业标签
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">和自店标签</template>
分别最多3000个
</span>
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && tagForm.initTagsGroup == 1">
企业标签已创建
<span class="pure-blue-text">{{ numberObj.bizLabelCount }}</span>
......@@ -99,15 +107,14 @@
</div>
<div slot="tagsInput-type">
<div class="tagsWrap" v-if="tagDialogTitle == '编辑标签组'">
<span class="tag" :class="{ inputWrapShow: item.inputVisible }" v-for="item in editTagList" :key="item.id">
<el-input class="input-new-tag" maxlength="30" show-word-limit v-if="item.inputVisible" v-model.trim="item.name" ref="saveTagInput" size="small" @blur="handleInputConfirm(item.name, item.id)" @keyup.enter.native="handleInputConfirm(item.name, item.id)"></el-input>
<span class="tag" :class="{ inputWrapShow: item.inputVisible }" v-for="item in editTagList" :key="item.id">
<el-input class="input-new-tag" maxlength="30" show-word-limit v-if="item.inputVisible" v-model.trim="item.name" ref="saveTagInput" size="small" @blur="handleInputConfirm(item.name, item.id)" @keyup.enter.native="handleInputConfirm(item.name, item.id)"></el-input>
<el-tooltip class="item" :content="item.name" placement="top">
<span class="ellipsis-1" v-if="!item.inputVisible">{{ item.name }}</span>
</el-tooltip>
<img class="editIcon" src="@/assets/tagsManage/edit.png" @click="showInput(item.id)" alt="" v-show="!item.inputVisible" />
</span>
</div>
<div class="row-tag" v-for="(item, index) in tagForm.tagsList" :key="index">
<!-- :onkeyup="(item.name = item.name.replace(/\s+/g, ''))" -->
......@@ -155,7 +162,7 @@ export default {
}
}
return {
isReload:true,
isReload: true,
isAllowCloseDialog: false,
isHasSameTag: false,
tagNameRules: false,
......@@ -166,7 +173,7 @@ export default {
tagsPartFormList: [
{
type: 'select',
prop: 'labelTreeReq.labelTypesStr',
prop: 'labelTreeReq.labelTypesStr',
label: '标签组',
placeholder: '请选择标签组类型',
options: [
......@@ -298,20 +305,20 @@ export default {
if (this.merchantModel == 1) {
if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
}
if(this.merchantModel==1){
if(this.accountLevel ==1){
if (this.merchantModel == 1) {
if (this.accountLevel == 1) {
//集团下的工厂只能创建企微标签,自店标签不要了
this.tagsGroupList.splice(1,1)
this.tagsPartFormList[0].options.splice(1,1)
this.tagsGroupList.splice(1, 1)
this.tagsPartFormList[0].options.splice(1, 1)
}
}
// 集团授权模式下的门店账号,拥有标签管理模块权限,修改为:去掉门店的“标签管理”模块权限
// 单店授权模式下的门店账号,创建标签组时,可创建企业标签和自店标签,修改为:创建标签组时,仅能选择企业标签,去掉自店标签选项;
if(this.merchantModel==2){
if(this.accountLevel==4){
this.tagsGroupList.splice(1,1)
this.tagsPartFormList[0].options.splice(1,1)
}
// 集团授权模式下的门店账号,拥有标签管理模块权限,修改为:去掉门店的“标签管理”模块权限
// 单店授权模式下的门店账号,创建标签组时,可创建企业标签和自店标签,修改为:创建标签组时,仅能选择企业标签,去掉自店标签选项;
if (this.merchantModel == 2) {
if (this.accountLevel == 4) {
this.tagsGroupList.splice(1, 1)
this.tagsPartFormList[0].options.splice(1, 1)
}
}
}
this.searchForm = { 'labelTreeReq.shopId': this.merchantId, 'labelTreeReq.edition': this.merchantModel }
......@@ -339,7 +346,7 @@ export default {
isShowEditBtn(row) {
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//单店模式下,仅门店和员工可以编辑
if(row.labelType=="自店标签"){
if (row.labelType == '自店标签') {
return false
}
if (this.merchantModel == 1) {
......@@ -640,6 +647,28 @@ export default {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.scrm-sub-client-container {
// /deep/.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell,
// .el-table__body tr.current-row > td.el-table__cell {
// background-color: #f4f3ff;
// }
// .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
// background: #fff;
// }
// /deep/.el-table__body tr.hover-row.current-row > td.el-table__cell,
// .el-table__body tr.hover-row.el-table__row--striped.current-row > td.el-table__cell,
// .el-table__body tr.hover-row.el-table__row--striped > td.el-table__cell,
// .el-table__body tr.hover-row > td.el-table__cell {
// background-color: #f4f3ff;
// }
// /deep/ .el-table__body tr.el-table__row.current-row td, .el-table__body tr.current-row>td, .el-table__body tr.hover-row.current-row>td,
// .el-table__body tr.hover-row.el-table__row.current-row>td, .el-table__body tr.hover-row.el-table__row>td, .el-table__body tr.hover-row>td
// {
// background-color: red;
// }
/deep/.el-table tbody tr:hover>td { background-color:#f4f3ff; }
.pageTitle {
position: relative;
// margin-top: 30px;
......@@ -744,7 +773,7 @@ export default {
.allTagsWrap {
position: relative;
display: -webkit-box;
// max-height: 56px;
// max-height: 56px;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
......@@ -758,7 +787,7 @@ export default {
}
.tag-box-wrap {
display: inline-block;
margin-right: 10px;
// margin-bottom: 2px;
padding: 0 10px;
......@@ -781,7 +810,7 @@ export default {
// }
}
// .tag-box-wrap + .tag-box-wrap {
// margin-bottom: 4px;
// margin-bottom: 4px;
// }
.expande-button-wrap {
position: absolute;
......@@ -860,14 +889,14 @@ export default {
border: 1px solid #e8e8ea;
position: relative;
box-sizing: border-box;
/deep/.input-new-tag {
/deep/.input-new-tag {
// position: relative;
width: 100%;
}
.el-input--small .el-input__inner{
height: 26px;
line-height: 26px;
font-size: 14px;
.el-input--small .el-input__inner {
height: 26px;
line-height: 26px;
font-size: 14px;
}
.ellipsis-1 {
display: inline-block;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!