9dac694e by 杨威

首页布局修改

1 parent 0e9a5c1d
1 .content_box { 1 .content_box {
2 padding: 18px 18px 26px 18px; 2 padding: 18px;
3 box-sizing: border-box; 3 box-sizing: border-box;
4 } 4 }
5 .el-table .success-row { 5 .el-table .success-row {
......
...@@ -106,4 +106,7 @@ export default { ...@@ -106,4 +106,7 @@ export default {
106 display: none; 106 display: none;
107 } 107 }
108 } 108 }
109 .el-tabs__nav .is-active{
110 background-color: #F1F4FC;
111 }
109 </style> 112 </style>
......
...@@ -13,72 +13,9 @@ ...@@ -13,72 +13,9 @@
13 <div class="treeModule"> 13 <div class="treeModule">
14 <LineTree :pd="pd"></LineTree> 14 <LineTree :pd="pd"></LineTree>
15 </div> 15 </div>
16 <el-menu
17 :default-active="defaultActive"
18 :unique-opened="true"
19 class="el-menu-vertical-demo"
20 @open="handleOpen"
21 @close="handleClose"
22 :collapse="isActive"
23 background-color="#121958"
24 text-color="#fff"
25 active-text-color="#21FAFD"
26 :collapse-transition="false"
27 :router="true"
28 >
29 <template v-for="item in menuList">
30 <el-submenu
31 :index="item.code"
32 :key="item.code"
33 v-if="item.children && item.children.length > 0"
34 >
35 <template slot="title">
36 <i :class="item.icon" style="margin-right:10px;"></i>
37 <span slot="title">{{ item.name }}</span>
38 </template>
39 <template v-for="seconditem in item.children">
40 <el-menu-item
41 :index="seconditem.code"
42 :key="seconditem.code"
43 v-if="!seconditem.children"
44 :route="{ path: seconditem.path }"
45 >
46 {{ seconditem.name }}
47 </el-menu-item>
48 </template>
49 <template v-for="seconditem in item.children">
50 <el-submenu
51 :index="seconditem.code"
52 :key="seconditem.code"
53 v-if="seconditem.children"
54 >
55 <span slot="title" style="padding-left:15px;">{{
56 seconditem.name
57 }}</span>
58 <el-menu-item
59 v-for="threeitem in seconditem.children"
60 :index="threeitem.code"
61 :key="threeitem.code"
62 :route="{ path: threeitem.path }"
63 >{{ threeitem.name }}</el-menu-item
64 >
65 </el-submenu>
66 </template>
67 </el-submenu>
68 <el-menu-item
69 :index="item.code"
70 :key="item.code"
71 v-else
72 :route="{ path: item.path }"
73 >
74 <i :class="item.icon" style="margin-right:10px;"></i>
75 <span slot="title">{{ item.name }}</span>
76 </el-menu-item>
77 </template>
78 </el-menu>
79 </el-aside> 16 </el-aside>
80 <el-container> 17 <el-container>
81 <el-header height="120px"> 18 <el-header height="100px">
82 <div class="header-top"> 19 <div class="header-top">
83 <div class="top-items" @click="toggleClick"> 20 <div class="top-items" @click="toggleClick">
84 <i class="fa fa-outdent hamburger" v-show="!isActive"></i> 21 <i class="fa fa-outdent hamburger" v-show="!isActive"></i>
...@@ -157,61 +94,62 @@ export default { ...@@ -157,61 +94,62 @@ export default {
157 }, 94 },
158 pd: [ 95 pd: [
159 { 96 {
160 label: "第一层(1)", 97 label: "行政区(1)",
161 children: [], 98 children: [],
162 }, 99 },
163 { 100 {
164 label: "第一层(2)", 101 label: "行政区(2)",
165 children: [ 102 children: [
166 { 103 {
167 label: "第二层(1)", 104 label: "地籍区1",
168 children: [], 105 children: [],
169 }, 106 },
170 { 107 {
171 label: "第二层(2)", 108 label: "地籍区2",
172 children: [ 109 children: [
173 { 110 {
174 label: "第三层(1)", 111 label: "国有",
175 children: [ 112 children: [
176 { 113 {
177 label: "第四层", 114 label: "宗地代码1933",
115 children: [
116 {
117 label: "自然幢号1256",
118 },
119 ],
120 },
121 {
122 label: "宗地代码2100",
178 children: [ 123 children: [
179 { 124 {
180 label: "第五层", 125 label: "自然幢号1543",
181 children: [{ label: "第六层", }],
182 }, 126 },
183 ], 127 ],
184 }, 128 },
185 ], 129 ],
186 }, 130 }
187 {
188 label: "第三层(2)",
189 },
190 {
191 label: "第三层(3)",
192 },
193 ], 131 ],
194 }, 132 },
195 { 133 {
196 label: "第二层(3)", 134 label: "地籍区3",
197 children: [], 135 children: [],
198 }, 136 },
199 { 137 {
200 label: "第二层(4)", 138 label: "地籍区4",
201 children: [], 139 children: [],
202 }, 140 },
203 ], 141 ],
204 }, 142 },
205 { 143 {
206 label: "第一层(3)", 144 label: "行政区(3)",
207 children: [], 145 children: [],
208 }, 146 },
209 { 147 {
210 label: "第一层(4)", 148 label: "行政区(4)",
211 children: [], 149 children: [],
212 }, 150 },
213 { 151 {
214 label: "第一层(5)", 152 label: "行政区(5)",
215 children: [], 153 children: [],
216 }, 154 },
217 ], 155 ],
...@@ -402,7 +340,7 @@ export default { ...@@ -402,7 +340,7 @@ export default {
402 } 340 }
403 .treeModule { 341 .treeModule {
404 box-sizing: border-box; 342 box-sizing: border-box;
405 padding: 20px 10px; 343 padding: 20px 20px;
406 } 344 }
407 .logo-box-show { 345 .logo-box-show {
408 width: 64px; 346 width: 64px;
...@@ -420,7 +358,7 @@ export default { ...@@ -420,7 +358,7 @@ export default {
420 } 358 }
421 359
422 .el-main { 360 .el-main {
423 background-color: #ffffff; 361 background-color: #F1F4FC;
424 color: #333; 362 color: #333;
425 // text-align: center; 363 // text-align: center;
426 // line-height: 160px; 364 // line-height: 160px;
......
1 <template> 1 <template>
2 <div class="panel content_box"> 2 <div class="main">
3 <el-card class="panel_left"> 3 <div class="panel content_box">
4 <div slot="header" class="clearfix"> 4 <el-card class="panel_left">
5 <span>工作箱</span> 5 <div slot="header" class="clearfix">
6 </div> 6 <span>工作箱</span>
7 <div> 7 </div>
8 工作箱内容 8 <div class="enter_box">
9 </div> 9 <div
10 </el-card> 10 class="box"
11 <el-card class="panel_right"> 11 v-for="(item, index) in workList"
12 <div slot="header" class="clearfix"> 12 :key="index"
13 <span>快捷入口</span> 13 @click="handleSelect"
14 </div> 14 >
15 <div class="enter_box"> 15 <img :src="item.img" alt="" />
16 <div class="box" v-for="(item, index) in list" :key="index" @click="handleSelect">{{ item }}</div> 16 <span>{{ item.name }}</span>
17 </div> 17 </div>
18 </el-card> 18 </div>
19 19 </el-card>
20 </div> 20 <el-card class="panel_right">
21 <div slot="header" class="clearfix">
22 <span>快捷入口</span>
23 </div>
24 <div class="enter_box">
25 <div
26 class="box"
27 v-for="(item, index) in list"
28 :key="index"
29 @click="handleSelect"
30 >
31 <img :src="item.img" alt="" />
32 <span>{{ item.name }}</span>
33 </div>
34 </div>
35 </el-card>
36 </div>
37 <div class="notice">
38 <el-card>
39 <div slot="header" class="clearfix">
40 <span>通知公告</span>
41 </div>
42 <el-table
43 :data="tableData"
44 style="width: 100%"
45 :row-class-name="tableRowClassName"
46 >
47 <el-table-column
48 type="index"
49 width="200"
50 align="center"
51 label="顺序号"
52 >
53 </el-table-column>
54 <el-table-column prop="title" align="left" label="标题">
55 </el-table-column>
56 <el-table-column
57 prop="date"
58 width="500"
59 align="center"
60 label="发布时间"
61 >
62 </el-table-column>
63 </el-table>
64 </el-card>
65 </div>
66 </div>
21 </template> 67 </template>
22 68
23 <script> 69 <script>
24 export default { 70 export default {
25 data() { 71 data() {
26 return { 72 return {
27 list: ["创建文章", "创建公告", "预约统计"], 73 workList: [
28 }; 74 { name: "待办箱", img: require("../../assets/images/temp1.png") },
29 }, 75 { name: "退件箱", img: require("../../assets/images/temp2.png") },
30 methods: { 76 ],
31 handleSelect() {}, 77 list: [
32 } 78 { name: "宗地分割", img: require("../../assets/images/temp1.png") },
79 {
80 name: "导入楼盘表模板",
81 img: require("../../assets/images/temp2.png"),
82 },
83 { name: "新办房屋", img: require("../../assets/images/temp1.png") },
84 { name: "重新落宗", img: require("../../assets/images/temp2.png") },
85 ],
86 tableData: [
87 {
88 date: "2016-05-02 08:23",
89 title: "国家能源局关于2019年风电、光伏发电项目建设有关事项的通知",
90 },
91 {
92 date: "2016-05-04 08:23",
93 title: "珠江委部署珠江水利改革发展“十四五”规划思路报告编制工作",
94 },
95 {
96 date: "2016-05-01 08:23",
97 title:
98 "全国海洋生态环境保护工作会议召开生态环境部公布国家地表水考核断面水质排名",
99 },
100 {
101 date: "2016-05-03 08:23",
102 title: "自然资源部四单位党组织开展联学联建活动",
103 },
104 {
105 date: "2016-05-03 08:23",
106 title: "全国海洋伏季休渔暨渤海综合治理专项执法行动启动",
107 },
108 {
109 date: "2016-05-03 08:23",
110 title: "生态环境部召开各流域海域生态环境监督管理局座谈会",
111 },
112 {
113 date: "2016-05-03 08:23",
114 title:
115 "生态环境部审议并原则通过《地级及以上城市国家地表水考核断面水环境质量排名方案》",
116 },
117 ],
118 };
119 },
120 methods: {
121 handleSelect() {},
122 tableRowClassName({ row, rowIndex }) {
123 if (rowIndex % 2 !== 0) {
124 return "even-row";
125 } else {
126 return "";
127 }
128 },
129 },
33 }; 130 };
34 </script> 131 </script>
35 <style rel="stylesheet/less" lang="less"> 132 <style rel="stylesheet/less" lang="less">
36 .panel { 133 .main {
37 @flex(); 134 display: flex;
38 width:100%; 135 flex-direction: column;
39 .panel_left { 136 height: 100%;
40 width: 30%; 137 .panel {
41 margin-right: @30px; 138 @flex();
42 } 139 width: 100%;
43 .panel_right { 140 .panel_left {
44 width: 50%; 141 width: 45%;
45 .enter_box{ 142 margin-right: @30px;
46 @flex(); 143 flex: 1;
47 div{ 144 }
48 width: 100px; 145 .panel_right {
49 height: 100px; 146 flex: 1;
50 @flex-center(); 147 }
51 background-color: @tablebg; 148 .enter_box {
52 margin-left:@30px; 149 @flex();
53 cursor: pointer; 150 div {
54 } 151 flex: 1;
55 } 152 img {
56 } 153 width: 68px;
154 height: 68px;
155 display: block;
156 margin: 0 auto;
157 }
158 span {
159 display: block;
160 text-align: center;
161 margin-top: 10px;
162 }
163 }
164 }
165 .el-card__body {
166 padding: 40px;
167 }
168 }
169 .notice {
170 flex: 1;
171 padding: 0 18px 26px 18px;
172 box-sizing: border-box;
173 .el-table .even-row {
174 background: #f7f9fb;
175 }
176 .el-table th {
177 background-color: #f3f5fa;
178 }
179 .el-card__body {
180 padding: 0;
181 }
182 th.is-left {
183 text-align: center;
184 }
185 }
57 } 186 }
58 </style>
...\ No newline at end of file ...\ No newline at end of file
187 </style>
......