| | |
| | | margin-top: 1px; |
| | | } |
| | | |
| | | /*.pointBox {*/ |
| | | /* background: #bababa;*/ |
| | | /* width: 40px;*/ |
| | | /* height: 40px;*/ |
| | | /* margin-right: 1px;*/ |
| | | /* display: flex;*/ |
| | | /* justify-content: center;*/ |
| | | /* align-items: center;*/ |
| | | /* font-size: 14px;*/ |
| | | /* user-select: none;*/ |
| | | /* color: #fff;*/ |
| | | /*}*/ |
| | | |
| | | .pointBox { |
| | | background: #bababa; |
| | | background: #fffef9; |
| | | width: 40px; |
| | | height: 40px; |
| | | margin-right: 1px; |
| | |
| | | font-size: 14px; |
| | | user-select: none; |
| | | color: #fff; |
| | | /*transform: perspective(130px) rotateX(30deg) translateZ(-20px);*/ |
| | | box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); |
| | | /*border-radius: 50% 20% / 10% 40%;*/ |
| | | } |
| | | |
| | | .pointBox:hover{ |
| | | background: #00ff7f; |
| | | /*background: #20a162;*/ |
| | | /*background: #55bb8a;*/ |
| | | background: #945833; |
| | | /*background: #20894d;*/ |
| | | } |
| | | |
| | | .pointBoxEmpty { |
| | | background: #c2c934; |
| | | /*background: #12a182;*/ |
| | | background: #57c3c2; |
| | | } |
| | | |
| | | .pointBoxOut { |
| | |
| | | } |
| | | |
| | | .pointBoxInYy { |
| | | background: #fa736f; |
| | | background: #e2c027; |
| | | } |
| | | |
| | | .pointBoxGreen { |
| | | background: #00ff7f; |
| | | background: #945833; |
| | | } |
| | | |
| | | .pointBoxBlue { |
| | | background: #55aaff; |
| | | background: #89BCEF; |
| | | } |
| | | |
| | | .pointBoxRed { |
| | | background: #ff0000; |
| | | background: #ee4866; |
| | | } |
| | | |
| | | .pointBoxStart { |
| | |
| | | } |
| | | |
| | | .pointBoxDefault { |
| | | background: #86779d; |
| | | background: #f9f4dc; |
| | | } |
| | | |
| | | .pointBoxSelected { |
| | | background: #00ff7f !important; |
| | | /*background: #945833 !important;*/ |
| | | background: #20894d !important; |
| | | } |
| | | |
| | | .pointBoxSearch { |
| | | background: #9900ff; |
| | | background: #8076a3; |
| | | } |
| | | |
| | | .crnLine{ |
| | |
| | | <div style="font-size: 10px;">选择结果</div><div class="pointBox pointBoxSelected"></div> |
| | | </div> |
| | | <div style="flex: 1;margin-top: 10px;"> |
| | | <div style="font-size: 10px;">其他</div><div class="pointBox pointBoxDefault">其他</div> |
| | | <div style="font-size: 10px;text-align: center">其他</div><div class="pointBox pointBoxDefault"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: "get", |
| | | success: (data) => { |
| | | console.log("========") |
| | | console.log(data) |
| | | console.log("========") |
| | | that.importDataClick(data) |
| | | } |
| | | }) |
| | |
| | | this.mapData = JSON.stringify(this.map) |
| | | }, |
| | | importDataClick(mapData) { |
| | | console.log("========") |
| | | console.log(mapData) |
| | | console.log("========") |
| | | let tmp = JSON.parse(mapData); |
| | | let data = [] |
| | | tmp.forEach((item, index) => { |
| | |
| | | let locNo = item.locNo |
| | | let y = parseInt(locNo.substr(2,3)) |
| | | let x = parseInt(locNo.substr(0,2)) |
| | | if (x >= 2 && x <= 12) { |
| | | x += 1; |
| | | }else if (x == 13) { |
| | | x += 2; |
| | | console.log(x) |
| | | // if ( (x+2) %5 === 0 ) { |
| | | // x = 5*item.crnNo-2; |
| | | // }else |
| | | if(x<17){ |
| | | if (x % 4 == 0 || (x+1) % 4 == 0){ |
| | | x = item.crnNo+x |
| | | }else { |
| | | x = item.crnNo+x-1 |
| | | } |
| | | } |
| | | console.log(x) |
| | | |
| | | tmp[x][y].searchStatus = true//搜索标记 |
| | | }) |