Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
agcs2.0-web
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
liang
agcs2.0-web
Commits
d255bbb9
Commit
d255bbb9
authored
Mar 01, 2023
by
miaojiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
cf743fab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
index.vue
src/views/Home/PdfView/index.vue
+0
-7
index.vue
src/views/Home/ScientificResearch/index.vue
+12
-7
No files found.
src/views/Home/PdfView/index.vue
View file @
d255bbb9
...
@@ -38,13 +38,6 @@ export default {
...
@@ -38,13 +38,6 @@ export default {
timeout
:
null
,
timeout
:
null
,
}
}
},
},
watch
:
{
showPdf
(
v
)
{
if
(
v
)
{
this
.
loadPDF
()
}
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
loadPDF
()
{
loadPDF
()
{
...
...
src/views/Home/ScientificResearch/index.vue
View file @
d255bbb9
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
></el-pagination>
></el-pagination>
</div>
</div>
</div>
</div>
<!--
自动提醒
-->
<!--
弹窗
-->
<el-dialog
<el-dialog
custom-class=
"pdfDialog"
custom-class=
"pdfDialog"
:title=
"''"
:title=
"''"
...
@@ -54,17 +54,14 @@
...
@@ -54,17 +54,14 @@
:close-on-press-escape=
"false"
:close-on-press-escape=
"false"
:show-close=
"true"
:show-close=
"true"
width=
"70%"
width=
"70%"
:destroy-on-close=
"true"
top=
"10vh"
top=
"10vh"
>
>
<div
class=
"innerBody"
>
<div
class=
"innerBody"
>
<div
class=
"title"
>
{{
curPdf
.
articleTitle
}}
</div>
<div
class=
"title"
>
{{
curPdf
.
articleTitle
}}
</div>
<div
class=
"refuteList"
>
<div
class=
"refuteList"
>
<!--
<pdf
:src=
"pdfSrc"
></pdf>
-->
<!--
<pdf
:src=
"pdfSrc"
></pdf>
-->
<pdf-view
<pdf-view
ref=
"pdfView"
:pdf-src=
"pdfSrc"
></pdf-view>
ref=
"pdfView"
:pdf-src=
"pdfSrc"
:showPdf=
"showPdf"
></pdf-view>
</div>
</div>
</div>
</div>
</el-dialog>
</el-dialog>
...
@@ -101,7 +98,15 @@ export default {
...
@@ -101,7 +98,15 @@ export default {
pdfSrc
:
""
,
pdfSrc
:
""
,
}
}
},
},
watch
:
{},
watch
:
{
showPdf
(
v
)
{
if
(
v
)
{
setTimeout
(()
=>
{
this
.
$refs
.
pdfView
.
loadPDF
()
},
250
)
}
},
},
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
query
.
tabIndex
)
{
if
(
this
.
$route
.
query
.
tabIndex
)
{
this
.
activeBar
=
this
.
$route
.
query
.
tabIndex
this
.
activeBar
=
this
.
$route
.
query
.
tabIndex
...
...
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