Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aad70331
authored
Mar 01, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能代码提交
1 parent
91cc56bd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
src/common/constants.js
src/views/systemConfig/downloadReportManage/index.vue
src/common/constants.js
View file @
aad7033
...
@@ -819,7 +819,6 @@ export const downloadReportManage_reportType = [
...
@@ -819,7 +819,6 @@ export const downloadReportManage_reportType = [
// 下载报表 业务类型
// 下载报表 业务类型
export
const
downloadReportManage_businessType
=
[
export
const
downloadReportManage_businessType
=
[
{
confId
:
"all"
,
confValue
:
"'全部'"
},
{
confId
:
"jingpin"
,
confValue
:
"精品升级"
},
{
confId
:
"jingpin"
,
confValue
:
"精品升级"
},
{
confId
:
"quanyi"
,
confValue
:
"权益"
},
{
confId
:
"quanyi"
,
confValue
:
"权益"
},
{
confId
:
"yanbao"
,
confValue
:
"延保"
}
{
confId
:
"yanbao"
,
confValue
:
"延保"
}
...
...
src/views/systemConfig/downloadReportManage/index.vue
View file @
aad7033
...
@@ -36,9 +36,13 @@
...
@@ -36,9 +36,13 @@
:table-params=
"tableParams"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
<div
slot=
"auth-button"
slot-scope=
"scope"
>
slot-scope=
"scope"
v-if=
"scope.scope.status != -1"
>
<auth-button
:data=
"scope.scope"
/>
<auth-button
:data=
"scope.scope"
/>
</div>
</div>
<div
v-else
>
<span
class=
"list-span"
>
正在生成中
</span>
</div>
</d2-table>
</d2-table>
</div>
</div>
</d2-container>
</d2-container>
...
@@ -46,7 +50,7 @@
...
@@ -46,7 +50,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
,
downLoadFile
}
from
'@/common/util'
import
{
downloadReportManage_reportType
,
downloadReportManage_businessType
}
from
'@/common/constants.js'
import
{
downloadReportManage_reportType
,
downloadReportManage_businessType
}
from
'@/common/constants.js'
import
{
queryAllExcel
,
reportExport_download
,
rebuild
}
from
'@api/downloadReportManage'
import
{
queryAllExcel
,
reportExport_download
,
rebuild
}
from
'@api/downloadReportManage'
export
default
{
export
default
{
...
@@ -185,21 +189,21 @@ export default {
...
@@ -185,21 +189,21 @@ export default {
//下载
//下载
handleDownload
(
row
)
{
handleDownload
(
row
)
{
reportExport_download
({
fileName
:
row
.
fileName
}).
then
((
result
)
=>
{
reportExport_download
({
key
:
row
.
key
}).
then
((
result
)
=>
{
console
.
log
(
result
,
'result'
)
console
.
log
(
result
,
'result'
)
result
&&
downLoadFile
(
result
)
result
&&
downLoadFile
(
result
.
list
[
0
].
url
)
})
})
},
},
// 重新生成
// 重新生成
handle
ReWithdrawal
(
row
)
{
handle
Generate
(
row
)
{
this
.
$confirm
(
'系统将自动按照对应的报表及统计时间重新生成,生成过程中不可下载,请耐心等待。是否确认重新生成?'
,
'提示'
,
{
this
.
$confirm
(
'系统将自动按照对应的报表及统计时间重新生成,生成过程中不可下载,请耐心等待。是否确认重新生成?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
,
closeOnClickModal
:
false
closeOnClickModal
:
false
}).
then
(()
=>
{
}).
then
(()
=>
{
rebuild
({
orderCode
:
row
.
withdrawOrderCode
}).
then
(
res
=>
{
rebuild
({
key
:
row
.
key
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
$refs
.
recordTable
.
refreshTable
()
this
.
$refs
.
recordTable
.
refreshTable
()
})
})
...
@@ -225,4 +229,10 @@ export default {
...
@@ -225,4 +229,10 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.list-span
{
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#999999
;
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment