a6adfc02 by 任超

style:权利信息

1 parent b145173c
...@@ -18,11 +18,7 @@ ...@@ -18,11 +18,7 @@
18 </tr> 18 </tr>
19 <!-- 第一行表头 --> 19 <!-- 第一行表头 -->
20 <tr class="one" id=""> 20 <tr class="one" id="">
21 <th 21 <th v-for="(item, index) in ths" :key="index" :class="[item.class, item.type == '临时' ? 'linshiIcon' : '']">
22 v-for="(item, index) in ths"
23 :key="index"
24 :class="[item.class, item.type == '临时' ? 'linshiIcon' : '']"
25 >
26 <div class="icon" v-if="item.type == '临时'">{{ item.type }}</div> 22 <div class="icon" v-if="item.type == '临时'">{{ item.type }}</div>
27 {{ item.type }} 23 {{ item.type }}
28 </th> 24 </th>
...@@ -39,14 +35,10 @@ ...@@ -39,14 +35,10 @@
39 <td> 35 <td>
40 {{ item.label }} 36 {{ item.label }}
41 </td> 37 </td>
42 <td 38 <td v-for="(item1, index1) in showTableData" :key="index1" :class="[
43 v-for="(item1, index1) in showTableData" 39 item1.qszt == '2' ? 'lishi' : '',
44 :key="index1" 40 item1.qszt == '0' ? 'linshi' : '',
45 :class="[ 41 ]">
46 item1.qszt == '2' ? 'lishi' : '',
47 item1.qszt == '0' ? 'linshi' : '',
48 ]"
49 >
50 {{ item1[item.prop] }} 42 {{ item1[item.prop] }}
51 </td> 43 </td>
52 </tr> 44 </tr>
...@@ -65,7 +57,7 @@ export default { ...@@ -65,7 +57,7 @@ export default {
65 props: { 57 props: {
66 showType: "", 58 showType: "",
67 }, 59 },
68 data() { 60 data () {
69 return { 61 return {
70 checkList: ["临时", "现势", "历史"], 62 checkList: ["临时", "现势", "历史"],
71 tableWidth: 810, 63 tableWidth: 810,
...@@ -83,7 +75,7 @@ export default { ...@@ -83,7 +75,7 @@ export default {
83 }, 75 },
84 watch: { 76 watch: {
85 showType: { 77 showType: {
86 handler(newVlue) { 78 handler (newVlue) {
87 // 清空值 79 // 清空值
88 this.tableData = []; 80 this.tableData = [];
89 this.ths = []; 81 this.ths = [];
...@@ -98,7 +90,6 @@ export default { ...@@ -98,7 +90,6 @@ export default {
98 qllx: "A03", 90 qllx: "A03",
99 qszt: ["1"] 91 qszt: ["1"]
100 }).then((res) => { 92 }).then((res) => {
101
102 if (res.code === 200) { 93 if (res.code === 200) {
103 detail = res.result; 94 detail = res.result;
104 } 95 }
...@@ -143,7 +134,7 @@ export default { ...@@ -143,7 +134,7 @@ export default {
143 }, 134 },
144 }, 135 },
145 methods: { 136 methods: {
146 checkChange() { 137 checkChange () {
147 var checkKey = []; 138 var checkKey = [];
148 this.ths = []; 139 this.ths = [];
149 this.tableWidth = 810; 140 this.tableWidth = 810;
...@@ -220,6 +211,7 @@ export default { ...@@ -220,6 +211,7 @@ export default {
220 line-height: 62px; 211 line-height: 62px;
221 position: relative; 212 position: relative;
222 margin: 1px 0; 213 margin: 1px 0;
214
223 .checkbox { 215 .checkbox {
224 position: absolute; 216 position: absolute;
225 right: 20px; 217 right: 20px;
...@@ -236,24 +228,28 @@ export default { ...@@ -236,24 +228,28 @@ export default {
236 // .xxTable > tr th:not(:first-child) { 228 // .xxTable > tr th:not(:first-child) {
237 // width: 223px; 229 // width: 223px;
238 // } 230 // }
239 .xxTable > tr:first-child th { 231 .xxTable>tr:first-child th {
240 width: 140px; 232 width: 140px;
241 } 233 }
242 234
243 .xxTable { 235 .xxTable {
244 border-spacing: 1px; 236 border-spacing: 1px;
245 tr > th { 237
238 tr>th {
246 background: #464c5b; 239 background: #464c5b;
247 color: #fff; 240 color: #fff;
248 font-size: 16px; 241 font-size: 16px;
249 } 242 }
243
250 th.linshi, 244 th.linshi,
251 th.xianshi { 245 th.xianshi {
252 background: #464c5b; 246 background: #464c5b;
253 } 247 }
248
254 th.lishi { 249 th.lishi {
255 background: rgba(70, 76, 91, 0.8); 250 background: rgba(70, 76, 91, 0.8);
256 } 251 }
252
257 .one th { 253 .one th {
258 height: 25px; 254 height: 25px;
259 font-size: 14px; 255 font-size: 14px;
...@@ -262,6 +258,7 @@ export default { ...@@ -262,6 +258,7 @@ export default {
262 th.linshi { 258 th.linshi {
263 color: #fe9400; 259 color: #fe9400;
264 } 260 }
261
265 .two th { 262 .two th {
266 height: 45px; 263 height: 45px;
267 264
...@@ -269,9 +266,11 @@ export default { ...@@ -269,9 +266,11 @@ export default {
269 font-size: 14px; 266 font-size: 14px;
270 } 267 }
271 } 268 }
269
272 .linshiIcon { 270 .linshiIcon {
273 position: relative; 271 position: relative;
274 } 272 }
273
275 .linshiIcon::after { 274 .linshiIcon::after {
276 content: ""; 275 content: "";
277 display: block; 276 display: block;
...@@ -285,6 +284,7 @@ export default { ...@@ -285,6 +284,7 @@ export default {
285 right: 3px; 284 right: 3px;
286 transform: rotate(-90deg); 285 transform: rotate(-90deg);
287 } 286 }
287
288 .icon { 288 .icon {
289 position: absolute; 289 position: absolute;
290 top: 8px; 290 top: 8px;
...@@ -301,16 +301,20 @@ export default { ...@@ -301,16 +301,20 @@ export default {
301 padding: 4px; 301 padding: 4px;
302 font-size: 13px; 302 font-size: 13px;
303 } 303 }
304 > tr:nth-child(odd) td { 304
305 >tr:nth-child(odd) td {
305 background: #f2f2f2; 306 background: #f2f2f2;
306 } 307 }
307 > tr:nth-child(even) td { 308
309 >tr:nth-child(even) td {
308 background: #f9f9f9; 310 background: #f9f9f9;
309 } 311 }
312
310 td.linshi { 313 td.linshi {
311 color: #fe9400; 314 color: #fe9400;
312 } 315 }
313 tr > td.lishi { 316
317 tr>td.lishi {
314 color: #7f7f7f; 318 color: #7f7f7f;
315 } 319 }
316 } 320 }
......