Commit b766981d by 田爽

政策法规链接问题

parent 96136491
...@@ -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{
......
...@@ -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;
} }
} }
......
...@@ -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=='法律法规'){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment