1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
| <template>
| <div>
| <el-row>
| <globalTitle />
| </el-row>
| <el-row class="mart10">
| <el-col :span="4" class="marr10">
| <ul>
| <li
| :key="index"
| v-for="(item, index) in menuList"
| class="liStylenone liPointer marb10"
| @click="changeMenu(item.name)"
| >
| <b :class="cont == item.name?'ft-blue':'ft-black'"> {{ item.name }} </b>
| </li>
| </ul>
| </el-col>
| <el-col :span="18"><div v-html="cont"></div></el-col>
| </el-row>
| </div>
| </template>
|
| <script>
| import globalTitle from '../globalTitle.vue'
| export default {
| name: 'zhengce',
| components: {
| globalTitle
| },
| data() {
| return {
| cont:'',
| menuList: [
| { name: '中国科协政策法规' },
| { name: '地方科协政策法规' },
| { name: '社团管理文件' }
| ]
| }
| },
| mounted() {
| this.cont = this.menuList[0].name;
| },
| methods: {
| changeMenu(val) {
| this.cont = val;
| }
| }
| }
| </script>
|
| <style lang="less" scoped>
| ul {
| width: 200px;
| li {
| background-color: rgb(242, 243, 245);
| height: 50px;
| line-height: 50px;
| text-align: center;
| }
| }
| .ft-blue{
| color:rgb(9, 143, 252);
| }
| .ft-black{
| color: #000;
| }
| </style>
|
|