Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1e70a1d5
authored
Jan 15, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📖
CRM:待办事项的 code review
parent
68fc1760
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
src/api/crm/message/index.ts
+1
-0
src/router/modules/remaining.ts
+1
-0
src/views/crm/message/index.vue
+1
-1
src/views/crm/message/tables/TodayCustomer.vue
+4
-1
No files found.
src/api/crm/message/index.ts
View file @
1e70a1d5
...
@@ -34,6 +34,7 @@ export interface CustomerVO {
...
@@ -34,6 +34,7 @@ export interface CustomerVO {
}
}
// 查询客户列表
// 查询客户列表
// TODO @芋艿:看看是不是后续融合到 getCustomerPage 里;
export
const
getTodayCustomerPage
=
async
(
params
)
=>
{
export
const
getTodayCustomerPage
=
async
(
params
)
=>
{
return
await
request
.
get
({
url
:
`/crm/message/todayCustomer`
,
params
})
return
await
request
.
get
({
url
:
`/crm/message/todayCustomer`
,
params
})
}
}
src/router/modules/remaining.ts
View file @
1e70a1d5
...
@@ -537,6 +537,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
...
@@ -537,6 +537,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
noCache
:
true
,
noCache
:
true
,
hidden
:
true
hidden
:
true
},
},
// TODO @db52:后面搞,搞成菜单
component
:
()
=>
import
(
'@/views/crm/message/index.vue'
)
component
:
()
=>
import
(
'@/views/crm/message/index.vue'
)
}
}
]
]
...
...
src/views/crm/message/index.vue
View file @
1e70a1d5
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
</
template
>
</
template
>
<!-- @dbh52:模块改成 backlog 会更合适,待办事项 -->
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
TodayCustomer
from
'./tables/TodayCustomer.vue'
import
TodayCustomer
from
'./tables/TodayCustomer.vue'
import
FollowLeads
from
'./tables/FollowLeads.vue'
import
FollowLeads
from
'./tables/FollowLeads.vue'
...
...
src/views/crm/message/tables/TodayCustomer.vue
View file @
1e70a1d5
...
@@ -125,11 +125,12 @@ import { DICT_TYPE } from '@/utils/dict'
...
@@ -125,11 +125,12 @@ import { DICT_TYPE } from '@/utils/dict'
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
*
as
MessageApi
from
'@/api/crm/message'
import
*
as
MessageApi
from
'@/api/crm/message'
const
title
=
ref
(
'今日需联系客户'
)
const
title
=
ref
(
'今日需联系客户'
)
// TODO @dbh52:这个不用枚举一个变量哈;
const
loading
=
ref
(
true
)
// 列表的加载中
const
loading
=
ref
(
true
)
// 列表的加载中
const
total
=
ref
(
0
)
// 列表的总页数
const
total
=
ref
(
0
)
// 列表的总页数
const
list
=
ref
([])
// 列表的数据
const
list
=
ref
([])
// 列表的数据
const
queryParams
=
ref
<
{
const
queryParams
=
ref
<
{
// TODO @dbh52:这个 ref 类型定义可以去掉哈。之前定义的原因,是因为 idea 报错了;默认 idea 可以推导出类型
pageNo
:
number
pageNo
:
number
pageSize
:
number
pageSize
:
number
contactStatus
:
number
|
undefined
contactStatus
:
number
|
undefined
...
@@ -149,6 +150,7 @@ const CONTACT_STATUS = [
...
@@ -149,6 +150,7 @@ const CONTACT_STATUS = [
]
]
const
SCENE_TYPES
=
[
const
SCENE_TYPES
=
[
// TODO 芋艿:貌似可以搞成全局枚举
{
label
:
'我负责的'
,
value
:
1
},
{
label
:
'我负责的'
,
value
:
1
},
{
label
:
'我跟进的'
,
value
:
2
},
{
label
:
'我跟进的'
,
value
:
2
},
{
label
:
'我参与的'
,
value
:
3
},
{
label
:
'我参与的'
,
value
:
3
},
...
@@ -182,6 +184,7 @@ const resetQuery = (func: Function | undefined = undefined) => {
...
@@ -182,6 +184,7 @@ const resetQuery = (func: Function | undefined = undefined) => {
contactStatus
:
1
,
contactStatus
:
1
,
sceneType
:
1
sceneType
:
1
}
}
// TODO @dbh52:这里的 func 是不是可以去掉哈;
func
&&
func
()
func
&&
func
()
handleQuery
()
handleQuery
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment