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
02bc2e76
Commit
02bc2e76
authored
May 04, 2023
by
liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通告跳转显示问题
parent
730d022e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
index.vue
src/views/Home/index.vue
+5
-1
index.vue
src/views/Home/notice/index.vue
+10
-4
No files found.
src/views/Home/index.vue
View file @
02bc2e76
<
template
>
<div
id=
"con"
>
<Notice
v-show=
"isNotice"
></Notice>
<Notice
v-show=
"isNotice"
:noticeName=
"noticeName"
></Notice>
<div
v-show=
"!isNotice"
>
<div
class=
"flex"
>
<div
class=
"left box"
>
...
...
@@ -229,6 +229,7 @@ export default {
components
:
{
Map
,
PdfDialog
,
Notice
},
data
()
{
return
{
noticeName
:
""
,
isNotice
:
false
,
curPdf
:
{},
pdfSrc
:
""
,
...
...
@@ -262,9 +263,11 @@ export default {
articleTitle
:
"
申请加入国家消化道早癌防治中心联盟
"
,
createTime
:
"
2022-09-20
"
,
isTop
:
1
,
name
:
"
AllianceApply
"
,
moduleType
:
99
,
},
{
name
:
"
HospitalsList
"
,
articleTitle
:
"
GECA联盟理事及医院名单
"
,
createTime
:
"
2022-11-20
"
,
isTop
:
1
,
...
...
@@ -361,6 +364,7 @@ export default {
methods
:
{
setPdf
(
item
)
{
if
(
item
.
moduleType
===
99
)
{
this
.
noticeName
=
item
.
name
this
.
isNotice
=
true
return
}
...
...
src/views/Home/notice/index.vue
View file @
02bc2e76
...
...
@@ -4,10 +4,10 @@
<h3
class=
"side_title"
>
通知公告
</h3>
<ul
class=
"side-list"
>
<li
:class=
"
currentComponent
=== name ? 'active' : ''"
:class=
"
noticeName
=== name ? 'active' : ''"
v-for=
"
{ isTop, time, name, label } in list"
:key="name"
@click="
currentComponent
= name"
@click="
noticeName
= name"
>
<h4>
{{
label
}}
</h4>
<div>
...
...
@@ -18,7 +18,7 @@
</ul>
</el-aside>
<el-main>
<component
:is=
"
currentComponent
"
></component>
<component
:is=
"
noticeName
"
></component>
</el-main>
</el-container>
</
template
>
...
...
@@ -27,11 +27,18 @@ import AllianceApply from "./components/AllianceApply.vue"
import
HospitalsList
from
"
./components/HospitalsList.vue
"
export
default
{
name
:
"
Notice
"
,
props
:
{
noticeName
:
{
type
:
String
,
default
:
"
AllianceApply
"
,
},
},
components
:
{
AllianceApply
,
HospitalsList
,
},
data
()
{
console
.
log
(
this
)
return
{
list
:
[
{
...
...
@@ -47,7 +54,6 @@ export default {
isTop
:
true
,
},
],
currentComponent
:
"
AllianceApply
"
,
}
},
methods
:
{},
...
...
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