bug修改,标准法规的新增界面搜索接口暂无

This commit is contained in:
Jaunty
2021-07-15 09:07:57 +08:00
parent eeb5302a7a
commit 46d2d87494
10 changed files with 1647 additions and 657 deletions
+7 -35
View File
@@ -2,8 +2,8 @@
<template>
<div class="link">
<ul>
<li v-for="(link, index) in linkList" :key="index">
<a @click="openLinkUrl(link.newWebSite)" v-html="link.webName"></a>
<li v-for="(link, index) in linkList" v-if="index<5" :key="index">
<a @click="openLinkUrl(link.url)" v-html="link.name"></a>
</li>
<li>
<router-link to="/linkManage">更多链接></router-link>
@@ -19,36 +19,7 @@ export default {
mixins: [],
data() {
return {
linkList: [
{
newWebSite: 'http://www.sac.gov.cn/',
webName: '国家标准化管理委员会'
},
{
newWebSite: 'http://std.samr.gov.cn/',
webName: '全国标准公共服务平台'
},
{
newWebSite: 'http://www.catarc.org.cn/',
webName: '全国汽车标准化技术委员会'
},
{
newWebSite: 'http://jtst.mot.gov.cn/news/',
webName: '交通运输标准化信息平台'
},
{
newWebSite: 'http://www.miit-eidc.org.cn/',
webName: '工信部装备工业发展中心'
},
{
newWebSite: 'http://www.mee.gov.cn/',
webName: '中华人民共和国生态环境部'
},
// {
// newWebSite: '',
// webName: '更多链接>'
// }
]
linkList: [],
}
},
computed: {},
@@ -67,13 +38,14 @@ export default {
window.open('https://' + linkUri)
}
},
// 获取链接数据
getLink () {
this.$http.get('sarUrl/tsUrl', {}, {
this.$http.get('sarUrl/tsUrl', {
}, {
_this: this,
loading: 'Loading'
}, res=> {
this.data = res.data
console.log(data);
this.linkList = res.data
})
}
},