File tree Expand file tree Collapse file tree 3 files changed +43
-16
lines changed
views/scrm/wecom/customer-domain/customer Expand file tree Collapse file tree 3 files changed +43
-16
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
import axios from 'axios' ;
9
9
import { PrefixUriAdmin } from '@/api' ;
10
- import { UriWeCom } from '../base' ;
10
+ import { UriWeCom , UriWeComUser } from '../base' ;
11
11
12
12
/**
13
13
* customer
14
14
* @description scrm客户管理
15
15
*/
16
16
17
- export interface UserDepartment {
18
- depId : number ;
19
- depName : string ;
20
- }
21
-
22
- export interface Customers {
23
- list : any [ ] ;
17
+ export interface WeComCustomer {
18
+ name : string ;
19
+ adderId : number ;
20
+ addTime : string ;
21
+ updateTime : string ;
22
+ addChannel : string ;
23
+ tagGroupIdList : number [ ] ;
24
+ tagIdList : number [ ] ;
25
+ personalTagList : string [ ] ;
26
+ age : number ;
27
+ email : string ;
28
+ phoneNumber : string ;
29
+ address : string ;
30
+ birthday : string ;
31
+ remark : string ;
32
+ groupChatId : number ;
24
33
}
25
34
26
35
export interface GetCustomersRequest {
@@ -31,15 +40,17 @@ export interface GetCustomersRequest {
31
40
pageSize ?: number ;
32
41
}
33
42
34
- export type GetCustomersReply = Customers ;
43
+ export interface GetCustomersReply {
44
+ list : WeComCustomer [ ] ;
45
+ }
35
46
36
47
/**
37
48
* customer
38
49
* @description 客户列表
39
50
*/
40
51
export function getCustomers ( request : GetCustomersRequest ) {
41
52
return axios . post < GetCustomersReply > (
42
- `/api/v1/scrm/wechat/wecom/customers /page` ,
53
+ `${ PrefixUriAdmin + UriWeComUser } /page` ,
43
54
request ,
44
55
) ;
45
56
}
@@ -50,7 +61,9 @@ export interface GetCustomersGroupsRequest {
50
61
limit ?: number ;
51
62
name ?: string ;
52
63
}
53
- export type GetCustomersGroupsReReply = Customers ;
64
+ export interface GetCustomersGroupsReReply {
65
+ list : WeComCustomer [ ] ;
66
+ }
54
67
/**
55
68
* customer
56
69
* @description 客户群列表
Original file line number Diff line number Diff line change 58
58
display : flex ;
59
59
flex-direction : column ;
60
60
gap : 16px ;
61
- .totalBox {
61
+ .navBox {
62
+ display : flex ;
63
+ flex-direction : row ;
64
+ justify-content : space-between ;
65
+ align-items : center ;
62
66
padding-top : 3px ;
63
67
height : 22px ;
64
68
float : left ;
65
69
font-size : 16px ;
66
70
font-weight : 400 ;
67
71
line-height : 22.4px ;
68
72
text-align : left ;
73
+ // border:1px solid red;
69
74
color : var (--ww_base_black );
70
75
}
71
76
}
Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
- import { onMounted , reactive , ref , toRaw } from ' vue' ;
2
+ import { onMounted , reactive , ref } from ' vue' ;
3
3
import { corpOption } from ' @/api/scrm/wecom/tag/corp-tag' ;
4
4
import { getCustomers , GetCustomersRequest } from ' @/api/scrm/wecom/customer' ;
5
5
import useLoadingStore from ' @/store/modules/loading' ;
126
126
</div >
127
127
<a-divider />
128
128
<div :class =" styles.resultBox" >
129
- <div :class =" styles.totalBox"
130
- >共{{ customersList.list.length }}个客户</div
131
- >
129
+ <div :class =" styles.navBox" >
130
+ <span >共{{ customersList.list.length }}个客户</span >
131
+ <div class =" mr-4" >
132
+ <a-tooltip content =" 从企微同步客户" >
133
+ <a-button >
134
+ <template #icon >
135
+ <icon-sync />
136
+ </template >
137
+ </a-button >
138
+ </a-tooltip >
139
+ </div >
140
+ </div >
132
141
<a-table :data =" customersList.list" column-resizable scrollbar >
133
142
<template #columns >
134
143
<a-table-column
You can’t perform that action at this time.
0 commit comments