File tree Expand file tree Collapse file tree 12 files changed +88
-132
lines changed
components/OperateLogV2/src Expand file tree Collapse file tree 12 files changed +88
-132
lines changed Original file line number Diff line number Diff line change @@ -2,30 +2,6 @@ import request from '@/config/axios'
2
2
3
3
export type OperateLogVO = {
4
4
id : number
5
- userNickname : string
6
- traceId : string
7
- userId : number
8
- module : string
9
- name : string
10
- type : number
11
- content : string
12
- exts : Map < String , Object >
13
- requestMethod : string
14
- requestUrl : string
15
- userIp : string
16
- userAgent : string
17
- javaMethod : string
18
- javaMethodArgs : string
19
- startTime : Date
20
- duration : number
21
- resultCode : number
22
- resultMsg : string
23
- resultData : string
24
- }
25
-
26
- export type OperateLogV2VO = {
27
- id : number
28
- userNickname : string
29
5
traceId : string
30
6
userType : number
31
7
userId : number
@@ -42,18 +18,13 @@ export type OperateLogV2VO = {
42
18
creator : string
43
19
creatorName : string
44
20
createTime : Date
45
- // 数据扩展,渲染时使用
46
- title : string // 操作标题(如果为空则取 name 值)
47
- colSize : number // 变更记录行数
48
- contentStrList : string [ ]
49
- tagsContentList : string [ ]
50
21
}
51
22
52
23
// 查询操作日志列表
53
24
export const getOperateLogPage = ( params : PageParam ) => {
54
25
return request . get ( { url : '/system/operate-log/page' , params } )
55
26
}
56
27
// 导出操作日志
57
- export const exportOperateLog = ( params ) => {
28
+ export const exportOperateLog = ( params : any ) => {
58
29
return request . download ( { url : '/system/operate-log/export' , params } )
59
30
}
Original file line number Diff line number Diff line change 23
23
</template >
24
24
25
25
<script lang="ts" setup>
26
- import { OperateLogV2VO } from ' @/api/system/operatelog'
26
+ import { OperateLogVO } from ' @/api/system/operatelog'
27
27
import { formatDate } from ' @/utils/formatTime'
28
28
import { DICT_TYPE , getDictLabel , getDictObj } from ' @/utils/dict'
29
29
import { ElTag } from ' element-plus'
30
30
31
31
defineOptions ({ name: ' OperateLogV2' })
32
32
33
33
interface Props {
34
- logList: OperateLogV2VO [] // 操作日志列表
34
+ logList: OperateLogVO [] // 操作日志列表
35
35
}
36
36
37
37
withDefaults (defineProps <Props >(), {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ import BusinessDetailsHeader from './BusinessDetailsHeader.vue'
64
64
import BusinessDetailsInfo from ' ./BusinessDetailsInfo.vue'
65
65
import PermissionList from ' @/views/crm/permission/components/PermissionList.vue' // 团队成员列表(权限)
66
66
import { BizTypeEnum } from ' @/api/crm/permission'
67
- import { OperateLogV2VO } from ' @/api/system/operatelog'
67
+ import { OperateLogVO } from ' @/api/system/operatelog'
68
68
import { getOperateLogPage } from ' @/api/crm/operateLog'
69
69
import BusinessForm from ' @/views/crm/business/BusinessForm.vue'
70
70
import CrmTransferForm from ' @/views/crm/permission/components/TransferForm.vue'
@@ -113,7 +113,7 @@ const transfer = () => {
113
113
}
114
114
115
115
/** 获取操作日志 */
116
- const logList = ref <OperateLogV2VO []>([]) // 操作日志列表
116
+ const logList = ref <OperateLogVO []>([]) // 操作日志列表
117
117
const getOperateLog = async (contactId : number ) => {
118
118
if (! contactId ) {
119
119
return
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ import PermissionList from '@/views/crm/permission/components/PermissionList.vue
57
57
import CrmTransferForm from ' @/views/crm/permission/components/TransferForm.vue'
58
58
import FollowUpList from ' @/views/crm/followup/index.vue'
59
59
import { BizTypeEnum } from ' @/api/crm/permission'
60
- import type { OperateLogV2VO } from ' @/api/system/operatelog'
60
+ import type { OperateLogVO } from ' @/api/system/operatelog'
61
61
import { getOperateLogPage } from ' @/api/crm/operateLog'
62
62
63
63
defineOptions ({ name: ' CrmClueDetail' })
@@ -103,7 +103,7 @@ const handleTransform = async () => {
103
103
}
104
104
105
105
/** 获取操作日志 */
106
- const logList = ref <OperateLogV2VO []>([]) // 操作日志列表
106
+ const logList = ref <OperateLogVO []>([]) // 操作日志列表
107
107
const getOperateLog = async () => {
108
108
const data = await getOperateLogPage ({
109
109
bizType: BizTypeEnum .CRM_CLUE ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ import ContactDetailsInfo from '@/views/crm/contact/detail/ContactDetailsInfo.vu
49
49
import BusinessList from ' @/views/crm/business/components/BusinessList.vue' // 商机列表
50
50
import PermissionList from ' @/views/crm/permission/components/PermissionList.vue' // 团队成员列表(权限)
51
51
import { BizTypeEnum } from ' @/api/crm/permission'
52
- import { OperateLogV2VO } from ' @/api/system/operatelog'
52
+ import { OperateLogVO } from ' @/api/system/operatelog'
53
53
import { getOperateLogPage } from ' @/api/crm/operateLog'
54
54
import ContactForm from ' @/views/crm/contact/ContactForm.vue'
55
55
import CrmTransferForm from ' @/views/crm/permission/components/TransferForm.vue'
@@ -88,7 +88,7 @@ const transfer = () => {
88
88
}
89
89
90
90
/** 获取操作日志 */
91
- const logList = ref <OperateLogV2VO []>([]) // 操作日志列表
91
+ const logList = ref <OperateLogVO []>([]) // 操作日志列表
92
92
const getOperateLog = async (contactId : number ) => {
93
93
if (! contactId ) {
94
94
return
Original file line number Diff line number Diff line change 52
52
</template >
53
53
<script lang="ts" setup>
54
54
import { useTagsViewStore } from ' @/store/modules/tagsView'
55
- import { OperateLogV2VO } from ' @/api/system/operatelog'
55
+ import { OperateLogVO } from ' @/api/system/operatelog'
56
56
import * as ContractApi from ' @/api/crm/contract'
57
57
import ContractDetailsInfo from ' ./ContractDetailsInfo.vue'
58
58
import ContractDetailsHeader from ' ./ContractDetailsHeader.vue'
@@ -94,7 +94,7 @@ const getContractData = async () => {
94
94
}
95
95
96
96
/** 获取操作日志 */
97
- const logList = ref <OperateLogV2VO []>([]) // 操作日志列表
97
+ const logList = ref <OperateLogVO []>([]) // 操作日志列表
98
98
const getOperateLog = async (contractId : number ) => {
99
99
if (! contractId ) {
100
100
return
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ import PermissionList from '@/views/crm/permission/components/PermissionList.vue
93
93
import CrmTransferForm from ' @/views/crm/permission/components/TransferForm.vue'
94
94
import FollowUpList from ' @/views/crm/followup/index.vue'
95
95
import { BizTypeEnum } from ' @/api/crm/permission'
96
- import type { OperateLogV2VO } from ' @/api/system/operatelog'
96
+ import type { OperateLogVO } from ' @/api/system/operatelog'
97
97
import { getOperateLogPage } from ' @/api/crm/operateLog'
98
98
import CustomerDistributeForm from ' @/views/crm/customer/pool/CustomerDistributeForm.vue'
99
99
@@ -185,7 +185,7 @@ const handlePutPool = async () => {
185
185
}
186
186
187
187
/** 获取操作日志 */
188
- const logList = ref <OperateLogV2VO []>([]) // 操作日志列表
188
+ const logList = ref <OperateLogVO []>([]) // 操作日志列表
189
189
const getOperateLog = async () => {
190
190
if (! customerId .value ) {
191
191
return
Original file line number Diff line number Diff line change 13
13
</template >
14
14
<script lang="ts" setup>
15
15
import { useTagsViewStore } from ' @/store/modules/tagsView'
16
- import { OperateLogV2VO } from ' @/api/system/operatelog'
16
+ import { OperateLogVO } from ' @/api/system/operatelog'
17
17
import * as ProductApi from ' @/api/crm/product'
18
18
import ProductDetailsHeader from ' @/views/crm/product/detail/ProductDetailsHeader.vue'
19
19
import ProductDetailsInfo from ' @/views/crm/product/detail/ProductDetailsInfo.vue'
@@ -40,7 +40,7 @@ const getProductData = async (id: number) => {
40
40
}
41
41
42
42
/** 获取操作日志 */
43
- const logList = ref <OperateLogV2VO []>([]) // 操作日志列表
43
+ const logList = ref <OperateLogVO []>([]) // 操作日志列表
44
44
const getOperateLog = async (productId : number ) => {
45
45
if (! productId ) {
46
46
return
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import ReceivableDetailsHeader from './ReceivableDetailsHeader.vue'
34
34
import ReceivableDetailsInfo from ' ./ReceivableDetailsInfo.vue'
35
35
import PermissionList from ' @/views/crm/permission/components/PermissionList.vue' // 团队成员列表(权限)
36
36
import { BizTypeEnum } from ' @/api/crm/permission'
37
- import { OperateLogV2VO } from ' @/api/system/operatelog'
37
+ import { OperateLogVO } from ' @/api/system/operatelog'
38
38
import { getOperateLogPage } from ' @/api/crm/operateLog'
39
39
import ReceivableForm from ' @/views/crm/receivable/ReceivableForm.vue'
40
40
@@ -66,7 +66,7 @@ const openForm = (type: string, id?: number) => {
66
66
}
67
67
68
68
/** 获取操作日志 */
69
- const logList = ref <OperateLogV2VO []>([]) // 操作日志列表
69
+ const logList = ref <OperateLogVO []>([]) // 操作日志列表
70
70
const getOperateLog = async (receivableId : number ) => {
71
71
if (! receivableId ) {
72
72
return
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import ReceivablePlanDetailsHeader from './ReceivablePlanDetailsHeader.vue'
37
37
import ReceivablePlanDetailsInfo from ' ./ReceivablePlanDetailsInfo.vue'
38
38
import PermissionList from ' @/views/crm/permission/components/PermissionList.vue' // 团队成员列表(权限)
39
39
import { BizTypeEnum } from ' @/api/crm/permission'
40
- import { OperateLogV2VO } from ' @/api/system/operatelog'
40
+ import { OperateLogVO } from ' @/api/system/operatelog'
41
41
import { getOperateLogPage } from ' @/api/crm/operateLog'
42
42
import ReceivablePlanForm from ' @/views/crm/receivable/plan/ReceivablePlanForm.vue'
43
43
@@ -70,7 +70,7 @@ const openForm = (type: string, id?: number) => {
70
70
}
71
71
72
72
/** 获取操作日志 */
73
- const logList = ref <OperateLogV2VO []>([]) // 操作日志列表
73
+ const logList = ref <OperateLogVO []>([]) // 操作日志列表
74
74
const getOperateLog = async (receivablePlanId : number ) => {
75
75
if (! receivablePlanId ) {
76
76
return
You can’t perform that action at this time.
0 commit comments