Commit 6931c2d8 by xuyl

查看客户,群聊管理

1 parent 8651272b
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
<img src="./assets/logo.png" alt="" srcset="" /> <img src="./assets/logo.png" alt="" srcset="" />
</div> --> </div> -->
<keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail"> <keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,viewCustomers">
<router-view></router-view> <router-view></router-view>
</keep-alive> </keep-alive>
</div> </div>
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http, http3 } from '@/main'
// const url = 'http://192.168.3.181:9636/rop-scrm-datahub/router'
export function getTableList (params){ export function getTableList(params) {
// params.method='scrm.api.datahub.label.querylabeltree' // params.method='scrm.api.datahub.label.querylabeltree'
params.method='scrm.api.datahub.labelgroup.queryLabelTree' params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
sign: true sign: true
}) })
} }
//计算表格上面的数量 //计算表格上面的数量
export function getTableTagNum(params){ export function getTableTagNum(params) {
// params.method='scrm.api.datahub.label.queryLabelCount' // params.method='scrm.api.datahub.label.queryLabelCount'
params.method='scrm.api.datahub.labelgroup.queryLabelCount' params.method = 'scrm.api.datahub.labelgroup.queryLabelCount'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
...@@ -31,45 +31,73 @@ ...@@ -31,45 +31,73 @@
sign: true sign: true
}) })
} }
export function newAddTag(params){ export function newAddTag(params) {
// params.method='scrm.api.datahub.label.addlabel' // params.method='scrm.api.datahub.label.addlabel'
params.method='scrm.api.datahub.labelgroup.addLabel' params.method = 'scrm.api.datahub.labelgroup.addLabel'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
//修改标签 //修改标签
export function updateTag(params){ export function updateTag(params) {
// params.method='scrm.api.datahub.label.updatelabel' // params.method='scrm.api.datahub.label.updatelabel'
params.method='scrm.api.datahub.labelgroup.updateLabel' params.method = 'scrm.api.datahub.labelgroup.updateLabel'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
//获取单条数据labelList数组 //获取单条数据labelList数组
export function queryLabelListByGroupId(params){ export function queryLabelListByGroupId(params) {
// params.method='scrm.api.datahub.label.queryLabelListByGroupId' // params.method='scrm.api.datahub.label.queryLabelListByGroupId'
params.method='scrm.api.datahub.labelgroup.queryLabelListByGroupId' params.method = 'scrm.api.datahub.labelgroup.queryLabelListByGroupId'
return http({ return http({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
// 查看客户
export function getCustomersList(params) {
params.method = 'entmicro.api.customer.getCustomerPageByTag'
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
//根据groupId查询标签列表
export function getLabelList(params) {
params.method = 'scrm.api.datahub.labelgroup.queryLabelDetailByGroupId'
return http({
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
}
// 根据标签获取客户列表导出
export function exportLabelList(params) {
params.method = 'entmicro.api.customer.customerPageByTagExport'
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
\ No newline at end of file \ No newline at end of file
const staticRoutes = Object.freeze([ const staticRoutes = Object.freeze([{
{
name: 'Home', name: 'Home',
path: '/', path: '/',
meta: {}, meta: {},
...@@ -51,7 +50,13 @@ const staticRoutes = Object.freeze([ ...@@ -51,7 +50,13 @@ const staticRoutes = Object.freeze([
name: 'tagsManage', name: 'tagsManage',
path: "/tagsManage/index", path: "/tagsManage/index",
component: resolve => require([`@/views/tagsManage/index.vue`], resolve), component: resolve => require([`@/views/tagsManage/index.vue`], resolve),
meta: {} meta: {},
},
{
name: 'viewCustomers',
path: "/tagsManage/viewCustomers/:info/:type",
component: resolve => require([`@/views/tagsManage/viewCustomers.vue`], resolve),
meta: {},
}, },
{ {
name: 'expand', name: 'expand',
...@@ -97,44 +102,44 @@ const staticRoutes = Object.freeze([ ...@@ -97,44 +102,44 @@ const staticRoutes = Object.freeze([
} }
]) ])
export default staticRoutes export default staticRoutes
// { // {
// path: "/clientMassTexting", // path: "/clientMassTexting",
// name: "clientMassTexting", // name: "clientMassTexting",
// meta: { title: "客户群发" }, // meta: { title: "客户群发" },
// hidden: true, // hidden: true,
// keepAlive: false, // keepAlive: false,
// component: () => import("../views/clientMassTexting/index.vue"), // component: () => import("../views/clientMassTexting/index.vue"),
// }, // },
// { // {
// path: "/clientMassTexting/addMassTexting", // path: "/clientMassTexting/addMassTexting",
// name: "addMassTexting", // name: "addMassTexting",
// meta: { title: "新增群发" }, // meta: { title: "新增群发" },
// hidden: true, // hidden: true,
// keepAlive: false, // keepAlive: false,
// component: () => import("../views/clientMassTexting/addMassTexting.vue"), // component: () => import("../views/clientMassTexting/addMassTexting.vue"),
// }, // },
// { // {
// path: "/clientMassTexting/detailMassTexting", // path: "/clientMassTexting/detailMassTexting",
// name: "detailMassTexting", // name: "detailMassTexting",
// meta: { title: "群发详情" }, // meta: { title: "群发详情" },
// hidden: true, // hidden: true,
// keepAlive: false, // keepAlive: false,
// component: () => import("../views/clientMassTexting/detailMassTexting.vue"), // component: () => import("../views/clientMassTexting/detailMassTexting.vue"),
// }, // },
// { // {
// path: "/clientPartGroup", // path: "/clientPartGroup",
// name: "clientPartGroup", // name: "clientPartGroup",
// meta: { title: "客户分群" }, // meta: { title: "客户分群" },
// hidden: true, // hidden: true,
// keepAlive: false, // keepAlive: false,
// component: () => import("../views/clientPartGroup/index.vue"), // component: () => import("../views/clientPartGroup/index.vue"),
// }, // },
// { // {
// path: "/crowdCircleImage", // path: "/crowdCircleImage",
// name: "crowdCircleImage", // name: "crowdCircleImage",
// meta: { title: "人群圈像" }, // meta: { title: "人群圈像" },
// hidden: true, // hidden: true,
// keepAlive: false, // keepAlive: false,
// component: () => import("../views/clientPartGroup/crowdCircleImage.vue"), // component: () => import("../views/clientPartGroup/crowdCircleImage.vue"),
// }, // },
\ No newline at end of file \ No newline at end of file
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span> <span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip> </el-tooltip>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' :''}}</span>
</span> </span>
<span slot="customerSex" slot-scope="scope"> <span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span> <span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span> <span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip> </el-tooltip>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' :''}}</span>
<!-- <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' :''}}</span> -->
</span> </span>
<span slot="customerSex" slot-scope="scope"> <span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span> <span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span> <span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip> </el-tooltip>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' :''}} </span>
</span> </span>
<span slot="customerSex" slot-scope="scope"> <span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span> <span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span> <span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip> </el-tooltip>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' :''}} </span>
</span> </span>
<span slot="customerSex" slot-scope="scope"> <span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span> <span>{{ scope.scope.customerSex == 2 ? '女' : scope.scope.customerSex == 1 ? '男' : '未知' }}</span>
......
...@@ -20,7 +20,9 @@ ...@@ -20,7 +20,9 @@
</span> </span>
<template slot="auth-button" slot-scope="scope" :data="scope.scope"> <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- <auth-button :data="scope.scope"></auth-button> --> <!-- <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">
{{scope.scope.delFlag == '0' ? '详情' : scope.scope.delFlag == '-1' ? '' : ''}}
</span>
<!-- <GLButton @click="goDetail(scope.scope.id, scope.scope.custGroupName)" fn="客户群详情" type="text">详情</GLButton> --> <!-- <GLButton @click="goDetail(scope.scope.id, scope.scope.custGroupName)" fn="客户群详情" type="text">详情</GLButton> -->
</template> </template>
</GLTable> </GLTable>
...@@ -40,7 +42,9 @@ export default { ...@@ -40,7 +42,9 @@ export default {
isReload: true, isReload: true,
url: url, url: url,
sloading: false, sloading: false,
searchForm: {}, searchForm: {
},
searchFormTable: {}, searchFormTable: {},
clientGroupFormList: [ clientGroupFormList: [
{ {
...@@ -93,6 +97,26 @@ export default { ...@@ -93,6 +97,26 @@ export default {
value: 2 value: 2
} }
] ]
},
{
type: 'select',
prop: 'delFlag',
label: '群聊状态',
placeholder: '请选择',
options: [
{
label: '全部',
value: null
},
{
label: '正常',
value: 0
},
{
label: '已解散',
value: -1
}
]
} }
], ],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
...@@ -147,6 +171,14 @@ export default { ...@@ -147,6 +171,14 @@ export default {
minWidth: 140 minWidth: 140
}, },
{ {
label: '群聊状态',
prop: 'delFlag',
width: 95,
formatter: cellValue => {
return cellValue.delFlag == 0 ? '正常' : cellValue.delFlag == -1 ? '解散' : ''
},
},
{
label: '创建时间', label: '创建时间',
prop: 'addTime', prop: 'addTime',
width: 95 width: 95
...@@ -275,6 +307,7 @@ export default { ...@@ -275,6 +307,7 @@ export default {
} else { } else {
if (params.beginTime) delete params.beginTime && delete params.endTime if (params.beginTime) delete params.beginTime && delete params.endTime
} }
console.log('params',params)
delete params.daterange delete params.daterange
return params return params
}, },
......
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span> <span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip> </el-tooltip>
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> <!-- <span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span> -->
<span class="pure-blue-text">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : scope.scope.type == null ? '' :''}}</span>
</span> </span>
<span slot="customerSex" slot-scope="scope"> <span slot="customerSex" slot-scope="scope">
<span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span> <span>{{ scope.scope.customerSex == 0 ? '未知' : scope.scope.customerSex == 1 ? '男' : scope.scope.customerSex == 2 ? '女' : '' }}</span>
......
...@@ -67,6 +67,8 @@ ...@@ -67,6 +67,8 @@
<template slot="xxx" slot-scope="scope"> <template slot="xxx" slot-scope="scope">
<!-- //这版关掉自店标签 1.0.1允许集团的门店打字店标签,也可以编辑--> <!-- //这版关掉自店标签 1.0.1允许集团的门店打字店标签,也可以编辑-->
<span @click="btnClick('edit', scope.scope)" class="blue-text" v-if="scope.scope.labelType != '系统标签' && isShowEditBtn(scope.scope)">编辑标签组</span> <span @click="btnClick('edit', scope.scope)" class="blue-text" v-if="scope.scope.labelType != '系统标签' && isShowEditBtn(scope.scope)">编辑标签组</span>
<GLButton class="blue-text leftDistance" type="text" fn="查看客户" @click="toViewCustomer(scope.scope)" >查看客户</GLButton>
</template> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -249,7 +251,7 @@ export default { ...@@ -249,7 +251,7 @@ export default {
prop: 'xxx', prop: 'xxx',
fixed: 'right', fixed: 'right',
addHtml: 'xxx', addHtml: 'xxx',
width: 120 width: 240
} }
] ]
// tableOption: { // tableOption: {
...@@ -368,6 +370,18 @@ export default { ...@@ -368,6 +370,18 @@ export default {
// }, 200) // }, 200)
}, },
methods: { methods: {
// toViewCustomer(info) {
// this.$router.push('/tagsManage/viewCustomers')
// },
toViewCustomer(info) {
console.log(info)
const id = info.labelGroup.id
const type = info.labelType
this.$router.push({
// path:`/tagsManage/viewCustomers/530`
path:`/tagsManage/viewCustomers/${id}/${type}`
})
},
watchInput(){ watchInput(){
console.log('点击标签组名称输入框') console.log('点击标签组名称输入框')
}, },
...@@ -717,6 +731,9 @@ export default { ...@@ -717,6 +731,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/variables.scss'; @import '@/styles/variables.scss';
@import '@/styles/resetelement.scss'; @import '@/styles/resetelement.scss';
.leftDistance{
margin-left: 8px;
}
.scrm-sub-client-container { .scrm-sub-client-container {
/deep/.search-form .el-form-item__content { /deep/.search-form .el-form-item__content {
width: auto; width: auto;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!