Commit 12f55cbd by 李长胜

权限修改,1.0.1需求

1 parent b82d24a2
......@@ -14,7 +14,7 @@
"echarts": "^5.2.0",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.2.5",
"glsx-components": "^1.2.7",
"glsx-table": "^1.1.0",
"jquery": "^3.6.0",
"sha1": "^1.1.1",
......
......@@ -36,7 +36,16 @@
sign: true
})
}
export function getClientTableDetail(params){
params.method='entmicro.api.customer.detail'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true,
returnAll:true
})
}
// 客户群的客户列表获取分页数据接口
export function getDetailTableList(params){
params.method='entmicro.api.customer.base.cust.page'
......
......@@ -91,8 +91,8 @@ export default {
}
.el-dialog__body {
padding: 0;
border-top: 1px solid #E6E6E6;
border-bottom: 1px solid #E6E6E6;
// border-top: 1px solid #E6E6E6;
// border-bottom: 1px solid #E6E6E6;
min-height: 250px;
// max-height: 636px;
overflow-y: auto;
......
......@@ -12,7 +12,7 @@ import 'glsx-components/dist/glsx-components.css'
let routes = []
let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState }) {
export async function bootstrap({ name, id, history, common, messenger, globalState,routerBase }) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig(globalState.configSwitch)//globalState.configSwitch
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
......@@ -26,6 +26,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
routes = getRoutes(routesData)
// { name, id, }
subscribe({ messenger })
Vue.use(GLButton, { routes, routerBase })
}
export async function mount(props) {
const insts = render(props.routerBase, routes)
......
......@@ -25,10 +25,10 @@
<span class="ellipsis-1">{{ leftPanelList.groupHostEmail }}</span>
</el-tooltip>
</p>
<p>
<!-- <p>
<span>群主部门</span>
<span class="ellipsis-1">{{ leftPanelList.groupHostDepart }}</span>
</p>
</p> -->
<p>
<span>群管理员</span>
<el-tooltip class="item" :content="leftPanelList.groupAdmin" placement="top">
......@@ -47,7 +47,7 @@
<span>客户列表</span>
<span>{{ clientTableDataNum || 0 }}个</span>
</p>
<search-form class="searchTop border-shadow" :isNeedThreeBtns="false" :showDefaultTime="true" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent">
<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>
......@@ -72,23 +72,30 @@
<span @click="goDetail(scope.scope.id)" class="blue-text">详情</span>
</template>
</GLTable>
<basic-dialog title="" width="547px" :isVisible="dialogVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<div class="content-body">
<p> 该客户暂无员工跟进,无法查看该客户详情,</p>
<p class="bottomText"> 赶紧去加好友吧!</p>
</div>
</basic-dialog>
</div>
</div>
</div>
</template>
<script>
import { getTableDetail, getDetailTableList } from '@/api/modules/clientGroupManage'
import { getTableDetail, getDetailTableList, getClientTableDetail } from '@/api/modules/clientGroupManage'
import url from '@/assets/clientDataOverview/nodata.png'
export default {
name: 'clientGroupDetail',
data() {
return {
dialogVisible:false,
groupName: this.$route.query.groupName,
url: url,
leftPanelList: {},
searchForm: {},
searchFormTable:{},
searchFormTable: {},
clientGroupFormList: [
{
type: 'daterange',
......@@ -151,7 +158,8 @@ export default {
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName'
addHtml: 'customerName',
minWidth: 100
},
{
label: '手机号码',
......@@ -168,8 +176,13 @@ export default {
addHtml: 'joinScene'
},
{
label: '邀请人',
prop: 'invitePerson'
},
{
label: '入群时间',
prop: 'joinTime'
prop: 'joinTime',
width: 95
}
],
tableOption: {
......@@ -198,19 +211,19 @@ export default {
// this.searchTable()
// })
},
watch: {
'searchForm.daterange':{
deep: true,
// immediate:true,
handler(val) {
console.log('val值:',val)
if(val){
console.log('7777777777777')
this.searchTable()
}
}
}
},
// watch: {
// 'searchForm.daterange':{
// deep: true,
// // immediate:true,
// handler(val) {
// console.log('val值:',val)
// if(val){
// console.log('7777777777777')
// this.searchTable()
// }
// }
// }
// },
methods: {
async getTableDetail(id = this.$route.query.id) {
......@@ -221,16 +234,16 @@ export default {
}
this.leftPanelList = res
},
beforeSearchFn() {
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchFormTable = JSON.parse(JSON.stringify(this.searchForm))
// console.log(this.searchForm,'数据')
// console.log(this.searchForm.daterange,this.searchForm.id,this.searchFormTable,'时间选择器')
// console.log(this.searchForm)
// console.log(this.searchForm,'数据')
// console.log(this.searchForm.daterange,this.searchForm.id,this.searchFormTable,'时间选择器')
// console.log(this.searchForm)
if (this.searchFormTable.daterange) {
this.searchFormTable.beginTime = this.searchForm.daterange[0]
this.searchFormTable.endTime = this.searchForm.daterange[1]
delete this.searchFormTable.daterange
delete this.searchFormTable.daterange
} else {
if (this.searchFormTable.beginTime) delete this.searchFormTable.beginTime && delete this.searchFormTable.endTime
}
......@@ -261,7 +274,18 @@ export default {
this.searchForm = { id: this.$route.query.id }
this.$refs.clientGroupDetail.refreshTable()
},
handleClose() {
this.dialogVisible = !this.dialogVisible
},
handleConfirm(){
this.handleClose()
},
goDetail(id) {
// 接口通过了跳转
// getClientTableDetail({id}).then(res=>{
// console.log(res,'kkkkk')
// })
// this.handleClose()
this.$router.push({
path: '/clientManage/clientDetail',
query: {
......@@ -405,5 +429,27 @@ export default {
}
}
}
/deep/ .el-dialog__header{
border: 0;
}
/deep/ .el-dialog__body{
border-bottom: 1px solid #e6e6e6;
padding:0px 65px 35px;
min-height: 0;
.container{
font-size: 18px;
text-align: center;
font-weight: 400;
color: #333333;
.bottomText{
margin-top: 10px;
}
}
}
/deep/ .el-dialog__footer {
text-align: center;
padding-top: 15px;
padding-bottom: 15px;
}
}
</style>
......@@ -3,7 +3,7 @@
<div class="scrm-sub-client-container">
<!-- <p class="pageTitle">客户群管理</p> -->
<div class="pageContent">
<search-form class="searchTop border-shadow" :isHasSyncBtn="true" :showDefaultTime="true" :merchantModel="merchantModel" :accountLevel="accountLevel" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent" @resetTable="resetTable" @searchTable="searchTable" @syncClick="syncClick">
<search-form class="searchTop border-shadow" :isHasSyncBtn="true" :showDefaultTime="false" :merchantModel="merchantModel" :accountLevel="accountLevel" :formModel="searchForm" :formList="clientGroupFormList" @setTableHeightEvent="setTableHeightEvent" @resetTable="resetTable" @searchTable="searchTable" @syncClick="syncClick">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
......@@ -19,7 +19,8 @@
</span>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- <auth-button :data="scope.scope"></auth-button> -->
<span @click="goDetail(scope.scope.id, scope.scope.custGroupName)" class="blue-text">详情</span>
<!-- <span @click="goDetail(scope.scope.id, scope.scope.custGroupName)" class="blue-text">详情</span> -->
<GLButton @click="goDetail(scope.scope.id, scope.scope.custGroupName)" fn="客户群详情" type="text">详情</GLButton>
</template>
</GLTable>
</div>
......@@ -38,10 +39,6 @@ export default {
isReload: true,
url: url,
sloading: false,
titles: [
{ name: '客户群总数', num: 100, rate: '+10%', isUp: true, tips: '群提示消息1' },
{ name: '新增客户群数', num: 100, rate: '+10%', isUp: true, tips: '群提示消息2' }
],
searchForm: {},
searchFormTable: {},
clientGroupFormList: [
......@@ -103,6 +100,21 @@ export default {
minWidth: 140
},
{
label: '新增群聊成员数',
prop: 'aa',
minWidth: 140
},
{
label: '群聊员工数',
prop: 'bb',
minWidth: 140
},
{
label: '创建方式',
prop: 'cc',
minWidth: 140
},
{
label: '群主',
prop: 'groupHostName'
},
......@@ -179,10 +191,10 @@ export default {
},
setTableFinishFun(content) {
console.log(content, this.$refs.clientGroupManage.data.length, '获取数据')
if (!this.flushTime) {
this.flushTime = true
this.searchTable()
}
// if (!this.flushTime) {
// this.flushTime = true
// this.searchTable()
// }
//接收到的数据为空
// if (!this.$refs.clientGroupManage.data.length) {
......@@ -214,7 +226,6 @@ export default {
this.isReload = true
})
},
btnClick(ptype, scope) {},
goDetail(id, name) {
this.$router.push({
path: '/clientGroupManage/clientGroupDetail',
......
......@@ -67,6 +67,12 @@
<span class="ellipsis-1">{{ leftPanelInfo.addWay | toLabel }}</span>
</el-tooltip>
</p>
<p>
<span>渠道来源</span>
<el-tooltip effect="dark" :content="leftPanelInfo.addWay | toLabel" placement="top">
<span class="ellipsis-1">{{ leftPanelInfo.addWay | toLabel }}</span>
</el-tooltip>
</p>
</div>
<div class="rightWrap">
<p><span>标签信息</span></p>
......
......@@ -3,7 +3,7 @@
<div class="scrm-sub-client-container">
<!-- <p class="pageTitle">客户管理</p> -->
<div class="pageContent">
<search-form :ploading="sloading" :isHasSyncBtn="true" :showDefaultTime="true" :merchantModel="merchantModel" :accountLevel="accountLevel" class="searchTop border-shadow" :formModel="searchForm" :formList="clientManageFormList" @resetTable="resetTable" @searchTable="searchTable" @syncClick="syncClick">
<search-form :ploading="sloading" :isHasSyncBtn="true" :showDefaultTime="false" :merchantModel="merchantModel" :accountLevel="accountLevel" class="searchTop border-shadow" :formModel="searchForm" :formList="clientManageFormList" @resetTable="resetTable" @searchTable="searchTable" @syncClick="syncClick">
<span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button>
......@@ -66,9 +66,9 @@
<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>
<!-- <el-button type="text" @click="goDetail(scope.scope.oneId)">详情</el-button> -->
<GLButton @click="goDetail(scope.scope.oneId)" fn="客户详情" type="text">详情</GLButton>
</div>
</GLTable>
</div>
</div>
......@@ -220,10 +220,15 @@ export default {
minWidth: 100
},
{
label: '渠道来源',
prop: 'source',
width: 100
},
{
label: '是否加企微', //1. 加入,0.未加入
prop: 'isJoin',
addHtml: 'isJoin',
// minWidth: 100
width: 100
},
{
label: '当前状态',
......@@ -280,10 +285,13 @@ export default {
this.$refs.clientManage.setTableHeightFun()
},
setTableFinishFun(content) {
if (!this.flushTime) {
this.flushTime = true
this.searchTable()
}
//关闭默认时间30天再刷新,showDefaultTime也要设置false
// if (!this.flushTime) {
// this.flushTime = true
// this.searchTable()
// }
//接收到的数据为空
// if (!this.$refs.clientManage.data.length) {
// this.$refs.clientManage.setTableHeightFun()
......
......@@ -44,36 +44,32 @@
<!-- :class="[expande ? 'expande' : 'close']" -->
<div id="allTagsWrap" class="allTagsWrap">
<span v-for="(item, index) in scope.scope.labelList" :key="index" class="ellipsis-1 tag-box-wrap">
<span v-for="(item, index) in showTagArray(scope.scope.labelList)" :key="index" class="ellipsis-1 tag-box-wrap">
<el-tooltip class="item" :content="item.name" placement="top">
<span>{{ item.name }}</span>
</el-tooltip>
</span>
<!-- <div class="expande-button-wrap" v-if="!needShowExpande">
<div class="expande-button" @click="expandeClick" v-if="!expande">
<i class="el-icon-arrow-down"></i>
<span>展开</span>
</div>
<div class="expande-button" @click="expandeClick" v-else>
<i class="el-icon-arrow-up"></i>
<span>收起</span>
</div>
</div> -->
<el-popover v-if="scope.scope.labelList.length > 9 " class="ellipsis-1 tag-box-wrap" placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...({{ scope.scope.labelList.length }})</span>
<div class="entmicro-hover" style="height:214px;overflow-y:auto;">
<el-tag type="info" class="ellipsis-1" style="margin-right: 10px; margin-bottom: 10px;max-width: 200px;" v-for="(i, sindex) in scope.scope.labelList" :key="sindex" :disable-transitions="false">
<el-tooltip class="item" :content="i.name" placement="top">
<span>{{ i.name }}</span>
</el-tooltip>
</el-tag>
</div>
</el-popover>
</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">
<div class="additional-text">标签用于对客户进行分类,以便用户能够更好的识别客户类型</div>
<button class="btn-blue">创建标签</button>
</div> -->
</GLTable>
</div>
<basic-dialog class="role" :title="tagDialogTitle" :width="'712px'" :isVisible="tagVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<basic-dialog class="role" :title="tagDialogTitle" width="712px" :isVisible="tagVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<slot>
<rule-form :ruleForm="tagForm" :rules="tagRules" :ruleData="tagDialogData" :labelWidth="'120px'" labelPosition="right" ref="tagForm">
<div slot="tagsGroup-type">
......@@ -82,7 +78,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 == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))">和自店标签分别</template>
最多3000个
</span>
<span class="tagTipMsg" v-if="tagDialogTitle == '添加标签组' && tagForm.initTagsGroup == 1">
......@@ -196,7 +193,7 @@ export default {
prop: 'labelTreeReq.labelGroupName',
label: '搜索',
placeholder: '请输入标签组或标签名称',
clearable:true
clearable: true
}
],
pageConf: { pageSize: 'labelTreeReq.pageSize', pageNum: 'labelTreeReq.pageNum', totalCount: 'labelGroupCount' },
......@@ -224,6 +221,7 @@ export default {
{
label: '操作',
prop: 'xxx',
fixed:'right',
addHtml: 'xxx',
width: 120
}
......@@ -238,7 +236,7 @@ export default {
tagVisible: false,
tagForm: {
tagsName: '',
initTagsGroup: 1,
initTagsGroup: 1,
tagsList: []
},
tagDialogData: [
......@@ -334,6 +332,13 @@ export default {
// }, 200)
},
methods: {
showTagArray(list) {
if (list.length == 0) {
return []
}
// return list
return list.slice(0,9)
},
checkInputContent(e) {
// console.log(e, '输入框的值')
//确保每个输入框的内容不和已存在的编辑标签相同
......@@ -422,7 +427,7 @@ export default {
case 'create':
this.tagDialogTitle = '添加标签组'
this.tagForm.tagsForm = ''
this.tagForm.initTagsGroup = 1//默认改成,企业标签
this.tagForm.initTagsGroup = 1 //默认改成,企业标签
this.$set(this.tagDialogData[0], 'disabled', false)
this.handleClose()
......@@ -644,11 +649,12 @@ export default {
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.scrm-sub-client-container {
/deep/.search-form .el-form-item__content{
width: inherit;
}
/deep/.el-table tbody tr:hover>td { background-color:#f4f3ff; }
/deep/.search-form .el-form-item__content {
width: inherit;
}
// /deep/.el-table tbody tr:hover > td {
// background-color: #f4f3ff;
// }
.pageTitle {
position: relative;
......@@ -753,19 +759,19 @@ export default {
.allTagsWrap {
position: relative;
display: -webkit-box;
// max-height: 56px;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
padding-bottom: -2px;
box-sizing: border-box;
&:hover {
-webkit-line-clamp: 9999;
// .tag-box-wrap {
// margin-bottom: 10px;
// }
}
// display: -webkit-box;
// overflow: hidden;
// -webkit-line-clamp: 2;
// -webkit-box-orient: vertical;
// padding-bottom: -2px;
// box-sizing: border-box;
// &:hover {
// -webkit-line-clamp: 9999;
// // .tag-box-wrap {
// // margin-bottom: 10px;
// // }
// }
.tag-box-wrap {
display: inline-block;
......@@ -790,9 +796,6 @@ export default {
// margin-bottom: 4px;
// }
}
// .tag-box-wrap + .tag-box-wrap {
// margin-bottom: 4px;
// }
.expande-button-wrap {
position: absolute;
right: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!