|
@@ -181,3 +181,56 @@ function creatbutElement(floorNum) {
|
|
|
</div>
|
|
|
`;
|
|
|
$('#bottomBtnsRight').append($(yTVAHtml));
|
|
|
+ }
|
|
|
+ else if (name == "YTWI") {
|
|
|
+ var yTVAHtml =
|
|
|
+ `<div onclick="icon_click('YTWI',` + s + `)" class="bottomBtn" value='水浸'>
|
|
|
+ <span class="bottomBtnText">水浸<span>
|
|
|
+ </div>
|
|
|
+ `;
|
|
|
+ $('#bottomBtnsRight').append($(yTVAHtml));
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('head').append($(`
|
|
|
+ <style>
|
|
|
+ .bottomBtn{
|
|
|
+ text-align: center;
|
|
|
+ left:200px;
|
|
|
+ width: 100px;
|
|
|
+ height: 31px;
|
|
|
+ margin-top: 7px;
|
|
|
+ top:650px;
|
|
|
+ // display: inline-block;
|
|
|
+ background-image: url(${baseURL}ySL6MT.png);
|
|
|
+ }
|
|
|
+ .bottomBtnsRight{
|
|
|
+ position: relative;
|
|
|
+ // top:481px;
|
|
|
+ bottom:-459px;
|
|
|
+ justify-content: left;
|
|
|
+ // width: calc(100% - 203px);
|
|
|
+ height: 40px;
|
|
|
+ }
|
|
|
+ .bottomBtnText{
|
|
|
+ font-size: 12px;
|
|
|
+ display: inline-block;
|
|
|
+ text-align:center;
|
|
|
+ padding-left: 15px;
|
|
|
+ color:rgba(255,255,255,0.5);
|
|
|
+ letter-spacing: 2px;
|
|
|
+ line-height: 36px;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ `));
|
|
|
+}
|
|
|
+//创建设备点位标识
|
|
|
+function icon_click(deviceType, floorNum) {
|
|
|
+ buildingStore;
|
|
|
+ deviceList = [];
|
|
|
+ for (var i = 0; i < buildingStore.length; i++) {
|
|
|
+ if (floorNum == buildingStore[i].min_level) {
|
|
|
+ deviceList.push(buildingStore[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ create_ui(deviceType, floorNum, deviceList);
|
|
|
+}
|