Commit cae6b8f4 authored by renjintao's avatar renjintao

Merge branch 'product' of git.mes123.com:zhouyx/mes-ui into product

parents d7a88dab d8beab97
<template> <template>
<Layout class="product-layout"> <Layout class="product-layout">
<Header> <Header>
...@@ -14,7 +15,7 @@ ...@@ -14,7 +15,7 @@
<td> <td>
<ul class="table_row_ul"> <ul class="table_row_ul">
<li v-for="(li,j) in item.children"> <li v-for="(li,j) in item.children">
<a @click="goPage(li)">{{li.title}}</a> <a @click="goPage(li,j)" :class="{'active': li.id === isActive}">{{li.title}}</a>
</li> </li>
</ul> </ul>
</td> </td>
...@@ -92,6 +93,7 @@ export default { ...@@ -92,6 +93,7 @@ export default {
}, },
data() { data() {
return { return {
isActive:0,
showDrawer: false, showDrawer: false,
ticking: false, ticking: false,
headerVisible: true, headerVisible: true,
...@@ -273,6 +275,7 @@ export default { ...@@ -273,6 +275,7 @@ export default {
}, },
goPage(u) { goPage(u) {
this.$router.push(u.path) this.$router.push(u.path)
this.isActive = u.id
}, },
}, },
mounted() { mounted() {
...@@ -286,6 +289,7 @@ export default { ...@@ -286,6 +289,7 @@ export default {
} }
}; };
</script> </script>
<style lang="less"> <style lang="less">
.product-layout { .product-layout {
.ivu-layout-header { .ivu-layout-header {
...@@ -342,10 +346,9 @@ export default { ...@@ -342,10 +346,9 @@ export default {
} }
} }
tr{ tr{
height: 40px; // line-height: 35px;
line-height: 40px;
td{ td{
padding: 5px 10px; padding: 9px 10px 0px;
.table_row_ul{ .table_row_ul{
list-style: none; list-style: none;
border-bottom: 1px solid #E0E0E0; border-bottom: 1px solid #E0E0E0;
...@@ -356,12 +359,21 @@ export default { ...@@ -356,12 +359,21 @@ export default {
a { a {
float: left; float: left;
padding: 0px 10px; padding: 0px 10px;
margin: 0 6px; line-height: 30px;
margin: 0px 6px;
border-radius: 4px;
} }
a:hover { a:hover{
background: #2680eb;
color: white;
}
a:visited{
background: #2680eb;
color: white;
}
a.active{
background: #2680eb; background: #2680eb;
color: white; color: white;
border-radius: 4px;
} }
} }
} }
...@@ -372,7 +384,6 @@ export default { ...@@ -372,7 +384,6 @@ export default {
background: #515a6e; background: #515a6e;
.title{ .title{
padding: 5px 10px; padding: 5px 10px;
font-size: 16px;
} }
} }
} }
......
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