楼盘表右侧图例修改
Showing
1 changed file
with
160 additions
and
8 deletions
| ... | @@ -27,7 +27,35 @@ | ... | @@ -27,7 +27,35 @@ | 
| 27 | 楼盘单元格 | 27 | 楼盘单元格 | 
| 28 | </div> | 28 | </div> | 
| 29 | <div class="lp-legend"> | 29 | <div class="lp-legend"> | 
| 30 | 楼盘图例 | 30 | <div class="handleCol"> | 
| 31 | <div class="btn" @click="legendToggle"> | ||
| 32 | <i class="el-icon-d-arrow-left"></i> | ||
| 33 | <!-- <i class="el-icon-d-arrow-right"></i> --> | ||
| 34 | </div> | ||
| 35 | <div class="dyzt"> | ||
| 36 | <span>单元状态</span> | ||
| 37 | </div> | ||
| 38 | <div class="fwxz"> | ||
| 39 | <span>房屋性质</span> | ||
| 40 | </div> | ||
| 41 | <div class="fwyt"> | ||
| 42 | <span>房屋用途</span> | ||
| 43 | </div> | ||
| 44 | </div> | ||
| 45 | <div class="legendTable-wrap" :style="{'width':legendToggleFlag ? '204px' : '0'}"> | ||
| 46 | <table class="legendTable" cellspacing="1" cellpadding="1" border="1"> | ||
| 47 | <tr> | ||
| 48 | <th>状态</th> | ||
| 49 | <th>套数</th> | ||
| 50 | <th>面积</th> | ||
| 51 | </tr> | ||
| 52 | <tr v-for="(item,index) in legendList" :key="index"> | ||
| 53 | <td><i class="el-icon-star-on" :style="{'color':item.color}"></i>{{item.name}}</td> | ||
| 54 | <td>{{item.ts}}</td> | ||
| 55 | <td>{{item.mj}}</td> | ||
| 56 | </tr> | ||
| 57 | </table> | ||
| 58 | </div> | ||
| 31 | </div> | 59 | </div> | 
| 32 | </div> | 60 | </div> | 
| 33 | 61 | ||
| ... | @@ -74,7 +102,70 @@ export default { | ... | @@ -74,7 +102,70 @@ export default { | 
| 74 | pd:[], //创建楼盘的树结构数据 | 102 | pd:[], //创建楼盘的树结构数据 | 
| 75 | dialogVisible:false, | 103 | dialogVisible:false, | 
| 76 | menuType:'', | 104 | menuType:'', | 
| 77 | treeData:{} | 105 | treeData:{}, | 
| 106 | legendList:[ | ||
| 107 | { | ||
| 108 | name:'未确权', | ||
| 109 | color:'#2591FD', | ||
| 110 | ts:'12', | ||
| 111 | mj:'1633' | ||
| 112 | }, | ||
| 113 | { | ||
| 114 | name:'已确权', | ||
| 115 | color:'#2591FD', | ||
| 116 | ts:'22', | ||
| 117 | mj:'3109' | ||
| 118 | }, | ||
| 119 | { | ||
| 120 | name:'已注销', | ||
| 121 | color:'#2591FD', | ||
| 122 | ts:'13', | ||
| 123 | mj:'1457' | ||
| 124 | }, | ||
| 125 | { | ||
| 126 | name:'已备案', | ||
| 127 | color:'#2591FD', | ||
| 128 | ts:'3', | ||
| 129 | mj:'409' | ||
| 130 | }, | ||
| 131 | { | ||
| 132 | name:'预抵押', | ||
| 133 | color:'#2591FD', | ||
| 134 | ts:'11', | ||
| 135 | mj:'1466' | ||
| 136 | }, | ||
| 137 | { | ||
| 138 | name:'在建抵押', | ||
| 139 | color:'#2591FD', | ||
| 140 | ts:'13', | ||
| 141 | mj:'1792' | ||
| 142 | }, | ||
| 143 | { | ||
| 144 | name:'抵押', | ||
| 145 | color:'#2591FD', | ||
| 146 | ts:'14', | ||
| 147 | mj:'13' | ||
| 148 | }, | ||
| 149 | { | ||
| 150 | name:'查封', | ||
| 151 | color:'#2591FD', | ||
| 152 | ts:'9', | ||
| 153 | mj:'1436' | ||
| 154 | }, | ||
| 155 | { | ||
| 156 | name:'异议', | ||
| 157 | color:'#2591FD', | ||
| 158 | ts:'34', | ||
| 159 | mj:'4342' | ||
| 160 | }, | ||
| 161 | { | ||
| 162 | name:'限制', | ||
| 163 | color:'#2591FD', | ||
| 164 | ts:'2', | ||
| 165 | mj:'285' | ||
| 166 | }, | ||
| 167 | ], | ||
| 168 | legendToggleFlag:false | ||
| 78 | } | 169 | } | 
| 79 | }, | 170 | }, | 
| 80 | created(){}, | 171 | created(){}, | 
| ... | @@ -138,6 +229,10 @@ export default { | ... | @@ -138,6 +229,10 @@ export default { | 
| 138 | //关闭弹框 | 229 | //关闭弹框 | 
| 139 | closeDaialog(){ | 230 | closeDaialog(){ | 
| 140 | this.dialogVisible = false | 231 | this.dialogVisible = false | 
| 232 | }, | ||
| 233 | //图例的展开收起 | ||
| 234 | legendToggle(){ | ||
| 235 | this.legendToggleFlag = !this.legendToggleFlag; | ||
| 141 | } | 236 | } | 
| 142 | }, | 237 | }, | 
| 143 | computed: {}, | 238 | computed: {}, | 
| ... | @@ -177,14 +272,10 @@ export default { | ... | @@ -177,14 +272,10 @@ export default { | 
| 177 | height: calc(100% - 161px); | 272 | height: calc(100% - 161px); | 
| 178 | background-color: #ffffff; | 273 | background-color: #ffffff; | 
| 179 | display: flex; | 274 | display: flex; | 
| 180 | div{ | ||
| 181 | height: 100%; | ||
| 182 | line-height: 40px; | ||
| 183 | } | ||
| 184 | .lp-tree{ | 275 | .lp-tree{ | 
| 276 | height: 100%; | ||
| 185 | overflow: hidden; | 277 | overflow: hidden; | 
| 186 | transition: .5s; | 278 | transition: .5s; | 
| 187 | // position: relative; | ||
| 188 | .treeData{ | 279 | .treeData{ | 
| 189 | margin-top: 20px; | 280 | margin-top: 20px; | 
| 190 | margin-left: 20px; | 281 | margin-left: 20px; | 
| ... | @@ -201,7 +292,68 @@ export default { | ... | @@ -201,7 +292,68 @@ export default { | 
| 201 | flex: 1; | 292 | flex: 1; | 
| 202 | } | 293 | } | 
| 203 | .lp-legend{ | 294 | .lp-legend{ | 
| 204 | width: 200px; | 295 | transition: .5s; | 
| 296 | height: 100%; | ||
| 297 | font-size: 14px; | ||
| 298 | .handleCol{ | ||
| 299 | width: 34px; | ||
| 300 | float: right; | ||
| 301 | height: 100%; | ||
| 302 | .btn{ | ||
| 303 | cursor: pointer; | ||
| 304 | height: 40px; | ||
| 305 | line-height: 40px; | ||
| 306 | text-align: center; | ||
| 307 | border-bottom: 1px solid #E6E6E6 ; | ||
| 308 | } | ||
| 309 | .dyzt{ | ||
| 310 | height: 81px; | ||
| 311 | line-height: 81px; | ||
| 312 | } | ||
| 313 | .fwxz,.fwyt{ | ||
| 314 | height: 122px; | ||
| 315 | } | ||
| 316 | .dyzt,.fwxz,.fwyt{ | ||
| 317 | border-bottom: 1px solid #E6E6E6 ; | ||
| 318 | span{ | ||
| 319 | text-align: center; | ||
| 320 | height: 100%; | ||
| 321 | -webkit-writing-mode: vertical-rl; | ||
| 322 | writing-mode: vertical-rl; | ||
| 323 | line-height: 34px; | ||
| 324 | letter-spacing: 2px; | ||
| 325 | } | ||
| 326 | } | ||
| 327 | } | ||
| 328 | .legendTable-wrap{ | ||
| 329 | transition: .5s; | ||
| 330 | float: right; | ||
| 331 | overflow: hidden; | ||
| 332 | .legendTable{ | ||
| 333 | margin-top: -1px; | ||
| 334 | tr{ | ||
| 335 | height: 40px; | ||
| 336 | line-height: 40px; | ||
| 337 | th:first-child{ | ||
| 338 | width: 80px; | ||
| 339 | } | ||
| 340 | th{ | ||
| 341 | width: 60px; | ||
| 342 | height: 40px; | ||
| 343 | white-space: nowrap; | ||
| 344 | } | ||
| 345 | td { | ||
| 346 | height: 40px; | ||
| 347 | text-align: center; | ||
| 348 | white-space: nowrap; | ||
| 349 | } | ||
| 350 | td:first-child{ | ||
| 351 | text-align: left; | ||
| 352 | text-indent: 2px; | ||
| 353 | } | ||
| 354 | } | ||
| 355 | } | ||
| 356 | } | ||
| 205 | } | 357 | } | 
| 206 | } | 358 | } | 
| 207 | .btnGroup{ | 359 | .btnGroup{ | ... | ... | 
- 
Please register or sign in to post a comment