commit
This commit is contained in:
@@ -3,15 +3,11 @@
|
||||
<div class="nav-menu">
|
||||
<div class="lattice">
|
||||
<div class="menu-wrap">
|
||||
<enter-card label="高级检索" path="/advancedSearch"></enter-card>
|
||||
<enter-card label="个人中心" path="/collection"></enter-card>
|
||||
<enter-card label="统计图表" path="/"></enter-card>
|
||||
<enter-card label="国内法规" path="/domesticStandardsAndRegulations"></enter-card>
|
||||
<enter-card label="国外法规" path="/foreignStandardsAndRegulations"></enter-card>
|
||||
<enter-card label="标准清单" path="/accessStandardsAndRegulations"></enter-card>
|
||||
<enter-card label="国内外政策" path="/"></enter-card>
|
||||
<enter-card label="企业标准" path="/"></enter-card>
|
||||
<enter-card label="标准预警" path="/standardWarning"></enter-card>
|
||||
<enter-card v-for="(item, index) in list"
|
||||
:key="index"
|
||||
:label="item.label"
|
||||
:path="item.path"
|
||||
:class="list.length === 1 ? 'wx-card1' : (list.length == 2 ? 'wx-card2' :'')"></enter-card>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,12 +21,32 @@
|
||||
mixins: [],
|
||||
data() {
|
||||
return {
|
||||
list: []
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {},
|
||||
mounted() {
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData (){
|
||||
this.$http.get('/sarPersonalCenter/sar-user-personal-menu/getList',
|
||||
{
|
||||
userId: this.$store.getters.userInfo.userId
|
||||
}, {_this: this}, res => {
|
||||
if (res.ok) {
|
||||
res.data.records.forEach( item => {
|
||||
if (item.state == 1) {
|
||||
var json = {}
|
||||
json.label = item.menuName
|
||||
json.path = item.menuUrl
|
||||
this.list.push(json)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
toPage() {
|
||||
this.$router.push(this.path)
|
||||
}
|
||||
@@ -42,6 +58,7 @@
|
||||
.nav-menu {
|
||||
.lattice {
|
||||
.menu-wrap {
|
||||
height: 324px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content:space-between;
|
||||
@@ -55,6 +72,12 @@
|
||||
width: 32%;
|
||||
margin: 0 0 10px 0;
|
||||
}
|
||||
.wx-card1 {
|
||||
width: 100%;
|
||||
}
|
||||
.wx-card2 {
|
||||
width: 49%;
|
||||
}
|
||||
.menu-item {
|
||||
flex: 1;
|
||||
line-height: 88px;
|
||||
|
||||
Reference in New Issue
Block a user