Commit b766981d by 田爽

政策法规链接问题

parent 96136491
......@@ -4,8 +4,8 @@
<div class="msg-cont">
<div class="title">标准文献</div>
<ul>
<li v-for="(item,i) of policyList.list" :key="i" @click="getInfo(item.id,item.directpath)">
<span v-html="item.title"></span>
<li v-for="(item,i) of policyList.list" :key="i">
<a :href="item.href" v-html="item.title" @click.prevent="getInfo(item.id,item.directpath)" role="button"></a>
</li>
</ul>
<pages :total="policyList.totalCount" :currPage="policyList.currPage" :pageSize="policyList.pageSize" @getLimit='ycListFn' />
......@@ -59,7 +59,9 @@ export default {
const { returnCode, data } = policyListRes;
if (returnCode === "0") {
this.policyList = data
this.policyList.list.forEach(item => {
item.href=`/Knowledge/Statuteinfo?id=${item.id}`
});
}
},
......@@ -145,7 +147,7 @@ export default {
:hover,:active{
color: #F26335;
}
span{
a{
display: inline-block;
width: 95%;
padding: 0;
......@@ -163,6 +165,10 @@ export default {
vertical-align: middle;
cursor: pointer;
}
a:focus {
outline:none!important;
-moz-outline:none;
}
}
li::before{
......
......@@ -19,7 +19,7 @@
<td style="width:60%">
<ul>
<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>
</ul>
</td>
......@@ -38,8 +38,8 @@
<div class="listStyle xgbz">
<div class="title">相关标准</div>
<ul>
<li v-for="(item,i) of ycList" :key="i" @click="getInfo(item.id,item.directpath,2)">
<a role="button" > {{item.title}}</a>
<li v-for="(item,i) of ycList" :key="i">
<a :href="item.href" role="button" @click.prevent="getInfo(item.id,item.directpath,2)"> {{item.title}}</a>
</li>
</ul>
</div>
......@@ -93,7 +93,9 @@ export default {
const { returnCode, data } = policyListRes;
if (returnCode === "0") {
this.policyList = data
this.policyList.list.forEach(item => {
item.href=`/Knowledge/Statuteinfo?id=${item.id}`
});
}
},
......@@ -107,7 +109,9 @@ export default {
const { returnCode, data } = policyListRes;
if (returnCode === "0") {
this.ycList = data
this.ycList.forEach(item => {
item.href=`/Knowledge/Statuteinfo?id=${item.id}`
});
}
},
......@@ -250,7 +254,7 @@ export default {
}
a:focus {
outline:none!important;;
outline:none!important;
-moz-outline:none;
}
}
......
......@@ -46,7 +46,9 @@ export default {
const policyInfoRes = await this.$api.knowledge.policyInfo(params);
const { returnCode, data ,returnMsg} = policyInfoRes;
if (returnCode === "0") {
if (data.directpath && data.directpath !== "" && data.directpath.length > 0) {
window.open(data.directpath, "_self");
}
this.content = data.content;
this.title = data.title;
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