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
a0f77753
authored
Jan 07, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📖
CRM:code review crm 联系人新增操作日志
parent
09fa30b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletions
+6
-1
src/views/crm/contact/ContactForm.vue
+2
-0
src/views/crm/contact/detail/ContactDetailsInfo.vue
+1
-0
src/views/crm/contact/detail/index.vue
+3
-1
No files found.
src/views/crm/contact/ContactForm.vue
View file @
a0f77753
...
@@ -233,6 +233,7 @@ const userList = ref<UserApi.UserVO[]>([]) // 用户列表
...
@@ -233,6 +233,7 @@ const userList = ref<UserApi.UserVO[]>([]) // 用户列表
// TODO 芋艿:统一的客户选择面板
// TODO 芋艿:统一的客户选择面板
const
customerList
=
ref
<
CustomerApi
.
CustomerVO
[]
>
([])
// 客户列表
const
customerList
=
ref
<
CustomerApi
.
CustomerVO
[]
>
([])
// 客户列表
const
allContactList
=
ref
<
ContactApi
.
ContactVO
[]
>
([])
// 所有联系人列表
const
allContactList
=
ref
<
ContactApi
.
ContactVO
[]
>
([])
// 所有联系人列表
/** 打开弹窗 */
/** 打开弹窗 */
const
open
=
async
(
type
:
string
,
id
?:
number
)
=>
{
const
open
=
async
(
type
:
string
,
id
?:
number
)
=>
{
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
...
@@ -254,6 +255,7 @@ const open = async (type: string, id?: number) => {
...
@@ -254,6 +255,7 @@ const open = async (type: string, id?: number) => {
}
}
}
}
defineExpose
({
open
})
// 提供 open 方法,用于打开弹窗
defineExpose
({
open
})
// 提供 open 方法,用于打开弹窗
/** 提交表单 */
/** 提交表单 */
const
emit
=
defineEmits
([
'success'
])
// 定义 success 事件,用于操作成功后的回调
const
emit
=
defineEmits
([
'success'
])
// 定义 success 事件,用于操作成功后的回调
const
submitForm
=
async
()
=>
{
const
submitForm
=
async
()
=>
{
...
...
src/views/crm/contact/detail/ContactDetailsInfo.vue
View file @
a0f77753
...
@@ -70,6 +70,7 @@
...
@@ -70,6 +70,7 @@
import
*
as
ContactApi
from
'@/api/crm/contact'
import
*
as
ContactApi
from
'@/api/crm/contact'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
formatDate
}
from
'@/utils/formatTime'
import
{
formatDate
}
from
'@/utils/formatTime'
const
{
contact
}
=
defineProps
<
{
const
{
contact
}
=
defineProps
<
{
contact
:
ContactApi
.
ContactVO
contact
:
ContactApi
.
ContactVO
}
>
()
}
>
()
...
...
src/views/crm/contact/detail/index.vue
View file @
a0f77753
...
@@ -48,10 +48,11 @@ const getContactData = async (id: number) => {
...
@@ -48,10 +48,11 @@ const getContactData = async (id: number) => {
loading
.
value
=
false
loading
.
value
=
false
}
}
}
}
const
logList
=
ref
<
OperateLogV2VO
[]
>
([])
// 操作日志列表
/**
/**
* 获取操作日志
* 获取操作日志
*/
*/
const
logList
=
ref
<
OperateLogV2VO
[]
>
([])
// 操作日志列表
const
getOperateLog
=
async
(
contactId
:
number
)
=>
{
const
getOperateLog
=
async
(
contactId
:
number
)
=>
{
if
(
!
contactId
)
{
if
(
!
contactId
)
{
return
return
...
@@ -61,6 +62,7 @@ const getOperateLog = async (contactId: number) => {
...
@@ -61,6 +62,7 @@ const getOperateLog = async (contactId: number) => {
})
})
logList
.
value
=
data
.
list
logList
.
value
=
data
.
list
}
}
/** 初始化 */
/** 初始化 */
const
{
delView
}
=
useTagsViewStore
()
// 视图操作
const
{
delView
}
=
useTagsViewStore
()
// 视图操作
const
{
currentRoute
}
=
useRouter
()
// 路由
const
{
currentRoute
}
=
useRouter
()
// 路由
...
...
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