e27e11dd by xiaomiao

样式调整

1 parent eb96e55d
...@@ -3,47 +3,47 @@ ...@@ -3,47 +3,47 @@
3 </template> 3 </template>
4 4
5 <script> 5 <script>
6 import Chart from "./Chart"; 6 import Chart from "./Chart";
7 import work from "@/api/work"; 7 import work from "@/api/work";
8 export default { 8 export default {
9 data() { 9 data () {
10 return { 10 return {
11 cdata: { 11 cdata: {
12 category: [], 12 category: [],
13 lineData: [], 13 lineData: [],
14 barData: [], 14 barData: [],
15 }, 15 },
16 }; 16 };
17 }, 17 },
18 components: { 18 components: {
19 Chart, 19 Chart,
20 }, 20 },
21 mounted() { 21 mounted () {
22 window.addEventListener("resize", () => { 22 window.addEventListener("resize", () => {
23 this.submitViews();
24 });
23 this.submitViews(); 25 this.submitViews();
24 });
25 this.submitViews();
26 },
27 methods: {
28 async submitViews() {
29 try {
30 let { result: res } = await work.submitViews("A20");
31 this.cdata.category = [];
32 this.cdata.barData = [];
33 this.cdata.lineData = [];
34 res.map((item) => {
35 return (
36 this.cdata.category.push(item.areaName),
37 this.cdata.barData.push(item.successCount),
38 this.cdata.lineData.push(item.failureCount)
39 );
40 });
41 } catch (error) {
42 // this.$refs.msg.messageShow();
43 }
44 }, 26 },
45 }, 27 methods: {
46 }; 28 async submitViews () {
29 try {
30 let { result: res } = await work.submitViews("A20");
31 this.cdata.category = [];
32 this.cdata.barData = [];
33 this.cdata.lineData = [];
34 res.map((item) => {
35 return (
36 this.cdata.category.push(item.areaName),
37 this.cdata.barData.push(item.successCount),
38 this.cdata.lineData.push(item.failureCount)
39 );
40 });
41 } catch (error) {
42 // this.$refs.msg.messageShow();
43 }
44 },
45 },
46 };
47 </script> 47 </script>
48 48
49 <style lang="scss" scoped></style> 49 <style lang="scss" scoped></style>
......
...@@ -505,4 +505,17 @@ tr:hover { ...@@ -505,4 +505,17 @@ tr:hover {
505 .el-select-dropdown__item.hover, 505 .el-select-dropdown__item.hover,
506 .el-select-dropdown__item:hover { 506 .el-select-dropdown__item:hover {
507 background-color: transparent !important; 507 background-color: transparent !important;
508 }
...\ No newline at end of file ...\ No newline at end of file
508 }
509
510 // 提示框
511 .el-message-box {
512 background-color: #031a46;
513 border: 1px solid #5f82c7;
514
515 .el-message-box__title{
516 color: white;
517 }
518 .el-message-box__content{
519 color: white;
520 }
521 }
......
...@@ -198,4 +198,5 @@ ...@@ -198,4 +198,5 @@
198 .btnColRight { 198 .btnColRight {
199 box-sizing: border-box; 199 box-sizing: border-box;
200 text-align: right; 200 text-align: right;
201 }
...\ No newline at end of file ...\ No newline at end of file
201 }
202
......
...@@ -19,131 +19,136 @@ ...@@ -19,131 +19,136 @@
19 </template> 19 </template>
20 20
21 <script> 21 <script>
22 import columnarsmat from "@/components/Echart/Columnarsmat"; 22 import columnarsmat from "@/components/Echart/Columnarsmat";
23 import Rose from "@/components/Echart/Rose"; 23 import Rose from "@/components/Echart/Rose";
24 import work from "@/api/work"; 24 import work from "@/api/work";
25 export default { 25 export default {
26 data () { 26 data () {
27 return { 27 return {
28 config: { 28 config: {
29 headerBGC: '#016AC5', 29 headerBGC: '#016AC5',
30 oddRowBGC: '#154295', 30 oddRowBGC: '#154295',
31 evenRowBGC: '#154295', 31 evenRowBGC: '#154295',
32 header: ['序号', '用途', '性质', '面积'], 32 header: ['序号', '用途', '性质', '面积'],
33 data: [], 33 data: [],
34 key: 0 34 key: 0
35 }
35 } 36 }
36 } 37 },
37 }, 38 components: { columnarsmat, Rose },
38 components: { columnarsmat, Rose }, 39 mounted () {
39 mounted () { 40 this.addhousetotal();
40 this.addhousetotal(); 41 // scroll(tableref.value.$refs.bodyWrapper);//设置滚动
41 // scroll(tableref.value.$refs.bodyWrapper);//设置滚动 42 },
42 }, 43 methods: {
43 methods: { 44 async addhousetotal () {
44 async addhousetotal () { 45 try {
45 try { 46 let { result: res } = await work.addhousetotal();
46 let { result: res } = await work.addhousetotal(); 47 res.map((item, index) => {
47 res.map((item, index) => { 48 return (
48 return ( 49 this.config.data.push([index, item.fwyt, item.fwxz, item.mj])
49 this.config.data.push([index, item.fwyt, item.fwxz, item.mj]) 50 )
50 ) 51 });
51 }); 52 } catch (error) {
52 } catch (error) { 53 console.log("error", error);
53 console.log("error", error); 54 }
54 } 55 }
55 } 56 }
56 } 57 }
57 }
58 </script> 58 </script>
59 <style lang="scss" scoped> 59 <style lang="scss" scoped>
60 /deep/.row-item:not(:last-child) { 60 /deep/.row-item:not(:last-child) {
61 margin-bottom: .026rem; 61 margin-bottom: 0.026rem;
62 }
63
64 .rightcard {
65 width: 32%;
66 display: flex;
67 height: calc(100vh - 114px);
68 flex-direction: column;
69
70 .cardhead {
71 font-size: .1042rem;
72 font-weight: bold;
73 color: #02D9FD;
74 text-align: center;
75 position: absolute;
76 left: 0;
77 right: 0;
78 top: .0625rem;
79 text-align: center;
80 } 62 }
81 63
82 .cardcontent { 64 .rightcard {
83 width: 100%; 65 width: 32%;
84 height: 100%; 66 display: flex;
85 display: -webkit-box; 67 height: calc(100vh - 114px);
86 overflow: hidden; 68 flex-direction: column;
87 69
88 .nodata { 70 .cardhead {
89 font-size: .1042rem; 71 font-size: 0.1042rem;
90 color: #02D9FD;
91 font-weight: bold; 72 font-weight: bold;
92 margin: auto; 73 color: #02d9fd;
93 margin-top: 120px; 74 text-align: center;
75 position: absolute;
76 left: 0;
77 right: 0;
78 top: 0.0625rem;
79 text-align: center;
94 } 80 }
95 }
96 81
97 .cardCon { 82 .cardcontent {
98 padding: .0521rem .026rem; 83 width: 100%;
99 position: relative; 84 height: 100%;
100 text-align: center; 85 display: -webkit-box;
101 width: 100%; 86 overflow: hidden;
102 } 87
88 .nodata {
89 font-size: 0.1042rem;
90 color: #02d9fd;
91 font-weight: bold;
92 margin: auto;
93 margin-top: 120px;
94 }
95 }
103 96
104 .card1 { 97 .cardCon {
105 height: 33%; 98 padding: 0.0521rem 0.026rem;
106 background: url("~@/image/xjgyfwxx.png") no-repeat; 99 position: relative;
107 background-size: 100% 100%; 100 text-align: center;
101 width: 100%;
102 }
108 103
109 .board { 104 .card1 {
110 width: 90%; 105 height: 33%;
111 margin: 0 auto; 106 background: url("~@/image/xjgyfwxx.png") no-repeat;
112 height: 1.1031rem; 107 background-size: 100% 100%;
113 margin-top: .0521rem; 108 /deep/.dv-scroll-board {
114 /deep/.header{ 109 .header {
115 font-size: .0738rem; 110 height: 0.1875rem;
111 align-items: center;
112 }
116 } 113 }
117 /deep/.rows{ 114 .board {
118 .ceil{ 115 width: 90%;
119 font-size: .0738rem; 116 margin: 0 auto;
120 color: #6BC1FC 117 height: 1.1031rem;
121 } 118 margin-top: 0.0521rem;
119 /deep/.header {
120 font-size: 0.0738rem;
121 }
122 /deep/.rows {
123 .ceil {
124 font-size: 0.0738rem;
125 color: #6bc1fc;
126 }
127 }
122 } 128 }
123 } 129 }
124 }
125 130
126 .card2 { 131 .card2 {
127 height: 33%; 132 height: 33%;
128 background: url("~@/image/djywl.png") no-repeat; 133 background: url("~@/image/djywl.png") no-repeat;
129 background-size: 100% 100%; 134 background-size: 100% 100%;
130 padding: .3825rem 0 0 0; 135 padding: 0.3825rem 0 0 0;
131 } 136 }
132 137
133 .card3 { 138 .card3 {
134 height: 33%; 139 height: 33%;
135 flex: 1; 140 flex: 1;
136 background: url("~@/image/djlxzl.png") no-repeat; 141 background: url("~@/image/djlxzl.png") no-repeat;
137 background-size: 100% 100%; 142 background-size: 100% 100%;
138 padding-bottom: 0; 143 padding-bottom: 0;
139 144
140 .cardhead { 145 .cardhead {
141 top: .0417rem; 146 top: 0.0417rem;
147 }
142 } 148 }
143 }
144 149
145 .cardhead { 150 .cardhead {
146 position: absolute; 151 position: absolute;
152 }
147 } 153 }
148 }
149 </style> 154 </style>
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
15 </div> 15 </div>
16 <div class="from-clues-content"> 16 <div class="from-clues-content">
17 <div class="contentbox"> 17 <div class="contentbox">
18 <base-set v-show="isshow" :userInfo="userData" /> 18 <base-set v-if="isshow" :userInfo="userData" />
19 <password-edit v-show="!isshow" :userInfo="userData" /> 19 <password-edit v-if="!isshow" :userInfo="userData" />
20 </div> 20 </div>
21 </div> 21 </div>
22 </div> 22 </div>
......
...@@ -176,4 +176,11 @@ ...@@ -176,4 +176,11 @@
176 top: 15px; 176 top: 15px;
177 right: 30px; 177 right: 30px;
178 } 178 }
179 /deep/.el-dialog__header {
180 text-align: center;
181 margin-bottom: 10px;
182 .el-dialog__title {
183 color: white;
184 }
185 }
179 </style> 186 </style>
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
114 { required: true, message: "请输入用户名", trigger: "blur" }, 114 { required: true, message: "请输入用户名", trigger: "blur" },
115 ], 115 ],
116 }, 116 },
117 title: "", 117 title: "修改",
118 visible: false, 118 visible: false,
119 showLoginName: false, 119 showLoginName: false,
120 sexList: [{ lable: "0", value: "0", name: "男" }, { lable: "1", value: "1", name: "女" }], 120 sexList: [{ lable: "0", value: "0", name: "男" }, { lable: "1", value: "1", name: "女" }],
...@@ -230,4 +230,14 @@ ...@@ -230,4 +230,14 @@
230 /deep/.el-form-item__label { 230 /deep/.el-form-item__label {
231 color: #fff; 231 color: #fff;
232 } 232 }
233 /deep/.el-dialog__body {
234 padding-top: 20px;
235 }
236 /deep/.el-dialog__header {
237 text-align: center;
238 margin-bottom: 10px;
239 .el-dialog__title {
240 color: white;
241 }
242 }
233 </style> 243 </style>
......
...@@ -316,4 +316,5 @@ ...@@ -316,4 +316,5 @@
316 .btnColRight { 316 .btnColRight {
317 margin-top: 20px; 317 margin-top: 20px;
318 } 318 }
319
319 </style> 320 </style>
......