This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Augcl
/
assessment-front
generated from
hly/uniapp-shop-templates
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
2 Commits
4b41cb47b2
...
3e3028821d
Author
SHA1
Message
Date
Fox-33
3e3028821d
feat: 报告下载;
1 week ago
Fox-33
8e9cdb3ed0
feat: 报告下载;
1 week ago
3 changed files
with
68 additions
and
0 deletions
Split View
Diff Options
Show Stats
+8
-0
pages.json
+26
-0
pages_order/report/export.vue
+34
-0
pages_order/report/index.vue
+ 8
- 0
pages.json
View File
@ -59,6 +59,14 @@
{
"path"
:
"report/index"
}
,
{
"path"
:
"report/export"
,
"style"
:
{
"navigationBarTextStyle"
:
"white"
,
"navigationBarTitleText"
:
"报告下载"
,
"navigationBarBackgroundColor"
:
"#014FA2"
}
}
,
{
"path"
:
"service/index"
}
,
+ 26
- 0
pages_order/report/export.vue
View File
@ -0,0 +1,26 @@
<
template
>
<
view
class
=
""
>
<
web
-view
:src
="h5Url"
@message
="message"
>
<
/
web
-view
>
<
/
view
>
<
/
template
>
<
script
>
export
default
{
data
(
)
{
return
{
batchNo
:
''
,
h5Url
:
''
,
imageData
:
''
,
}
}
,
onLoad
(
{
batchNo
}
)
{
this
.
batchNo
=
batchNo
this
.
h5Url
=
`
https://assessmenth5.augcl.com/#/?batchNo=
${
batchNo
}
&token=
${
uni
.
getStorageSync
(
'token'
)
}
`
console
.
log
(
'url'
,
this
.
h5Url
)
}
,
}
<
/
script
>
<
style
>
<
/
style
>
+ 34
- 0
pages_order/report/index.vue
View File
@ -47,6 +47,10 @@
<
/
view
>
<
/
template
>
<
view
class
=
"bottom"
>
<
button
class
=
"btn"
@click
="onDownload"
>
下载
<
/
button
>
<
/
view
>
<
/
view
>
<
/
template
>
@ -61,12 +65,14 @@
}
,
data
(
)
{
return
{
batchNo
:
null
,
detail
:
null
,
tableList
:
[
]
,
}
}
,
onLoad
(
arg
)
{
const
{
batchNo
}
=
arg
this
.
batchNo
=
batchNo
this
.
getData
(
batchNo
)
}
,
methods
:
{
@ -125,6 +131,11 @@
}
}
,
onDownload
(
)
{
uni
.
navigateTo
(
{
url
:
`
/pages_order/report/export?batchNo=
${
this
.
batchNo
}
`
}
)
}
,
}
,
}
<
/
script
>
@ -218,4 +229,27 @@
padding
:
42
rpx
127
rpx
46
rpx
127
rpx
;
box
-
sizing
:
border
-
box
;
}
.
bottom
{
position
:
sticky
;
left
:
0
;
bottom
:
0
;
width
:
100
%
;
padding
:
35
rpx
56
rpx
;
padding
-
bottom
:
calc
(
env
(
safe
-
area
-
inset
-
bottom
)
+
35
rpx
)
;
background
:
#
FFFFFF
;
box
-
sizing
:
border
-
box
;
.
btn
{
width
:
100
%
;
padding
:
29
rpx
0
;
font
-
size
:
30
rpx
;
line
-
height
:
1.5
;
color
:
#
FFFFFF
;
background
:
#
014
FA2
;
border
-
radius
:
50
rpx
;
}
}
<
/
style
>
Write
Preview
Loading…
Cancel
Save