Commit a36156ba by 前端

Merge branch 'test1' into 'master'

'合并'

See merge request !14
2 parents 3377329c bc4719c7
...@@ -32,24 +32,36 @@ export function getDataOverviewBarMap(params) { ...@@ -32,24 +32,36 @@ export function getDataOverviewBarMap(params) {
}) })
} }
// 获取自定义分群客户列表数据接口 // 获取数据概览客户列表数据接口
export function getCustomerList(params) { export function getCustomerList(params) {
params.method = 'entmicro.api.customer.cluster.page'
return http3({
url:'/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取人群管理客户列表数据接口
export function getcrowdManageList(params) {
params.method = 'entmicro.api.customer.crowd.page' params.method = 'entmicro.api.customer.crowd.page'
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url:'/rop-scrm-entmicro/router',
// url:'http://192.168.3.193:8395/rop-scrm-entmicro/router', // url:'http://192.168.3.193:8395/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//客户分群列表导出 //客户分群列表导出
export function customerClusterListExport(params) { export function customerClusterListExport(params) {
params.method = 'entmicro.api.customer.customerClusterListExport' params.method = 'entmicro.api.customer.customerClusterListExport'
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url:'/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
...@@ -6,56 +6,56 @@ ...@@ -6,56 +6,56 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http2, http3 } from '@/main' import { http2,http3 } from '@/main'
export function getTableList(params) {
params.method = 'entmicro.api.customer.base.page'
export function getTableList (params){
params.method='entmicro.api.customer.base.page'
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
}
export function syncCustomerBase(params){
params.method='entmicro.api.synchro.syncCustomerBase'
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
} }
export function syncCustomerBase(params) { export function getTableDetail(params){
params.method = 'entmicro.api.synchro.syncCustomerBase' params.method='entmicro.api.customer.base.detail'
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
export function getTableDetail(params) { export function getClientTableDetail(params){
params.method = 'entmicro.api.customer.base.detail' params.method='entmicro.api.customer.detail'
return http3({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export function getClientTableDetail(params) {
params.method = 'entmicro.api.customer.detail'
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll: true returnAll:true
}) })
} }
// 客户群的客户列表获取分页数据接口 // 客户群的客户列表获取分页数据接口
export function getDetailTableList(params) { export function getDetailTableList(params){
params.method = 'entmicro.api.customer.base.cust.page' params.method='entmicro.api.customer.base.cust.page'
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
/* /*
未授权时,打开进入页面即弹出提示。 触发条件:跟企业微信相关且该账户暂未绑定企业微信时提示 未授权时,打开进入页面即弹出提示。 触发条件:跟企业微信相关且该账户暂未绑定企业微信时提示
...@@ -63,10 +63,10 @@ export function getDetailTableList(params) { ...@@ -63,10 +63,10 @@ export function getDetailTableList(params) {
export function getStatus(params) { export function getStatus(params) {
params.method = 'scrm.api.work.wechat.access.status' params.method = 'scrm.api.work.wechat.access.status'
return http3({ return http3({
url: '/rop-scrm-wechat/router', url: '/rop-scrm-wechat/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
...@@ -74,43 +74,43 @@ export function getStatus(params) { ...@@ -74,43 +74,43 @@ export function getStatus(params) {
跟进员工 跟进员工
*/ */
// POST /router/entmicro.api.customer.base.staff.page/1.0.0 // POST /router/entmicro.api.customer.base.staff.page/1.0.0
export function getDetailStaffTableList(params) { export function getDetailStaffTableList(params){
params.method = 'entmicro.api.customer.base.staff.page' params.method='entmicro.api.customer.base.staff.page'
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
/* /*
退群客户 退群客户
*/ */
export function getDetailQuitTableList(params) { export function getDetailQuitTableList(params){
params.method = 'entmicro.api.customer.base.quit.cust.page' params.method='entmicro.api.customer.base.quit.cust.page'
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
/* /*
潜在客户 潜在客户
*/ */
export function getDetailPotentialTableList(params) { export function getDetailPotentialTableList(params){
params.method = 'entmicro.api.customer.base.potential.cust.page' params.method='entmicro.api.customer.base.potential.cust.page'
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
//客户群管理(群聊管理)导出 //客户群管理(群聊管理)导出
export function clientGroupExportApi(params) { export function clientGroupExportApi(params){
params.method = `entmicro.api.customer.base.list.export` params.method=`entmicro.api.customer.base.list.export`
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
...@@ -119,8 +119,8 @@ export function clientGroupExportApi(params) { ...@@ -119,8 +119,8 @@ export function clientGroupExportApi(params) {
}) })
} }
// 全部客户导出 // 全部客户导出
export function clientExportApi(params) { export function clientExportApi(params){
params.method = `entmicro.api.customer.base.cust.export` params.method=`entmicro.api.customer.base.cust.export`
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
...@@ -130,8 +130,8 @@ export function clientExportApi(params) { ...@@ -130,8 +130,8 @@ export function clientExportApi(params) {
} }
//跟进员工导出 //跟进员工导出
export function followEmployeeExportApi(params) { export function followEmployeeExportApi(params){
params.method = `entmicro.api.customer.base.staff.export` params.method=`entmicro.api.customer.base.staff.export`
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
...@@ -140,8 +140,8 @@ export function followEmployeeExportApi(params) { ...@@ -140,8 +140,8 @@ export function followEmployeeExportApi(params) {
}) })
} }
//退群客户导出 //退群客户导出
export function leaveGroupExportApi(params) { export function leaveGroupExportApi(params){
params.method = `entmicro.api.customer.base.quit.export` params.method=`entmicro.api.customer.base.quit.export`
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
...@@ -151,12 +151,12 @@ export function leaveGroupExportApi(params) { ...@@ -151,12 +151,12 @@ export function leaveGroupExportApi(params) {
} }
//潜在客户导出 //潜在客户导出
export function potentialClientExportApi(params) { export function potentialClientExportApi(params){
params.method = `entmicro.api.customer.base.potential.export` params.method=`entmicro.api.customer.base.potential.export`
return http3({ return http3({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true
}) })
} }
\ No newline at end of file \ No newline at end of file
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
* @returns * @returns
*/ */
import { http, http3 } from '@/main' import { http, http3 } from '@/main'
// http 对应的域名http://ismv.branch.glsx.com.cn // http 对应的域名http://ismv.branch.glsx.com.cn
// 查询推荐人群和自定义人群列表 // 查询推荐人群和自定义人群列表
......
...@@ -73,6 +73,9 @@ background: transparent !important; ...@@ -73,6 +73,9 @@ background: transparent !important;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.font-12{
font-size: 12px;
}
.font-20{ .font-20{
font-size: 20px; font-size: 20px;
} }
...@@ -84,4 +87,8 @@ background: transparent !important; ...@@ -84,4 +87,8 @@ background: transparent !important;
} }
.hand{ .hand{
cursor: pointer; cursor: pointer;
}
.mg2{
margin-left:20px;
margin-right:20px;
} }
\ No newline at end of file \ No newline at end of file
export const Constants = { export const Constants = {
CLIENT_STATUS :{ CLIENT_STATUS: {
'0': '正常, green-text', '0': '正常, green-text',
'1': '删除好友, red-text' '1': '删除好友, red-text'
}, },
//性别选项 //性别选项
GENDER_OPTION:[ GENDER_OPTION: [
{ {
label: '全部', label: '全部',
value: null value: null
...@@ -23,65 +23,79 @@ export const Constants = { ...@@ -23,65 +23,79 @@ export const Constants = {
value: 0 value: 0
} }
], ],
SOURCE_OPTION:[ SOURCE_OPTION: [
{ {
label: '全部', label: '全部',
value: 0 value: 0
}, },
{ {
label: '直接导入', label: '直接导入',
value: 1 value: 1
}, },
{ {
label: '扫描二维码', label: '扫描二维码',
value: 'first' value: 'first'
}, },
{ {
label: '搜索手机号', label: '搜索手机号',
value: 2 value: 2
}, },
{ {
label: '名片分享', label: '名片分享',
value: 3 value: 3
}, },
{ {
label: '群聊', label: '群聊',
value: 4 value: 4
}, },
{ {
label: '手机通讯录', label: '手机通讯录',
value: 5 value: 5
}, },
{ {
label: '微信联系人', label: '微信联系人',
value: 6 value: 6
}, },
{ {
label: '来自微信的添加好友申请', label: '来自微信的添加好友申请',
value: 7 value: 7
}, },
{ {
label: '第三方应用的客户人员', label: '第三方应用的客户人员',
value: 8 value: 8
}, },
{ {
label: '搜索邮箱', label: '搜索邮箱',
value: 9 value: 9
}, },
{ {
label: '内部成员共享', label: '内部成员共享',
value: 10 value: 10
}, },
{ {
label: '管理员/负责人分配', label: '管理员/负责人分配',
value: 11 value: 11
}, },
{ {
label: '未知来源', label: '未知来源',
value: 12 value: 12
} }
],
//标签类型
LABEL_OPTION: [
{
label: '企业标签',
value: '企业标签'
},
{
label: '自店标签',
value: '自店标签'
},
{
label: '系统标签',
value: '系统标签'
}
], ],
// 文件大小提示语 // 文件大小提示语
FILESIZEMSG: '单个文件大小不能超过10M', FILESIZEMSG: '单个文件大小不能超过10M',
......
...@@ -20,7 +20,7 @@ export const fetchConfig = function(isEnv = true) { ...@@ -20,7 +20,7 @@ export const fetchConfig = function(isEnv = true) {
return new Http({ request: { timeout: 3000 } }).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2') return new Http({ request: { timeout: 3000 } }).get('https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config2')
//开发环境mock //开发环境mock
// return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2') // return new Http({ request: { timeout: 3000 } }).get('http://192.168.3.171:7300/mock/616d3b131072f92988f05a01/custom/config2')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
const staticRoutes = Object.freeze([ const staticRoutes = Object.freeze([{
{ name: 'Home',
name: 'Home', path: '/',
path: '/', meta: {},
meta: {}, component: resolve => require([`@/views/home/index.vue`], resolve)
component: resolve => require([`@/views/home/index.vue`], resolve) },
}, {
{ name: 'About',
name: 'About', path: '/about',
path: '/about', component: resolve => require([`@/views/about/index.vue`], resolve),
component: resolve => require([`@/views/about/index.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'clientDataOverview',
name: 'clientDataOverview', path: "/clientDataOverview/index",
path: '/clientDataOverview/index', component: resolve => require([`@/views/clientDataOverview/index.vue`], resolve),
component: resolve => require([`@/views/clientDataOverview/index.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'clientDataOverview',
name: 'clientDataOverview', path: "/clientDataOverview/group/:id",
path: '/clientDataOverview/group/:id', component: resolve => require([`@/views/clientDataOverview/group.vue`], resolve),
component: resolve => require([`@/views/clientDataOverview/group.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'clientManage',
name: 'clientManage', path: "/clientManage/index",
path: '/clientManage/index', component: resolve => require([`@/views/clientManage/index.vue`], resolve),
component: resolve => require([`@/views/clientManage/index.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'clientDetail',
name: 'clientDetail', path: "/clientManage/clientDetail",
path: '/clientManage/clientDetail', component: resolve => require([`@/views/clientManage/clientDetail.vue`], resolve),
component: resolve => require([`@/views/clientManage/clientDetail.vue`], resolve), meta: {}
meta: {} },
}, // {
// { // name: 'clientDemo',
// name: 'clientDemo', // path: "/clientManage/clientDemo",
// path: "/clientManage/clientDemo", // component: resolve => require([`@/views/clientManage/demo.vue`], resolve),
// component: resolve => require([`@/views/clientManage/demo.vue`], resolve), // meta: {}
// meta: {} // },
// }, {
{ name: 'clientGroupManage',
name: 'clientGroupManage', path: "/clientGroupManage/index",
path: '/clientGroupManage/index', component: resolve => require([`@/views/clientGroupManage/index.vue`], resolve),
component: resolve => require([`@/views/clientGroupManage/index.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'clientGroupDetail',
name: 'clientGroupDetail', path: "/clientGroupManage/clientGroupDetail",
path: '/clientGroupManage/clientGroupDetail', component: resolve => require([`@/views/clientGroupManage/clientGroupDetail.vue`], resolve),
component: resolve => require([`@/views/clientGroupManage/clientGroupDetail.vue`], resolve), meta: {}
meta: {} },
}, {
{ 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',
name: 'viewCustomers', path: "/tagsManage/viewCustomers/:info/:type",
path: '/tagsManage/viewCustomers/:info/:type', component: resolve => require([`@/views/tagsManage/viewCustomers.vue`], resolve),
component: resolve => require([`@/views/tagsManage/viewCustomers.vue`], resolve), meta: {},
meta: {} },
}, {
{ name: 'expand',
name: 'expand', path: "/expand/index",
path: '/expand/index', component: resolve => require([`@/views/expand/index.vue`], resolve),
component: resolve => require([`@/views/expand/index.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'employee',
name: 'employee', path: "/employee/index",
path: '/employee/index', component: resolve => require([`@/views/employee/index.vue`], resolve),
component: resolve => require([`@/views/employee/index.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'employee',
name: 'employee', path: "/employee/detail",
path: '/employee/detail', component: resolve => require([`@/views/employee/detail.vue`], resolve),
component: resolve => require([`@/views/employee/detail.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'employee',
name: 'employee', path: "/employee/add",
path: '/employee/add', component: resolve => require([`@/views/employee/add.vue`], resolve),
component: resolve => require([`@/views/employee/add.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'guestGuest',
name: 'guestGuest', path: "/guestGroup/index",
path: '/guestGroup/index', component: resolve => require([`@/views/guestGroup/index.vue`], resolve),
component: resolve => require([`@/views/guestGroup/index.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'guestAdd',
name: 'guestAdd', path: "/guestGroup/add/:id",
path: '/guestGroup/add/:id', component: resolve => require([`@/views/guestGroup/add.vue`], resolve),
component: resolve => require([`@/views/guestGroup/add.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'guestDetail',
name: 'guestDetail', path: "/guestGroup/detail/:id",
path: '/guestGroup/detail/:id', component: resolve => require([`@/views/guestGroup/detail.vue`], resolve),
component: resolve => require([`@/views/guestGroup/detail.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'crowdManage',
name: 'crowdManage', path: "/crowdManage/index",
path: '/crowdManage/index', component: resolve => require([`@/views/crowdManage/index.vue`], resolve),
component: resolve => require([`@/views/crowdManage/index.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'crowdAdd',
name: 'crowdAdd', path: "/crowdManage/crowdAdd",
path: '/crowdManage/crowdAdd', component: resolve => require([`@/views/crowdManage/crowdAdd.vue`], resolve),
component: resolve => require([`@/views/crowdManage/crowdAdd.vue`], resolve), meta: {}
meta: {} },
}, {
{ name: 'crowdDetail',
name: 'crowdDetail', path: "/crowdManage/crowdDetail:id",
path: '/crowdManage/crowdDetail:id', component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve),
component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve), meta: {}
meta: {} },
}
]) ])
export default staticRoutes export default staticRoutes
// { // {
...@@ -166,4 +165,4 @@ export default staticRoutes ...@@ -166,4 +165,4 @@ export default staticRoutes
// 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
...@@ -34,7 +34,7 @@ button { ...@@ -34,7 +34,7 @@ button {
// 子系统不设外边距 // 子系统不设外边距
.scrm-sub-client-container { .scrm-sub-client-container {
padding: 0 20px 20px 20px; padding: 0 20px 20px 40px;
box-sizing: border-box; box-sizing: border-box;
} }
......
...@@ -21,19 +21,20 @@ ...@@ -21,19 +21,20 @@
line-height: 28px; line-height: 28px;
} }
/deep/ .el-input__inner:focus{border-color:$btnBlue!important;} /deep/ .el-input__inner:focus {
border-color: $btnBlue !important;
}
/deep/.el-range-editor.is-active, /deep/.el-range-editor.is-active,
.el-range-editor.is-active:hover { .el-range-editor.is-active:hover {
border-color: $btnBlue; border-color: $btnBlue;
} }
.el-message-box { .el-message-box {
width: 547px; width: 547px;
height:310px; height: 310px;
box-sizing: border-box; box-sizing: border-box;
padding-bottom: 10px; padding-bottom: 10px;
} }
.el-message-box__title { .el-message-box__title {
padding-left: 0; padding-left: 0;
margin-bottom: 0; margin-bottom: 0;
font-size: 20px; font-size: 20px;
...@@ -41,28 +42,42 @@ ...@@ -41,28 +42,42 @@
color: #333; color: #333;
} }
.el-message-box__title { .el-message-box__title {
display: block!important; display: block !important;
} }
.el-message-box__headerbtn { .el-message-box__headerbtn {
display: block!important; display: block !important;
color:#666666; color: #666666;
} }
.el-message-box__header { .el-message-box__header {
position: relative; position: relative;
padding: 15px 20px ; padding: 15px 20px;
border-bottom:1px solid #E6E6E6; border-bottom: 1px solid #e6e6e6;
} }
.el-message-box__content { .el-message-box__content {
text-align: center; text-align: center;
padding: 60px 0; padding: 60px 0;
} }
.el-icon-warning { .el-icon-warning {
display: block!important;
font-size:33px!important;
color: #5850FF!important;
position:relative;
left:50%;
transform: translateX(-50%);
margin-bottom:12px;
}
\ No newline at end of file \ No newline at end of file
display: block !important;
font-size: 33px !important;
color: #5850ff !important;
position: relative;
left: 50%;
transform: translateX(-50%);
margin-bottom: 12px;
}
.el-tooltip__popper.is-dark {
background: #666666 !important;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06) !important;
font-size: 12px;
font-weight: 400;
color: #ffffff;
line-height: 18px;
}
.el-tooltip__popper[x-placement^="top"] .popper__arrow {
border-top-color: #666666 !important;
}
.el-tooltip__popper[x-placement^="top"] .popper__arrow:after {
border-top-color: #666666 !important;
}
...@@ -46,17 +46,18 @@ ...@@ -46,17 +46,18 @@
</template> </template>
<script> <script>
import { getCustomerList, customerClusterListExport } from '@/api/modules/clientDataOverview' import { getCustomerList, getcrowdManageList, customerClusterListExport } from '@/api/modules/clientDataOverview'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
export default { export default {
name: 'group', name: 'group',
data() { data() {
return { return {
getListApi: getCustomerList, getListApi: this.$route.params.crowdType ? getcrowdManageList : getCustomerList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableSearchForm: {}, tableSearchForm: {},
crowdForm: {}, crowdForm: {},
id: this.$route.params.id ? this.$route.params.id : '', id: this.$route.params.id ? this.$route.params.id : '',
crowdType: this.$route.params.crowdType ? this.$route.params.crowdType : '',
totalCount: '', totalCount: '',
tableParams: { tableParams: {
listName: 'data', listName: 'data',
...@@ -111,6 +112,7 @@ export default { ...@@ -111,6 +112,7 @@ export default {
} }
] ]
}, },
url: url url: url
} }
}, },
...@@ -151,6 +153,7 @@ export default { ...@@ -151,6 +153,7 @@ export default {
pageSize: 10, pageSize: 10,
pageNum: 1 pageNum: 1
} }
if (this.crowdType) params.customCrowd = true
customerClusterListExport(params).then(res => { customerClusterListExport(params).then(res => {
this.$Utils.exportFn(res) this.$Utils.exportFn(res)
}) })
...@@ -206,6 +209,7 @@ export default { ...@@ -206,6 +209,7 @@ export default {
line-height: 20px; line-height: 20px;
letter-spacing: 1px; letter-spacing: 1px;
margin-bottom: 10px; margin-bottom: 10px;
width: calc(100% - 156px);
} }
&-content { &-content {
font-weight: 400; font-weight: 400;
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</div> </div>
<div class="itembox"> <div class="itembox">
<div class="no-buy"> <div class="no-buy">
<div class="no-buy-total item" @click="goto(1)"> <div class="no-buy-total item" @click="goto(1)" fn="人群客户列表" mode="div">
<span>潜在意向客户数</span> <span>潜在意向客户数</span>
<span>无购车且无其他交易行为的所有客户</span> <span>无购车且无其他交易行为的所有客户</span>
<span v-if="!isEmptyObj"> <span v-if="!isEmptyObj">
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<div class="rightWrap"> <div class="rightWrap">
<div class="inCompanyWechatNum item smallWrap" @click="goto(2)"> <div class="inCompanyWechatNum item smallWrap" @click="goto(2)" fn="人群客户列表" mode="div">
<span>已加企微客户数</span> <span>已加企微客户数</span>
<span> <span>
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }} {{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<!-- <i class="horizontal-line"></i> --> <!-- <i class="horizontal-line"></i> -->
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
<div class="outCompanyWechatNum item smallWrap" @click="goto(3)"> <div class="outCompanyWechatNum item smallWrap" @click="goto(3)" fn="人群客户列表" mode="div">
<span>未加企微客户数</span> <span>未加企微客户数</span>
<span> <span>
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }} {{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</div> </div>
</div> </div>
<div class="buy"> <div class="buy">
<div class="buy-total item" @click="goto(4)"> <div class="buy-total item" @click="goto(4)" fn="人群客户列表" mode="div">
<!-- <span>购买(存档)客户数</span> --> <!-- <span>购买(存档)客户数</span> -->
<span>基盘客户数</span> <span>基盘客户数</span>
<span>有购车或其他交易行为的所有客户</span> <span>有购车或其他交易行为的所有客户</span>
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
</div> </div>
<el-divider direction="vertical"></el-divider> <el-divider direction="vertical"></el-divider>
<div class="rightWrap"> <div class="rightWrap">
<div class="inCompanyWechatNum item smallWrap" @click="goto(5)"> <div class="inCompanyWechatNum item smallWrap" @click="goto(5)" fn="人群客户列表" mode="div">
<span>已加企微客户数</span> <span>已加企微客户数</span>
<span> <span>
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }} {{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
<!-- <i class="horizontal-line"></i> --> <!-- <i class="horizontal-line"></i> -->
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
<div class="outCompanyWechatNum item smallWrap" @click="goto(6)"> <div class="outCompanyWechatNum item smallWrap" @click="goto(6)" fn="人群客户列表" mode="div">
<span>未加企微客户数</span> <span>未加企微客户数</span>
<span> <span>
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }} {{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<h3 class="pageSubTitle">客户分群</h3> <h3 class="pageSubTitle">客户分群</h3>
<div class="itembox"> <div class="itembox">
<template v-for="(item, index) in titles"> <template v-for="(item, index) in titles">
<div class="item" @click="goto(item.id)" :key="index"> <div class="item" @click="goto(item.id)" fn="人群客户列表" mode="div" :key="index">
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
<p>{{ item.subName }}</p> <p>{{ item.subName }}</p>
<p> <p>
...@@ -525,7 +525,6 @@ export default { ...@@ -525,7 +525,6 @@ export default {
}, },
//跳转到人群客户列表 //跳转到人群客户列表
goto(id) { goto(id) {
console.log(this.userType)
if (this.userType == 2) return if (this.userType == 2) return
this.$router.push('/clientDataOverview/group/' + id) this.$router.push('/clientDataOverview/group/' + id)
} }
......
<template> <template>
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<!-- <div class="header"> <div class="container">
<div class="userId">
<span>客户ID:{{ leftPanelInfo.oneId }}</span>
</div>
<button class="backBtn" @click="goBack">返回客户信息管理</button>
</div> -->
<div class="content">
<div class="leftWrap"> <div class="leftWrap">
<div class="avatorStyle"> <div class="avatorStyle">
<div class="avator"> <div class="avator">
...@@ -29,7 +23,7 @@ ...@@ -29,7 +23,7 @@
<span class="ellipsis-1"> <span class="ellipsis-1">
<!-- {{ leftPanelInfo.customerName }} --> <!-- {{ leftPanelInfo.customerName }} -->
{{ beautySub(leftPanelInfo.customerName) }} {{ beautySub(leftPanelInfo.customerName) }}
<label class="pure-blue-text">{{ leftPanelInfo.type == 1 ? '@微信' : leftPanelInfo.type == 2 ? '@企微' : '' }}</label> <label class="pure-blue-text font-12">{{ leftPanelInfo.type == 1 ? '@微信' : leftPanelInfo.type == 2 ? '@企微' : '' }}</label>
</span> </span>
</el-tooltip> </el-tooltip>
</p> </p>
...@@ -56,7 +50,7 @@ ...@@ -56,7 +50,7 @@
</p> </p>
<p> <p>
<span>证件号码:</span> <span>证件号码:</span>
<span>{{ leftPanelInfo.idCard }}</span> <span style="white-space:nowrap">{{ leftPanelInfo.idCard }}</span>
</p> </p>
<p> <p>
<span>性别:</span> <span>性别:</span>
...@@ -99,7 +93,7 @@ ...@@ -99,7 +93,7 @@
</p> </p>
<p> <p>
<span>添加时间:</span> <span>添加时间:</span>
<span>{{ leftPanelInfo.addTime }}</span> <span style="white-space:nowrap">{{ leftPanelInfo.addTime }}</span>
</p> </p>
</div> </div>
</div> </div>
...@@ -195,10 +189,14 @@ ...@@ -195,10 +189,14 @@
<div v-show="currentIndex == 2" class="clientTagsWrap"> <div v-show="currentIndex == 2" class="clientTagsWrap">
<div style="height: 20px"></div> <div style="height: 20px"></div>
<!-- //提示面板组件 --> <!-- //提示面板组件 -->
<tip-panel panelWidth="666px" panelMinHeight="45px" :panelContent="panelContent"></tip-panel>
<tip-panel class="mg2" panelMinHeight="45px" :panelContent="panelContent"></tip-panel>
<!-- v-if="userType == 2" --> <!-- v-if="userType == 2" -->
<el-button type="primary" class="addTagBtn" size="small" @click="btnClick('create')" v-if="userType == 2">设置标签</el-button> <el-button type="primary" class="addTagBtn" size="small" @click="btnClick('create')" v-if="userType == 2">设置标签</el-button>
<GLTable ref="clientTagsListRef" :hasNum="false" :noDataImg="url" noDataText="客户暂无已添加的标签" :tableData="clientTagsList" :hasPage="false" :tableParams="tagsParams" :headerStyle="{ height: '54px' }"> <GLTable class="table" ref="clientTagsListRef" :hasNum="false" :noDataImg="url" noDataText="客户暂无已添加的标签" :tableData="clientTagsList" :hasPage="false" :tableParams="tagsParams" :headerStyle="{ height: '54px' }">
<span slot="labelGroupInfo" slot-scope="scope"> <span slot="labelGroupInfo" slot-scope="scope">
<span>{{ scope.scope.labelGroupInfo.labelGroupName }}</span> <span>{{ scope.scope.labelGroupInfo.labelGroupName }}</span>
</span> </span>
...@@ -225,6 +223,11 @@ ...@@ -225,6 +223,11 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer-panel">
<div>
<el-button type="primary" @click="goBack">返回</el-button>
</div>
</div>
<basic-dialog class="tags" :title="tagsDialogTitle" :width="'712px'" :isDestroyClose="true" :btnLoading="sloading" :isShowThirdBtn="true" :isShowCloseBtn="true" @btnEvent="goNewTag" :isVisible="tagsVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose"> <basic-dialog class="tags" :title="tagsDialogTitle" :width="'712px'" :isDestroyClose="true" :btnLoading="sloading" :isShowThirdBtn="true" :isShowCloseBtn="true" @btnEvent="goNewTag" :isVisible="tagsVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<slot> <slot>
<p class="hint-text color-6"> <p class="hint-text color-6">
...@@ -417,7 +420,8 @@ export default { ...@@ -417,7 +420,8 @@ export default {
{ {
label: '跟进员工', label: '跟进员工',
prop: 'staffName', prop: 'staffName',
align: 'left' align: 'left',
minWidth: 100
}, },
{ {
label: '所属部门', label: '所属部门',
...@@ -557,7 +561,6 @@ export default { ...@@ -557,7 +561,6 @@ export default {
created() { created() {
if (window.__POWERED_BY_QIANKUN__) { if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中 //运行在qiankun容器中
console.log('欠款', this.$globalState.session)
this.merchantId = this.$globalState.session.merchantId this.merchantId = this.$globalState.session.merchantId
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
...@@ -650,7 +653,6 @@ export default { ...@@ -650,7 +653,6 @@ export default {
getSingleClientTag(param) getSingleClientTag(param)
.then(res => { .then(res => {
if (res.code == 0) { if (res.code == 0) {
console.log(res, 'kkk')
if (!res.userLabelUnitList) { if (!res.userLabelUnitList) {
return return
} }
...@@ -685,10 +687,20 @@ export default { ...@@ -685,10 +687,20 @@ export default {
this.employTableList = res.staffFollows || [] this.employTableList = res.staffFollows || []
this.clientGroupTableList = res.customerBases || [] this.clientGroupTableList = res.customerBases || []
this.tagsList = res.labels || [] this.tagsList = res.labels || []
this.labelIdList = (res.labels || []).map(item => item.labelId) this.labelIdList = this.handleLabelId(res.labelInfos)
this.clientTagsList = res.labelInfos || [] this.clientTagsList = res.labelInfos || []
this.nickNameList = res.nickNameList || [] this.nickNameList = res.nickNameList || []
}, },
handleLabelId(data) {
let array = []
data &&
data.forEach(label => {
label.labelInfoList.forEach(info => {
array.push(info.labelId)
})
})
return array
},
goNewTag() { goNewTag() {
this.$router.push({ path: '/tagsManage/index' }) this.$router.push({ path: '/tagsManage/index' })
}, },
...@@ -782,7 +794,6 @@ export default { ...@@ -782,7 +794,6 @@ export default {
} }
addSingleClientTag(param) addSingleClientTag(param)
.then(res => { .then(res => {
console.log(param)
if (res.data.code == 0) { if (res.data.code == 0) {
this.sloading = false this.sloading = false
this.$message.success('设置成功') this.$message.success('设置成功')
...@@ -809,6 +820,7 @@ export default { ...@@ -809,6 +820,7 @@ export default {
// } // }
// console.log('进来') // console.log('进来')
this.tagsVisible = !this.tagsVisible this.tagsVisible = !this.tagsVisible
this.allTagsList = []
}, },
checkNewTag(checked, j, arr, original = false) { checkNewTag(checked, j, arr, original = false) {
//打开弹窗就是选中的,不许去选中,不是一开始就选中的,可以去选中 //打开弹窗就是选中的,不许去选中,不是一开始就选中的,可以去选中
...@@ -838,8 +850,6 @@ export default { ...@@ -838,8 +850,6 @@ export default {
} }
}) })
console.log('选中', _arr)
this.submitTagsList = _arr this.submitTagsList = _arr
}, },
choose(index1, index2, index3) { choose(index1, index2, index3) {
...@@ -890,11 +900,20 @@ export default { ...@@ -890,11 +900,20 @@ export default {
} }
.WechatName { .WechatName {
display: inline-block;
// height: 20px;
font-size: 14px;
font-weight: 500; font-weight: 500;
color: #666666; color: #666666;
line-height: 20px; line-height: 20px;
margin-left: 20px; min-width: 98px;
height: 20px; text-align: right;
// font-weight: 500;
// color: #666666;
// line-height: 20px;
// margin-left: 20px;
// height: 20px;
// min-width: 98px;
} }
} }
.overHidden { .overHidden {
...@@ -903,44 +922,17 @@ export default { ...@@ -903,44 +922,17 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.scrm-sub-client-container { .scrm-sub-client-container {
.header { .container {
display: flex;
justify-content: space-between;
align-items: center;
// width: 1160px;
height: 72px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.userId {
margin-left: 26px;
height: 20px;
font-size: 20px;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
}
.backBtn {
margin-right: 20px;
height: 32px;
font-size: 14px;
background: $btnBlue;
color: #fff;
border-radius: 4px;
padding: 0 20px;
border: none;
&:hover {
background-color: $lightBtnBlue;
}
}
}
.content {
display: flex; display: flex;
width: 100%; width: 100%;
margin-top: 20px; margin-top: 20px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
min-height: calc(100vh - 194px);
overflow-y: auto;
margin-bottom: 78px;
.leftWrap { .leftWrap {
width: 275px; width: 275px;
min-height: calc(100vh - 92px); min-height: calc(100vh - 170px);
background-color: #fff; background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
// padding: 0 20px; // padding: 0 20px;
...@@ -996,7 +988,7 @@ export default { ...@@ -996,7 +988,7 @@ export default {
font-weight: 500; font-weight: 500;
color: #666666; color: #666666;
line-height: 20px; line-height: 20px;
min-width: 90px; min-width: 98px;
text-align: right; text-align: right;
} }
span:nth-child(2) { span:nth-child(2) {
...@@ -1011,7 +1003,8 @@ export default { ...@@ -1011,7 +1003,8 @@ export default {
} }
} }
.rightWrap { .rightWrap {
margin-left: 12px; height: auto;
margin-left: 10px;
width: calc(100% - 287px); width: calc(100% - 287px);
box-sizing: border-box; box-sizing: border-box;
background-color: #fff; background-color: #fff;
...@@ -1052,6 +1045,7 @@ export default { ...@@ -1052,6 +1045,7 @@ export default {
} }
.addTagBtn { .addTagBtn {
margin-bottom: 10px; margin-bottom: 10px;
margin-left: 20px;
} }
// 处理客户标签的样式 // 处理客户标签的样式
.clientTagsWrap { .clientTagsWrap {
...@@ -1153,6 +1147,24 @@ export default { ...@@ -1153,6 +1147,24 @@ export default {
} }
} }
} }
.footer-panel {
position: fixed;
bottom: 0px;
height: 78px;
left: 220px;
width: 100%;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
z-index: 999;
div {
display: inline-block;
position: relative;
transform: translate(-50%, -50%);
left: 50%;
top: 50%;
margin-left: -110px;
}
}
.tags { .tags {
/deep/.app-dialog { /deep/.app-dialog {
.el-dialog__body { .el-dialog__body {
...@@ -1252,11 +1264,16 @@ export default { ...@@ -1252,11 +1264,16 @@ export default {
} }
.table { .table {
margin-bottom: 10px; margin-bottom: 10px;
padding: 0 20px;
} }
} }
.table /deep/ .line-ellipsis { .table {
white-space: nowrap; padding: 0 20px;
overflow: visible;
/deep/ .line-ellipsis {
white-space: nowrap;
overflow: visible;
}
} }
} }
</style> </style>
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<!-- <p class="pageTitle">客户管理</p> --> <!-- <p class="pageTitle">客户管理</p> -->
<div class="pageContent"> <div class="pageContent">
<search-form :ploading="sloading" :isHasSyncBtn="true" :showDefaultTime="false" :merchantModel="merchantModel" :accountLevel="accountLevel" class="searchTop border-shadow" :formModel="searchForm" :formList="clientManageFormList" @resetTable="resetTable" @searchTable="searchTable" @handleExport="handleExport" @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" @handleExport="handleExport" @syncClick="syncClick">
<span class="inline-b" slot="form-slot"> <span class="inline-b" slot="form-slot">
<el-button plain @click="resetTable">重置</el-button> <el-button plain @click="resetTable">重置</el-button>
<el-button type="primary" @click="searchTable">查询</el-button> <el-button type="primary" @click="searchTable">查询</el-button>
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams"> <GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchFormTable" :noDataImg="url" :pageConf="pageConf" :tableParams="tableParams">
<span slot="customerName" class="flex-center" slot-scope="scope"> <span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top"> <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> <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 style="font-size: 12px" 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>
...@@ -36,9 +36,9 @@ ...@@ -36,9 +36,9 @@
</el-tooltip> </el-tooltip>
<el-tag type="info" v-if="followList(scope.scope.followStaff).length > 2 && idx == 2"> <el-tag type="info" v-if="followList(scope.scope.followStaff).length > 2 && idx == 2">
<el-popover placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。"> <el-popover placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div slot="reference">...({{ followList(scope.scope.followStaff).length }})</div> <div slot="reference">...({{ followList(scope.scope.followStaff).length }})</div>
<div class="entmicro-hover" > <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"> <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 class="el-icon-user-solid" style="color: #75acff"></i>
<!-- {{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }} --> <!-- {{ i.staffName }}{{ i.departmentName ? `(${i.departmentName})` : '' }} -->
...@@ -219,75 +219,75 @@ export default { ...@@ -219,75 +219,75 @@ export default {
{ {
label: '客户ID', label: '客户ID',
prop: 'oneId', prop: 'oneId',
minWidth: 150, minWidth: 150
//align: 'left' //align: 'left'
}, },
{ {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
addHtml: 'customerName', addHtml: 'customerName',
minWidth: 130, minWidth: 130
//align: 'left' //align: 'left'
}, },
{ {
label: '企微名称', label: '企微名称',
prop: 'nickNameList', prop: 'nickNameList',
addHtml: 'nickNameList', addHtml: 'nickNameList',
minWidth: 170, minWidth: 170
//align: 'left' //align: 'left'
}, },
{ {
label: '联系电话', label: '联系电话',
prop: 'customerPhone', prop: 'customerPhone',
addHtml: 'customerPhone', addHtml: 'customerPhone',
minWidth: 110, minWidth: 110
//align: 'left' //align: 'left'
}, },
{ {
label: '性别', label: '性别',
prop: 'customerSex', prop: 'customerSex',
addHtml: 'customerSex', addHtml: 'customerSex',
minWidth: 80, minWidth: 80
//align: 'left' //align: 'left'
}, },
{ {
label: '跟进员工', label: '跟进员工',
prop: 'followStaff', prop: 'followStaff',
addHtml: 'followStaff', addHtml: 'followStaff',
minWidth: 120, minWidth: 120
//align: 'left' //align: 'left'
}, },
{ {
label: '是否加企微', //1. 加入,0.未加入 label: '是否加企微', //1. 加入,0.未加入
prop: 'isJoin', prop: 'isJoin',
addHtml: 'isJoin', addHtml: 'isJoin',
width: 100, width: 100
//align: 'left' //align: 'left'
}, },
{ {
label: '当前状态', label: '当前状态',
prop: 'status', prop: 'status',
addHtml: 'status', addHtml: 'status',
minWidth: 100, minWidth: 100
//align: 'left' //align: 'left'
}, },
{ {
label: '所属渠道', label: '所属渠道',
prop: 'sourceChannel', prop: 'sourceChannel',
width: 150, width: 150
//align: 'left' //align: 'left'
}, },
{ {
label: '添加来源', label: '添加来源',
prop: 'addWay', prop: 'addWay',
addHtml: 'addWay', addHtml: 'addWay',
minWidth: 100, minWidth: 100
//align: 'left' //align: 'left'
}, },
{ {
label: '添加时间', label: '添加时间',
prop: 'addTime', prop: 'addTime',
width: 150, width: 150
//align: 'left' //align: 'left'
}, },
{ {
......
...@@ -114,8 +114,8 @@ ...@@ -114,8 +114,8 @@
</div> </div>
<div class="footer-panel"> <div class="footer-panel">
<div> <div>
<el-button type="primary" @click="handleSubmit">确定</el-button>
<el-button class="cancel-button" @click="handleCancel">取消</el-button> <el-button class="cancel-button" @click="handleCancel">取消</el-button>
<el-button type="primary" @click="handleSubmit">保存</el-button>
</div> </div>
</div> </div>
<el-dialog title="人群规则说明" class="crowd-dialog" width="720px" :before-close="handleClose" :visible.sync="dialogRuleVisible" :show-close="isShowCloseBtn"> <el-dialog title="人群规则说明" class="crowd-dialog" width="720px" :before-close="handleClose" :visible.sync="dialogRuleVisible" :show-close="isShowCloseBtn">
...@@ -243,7 +243,7 @@ export default { ...@@ -243,7 +243,7 @@ export default {
this.getLabelData() this.getLabelData()
}, },
watch: { watch: {
selectedArray: function () { selectedArray: function() {
this.crowdCount = '' //初始化查看预估人数 this.crowdCount = '' //初始化查看预估人数
if (this.selectedArray.length > 0) { if (this.selectedArray.length > 0) {
this.$nextTick(() => { this.$nextTick(() => {
...@@ -615,7 +615,7 @@ export default { ...@@ -615,7 +615,7 @@ export default {
} }
return len return len
}, },
cutMaxCharStr: function (e, unit) { cutMaxCharStr: function(e, unit) {
//e为传入字符串 //e为传入字符串
let str = e let str = e
var len = 0 var len = 0
...@@ -666,7 +666,7 @@ export default { ...@@ -666,7 +666,7 @@ export default {
.container { .container {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
height: calc(100vh - 150px); height: calc(100vh - 164px);
overflow-y: auto; overflow-y: auto;
// padding: 20px; // padding: 20px;
...@@ -755,6 +755,10 @@ export default { ...@@ -755,6 +755,10 @@ export default {
} }
.search-tag-form { .search-tag-form {
position: relative; position: relative;
display: flex;
/deep/ .el-form-item {
display: flex;
}
} }
.select-label-wrap { .select-label-wrap {
margin-bottom: 20px; margin-bottom: 20px;
...@@ -775,6 +779,7 @@ export default { ...@@ -775,6 +779,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: nowrap; flex-wrap: nowrap;
.label-group-name { .label-group-name {
max-width: 533px; max-width: 533px;
padding-top: 3px; padding-top: 3px;
...@@ -808,6 +813,7 @@ export default { ...@@ -808,6 +813,7 @@ export default {
position: absolute; position: absolute;
right: 8px; right: 8px;
margin-left: 10px; margin-left: 10px;
top: 6px;
} }
} }
} }
...@@ -884,21 +890,22 @@ export default { ...@@ -884,21 +890,22 @@ export default {
// justify-content: center; // justify-content: center;
position: fixed; position: fixed;
bottom: 0px; bottom: 0px;
height: 64px; height: 78px;
left: 220px; left: 220px;
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
z-index:999;
.el-button:nth-child(2) {
margin-left: 20px;
}
div { div {
width: 170px; display: inline-block;
position: relative; position: relative;
transform: translateY(-50%); transform: translate(-50%, -50%);
left: 50%; left: 50%;
top: 50%; top: 50%;
margin-left: -220px; margin-left: -110px;
.cancel-button {
margin-left: 20px;
}
} }
} }
.label-text { .label-text {
...@@ -1020,4 +1027,8 @@ export default { ...@@ -1020,4 +1027,8 @@ export default {
margin-top: 0; margin-top: 0;
} }
} }
/deep/ .el-tooltip__popper.is-dark {
background: #666666;
box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
}
</style> </style>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
<div class="footer-panel"> <div class="footer-panel">
<div> <div>
<el-button class="cancel-button" @click="$router.go(-1)">返回</el-button> <el-button type="primary" @click="$router.go(-1)">返回</el-button>
</div> </div>
</div> </div>
<el-dialog title="人群规则说明" class="crowd-dialog" width="720px" :before-close="handleClose" :visible.sync="dialogRuleVisible" :show-close="isShowCloseBtn"> <el-dialog title="人群规则说明" class="crowd-dialog" width="720px" :before-close="handleClose" :visible.sync="dialogRuleVisible" :show-close="isShowCloseBtn">
...@@ -195,7 +195,7 @@ export default { ...@@ -195,7 +195,7 @@ export default {
.container { .container {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
height: calc(100vh - 150px); height: calc(100vh - 164px);
overflow-y: auto; overflow-y: auto;
// padding: 20px; // padding: 20px;
...@@ -260,27 +260,26 @@ export default { ...@@ -260,27 +260,26 @@ export default {
} }
} }
} }
} }
} }
.footer-panel { .footer-panel {
position: fixed; position: fixed;
bottom: 0px; bottom: 0px;
height: 64px; height: 78px;
left: 220px; left: 220px;
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
div { z-index: 999;
width: 80px; div {
position: relative; display: inline-block;
transform: translateY(-50%); position: relative;
left: 50%; transform: translate(-50%, -50%);
top: 50%; left: 50%;
margin-left: -220px; top: 50%;
margin-left: -110px;
} }
} }
.crowd-dialog { .crowd-dialog {
/deep/.el-dialog__header { /deep/.el-dialog__header {
padding: 15px 20px; padding: 15px 20px;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-tabs v-model="activeName" @tab-click="handleClick()"> <el-tabs v-model="activeName" @tab-click="handleClick()">
<el-tab-pane label="推荐人群" name="first"></el-tab-pane> <el-tab-pane label="推荐人群" name="first"></el-tab-pane>
<el-tab-pane label="自定义人群" name="second"> <el-tab-pane label="自定义人群" name="second">
<GLButton class="addBtn" fn="新建人群" v-if="admin" @click="addClick"> <GLButton class="addBtn" fn="新建人群" v-if="userType == 1" @click="addClick">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
新建人群 新建人群
</GLButton> </GLButton>
...@@ -16,7 +16,13 @@ ...@@ -16,7 +16,13 @@
<el-button class="searchBtn" type="primary" @click="searchTable">查询</el-button> <el-button class="searchBtn" type="primary" @click="searchTable">查询</el-button>
</span> </span>
</search-form> </search-form>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="crowdManage" :hasNum="false" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }"> <GLTable class="crowdTable" @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="crowdManage" :hasNum="false" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams" :headerStyle="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<span slot="crowdName" slot-scope="scope">
<span class="line-ellipsis">{{ scope.scope.crowdName.slice(0, 24) }}</span>
</span>
<span slot="crowdDesc" slot-scope="scope">
<span class="line-ellipsis">{{ scope.scope.crowdDesc.slice(0, 24) }}</span>
</span>
<template slot="xxx" slot-scope="scope"> <template slot="xxx" slot-scope="scope">
<!-- <span @click="btnClick('detail', scope.scope)" class="blue-text">查看详情</span> --> <!-- <span @click="btnClick('detail', scope.scope)" class="blue-text">查看详情</span> -->
<GLButton type="text" @click="btnClick('detail', scope.scope)" class="blue-text" fn="查看详情">查看详情</GLButton> <GLButton type="text" @click="btnClick('detail', scope.scope)" class="blue-text" fn="查看详情">查看详情</GLButton>
...@@ -47,7 +53,7 @@ export default { ...@@ -47,7 +53,7 @@ export default {
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
prop: 'req.keyword', prop: 'req.keyword',
label: '人群名称', label: '人群名称:',
placeholder: '请输入人群名称', placeholder: '请输入人群名称',
clearable: true clearable: true
} }
...@@ -59,14 +65,16 @@ export default { ...@@ -59,14 +65,16 @@ export default {
{ {
label: '人群名称', label: '人群名称',
prop: 'crowdName', prop: 'crowdName',
// addHtml: 'crowdName', addHtml: 'crowdName',
align: 'left' align: 'left'
// width: 431
}, },
{ {
label: '人群描述', label: '人群描述',
prop: 'crowdDesc', prop: 'crowdDesc',
addHtml: 'crowdDesc',
align: 'left' align: 'left'
// width: 180 // width: 431
}, },
{ {
label: '人数', label: '人数',
...@@ -103,22 +111,21 @@ export default { ...@@ -103,22 +111,21 @@ export default {
//没数据的时候要算高度 //没数据的时候要算高度
setTimeout(() => { setTimeout(() => {
if (!this.$refs.crowdManage.data.length) { // if (!this.$refs.crowdManage.data.length) {
this.loading = true this.loading = true
this.$refs.crowdManage.setTableHeightFun() this.$refs.crowdManage.setTableHeightFun()
this.loading = false this.loading = false
} // }
}, 200) }, 200)
}, },
methods: { methods: {
btnClick(type, data) { btnClick(type, data) {
console.log(data)
if (type == 'detail') { if (type == 'detail') {
console.log(`/crowdManage/crowdDetail/${data.crowdId}`)
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}`) this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}`)
} }
if (type == 'view') { if (type == 'view') {
this.$router.push(`/clientDataOverview/group/${data.crowdId}`) const crowdType = this.activeName == 'first' ? 1 : 2
this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`)
} }
}, },
addClick() { addClick() {
...@@ -130,12 +137,9 @@ export default { ...@@ -130,12 +137,9 @@ export default {
handleClick() { handleClick() {
this.searchForm = { 'req.keyword': '' } this.searchForm = { 'req.keyword': '' }
this.searchTable() this.searchTable()
// setTimeout(() =>{ setTimeout(() => {
// if(this.$refs.crowdManage.data.length == 0){ this.$refs.crowdManage.setTableHeightFun()
// this.$refs.crowdManage.setTableHeightFun() }, 200)
// }
// this.loading =false
// },200)
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
...@@ -154,6 +158,15 @@ export default { ...@@ -154,6 +158,15 @@ export default {
// this.$refs.crowdManage.refreshTable() // this.$refs.crowdManage.refreshTable()
// } // }
},
beforeRouteEnter(to, from, next) {
next(vm => {
if (from.params.crowdType) {
vm.activeName = from.params.crowdType == 2 ? 'second' : 'first'
vm.crowdType = from.params.crowdType
vm.beforeSearchFn()
}
})
} }
} }
</script> </script>
...@@ -193,9 +206,29 @@ export default { ...@@ -193,9 +206,29 @@ export default {
margin-left: 10px; margin-left: 10px;
} }
.scrm-sub-client-container { .scrm-sub-client-container {
/deep/.search-form .el-form-item__content { .pageContent {
width: auto; /deep/.search-form {
.itemWidth {
display: flex;
.el-form-item {
display: flex;
}
}
.el-form-item__content {
width: auto;
display: inline-block;
margin-left: 0px !important;
.el-input {
width: 415px;
.el-input__inner {
width: 415px;
}
}
}
}
} }
.pageContent { .pageContent {
padding: 6px 20px 30px; padding: 6px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
...@@ -204,10 +237,10 @@ export default { ...@@ -204,10 +237,10 @@ export default {
margin-left: 10px; margin-left: 10px;
} }
.searchTop { .searchTop {
/deep/ .el-form-item:nth-child(2) { /deep/ .el-form-item:nth-child(2) {
position: static !important; position: static !important;
.el-form-item__content{ .el-form-item__content {
margin-left:15px!important; margin-left: 15px !important;
} }
} }
} }
...@@ -215,5 +248,16 @@ export default { ...@@ -215,5 +248,16 @@ export default {
position: relative; position: relative;
} }
} }
.crowdTable {
padding: 0 20px;
/deep/ .line-ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 20vw;
display: block;
}
}
} }
</style> </style>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<!-- :class="[expande ? 'expande' : 'close']" --> <!-- :class="[expande ? 'expande' : 'close']" -->
<div id="allTagsWrap" class="allTagsWrap"> <div id="allTagsWrap" class="allTagsWrap">
<span v-for="(item, index) in showTagArray(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"> <el-tooltip class="item" :content="item.name" placement="top">
<span>{{ item.name }}</span> <span>{{ item.name }}</span>
</el-tooltip> </el-tooltip>
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
<template slot="xxx" slot-scope="scope"> <template slot="xxx" slot-scope="scope">
<!-- //这版关掉自店标签 1.0.1允许集团的门店打字店标签,也可以编辑--> <!-- //这版关掉自店标签 1.0.1允许集团的门店打字店标签,也可以编辑-->
<!-- v-if="scope.scope.labelType != '系统标签' && isShowEditBtn(scope.scope)" --> <!-- v-if="scope.scope.labelType != '系统标签' && isShowEditBtn(scope.scope)" -->
<span @click="btnClick('edit', scope.scope)" v-if="scope.scope.labelType != '系统标签' && isShowEditBtn(scope.scope)" class="blue-text">编辑标签组</span> <span @click="btnClick('edit', scope.scope)" v-if="scope.scope.labelType != '系统标签' && isShowEditBtn(scope.scope)" class="blue-text" >编辑标签组</span>
<GLButton class="blue-text leftDistance" type="text" fn="查看客户" v-if="userType !== 2" @click="toViewCustomer(scope.scope)">查看客户</GLButton> <GLButton class="blue-text leftDistance" type="text" fn="查看客户" v-if="userType!==2" @click="toViewCustomer(scope.scope)" >查看客户</GLButton>
</template> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -200,20 +200,7 @@ export default { ...@@ -200,20 +200,7 @@ export default {
prop: 'labelTreeReq.labelTypesStr', prop: 'labelTreeReq.labelTypesStr',
label: '标签组', label: '标签组',
placeholder: '请选择标签组类型', placeholder: '请选择标签组类型',
options: [ options: this.$Constants.LABEL_OPTION
{
label: '企业标签',
value: '企业标签'
},
{
label: '自店标签',
value: '自店标签'
},
{
label: '系统标签',
value: '系统标签'
}
]
}, },
{ {
type: 'input', type: 'input',
...@@ -233,7 +220,7 @@ export default { ...@@ -233,7 +220,7 @@ export default {
label: '标签组', label: '标签组',
prop: 'labelGroup', prop: 'labelGroup',
addHtml: 'labelGroup', addHtml: 'labelGroup',
width: 230 width: 230,
}, },
{ {
label: '标签组类型', label: '标签组类型',
...@@ -252,7 +239,7 @@ export default { ...@@ -252,7 +239,7 @@ export default {
fixed: 'right', fixed: 'right',
addHtml: 'xxx', addHtml: 'xxx',
width: 180 width: 180
} }
] ]
// tableOption: { // tableOption: {
// width: 120 // width: 120
...@@ -276,7 +263,7 @@ export default { ...@@ -276,7 +263,7 @@ export default {
// maxlength: 30, // maxlength: 30,
// showWordLimit: true, // showWordLimit: true,
disabled: false, disabled: false,
clickFunc: this.watchInput clickFunc:this.watchInput
}, },
{ {
label: '标签组类型', label: '标签组类型',
...@@ -295,7 +282,7 @@ export default { ...@@ -295,7 +282,7 @@ export default {
], ],
tagRules: { tagRules: {
tagsName: [ tagsName: [
{ required: true, message: '请输入名称', trigger: 'blur' } { required: true, message: '请输入名称', trigger: 'blur' },
// { // {
// validator: checkName, // validator: checkName,
// trigger: 'change' // trigger: 'change'
...@@ -373,17 +360,17 @@ export default { ...@@ -373,17 +360,17 @@ export default {
// toViewCustomer(info) { // toViewCustomer(info) {
// this.$router.push('/tagsManage/viewCustomers') // this.$router.push('/tagsManage/viewCustomers')
// }, // },
toViewCustomer(info) { toViewCustomer(info) {
console.log(info) console.log(info)
const id = info.labelGroup.id const id = info.labelGroup.id
const type = info.labelType const type = info.labelType
this.$router.push({ this.$router.push({
// path:`/tagsManage/viewCustomers/530` // path:`/tagsManage/viewCustomers/530`
path: `/tagsManage/viewCustomers/${id}/${type}` path:`/tagsManage/viewCustomers/${id}/${type}`
}) })
}, },
watchInput() { watchInput(){
console.log('点击标签组名称输入框') console.log('点击标签组名称输入框')
}, },
showTagArray(list) { showTagArray(list) {
if (list.length == 0) { if (list.length == 0) {
...@@ -393,13 +380,14 @@ export default { ...@@ -393,13 +380,14 @@ export default {
return list.slice(0, 9) return list.slice(0, 9)
}, },
checkInputContent(e) { checkInputContent(e) {
//确保每个输入框的内容不和已存在的编辑标签相同 //确保每个输入框的内容不和已存在的编辑标签相同
let isHasSameTag = this.editTagList.some(ele => ele.name == e) let isHasSameTag = this.editTagList.some(ele => ele.name == e)
if (isHasSameTag) { if (isHasSameTag) {
this.$message.error('不允许输入已存在的标签') this.$message.error('不允许输入已存在的标签')
return e return e
} }
return this.$Utils.cutMaxCharStr(e) return this.$Utils.cutMaxCharStr(e)
}, },
isShowEditBtn(row) { isShowEditBtn(row) {
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店 //集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
...@@ -709,7 +697,7 @@ export default { ...@@ -709,7 +697,7 @@ export default {
i.inputVisible = false i.inputVisible = false
} }
}) })
return this.$Utils.cutMaxCharStr(inputValue) return this.$Utils.cutMaxCharStr(inputValue)
}, },
handleSelect(value) { handleSelect(value) {
console.log('值内容', value) console.log('值内容', value)
...@@ -730,7 +718,7 @@ export default { ...@@ -730,7 +718,7 @@ 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 { .leftDistance{
margin-left: 10px; margin-left: 10px;
} }
.scrm-sub-client-container { .scrm-sub-client-container {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<div class="pageContent"> <div class="pageContent" >
<div> <div>
<div class="clientNumExp"> <div class="clientNumExp">
<div class="clientNum"> <div class="clientNum">
...@@ -41,30 +41,30 @@ ...@@ -41,30 +41,30 @@
<div class="clientNumText">{{ tableTotal }}个</div> <div class="clientNumText">{{ tableTotal }}个</div>
</div> </div>
</div> </div>
<el-button class="export" size="small" type="primary" @click="handleExport">导出</el-button> <el-button class="export" size="small" type="primary" @click="handleExport">导出</el-button>
</div> </div>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="viewCustomers" :layout="layout" :hasNum="true" :tableData="tableData" :tableTotal="tableTotal" :noDataImg="url" :pageConf="pageConf" :searchForm="searchFormTable" @refreshTable="getCustomersListData" :tableParams="tableParams"> <GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="viewCustomers" :layout="layout" :hasNum="true" :tableData="tableData" :tableTotal="tableTotal" :noDataImg="url" :pageConf="pageConf" :searchForm="searchFormTable" @refreshTable="getCustomersListData" :tableParams="tableParams">
<span slot="qiweimingcheng" slot-scope="scope"> <span slot="qiweimingcheng" slot-scope="scope">
<span>{{ myStandNo(scope.scope.carVin) }}</span> <span>{{ myStandNo(scope.scope.carVin) }}</span>
</span> </span>
<!-- 企微名称 --> <!-- 企微名称 -->
<div slot="nickNameList" slot-scope="scope" class="expandImg"> <div slot="nickNameList" slot-scope="scope" class="expandImg">
<div v-for="(list, idx) in scope.scope.nickNameList" :key="idx"> <div v-for="(list, idx) in scope.scope.nickNameList" :key="idx">
<div v-if="idx == 0"> <div v-if="idx == 0">
<span>{{ list.nickName }}</span> <span>{{ list.nickName }}</span>
<span class="smallFontSize" :class="[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ list.corpName }}</span> <span class="smallFontSize" :class="[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ list.corpName }}</span>
</div>
<span v-if="idx == 1">
<el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div v-for="(i, index) in scope.scope.nickNameList" style="padding-bottom:3px !important" :key="index">
<span>{{ i.nickName }}</span>
<span style="height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400;margin-left:2px" :class="[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']">@{{ i.corpName }}</span>
</div>
<img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" />
</el-popover>
</span>
</div> </div>
<span v-if="idx == 1">
<el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div v-for="(i, index) in scope.scope.nickNameList" style="padding-bottom:3px !important" :key="index">
<span>{{ i.nickName }}</span>
<span style="height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400;margin-left:2px" :class="[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']">@{{ i.corpName }}</span>
</div>
<img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" />
</el-popover>
</span>
</div> </div>
</div>
<span slot="carVin" slot-scope="scope"> <span slot="carVin" slot-scope="scope">
<span>{{ myStandNo(scope.scope.carVin) }}</span> <span>{{ myStandNo(scope.scope.carVin) }}</span>
</span> </span>
...@@ -332,7 +332,7 @@ export default { ...@@ -332,7 +332,7 @@ export default {
} }
}, },
computed: { computed: {
items: function() { items: function () {
var _search = this.searchLabel var _search = this.searchLabel
const labelList = this.labelList.filter(item => item.labelName.indexOf(_search) > -1) const labelList = this.labelList.filter(item => item.labelName.indexOf(_search) > -1)
return labelList return labelList
...@@ -351,17 +351,18 @@ export default { ...@@ -351,17 +351,18 @@ export default {
pageSize: this.$refs.viewCustomers.page.pageSize, pageSize: this.$refs.viewCustomers.page.pageSize,
pageNum: this.$refs.viewCustomers.page.pageNum pageNum: this.$refs.viewCustomers.page.pageNum
} }
this.exportParams = { ...JSON.parse(JSON.stringify(this.allListParams)) } this.exportParams = {...JSON.parse(JSON.stringify(this.allListParams))}
this.loading2 = true this.loading2 = true;
getCustomersList(params).then(res => { getCustomersList(params).then(res => {
this.tableData = res.data this.tableData = res.data
this.tableTotal = res.count this.tableTotal = res.count
if (res.data.length == 0) { if (res.data.length == 0) {
this.$refs.viewCustomers.setTableHeightFun() this.$refs.viewCustomers.setTableHeightFun()
} }
setTimeout(() => { setTimeout(()=>{
this.loading2 = false this.loading2 = false;
}, 300) },300)
}) })
}, },
//获取标签组 //获取标签组
...@@ -527,7 +528,7 @@ export default { ...@@ -527,7 +528,7 @@ export default {
} }
.imgEll { .imgEll {
margin-left: 6.5px; margin-left: 6.5px;
cursor: pointer; cursor: pointer;
// margin-bottom:3px; // margin-bottom:3px;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!