Commit 079ded9d by 胡悦

Merge branch 'v1.0.1' of http://192.168.3.233:8090/saas/scrm-micro-custom into v1.0.1

2 parents 612ffcf5 ad24619c
......@@ -14,7 +14,7 @@
"echarts": "^5.2.0",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.2.8",
"glsx-components": "^1.3.0",
"glsx-table": "^1.1.0",
"jquery": "^3.6.0",
"sha1": "^1.1.1",
......
......@@ -15,6 +15,10 @@ export default {
type: String,
default: ''
},
isCloseShowNumTag:{
type:Boolean,
default:false
},
totalData: {
type: Array,
// default: () => []
......@@ -210,7 +214,7 @@ export default {
type: 'bar',
data: this.customerCount, //[33600, 18000, 17500, 20000, 17000, 480, 1000, 800, 520, 650, 920, 600],
label: {
show: true,
show: this.isCloseShowNumTag ? false : true,
// formatter: '{b}: {c}',
color: '#666666',
position: 'top'
......@@ -236,7 +240,7 @@ export default {
color: '#FE9C1C'
},
label: {
show: true,
show: this.isCloseShowNumTag ? false : true,
color: '#666666',
position: 'top'
}
......
......@@ -27,6 +27,7 @@ export default {
.scrm-sub-client-container {
.nodata {
position: absolute;
text-align: center;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
......
......@@ -179,7 +179,7 @@
</div>
</div>
<!-- v-if="isShowBarMap" width="100%" -->
<multiple-echart v-if="isReload" width="100%" height="420px" :totalData="allMapList"></multiple-echart>
<multiple-echart v-if="isReload" width="100%" height="420px" :totalData="allMapList" :isCloseShowNumTag="isCloseShowNumTag"></multiple-echart>
</template>
</div>
<el-dialog title="提示" :visible.sync="dialogVisible" top="15vh" width="30%" :before-close="handleClose">
......@@ -211,6 +211,7 @@ export default {
},
data() {
return {
isCloseShowNumTag:false,
isReload:true,
isShowModal: false,
isHasCustomerCountBanner: false,
......@@ -485,6 +486,7 @@ export default {
},
clickThirty() {
this.timeGap = 30
this.isCloseShowNumTag=true
if (Object.keys(this.thirtyDayStorage).length == 0) {
this.getDataOverviewBarMapFun(30) //第一次点击30天,获取数据
} else {
......@@ -494,6 +496,7 @@ export default {
},
clickSeven() {
this.timeGap = 7
this.isCloseShowNumTag=false
if (Object.keys(this.sevenDayStorage).length == 0) {
this.getDataOverviewBarMapFun() //重新掉一遍接口
} else {
......
......@@ -44,7 +44,7 @@
</div>
<div class="rightWrap">
<p>
<span>客户列表</span>
<span>全部客户</span>
<span>{{ clientTableDataNum || 0 }}个</span>
</p>
<search-form class="searchTop border-shadow" :isNeedThreeBtns="false" :showDefaultTime="false" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
......@@ -90,7 +90,7 @@ export default {
name: 'clientGroupDetail',
data() {
return {
dialogVisible:false,
dialogVisible: false,
groupName: this.$route.query.groupName,
url: url,
leftPanelList: {},
......@@ -177,7 +177,7 @@ export default {
},
{
label: '邀请人',
prop: 'invitor'
prop: 'invitorName'
},
{
label: '入群时间',
......@@ -282,22 +282,22 @@ export default {
},
goDetail(id) {
// 接口通过了跳转
getClientTableDetail({ id }).then(res => {
console.log(res,'666')
getClientTableDetail({ oneId: id }).then(res => {
if (res.code == '0') {
if (!res.data) {
this.dialogVisible = true
return false
}
this.$router.push({
path: '/clientManage/clientDetail',
query: {
id: id
}
})
} else if (res.code == '-1' && res.message=='该客户暂无员工跟进,无法查看该客户详情') {
this.dialogVisible = true
this.$message.error(`${res.message}`)
}else{
} else {
this.$message({
type:'error',
message:res.message
type: 'error',
message: res.message
})
}
})
......
<template>
<div class="sub-container">
<search-form class="searchTop border-shadow" :isNeedThreeBtns="false" :showDefaultTime="false" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
</span>
</search-form>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span>
</span>
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
</span>
<span slot="joinScene" slot-scope="scope">
<span>{{ scope.scope.joinScene == 1 ? '直接邀请入群' : scope.scope.joinScene == 2 ? '通过邀请链接入群' : scope.scope.joinScene == 3 ? '通过扫描群二维码入群' : '' }}</span>
</span>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<span @click="goDetail(scope.scope.id)" class="blue-text">详情</span>
</template>
</GLTable>
</div>
</template>
<script>
import { getDetailTableList } from '@/api/modules/clientGroupManage'
export default {
props: {
url: {
type: String,
default: ''
}
},
data() {
return {
searchForm: {},
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
prop: 'daterange',
label: '入群时间',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
},
{
type: 'select',
prop: 'customerSex',
label: '性别',
placeholder: '请选择性别',
options: [
{
label: '全部',
value: null
},
{
label: '男',
value: 1
},
{
label: '女',
value: 2
},
{
label: '未知',
value: 0
}
]
},
{
type: 'input',
inputType: 'text',
prop: 'groupNickName',
label: '本群昵称',
placeholder: '请输入本群昵称'
},
{
type: 'input',
inputType: 'text',
prop: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableParams: {
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data',
tableColumns: [
{
label: '本群昵称',
prop: 'groupNickName'
},
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName'
},
{
label: '手机号码',
prop: 'customerPhone'
},
{
label: '性别',
prop: 'customerSex',
addHtml: 'customerSex'
},
{
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene'
},
{
label: '邀请人',
prop: 'invitorName'
},
{
label: '入群时间',
prop: 'joinTime',
width: 95
}
],
tableOption: {
width: 80,
btnList: [
{
name: '详情',
pType: 'detail'
}
]
}
},
getListApi: getDetailTableList,
clientTableDataNum: 0
}
},
created() {
this.searchForm = {
id: this.$route.query.id
}
},
methods: {
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchFormTable.daterange) {
this.searchFormTable.beginTime = this.searchForm.daterange[0]
this.searchFormTable.endTime = this.searchForm.daterange[1]
delete this.searchFormTable.daterange
} else {
if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
resolve()
})
},
setTableHeightEvent() {
this.$refs.clientGroupDetail.setTableHeightFun()
},
setTableFinishFun(content) {
//content是第一页的数据
console.log(content)
this.clientTableDataNum = this.$refs.clientGroupDetail.total
this.$emit('getTotal',this.clientTableDataNum)
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this.$refs.clientGroupDetail.data.length ? (this.$refs.clientGroupDetail.tableHeightValues = '') : this.$refs.clientGroupDetail.setTableHeightFun()
},
//搜索表格
searchTable() {
this.$refs.clientGroupDetail.refreshTable()
},
//重置表格
resetTable() {
this.searchForm = { id: this.$route.query.id }
this.$refs.clientGroupDetail.refreshTable()
},
goDetail(msg) {
this.$emit('goDetail', msg)
}
}
}
</script>
<style lang="scss" scope>
.sub-container {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
}
</style>
\ No newline at end of file
<template>
<div class="sub-container">
<search-form class="searchTop border-shadow" :isNeedThreeBtns="false" :showDefaultTime="false" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
</span>
</search-form>
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
</span>
<span slot="joinScene" slot-scope="scope">
<span>{{ scope.scope.joinScene == 1 ? '直接邀请入群' : scope.scope.joinScene == 2 ? '通过邀请链接入群' : scope.scope.joinScene == 3 ? '通过扫描群二维码入群' : '' }}</span>
</span>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<span @click="goDetail(scope.scope.id)" class="blue-text">详情</span>
</template>
</GLTable>
</div>
</template>
<script>
// import { getDetailTableList } from '@/api/modules/clientGroupManage'
export default {
props: {
url: {
type: String,
default: ''
}
},
data() {
return {
searchForm: {},
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
prop: 'daterange',
label: '入群时间',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
},
{
type: 'select',
prop: 'customerSex',
label: '性别',
placeholder: '请选择性别',
options: [
{
label: '全部',
value: null
},
{
label: '男',
value: 1
},
{
label: '女',
value: 2
},
{
label: '未知',
value: 0
}
]
},
{
type: 'input',
inputType: 'text',
prop: 'groupNickName',
label: '本群昵称',
placeholder: '请输入本群昵称'
},
{
type: 'input',
inputType: 'text',
prop: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableParams: {
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '本群昵称',
prop: 'groupNickName'
},
{
label: '员工名称',
prop: 'customerName',
},
{
label: '手机号码',
prop: 'customerPhone'
},
{
label: '性别',
prop: 'customerSex',
addHtml: 'customerSex'
},
{
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene'
},
{
label: '邀请人',
prop: 'invitorName'
},
{
label: '入群时间',
prop: 'joinTime',
width: 95
}
]
},
getListApi: '',
clientTableDataNum: 0
}
},
created() {
this.searchForm = {
id: this.$route.query.id
}
},
methods: {
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchFormTable.daterange) {
this.searchFormTable.beginTime = this.searchForm.daterange[0]
this.searchFormTable.endTime = this.searchForm.daterange[1]
delete this.searchFormTable.daterange
} else {
if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
resolve()
})
},
setTableHeightEvent() {
this.$refs.clientGroupDetail.setTableHeightFun()
},
setTableFinishFun(content) {
//content是第一页的数据
console.log(content)
this.clientTableDataNum = this.$refs.clientGroupDetail.total
this.$emit('getTotal',this.clientTableDataNum)
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this.$refs.clientGroupDetail.data.length ? (this.$refs.clientGroupDetail.tableHeightValues = '') : this.$refs.clientGroupDetail.setTableHeightFun()
},
//搜索表格
searchTable() {
this.$refs.clientGroupDetail.refreshTable()
},
//重置表格
resetTable() {
this.searchForm = { id: this.$route.query.id }
this.$refs.clientGroupDetail.refreshTable()
},
goDetail(msg) {
this.$emit('goDetail', msg)
}
}
}
</script>
<style lang="scss" scope>
.sub-container {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
}
</style>
\ No newline at end of file
<template>
<div class="sub-container">
<search-form class="searchTop border-shadow" :isNeedThreeBtns="false" :showDefaultTime="false" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
</span>
</search-form>
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span>
</span>
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
</span>
<span slot="joinScene" slot-scope="scope">
<span>{{ scope.scope.joinScene == 1 ? '直接邀请入群' : scope.scope.joinScene == 2 ? '通过邀请链接入群' : scope.scope.joinScene == 3 ? '通过扫描群二维码入群' : '' }}</span>
</span>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<span @click="goDetail(scope.scope.id)" class="blue-text">详情</span>
</template>
</GLTable>
</div>
</template>
<script>
// import { getDetailTableList } from '@/api/modules/clientGroupManage'
export default {
props: {
url: {
type: String,
default: ''
}
},
data() {
return {
searchForm: {},
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
prop: 'daterange',
label: '入群时间',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
},
{
type: 'select',
prop: 'customerSex',
label: '性别',
placeholder: '请选择性别',
options: [
{
label: '全部',
value: null
},
{
label: '男',
value: 1
},
{
label: '女',
value: 2
},
{
label: '未知',
value: 0
}
]
},
{
type: 'input',
inputType: 'text',
prop: 'groupNickName',
label: '本群昵称',
placeholder: '请输入本群昵称'
},
{
type: 'input',
inputType: 'text',
prop: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableParams: {
listName: 'data',
tableColumns: [
{
label: '本群昵称',
prop: 'groupNickName'
},
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName'
},
{
label: '手机号码',
prop: 'customerPhone'
},
{
label: '性别',
prop: 'customerSex',
addHtml: 'customerSex'
},
{
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene'
},
{
label: '邀请人',
prop: 'invitorName'
},
{
label: '入群时间',
prop: 'joinTime',
width: 95
}
],
tableOption: {
width: 80,
btnList: [
{
name: '详情',
pType: 'detail'
}
]
}
},
getListApi: '',
clientTableDataNum: 0
}
},
created() {
this.searchForm = {
id: this.$route.query.id
}
},
methods: {
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchFormTable.daterange) {
this.searchFormTable.beginTime = this.searchForm.daterange[0]
this.searchFormTable.endTime = this.searchForm.daterange[1]
delete this.searchFormTable.daterange
} else {
if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
resolve()
})
},
setTableHeightEvent() {
this.$refs.clientGroupDetail.setTableHeightFun()
},
setTableFinishFun(content) {
//content是第一页的数据
console.log(content)
this.clientTableDataNum = this.$refs.clientGroupDetail.total
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this.$refs.clientGroupDetail.data.length ? (this.$refs.clientGroupDetail.tableHeightValues = '') : this.$refs.clientGroupDetail.setTableHeightFun()
},
//搜索表格
searchTable() {
this.$refs.clientGroupDetail.refreshTable()
},
//重置表格
resetTable() {
this.searchForm = { id: this.$route.query.id }
this.$refs.clientGroupDetail.refreshTable()
},
goDetail(msg) {
this.$emit('goDetail', msg)
}
}
}
</script>
<style lang="scss" scope>
.sub-container {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
}
</style>
\ No newline at end of file
<template>
<div class="sub-container">
<search-form class="searchTop border-shadow" :isNeedThreeBtns="false" :showDefaultTime="false" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
</span>
</search-form>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<GLTable ref="clientGroupDetail" @setTableFinishFun="setTableFinishFun" :hasNum="true" :pageConf="pageConf" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span>
</span>
<span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
</span>
<span slot="joinScene" slot-scope="scope">
<span>{{ scope.scope.joinScene == 1 ? '直接邀请入群' : scope.scope.joinScene == 2 ? '通过邀请链接入群' : scope.scope.joinScene == 3 ? '通过扫描群二维码入群' : '' }}</span>
</span>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<span @click="goDetail(scope.scope.id)" class="blue-text">详情</span>
</template>
</GLTable>
</div>
</template>
<script>
import { getDetailTableList } from '@/api/modules/clientGroupManage'
export default {
props: {
url: {
type: String,
default: ''
}
},
data() {
return {
searchForm: {},
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
prop: 'daterange',
label: '入群时间',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
},
{
type: 'select',
prop: 'customerSex',
label: '性别',
placeholder: '请选择性别',
options: [
{
label: '全部',
value: null
},
{
label: '男',
value: 1
},
{
label: '女',
value: 2
},
{
label: '未知',
value: 0
}
]
},
{
type: 'input',
inputType: 'text',
prop: 'groupNickName',
label: '本群昵称',
placeholder: '请输入本群昵称'
},
{
type: 'input',
inputType: 'text',
prop: 'customerName',
label: '客户名称',
placeholder: '请输入客户名称'
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableParams: {
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data',
tableColumns: [
{
label: '本群昵称',
prop: 'groupNickName'
},
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName'
},
{
label: '手机号码',
prop: 'customerPhone'
},
{
label: '性别',
prop: 'customerSex',
addHtml: 'customerSex'
},
{
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene'
},
{
label: '邀请人',
prop: 'invitorName'
},
{
label: '入群时间',
prop: 'joinTime',
width: 95
}
],
tableOption: {
width: 80,
btnList: [
{
name: '详情',
pType: 'detail'
}
]
}
},
getListApi: getDetailTableList,
clientTableDataNum: 0
}
},
created() {
this.searchForm = {
id: this.$route.query.id
}
},
methods: {
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchFormTable.daterange) {
this.searchFormTable.beginTime = this.searchForm.daterange[0]
this.searchFormTable.endTime = this.searchForm.daterange[1]
delete this.searchFormTable.daterange
} else {
if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
resolve()
})
},
setTableHeightEvent() {
this.$refs.clientGroupDetail.setTableHeightFun()
},
setTableFinishFun(content) {
//content是第一页的数据
console.log(content)
this.clientTableDataNum = this.$refs.clientGroupDetail.total
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this.$refs.clientGroupDetail.data.length ? (this.$refs.clientGroupDetail.tableHeightValues = '') : this.$refs.clientGroupDetail.setTableHeightFun()
},
//搜索表格
searchTable() {
this.$refs.clientGroupDetail.refreshTable()
},
//重置表格
resetTable() {
this.searchForm = { id: this.$route.query.id }
this.$refs.clientGroupDetail.refreshTable()
},
goDetail(msg) {
this.$emit('goDetail', msg)
}
}
}
</script>
<style lang="scss" scope>
.sub-container {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
}
</style>
\ No newline at end of file
......@@ -84,6 +84,11 @@ export default {
prop: 'custGroupName',
minWidth: 160
},
{
label: '当前成员总数',
prop: 'allMembers',
minWidth: 140
},
{
label: '当前客户数',
prop: 'totalCount',
......@@ -100,12 +105,7 @@ export default {
minWidth: 160
},
{
label: '新增群聊成员数',
prop: 'allMembers',
minWidth: 140
},
{
label: '群聊员工数',
label: '当前跟进员工数',
prop: 'staffs',
minWidth: 140
},
......
......@@ -25,16 +25,19 @@
</span>
<div slot="followStaff" class="entmicro" slot-scope="scope">
<div class="entmicro-tag" v-for="(tag, idx) in followList(scope.scope.followStaff)" :key="idx">
<el-tag type="info" v-if="idx < 3" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ tag }}
</el-tag>
<el-tooltip effect="dark" :content="tag" placement="top">
<el-tag type="info" class="ellipsis-1" v-if="idx < 3" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ tag }}
</el-tag>
</el-tooltip>
<el-tag type="info" v-if="followList(scope.scope.followStaff).length > 3 && idx == 3">
<el-popover placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...({{ followList(scope.scope.followStaff).length }})</span>
<div class="entmicro-hover" >
<el-tag type="info" style="margin-right:10px;margin-bottom:10px;" v-for="(i, index) in followList(scope.scope.followStaff)" :key="index" :disable-transitions="false">
<i class="el-icon-user-solid" style="color:#75acff"></i>
<div slot="reference">...({{ followList(scope.scope.followStaff).length }})</div>
<div class="entmicro-hover">
<el-tag type="info" style="margin-right: 10px; margin-bottom: 10px" v-for="(i, index) in followList(scope.scope.followStaff)" :key="index" :disable-transitions="false">
<i class="el-icon-user-solid" style="color: #75acff"></i>
<!-- {{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }} -->
{{ i }}
</el-tag>
......@@ -66,8 +69,8 @@
<span @click="goDetail(scope.scope.oneId)" class="blue-text">详情</span>
</template> -->
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<!-- <el-button type="text" @click="goDetail(scope.scope.oneId)">详情</el-button> -->
<GLButton @click="goDetail(scope.scope.oneId)" fn="客户详情" type="text">详情</GLButton>
<!-- <el-button type="text" @click="goDetail(scope.scope.oneId)">详情</el-button> -->
<GLButton @click="goDetail(scope.scope.oneId)" fn="客户详情" type="text">详情</GLButton>
</div>
</GLTable>
</div>
......@@ -182,7 +185,7 @@ export default {
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data',
// tableOption: true,
tableOption:false,
tableOption: false,
tableColumns: [
{
label: '客户ID',
......@@ -220,7 +223,7 @@ export default {
minWidth: 100
},
{
label: '渠道来源',
label: '渠道来源',
prop: 'sourceChannel',
width: 100
},
......@@ -242,13 +245,13 @@ export default {
width: 95
},
{
label:'操作',
prop:'optionBtns',
width:'80px',
addHtml:'optionBtns',
fixed:'right'
label: '操作',
prop: 'optionBtns',
width: '80px',
addHtml: 'optionBtns',
fixed: 'right'
}
],
]
// tableOption: {
// width: 80
// }
......@@ -291,7 +294,6 @@ export default {
// this.searchTable()
// }
//接收到的数据为空
// if (!this.$refs.clientManage.data.length) {
// this.$refs.clientManage.setTableHeightFun()
......@@ -447,13 +449,10 @@ export default {
font-size: 14px;
}
}
// span {
// line-height: 20px;
// }
}
.el-tag {
margin-right: 10px;
margin-bottom: 10px;
// margin-right: 10px;
max-width: 110px;
cursor: pointer;
background-color: #fff !important;
}
......
......@@ -6,12 +6,12 @@
<span class="toptips">
<!-- v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))" -->
<span>
共有{{ numberObj.groupCount || 0 }}个标签组,{{ numberObj.bizLabelCount || 0 }}个企业标签
共有{{ numberObj.groupCount || 0 }}个标签组<template v-if="!(merchantModel == 1 && accountLevel == 4)">,{{ numberObj.bizLabelCount || 0 }}个企业标签</template>
<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">
<div>企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</div>
<div v-if="!(merchantModel == 1 && accountLevel == 4)">企业标签为全局标签,员工可在企微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="" />
......@@ -19,7 +19,7 @@
</span>
</span>
<div class="initPanel" v-if="isFirstShow">
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
<template v-if="!(merchantModel == 1 && accountLevel == 4)">企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;</template>
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</template>
行业标签为通过大数据算法规则生成的标签
......@@ -63,7 +63,7 @@
</div>
</span>
<template slot="xxx" slot-scope="scope">
<!-- //这版关掉自店标签 -->
<!-- //这版关掉自店标签 1.0.1允许集团的门店打字店标签,也可以编辑-->
<span @click="btnClick('edit', scope.scope)" class="blue-text" v-if="scope.scope.labelType != '行业标签' && isShowEditBtn(scope.scope)">编辑标签组</span>
</template>
......@@ -79,8 +79,8 @@
</el-select>
<!-- id="tagTipMsgRef" -->
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup">
企业标签
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">和自店标签分别</template>
<template v-if="!(merchantModel == 1 && accountLevel == 4)">企业标签</template>
<template v-if="!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"><template v-if="!(merchantModel == 1 && accountLevel == 4)">和</template>自店标签分别</template>
最多3000个
</span>
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && tagForm.initTagsGroup == 1">
......@@ -301,12 +301,22 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
this.userType = this.$globalState.session.userType
console.log(this.$globalState.session,'555')
// if (this.merchantModel == 1) {
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
// }
//1.0.1集团下的门店只能创建自店标签
if (this.merchantModel == 1) {
if ((this.accountLevel == 4 )) {
this.tagsGroupList.splice(0, 1) //只能创建自店标签
this.tagsPartFormList[0].options.splice(0, 1)
}
}
if (this.merchantModel == 1) {
if (this.accountLevel == 1) {
//集团下的工厂只能创建企微标签,自店标签不要了
//集团下的工厂只能创建企微标签,自店标签不要了
this.tagsGroupList.splice(1, 1)
this.tagsPartFormList[0].options.splice(1, 1)
}
......@@ -352,7 +362,7 @@ export default {
isShowEditBtn(row) {
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//单店模式下,仅门店和员工可以编辑
if (row.labelType == '自店标签') {
if (row.labelType == '自店标签' && (!(this.merchantModel == 1 && this.accountLevel == 4))) {
return false
}
if (this.merchantModel == 1) {
......@@ -427,8 +437,12 @@ export default {
switch (pType) {
case 'create':
this.tagDialogTitle = '添加标签组'
this.tagForm.tagsForm = ''
this.tagForm.tagsForm = ''
this.tagForm.initTagsGroup = 1 //默认改成,企业标签
if(this.merchantModel == 1 && this.accountLevel==4 ){
this.tagForm.initTagsGroup = 2
}
this.$set(this.tagDialogData[0], 'disabled', false)
this.handleClose()
......@@ -515,6 +529,9 @@ export default {
if (!this.tagVisible && this.$refs.tagForm) {
this.$refs.tagForm.$children[0].resetFields()
this.tagForm.initTagsGroup = 1
if(this.merchantModel == 1 && this.accountLevel==4 ){
this.tagForm.initTagsGroup = 2
}
this.tagForm.tagsName = ''
// console.log(this.tagForm.initTagsGroup, '7777')
// console.log(this.tagForm, '内')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!