File tree Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export type OperateLogV2VO = {
42
42
creator : string
43
43
creatorName : string
44
44
createTime : Date
45
- // 数据扩展- 渲染时使用
45
+ // 数据扩展, 渲染时使用
46
46
title : string // 操作标题(如果为空则取 name 值)
47
47
colSize : number // 变更记录行数
48
48
contentStrList : string [ ]
Original file line number Diff line number Diff line change @@ -157,10 +157,6 @@ export const APP_LINK_GROUP_LIST = [
157
157
name : '分销中心' ,
158
158
path : '/pages/commission/index'
159
159
} ,
160
- {
161
- name : '申请分销商' ,
162
- path : '/pages/commission/apply'
163
- } ,
164
160
{
165
161
name : '推广商品' ,
166
162
path : '/pages/commission/goods'
@@ -169,10 +165,6 @@ export const APP_LINK_GROUP_LIST = [
169
165
name : '分销订单' ,
170
166
path : '/pages/commission/order'
171
167
} ,
172
- {
173
- name : '分享记录' ,
174
- path : '/pages/commission/share-log'
175
- } ,
176
168
{
177
169
name : '我的团队' ,
178
170
path : '/pages/commission/team'
@@ -193,10 +185,6 @@ export const APP_LINK_GROUP_LIST = [
193
185
{
194
186
name : '申请提现' ,
195
187
path : '/pages/pay/withdraw'
196
- } ,
197
- {
198
- name : '提现记录' ,
199
- path : '/pages/pay/withdraw-log'
200
188
}
201
189
]
202
190
} ,
Original file line number Diff line number Diff line change @@ -49,10 +49,13 @@ import { formatDate } from '@/utils/formatTime'
49
49
import { DICT_TYPE , getDictLabel , getDictObj } from ' @/utils/dict'
50
50
import { ElTag } from ' element-plus'
51
51
52
+ defineOptions ({ name: ' OperateLogV2' })
53
+
52
54
const props = defineProps <{
53
55
logList: OperateLogV2VO [] // 操作日志列表
54
56
}>()
55
- defineOptions ({ name: ' OperateLogV2' })
57
+
58
+ const logDataList = ref <OperateLogV2VO []>([]) // 操作日志列表
56
59
57
60
/** 获得 userType 颜色 */
58
61
const getUserTypeColor = (type : number ) => {
@@ -69,7 +72,7 @@ const getUserTypeColor = (type: number) => {
69
72
}
70
73
return ' #409EFF'
71
74
}
72
- const logDataList = ref < OperateLogV2VO []>([]) // 操作日志列表
75
+
73
76
// 提取 tag 所需内容和位置
74
77
const renderTags = (content : string ) => {
75
78
let newStr = unref (content ).slice () // 去掉引用
@@ -89,6 +92,7 @@ const renderTags = (content: string) => {
89
92
})
90
93
return [newStr .split (fg ), matchStr ]
91
94
}
95
+
92
96
const initLog = () => {
93
97
logDataList .value = props .logList .map ((logItem ) => {
94
98
const keyValue = renderTags (logItem .action )
@@ -105,6 +109,7 @@ const initLog = () => {
105
109
return logItem
106
110
})
107
111
}
112
+
108
113
watch (
109
114
() => props .logList .length ,
110
115
(newObj ) => {
You can’t perform that action at this time.
0 commit comments