Skip to content

Commit a0f7775

Browse files
committed
📖 CRM:code review crm 联系人新增操作日志
1 parent 09fa30b commit a0f7775

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/views/crm/contact/ContactForm.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ const userList = ref<UserApi.UserVO[]>([]) // 用户列表
233233
// TODO 芋艿:统一的客户选择面板
234234
const customerList = ref<CustomerApi.CustomerVO[]>([]) // 客户列表
235235
const allContactList = ref<ContactApi.ContactVO[]>([]) // 所有联系人列表
236+
236237
/** 打开弹窗 */
237238
const open = async (type: string, id?: number) => {
238239
dialogVisible.value = true
@@ -254,6 +255,7 @@ const open = async (type: string, id?: number) => {
254255
}
255256
}
256257
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
258+
257259
/** 提交表单 */
258260
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
259261
const submitForm = async () => {

src/views/crm/contact/detail/ContactDetailsInfo.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
import * as ContactApi from '@/api/crm/contact'
7171
import { DICT_TYPE } from '@/utils/dict'
7272
import { formatDate } from '@/utils/formatTime'
73+
7374
const { contact } = defineProps<{
7475
contact: ContactApi.ContactVO
7576
}>()

src/views/crm/contact/detail/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ const getContactData = async (id: number) => {
4848
loading.value = false
4949
}
5050
}
51-
const logList = ref<OperateLogV2VO[]>([]) // 操作日志列表
51+
5252
/**
5353
* 获取操作日志
5454
*/
55+
const logList = ref<OperateLogV2VO[]>([]) // 操作日志列表
5556
const getOperateLog = async (contactId: number) => {
5657
if (!contactId) {
5758
return
@@ -61,6 +62,7 @@ const getOperateLog = async (contactId: number) => {
6162
})
6263
logList.value = data.list
6364
}
65+
6466
/** 初始化 */
6567
const { delView } = useTagsViewStore() // 视图操作
6668
const { currentRoute } = useRouter() // 路由

0 commit comments

Comments
 (0)