Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_web
Overview
Overview
Details
Activity
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
pseer
gxpt_web
Commits
4224f839
Commit
4224f839
authored
Nov 29, 2023
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消费记录更改页面显示
parent
b99ef50d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
index.vue
src/views/system/records/index.vue
+17
-2
No files found.
src/views/system/records/index.vue
View file @
4224f839
...
@@ -56,7 +56,22 @@
...
@@ -56,7 +56,22 @@
<el-table
v-loading=
"loading"
:data=
"recordsList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"recordsList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"ID"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"ID"
align=
"center"
prop=
"id"
/>
<el-table-column
label=
"满减最小可使用金额"
align=
"center"
prop=
"price"
/>
<el-table-column
label=
"名称"
align=
"center"
prop=
"name"
/>
<el-table-column
label=
"会员用户ID"
align=
"center"
prop=
"consumerId"
/>
<el-table-column
label=
"订单ID"
align=
"center"
prop=
"orderId"
/>
<!--
<el-table-column
label=
"实付金额"
align=
"center"
prop=
"price"
/>
-->
<el-table-column
label=
"支付类型"
align=
"center"
prop=
"payType"
/>
<el-table-column
label=
"收入/支出"
align=
"center"
prop=
"sign"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.sign === 'income'"
>
<!--判断显示不同的颜色 红色、绿色-->
<span
style=
"color: green"
>
-
{{
scope
.
row
.
price
}}
</span>
</span>
<span
v-else
>
<span
style=
"color: red"
>
+
{{
scope
.
row
.
price
}}
</span>
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -76,7 +91,7 @@
...
@@ -76,7 +91,7 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<pagination
<pagination
v-show=
"total>0"
v-show=
"total>0"
:total=
"total"
:total=
"total"
...
...
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