Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
6c722393
Commit
6c722393
authored
Mar 08, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新异常订单导出
parent
f6a7e7cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
orderException.js
src/api/ecw/orderException.js
+10
-0
index.vue
src/views/ecw/order/exception/index.vue
+20
-2
No files found.
src/api/ecw/orderException.js
View file @
6c722393
...
...
@@ -101,3 +101,13 @@ export function getBmpDetailByBusinessId(businessId) {
params
:
{
businessId
}
})
}
// 导出订单异常 Excel
export
function
exportExcel
(
params
)
{
return
request
({
url
:
'
/ecw/order-exception/export-excel
'
,
method
:
'
get
'
,
params
,
responseType
:
'
arraybuffer
'
})
}
\ No newline at end of file
src/views/ecw/order/exception/index.vue
View file @
6c722393
...
...
@@ -95,6 +95,9 @@
<!-- 操作工具栏 -->
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"12"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"exportSearch"
v-hasPermi=
"['ecw:exception:export']"
>
导出
</el-button>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
...
...
@@ -181,7 +184,7 @@
</template>
<
script
>
import
{
getOrderExceptionPage
}
from
"
@/api/ecw/orderException
"
import
{
getOrderExceptionPage
,
exportExcel
}
from
"
@/api/ecw/orderException
"
import
{
getTradeCityList
}
from
'
@/api/ecw/region
'
import
{
DICT_TYPE
}
from
'
@/utils/dict
'
// import { userList } from "@/api/system/user"
...
...
@@ -302,7 +305,22 @@ export default {
tag
+=
this
.
$t
(
'
(空)
'
)
}
return
tag
},
exportSearch
(){
this
.
exportExcel
(
exportExcel
,
this
.
queryParams
,
this
.
$t
(
'
异常订单
'
))
},
// 通用导出函数
exportExcel
(
func
,
params
,
fileName
=
null
){
this
.
exportLoading
=
true
;
func
(
params
).
then
(
res
=>
{
if
(
!
fileName
){
fileName
=
this
.
$t
(
'
订单
'
)
}
this
.
$download
.
excel
(
res
,
fileName
+
'
.xls
'
);
}).
finally
(()
=>
{
this
.
exportLoading
=
false
})
},
}
}
</
script
>
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