Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
cust_web
Commits
df55554a
Commit
df55554a
authored
Feb 12, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消费记录
parent
f7861211
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
176 additions
and
20 deletions
+176
-20
index.vue
src/views/operationsManagement/memGoldCoinFlow/index.vue
+2
-2
index.vue
src/views/operationsManagement/member/index.vue
+174
-18
No files found.
src/views/operationsManagement/memGoldCoinFlow/index.vue
View file @
df55554a
...
@@ -83,12 +83,12 @@
...
@@ -83,12 +83,12 @@
<span>
{{
getActionTypeLabel
(
scope
.
row
.
actionType
)
}}
</span>
<span>
{{
getActionTypeLabel
(
scope
.
row
.
actionType
)
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"金币
数量
"
prop=
"count"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"金币"
prop=
"count"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
count
||
'-'
}}
{{
scope
.
row
.
count
||
'-'
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"
交易后的
余额"
prop=
"endCount"
:show-overflow-tooltip=
"true"
>
<el-table-column
label=
"余额"
prop=
"endCount"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
endCount
||
'-'
}}
{{
scope
.
row
.
endCount
||
'-'
}}
</
template
>
</
template
>
...
...
src/views/operationsManagement/member/index.vue
View file @
df55554a
...
@@ -291,7 +291,7 @@
...
@@ -291,7 +291,7 @@
:class=
"commonField.resetPasClass"
:class=
"commonField.resetPasClass"
:type=
"commonField.typeParent"
:type=
"commonField.typeParent"
:size=
"commonField.size"
:size=
"commonField.size"
@
click=
"
removeC
ourse(scope.row)"
@
click=
"
c
ourse(scope.row)"
>
消费记录
</el-button>
>
消费记录
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -306,7 +306,82 @@
...
@@ -306,7 +306,82 @@
:limit
.
sync=
"queryParams.rows"
:limit
.
sync=
"queryParams.rows"
@
pagination=
"loadData"
@
pagination=
"loadData"
/>
/>
<footer
/>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"1000px"
append-to-body
>
<el-form
ref=
"queryForm"
style=
"padding: 30px 0 0 10px"
:model=
"memGoldCoinFlowQueryParams"
:inline=
"true"
>
<el-form-item
label=
"发布日期:"
prop=
"publishDate"
>
<el-date-picker
v-model=
"dateRange"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
/>
</el-form-item>
<el-form-item>
<!-- //查询按钮-->
<el-button
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:icon=
"commonField.queryIcon"
:size=
"commonField.smallSize"
@
click=
"memGoldCoinFlowQuery"
>
{{ commonField.queryName }}
</el-button>
<!-- //重置按钮-->
<el-button
:class=
"commonField.resetClass"
:icon=
"commonField.resetIcon"
:size=
"commonField.smallSize"
@
click=
"resetMemGoldCoinFlowQuery"
>
{{ commonField.resetName }}
</el-button>
</el-form-item>
</el-form>
<el-table
border
:data=
"memGoldCoinFlowList"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"类型"
prop=
"type"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<span>
{{
getTypeLabel
(
scope
.
row
.
type
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"方式"
prop=
"actionType"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<span>
{{
getActionTypeLabel
(
scope
.
row
.
actionType
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"数量"
prop=
"count"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
count
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"余额"
prop=
"endCount"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
endCount
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"订单id"
prop=
"orderId"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
orderId
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createDate"
:show-overflow-tooltip=
"true"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createDate
|
transformDateByFormat
(
'YYYY-MM-DD HH:mm'
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
class=
"cancelBtn"
@
click=
"cancel"
>
关 闭
</el-button>
</div>
<pagination
v-show=
"memGoldCoinFlowTotal>0"
:key=
"pageKey"
:total=
"memGoldCoinFlowTotal"
:page
.
sync=
"memGoldCoinFlowQueryParams.page"
:limit
.
sync=
"memGoldCoinFlowQueryParams.rows"
@
pagination=
"loadData"
/>
</el-dialog>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -317,6 +392,7 @@ import { parseTime } from '@/utils'
...
@@ -317,6 +392,7 @@ import { parseTime } from '@/utils'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
getOptions
}
from
'@/utils/options'
import
{
getOptions
}
from
'@/utils/options'
import
{
delMemInfo
,
listMemInfo
}
from
'@/api/contentManagement/memInfo'
import
{
delMemInfo
,
listMemInfo
}
from
'@/api/contentManagement/memInfo'
import
{
listMemGoldCoinFlow
}
from
'@/api/contentManagement/memGoldCoinFlow'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
...
@@ -451,6 +527,55 @@ export default {
...
@@ -451,6 +527,55 @@ export default {
label
:
'停用'
,
label
:
'停用'
,
value
:
'0'
value
:
'0'
}
}
],
memGoldCoinFlowList
:
[],
memGoldCoinFlowTotal
:
0
,
open
:
false
,
dateRange
:
[],
memGoldCoinFlowQueryParams
:
{
page
:
1
,
rows
:
10
,
flag
:
''
},
typeOptions
:
[
{
dictLabel
:
'充值'
,
dictValue
:
'1'
},
{
dictLabel
:
'消费'
,
dictValue
:
'2'
}
],
actionTypeOptions
:
[
{
dictLabel
:
'用户充值'
,
dictValue
:
'10'
},
{
dictLabel
:
'系统充值'
,
dictValue
:
'11'
},
{
dictLabel
:
'点赞'
,
dictValue
:
'20'
},
{
dictLabel
:
'发动态'
,
dictValue
:
'21'
},
{
dictLabel
:
'留言'
,
dictValue
:
'22'
},
{
dictLabel
:
'要微信联系方式'
,
dictValue
:
'23'
},
{
dictLabel
:
'接收微信请求'
,
dictValue
:
'24'
}
]
]
}
}
},
},
...
@@ -569,22 +694,45 @@ export default {
...
@@ -569,22 +694,45 @@ export default {
}
}
})
})
},
},
/** 删除按钮操作 */
course
(
row
)
{
removeCourse
(
row
)
{
this
.
memGoldCoinFlowQueryParams
=
{
const
id
=
row
.
businessId
page
:
1
,
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
rows
:
10
,
confirmButtonText
:
'确定'
,
targetId
:
row
.
businessId
cancelButtonText
:
'取消'
,
}
type
:
'warning'
listMemGoldCoinFlow
(
this
.
memGoldCoinFlowQueryParams
).
then
(
}).
then
(
function
()
{
response
=>
{
return
delMemInfo
(
id
)
this
.
memGoldCoinFlowList
=
response
.
data
}).
then
(()
=>
{
this
.
memGoldCoinFlowTotal
=
response
.
total
this
.
loadData
()
this
.
open
=
true
this
.
$message
({
this
.
title
=
'消费记录'
message
:
'删除成功'
,
}
type
:
'success'
)
})
},
})
memGoldCoinFlowQuery
()
{
this
.
getMemGoldCoinFlowList
()
},
resetMemGoldCoinFlowQuery
(){
this
.
dateRange
=
[]
this
.
getMemGoldCoinFlowList
()
},
getMemGoldCoinFlowList
()
{
const
form
=
{
...
this
.
memGoldCoinFlowQueryParams
}
if
(
this
.
dateRange
.
length
>
0
){
form
.
beginTime
=
this
.
dateRange
[
0
]
form
.
endTime
=
this
.
dateRange
[
1
]
}
listMemGoldCoinFlow
(
form
).
then
(
response
=>
{
this
.
memGoldCoinFlowList
=
response
.
data
this
.
memGoldCoinFlowTotal
=
response
.
total
}
)
},
cancel
()
{
this
.
memGoldCoinFlowQueryParams
=
[]
this
.
memGoldCoinFlowList
=
[]
this
.
open
=
false
},
},
/**
/**
* @description: 查看
* @description: 查看
...
@@ -704,6 +852,14 @@ export default {
...
@@ -704,6 +852,14 @@ export default {
this
.
queryParams
.
maxWeight
=
maxWeight
this
.
queryParams
.
maxWeight
=
maxWeight
console
.
log
(
this
.
queryParams
.
minWeight
)
console
.
log
(
this
.
queryParams
.
minWeight
)
console
.
log
(
this
.
queryParams
.
maxWeight
)
console
.
log
(
this
.
queryParams
.
maxWeight
)
},
getTypeLabel
(
value
)
{
const
option
=
this
.
typeOptions
.
find
(
option
=>
option
.
dictValue
===
value
)
return
option
?
option
.
dictLabel
:
'-'
},
getActionTypeLabel
(
value
)
{
const
option
=
this
.
actionTypeOptions
.
find
(
option
=>
option
.
dictValue
===
value
)
return
option
?
option
.
dictLabel
:
'-'
}
}
}
}
}
}
...
...
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