Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
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
吴迪
gs1
Commits
b766981d
Commit
b766981d
authored
May 29, 2024
by
田爽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
政策法规链接问题
parent
96136491
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
Standard.vue
src/views/Knowledge/Standard.vue
+10
-4
Statute.vue
src/views/Knowledge/Statute.vue
+10
-6
Statuteinfo.vue
src/views/Knowledge/Statuteinfo.vue
+3
-1
No files found.
src/views/Knowledge/Standard.vue
View file @
b766981d
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<div
class=
"msg-cont"
>
<div
class=
"msg-cont"
>
<div
class=
"title"
>
标准文献
</div>
<div
class=
"title"
>
标准文献
</div>
<ul>
<ul>
<li
v-for=
"(item,i) of policyList.list"
:key=
"i"
@
click=
"getInfo(item.id,item.directpath)"
>
<li
v-for=
"(item,i) of policyList.list"
:key=
"i"
>
<
span
v-html=
"item.title"
></span
>
<
a
:href=
"item.href"
v-html=
"item.title"
@
click
.
prevent=
"getInfo(item.id,item.directpath)"
role=
"button"
></a
>
</li>
</li>
</ul>
</ul>
<pages
:total=
"policyList.totalCount"
:currPage=
"policyList.currPage"
:pageSize=
"policyList.pageSize"
@
getLimit=
'ycListFn'
/>
<pages
:total=
"policyList.totalCount"
:currPage=
"policyList.currPage"
:pageSize=
"policyList.pageSize"
@
getLimit=
'ycListFn'
/>
...
@@ -59,7 +59,9 @@ export default {
...
@@ -59,7 +59,9 @@ export default {
const
{
returnCode
,
data
}
=
policyListRes
;
const
{
returnCode
,
data
}
=
policyListRes
;
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
this
.
policyList
=
data
this
.
policyList
=
data
this
.
policyList
.
list
.
forEach
(
item
=>
{
item
.
href
=
`/Knowledge/Statuteinfo?id=
${
item
.
id
}
`
});
}
}
},
},
...
@@ -145,7 +147,7 @@ export default {
...
@@ -145,7 +147,7 @@ export default {
:hover,:active{
:hover,:active{
color
:
#F26335
;
color
:
#F26335
;
}
}
span
{
a
{
display
:
inline-block
;
display
:
inline-block
;
width
:
95%
;
width
:
95%
;
padding
:
0
;
padding
:
0
;
...
@@ -163,6 +165,10 @@ export default {
...
@@ -163,6 +165,10 @@ export default {
vertical-align
:
middle
;
vertical-align
:
middle
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
a
:focus
{
outline
:
none
!important
;
-moz-outline
:
none
;
}
}
}
li
::before
{
li
::before
{
...
...
src/views/Knowledge/Statute.vue
View file @
b766981d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<td
style=
"width:60%"
>
<td
style=
"width:60%"
>
<ul>
<ul>
<li>
<li>
<a
@
click
=
"getInfo(item.id,item.directpath,1)"
role=
"button"
>
{{
item
.
title
}}
</a>
<a
:href=
"item.href"
@
click
.
prevent
=
"getInfo(item.id,item.directpath,1)"
role=
"button"
>
{{
item
.
title
}}
</a>
</li>
</li>
</ul>
</ul>
</td>
</td>
...
@@ -38,8 +38,8 @@
...
@@ -38,8 +38,8 @@
<div
class=
"listStyle xgbz"
>
<div
class=
"listStyle xgbz"
>
<div
class=
"title"
>
相关标准
</div>
<div
class=
"title"
>
相关标准
</div>
<ul>
<ul>
<li
v-for=
"(item,i) of ycList"
:key=
"i"
@
click=
"getInfo(item.id,item.directpath,2)"
>
<li
v-for=
"(item,i) of ycList"
:key=
"i"
>
<a
role=
"button"
>
{{
item
.
title
}}
</a>
<a
:href=
"item.href"
role=
"button"
@
click
.
prevent=
"getInfo(item.id,item.directpath,2)"
>
{{
item
.
title
}}
</a>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -93,7 +93,9 @@ export default {
...
@@ -93,7 +93,9 @@ export default {
const
{
returnCode
,
data
}
=
policyListRes
;
const
{
returnCode
,
data
}
=
policyListRes
;
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
this
.
policyList
=
data
this
.
policyList
=
data
this
.
policyList
.
list
.
forEach
(
item
=>
{
item
.
href
=
`/Knowledge/Statuteinfo?id=
${
item
.
id
}
`
});
}
}
},
},
...
@@ -107,7 +109,9 @@ export default {
...
@@ -107,7 +109,9 @@ export default {
const
{
returnCode
,
data
}
=
policyListRes
;
const
{
returnCode
,
data
}
=
policyListRes
;
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
this
.
ycList
=
data
this
.
ycList
=
data
this
.
ycList
.
forEach
(
item
=>
{
item
.
href
=
`/Knowledge/Statuteinfo?id=
${
item
.
id
}
`
});
}
}
},
},
...
@@ -250,7 +254,7 @@ export default {
...
@@ -250,7 +254,7 @@ export default {
}
}
a
:focus
{
a
:focus
{
outline
:
none
!important
;
;
outline
:
none
!important
;
-moz-outline
:
none
;
-moz-outline
:
none
;
}
}
}
}
...
...
src/views/Knowledge/Statuteinfo.vue
View file @
b766981d
...
@@ -46,7 +46,9 @@ export default {
...
@@ -46,7 +46,9 @@ export default {
const
policyInfoRes
=
await
this
.
$api
.
knowledge
.
policyInfo
(
params
);
const
policyInfoRes
=
await
this
.
$api
.
knowledge
.
policyInfo
(
params
);
const
{
returnCode
,
data
,
returnMsg
}
=
policyInfoRes
;
const
{
returnCode
,
data
,
returnMsg
}
=
policyInfoRes
;
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
if
(
data
.
directpath
&&
data
.
directpath
!==
""
&&
data
.
directpath
.
length
>
0
)
{
window
.
open
(
data
.
directpath
,
"_self"
);
}
this
.
content
=
data
.
content
;
this
.
content
=
data
.
content
;
this
.
title
=
data
.
title
;
this
.
title
=
data
.
title
;
if
(
data
.
class1
==
'法律法规'
){
if
(
data
.
class1
==
'法律法规'
){
...
...
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