Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
01df4bec
Commit
01df4bec
authored
Nov 20, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款列表导出
parent
2f6d1b86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
index.vue
src/components/refund/index.vue
+20
-3
No files found.
src/components/refund/index.vue
View file @
01df4bec
...
@@ -30,8 +30,9 @@
...
@@ -30,8 +30,9 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<el-form-item>
<el-form-item
label-width=
"10px"
>
<el-button
type=
"primary"
@
click=
"getRefundList"
>
搜索
</el-button>
<el-button
type=
"primary"
@
click=
"getRefundList"
>
搜索
</el-button>
<el-button
type=
"primary"
plain
@
click=
"exportTable"
>
导出
</el-button>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -106,7 +107,7 @@
...
@@ -106,7 +107,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getRefundListApi
,
editOrderDescApi
}
from
"../../service/api"
;
import
{
getRefundListApi
,
editOrderDescApi
,
exportExcelApi
}
from
"../../service/api"
;
import
page
from
'../framework/page'
import
page
from
'../framework/page'
export
default
{
export
default
{
name
:
"index"
,
name
:
"index"
,
...
@@ -204,7 +205,23 @@
...
@@ -204,7 +205,23 @@
this
.
total
=
res
.
total
;
this
.
total
=
res
.
total
;
this
.
list
=
res
.
list
this
.
list
=
res
.
list
})
})
},
exportTable
(){
let
json
=
{};
if
(
this
.
searchFrom
.
nickname
){
json
.
nickname
=
this
.
searchFrom
.
nickname
}
}
if
(
this
.
searchFrom
.
user_id
){
json
.
user_id
=
this
.
searchFrom
.
user_id
}
if
(
this
.
searchFrom
.
status
){
json
.
status
=
this
.
searchFrom
.
status
}
if
(
this
.
searchFrom
.
out_trade_no
){
json
.
out_trade_no
=
this
.
searchFrom
.
out_trade_no
}
exportExcelApi
(
'/api/public/refund/export'
,
json
)
},
}
}
}
}
...
...
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