Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mt-education-mobile
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
王旭
mt-education-mobile
Commits
f48e9d5c
Commit
f48e9d5c
authored
Apr 06, 2020
by
yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题17
parent
535c4cdf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
test.js
src/api/test.js
+1
-1
MtPdf.vue
src/components/MtPdf.vue
+5
-1
index.vue
src/views/MyInformation/index.vue
+1
-0
index.vue
src/views/TrainDetail/index.vue
+1
-0
No files found.
src/api/test.js
View file @
f48e9d5c
...
...
@@ -298,7 +298,7 @@ export const get = {
},
getReadyUrl
:
(
params
)
=>
{
return
axios
({
url
:
api
.
getReadyFileUrl
,
url
:
process
.
env
.
VUE_APP_BASE_API5
+
api
.
getReadyFileUrl
,
method
:
'get'
,
params
:
params
})
...
...
src/components/MtPdf.vue
View file @
f48e9d5c
...
...
@@ -112,6 +112,10 @@ export default {
type
:
Number
,
default
:
0
},
showPage
:
{
type
:
Number
,
default
:
800
},
showLoading
:
{
type
:
Boolean
,
default
:
true
...
...
@@ -286,7 +290,7 @@ export default {
this
.
loading
=
true
this
.
src
=
pdf
.
createLoadingTask
(
this
.
pdfSrc
)
this
.
src
.
then
(
pdf
=>
{
this
.
numPages
=
pdf
.
numPages
this
.
numPages
=
pdf
.
numPages
>
this
.
showPage
?
this
.
showPage
:
pdf
.
numPages
this
.
page
=
this
.
startPage
this
.
$emit
(
'loaded'
,
pdf
.
numPages
)
this
.
findOutPage
=
true
...
...
src/views/MyInformation/index.vue
View file @
f48e9d5c
...
...
@@ -167,6 +167,7 @@
<mt-pdf
:start-page=
"1"
@
loaded=
"onPdfLoaded"
:showPage =
"100"
v-if=
"previewType === 'pdf'"
:pdf-src=
"previewPicture"
:show-loading=
"false"
...
...
src/views/TrainDetail/index.vue
View file @
f48e9d5c
...
...
@@ -622,6 +622,7 @@
:start-page=
"1"
@
loaded=
"onPdfLoaded"
v-if=
"previewType === 'pdf'"
:showPage =
"100"
:pdf-src=
"priviewPicture"
:show-loading=
"false"
/>
...
...
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