index.vue 16.9 KB
Newer Older
耿迪迪's avatar
耿迪迪 committed
1 2
<template>
  <div>
纪泽龙's avatar
纪泽龙 committed
3
    <div style="width: 100vw; height: 100vh" id="container"></div>
纪泽龙's avatar
纪泽龙 committed
4 5 6 7 8
    <div class="btn-wrapper">
      <div class="myBtn">
        <div
          class="el-btn"
          :class="{ active: targetNum == 1 }"
纪泽龙's avatar
纪泽龙 committed
9
          @click.stop="addDevice"
纪泽龙's avatar
纪泽龙 committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
        >
          <template v-if="iconClass == 'icon-create'">
            <span class="left">
              <i class="iconfont" :class="iconClass" />
            </span>
            <span class="right">{{ createLabel }}</span>
          </template>
          <template v-else>
            <span class="newLetf">{{ createLabel }}</span>
            <span class="newRight">
              <i class="iconfont" :class="iconClass" />
            </span>
          </template>
        </div>
        <div
          class="el-btn"
          :class="{ active: targetNum == 2 }"
纪泽龙's avatar
纪泽龙 committed
27
          @click.stop="editDevice"
纪泽龙's avatar
纪泽龙 committed
28 29 30 31 32 33 34 35 36
        >
          <span class="left">
            <i class="iconfont icon-compile" />
          </span>
          <span class="right">编辑</span>
        </div>
        <div
          class="el-btn"
          :class="{ active: targetNum == 3 }"
纪泽龙's avatar
纪泽龙 committed
37
          @click.stop="deleteDevice"
纪泽龙's avatar
纪泽龙 committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
        >
          <span class="left">
            <i class="iconfont icon-delete" />
          </span>
          <span class="right">删除</span>
        </div>
      </div>

      <div class="animate">
        <el-collapse-transition>
          <div v-show="deviceType">
            <div v-for="item in changeBtnData" :key="item.value" class="option">
              <div
                class="op-btn"
                :class="{ active: item.value == createValue }"
纪泽龙's avatar
纪泽龙 committed
53
                @click.stop="createChange($event, item)"
纪泽龙's avatar
纪泽龙 committed
54 55 56 57 58 59 60 61 62 63 64 65
              >
                <span class="left">
                  <i class="iconfont" :class="item.icon" />
                </span>
                <span class="right">{{ item.label }}</span>
              </div>
            </div>
          </div>
        </el-collapse-transition>
      </div>
    </div>

纪泽龙's avatar
纪泽龙 committed
66 67 68 69 70 71
    <el-input
      v-model="keyWord"
      placeholder="点击输入"
      id="tipinput"
      class="search-input"
    />
纪泽龙's avatar
1  
纪泽龙 committed
72
    <el-button icon="el-icon-search" class="search-but" @click="search()"
纪泽龙's avatar
纪泽龙 committed
73 74
      >搜索</el-button
    >
纪泽龙's avatar
1  
纪泽龙 committed
75 76
    <el-button icon="el-icon-refresh" class="refresh-but" @click="refreshMap()"
      >重置</el-button
纪泽龙's avatar
纪泽龙 committed
77
    >
纪泽龙's avatar
纪泽龙 committed
78 79 80 81 82 83

    <div class="leftBar-wrapper">
      <div
        v-for="item in changeBtnData"
        :key="item.value"
        class="box"
纪泽龙's avatar
纪泽龙 committed
84
        :class="{ active: leftBarNum.indexOf(item.value) >= 0 }"
纪泽龙's avatar
纪泽龙 committed
85 86 87 88 89 90 91 92
        @click="leftBarChange(item)"
      >
        <div class="left">
          <i class="iconfont" :class="item.icon"></i>
        </div>
        <div class="right">
          {{ item.label }}
        </div>
纪泽龙's avatar
纪泽龙 committed
93
        <i class="el-icon-check"></i>
纪泽龙's avatar
纪泽龙 committed
94 95
      </div>
    </div>
耿迪迪's avatar
耿迪迪 committed
96 97 98
  </div>
</template>
<script>
纪泽龙's avatar
纪泽龙 committed
99
import gaodeMap from "utils/gaodeMap.js";
纪泽龙's avatar
纪泽龙 committed
100
import { pipeAllInfoList } from "@/api/device/pipe.js";
纪泽龙's avatar
纪泽龙 committed
101
import { map, DEVICE_TYPE, mapOperateType } from "utils/gaodeMap.js";
纪泽龙's avatar
纪泽龙 committed
102
import { getAllDeviceInfo } from "@/api/device/deviceInfo";
纪泽龙's avatar
纪泽龙 committed
103 104 105 106 107 108 109
export default {
  data() {
    return {
      gaoMap: null,
      deviceType: false,
      value: "",
      operateType: "",
纪泽龙's avatar
纪泽龙 committed
110 111 112 113
      radio1: "",
      // 1新建,2编辑,3删除,点按钮变色
      targetNum: 0,
      // 左边的bar的active判定
纪泽龙's avatar
纪泽龙 committed
114
      leftBarNum: [1, 2, 3, 4, 7],
纪泽龙's avatar
纪泽龙 committed
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141

      // 新建里的值
      iconClass: "icon-create",
      createValue: 0,
      createLabel: "新增",
      changeBtnData: [
        {
          value: 1,
          icon: "icon-gd",
          label: "管道",
        },
        {
          value: 2,
          icon: "icon-tyx",
          label: "调压箱",
        },
        {
          value: 3,
          icon: "icon-fmj",
          label: "阀门井",
        },
        {
          value: 4,
          icon: "icon-llj",
          label: "流量计",
        },
        {
142
          value: 7,
纪泽龙's avatar
纪泽龙 committed
143 144 145 146
          icon: "icon-ylb",
          label: "压力表",
        },
      ],
纪泽龙's avatar
纪泽龙 committed
147
      keyWord: "",
纪泽龙's avatar
纪泽龙 committed
148 149 150
    };
  },
  mounted() {
耿迪迪's avatar
耿迪迪 committed
151
    this.initMap();
纪泽龙's avatar
纪泽龙 committed
152 153
  },
  methods: {
纪泽龙's avatar
1  
纪泽龙 committed
154
    initMap() {
耿迪迪's avatar
耿迪迪 committed
155 156 157 158 159 160 161 162
      let gaoMap = new gaodeMap("石家庄");
      this.gaoMap = gaoMap;
      window.addEventListener("click", this.barClose);
      gaoMap.addMouseTool();
      gaoMap.searchTips("tipinput");
      this.getDeviceInfo();
      this.getPipeList();
    },
纪泽龙's avatar
纪泽龙 committed
163
    // 左边的Bar修改值
纪泽龙's avatar
纪泽龙 committed
164
    leftBarChange(item) {
纪泽龙's avatar
纪泽龙 committed
165
      // this.leftBarNum= this.leftBarNum != item.value ? item.value:0;
纪泽龙's avatar
1  
纪泽龙 committed
166

纪泽龙's avatar
纪泽龙 committed
167
      const index = this.leftBarNum.indexOf(item.value);
纪泽龙's avatar
纪泽龙 committed
168 169 170 171
      if (index >= 0) {
        this.leftBarNum.splice(index, 1);
      } else {
        this.leftBarNum.push(item.value);
纪泽龙's avatar
纪泽龙 committed
172
      }
纪泽龙's avatar
纪泽龙 committed
173 174 175 176 177
      // 1,2,3,4,7分别对应数据库type5,1,2,3,4
      console.log(this.leftBarNum);

      if (this.leftBarNum.includes(1)) {
        this.gaoMap.lineShow(true);
纪泽龙's avatar
1  
纪泽龙 committed
178
      } else {
纪泽龙's avatar
纪泽龙 committed
179 180 181 182 183 184
        this.gaoMap.lineShow(false);
      }

      // console.log("marks",this.gaoMap.markers)
      // this.gaoMap.markerShow();
      if (this.leftBarNum.includes(2)) {
纪泽龙's avatar
1  
纪泽龙 committed
185 186 187
        this.gaoMap.markerShow(1, true);
      } else {
        this.gaoMap.markerShow(1, false);
纪泽龙's avatar
纪泽龙 committed
188 189 190
      }

      if (this.leftBarNum.includes(3)) {
纪泽龙's avatar
1  
纪泽龙 committed
191 192 193
        this.gaoMap.markerShow(2, true);
      } else {
        this.gaoMap.markerShow(2, false);
纪泽龙's avatar
纪泽龙 committed
194 195 196
      }

      if (this.leftBarNum.includes(4)) {
纪泽龙's avatar
1  
纪泽龙 committed
197 198 199
        this.gaoMap.markerShow(3, true);
      } else {
        this.gaoMap.markerShow(3, false);
纪泽龙's avatar
纪泽龙 committed
200 201
      }

纪泽龙's avatar
1  
纪泽龙 committed
202 203 204 205
      if (this.leftBarNum.includes(7)) {
        this.gaoMap.markerShow(4, true);
      } else {
        this.gaoMap.markerShow(4, false);
纪泽龙's avatar
纪泽龙 committed
206
      }
纪泽龙's avatar
纪泽龙 committed
207
    },
纪泽龙's avatar
纪泽龙 committed
208
    addDevice() {
纪泽龙's avatar
纪泽龙 committed
209 210 211 212 213 214
      if (this.iconClass == "icon-create") {
        this.targetNum = this.targetNum != 1 ? 1 : 0;
      } else {
        if (this.deviceType) {
          this.targetNum = 0;
          this.createReset();
纪泽龙's avatar
纪泽龙 committed
215
          this.gaoMap.newLineReset();
纪泽龙's avatar
纪泽龙 committed
216 217
        }
      }
纪泽龙's avatar
纪泽龙 committed
218 219
      if (this.targetNum == 1 && this.createValue == 1) {
        this.gaoMap.lineType = 1;
纪泽龙's avatar
纪泽龙 committed
220 221
      } else {
        this.gaoMap.lineType = 0;
纪泽龙's avatar
纪泽龙 committed
222
        this.gaoMap.mouseTool.close();
纪泽龙's avatar
纪泽龙 committed
223
      }
纪泽龙's avatar
纪泽龙 committed
224 225
      // 关闭当前的infowindow
      this.gaoMap.closeInfoWindow();
纪泽龙's avatar
纪泽龙 committed
226

纪泽龙's avatar
纪泽龙 committed
227
      this.deviceType = !this.deviceType;
纪泽龙's avatar
纪泽龙 committed
228 229
      this.gaoMap.mapOperateType = "add";
      this.gaoMap.removeMarkerDragg();
纪泽龙's avatar
纪泽龙 committed
230
    },
231 232

    // 选择新建项目哪个
纪泽龙's avatar
纪泽龙 committed
233 234
    createChange(e, item) {
      // e.stopPropagation();
纪泽龙's avatar
纪泽龙 committed
235 236 237 238
      this.deviceType = false;
      this.iconClass = item.icon;
      this.createValue = item.value;
      this.createLabel = item.label;
纪泽龙's avatar
1  
纪泽龙 committed
239

纪泽龙's avatar
纪泽龙 committed
240
      if (this.targetNum == 1 && this.createValue == 1) {
纪泽龙's avatar
纪泽龙 committed
241
        // 0是初始,1是新建 2是编辑 3删除
纪泽龙's avatar
纪泽龙 committed
242
        this.gaoMap.lineType = 1;
纪泽龙's avatar
纪泽龙 committed
243 244 245 246 247 248 249 250 251 252 253
        if (this.gaoMap.newLineObj == null) {
          this.gaoMap.createNewLine();
        }
      } else {
        // 如果不是管道,就归位
        this.gaoMap.lineType = 0;
        // 如果不是管道了,把之前的管道清空
        this.gaoMap.newLineReset();

        // this.createReset();
        // 其他
耿迪迪's avatar
耿迪迪 committed
254
        this.gaoMap.draw(this.createValue.toString());
纪泽龙's avatar
纪泽龙 committed
255
      }
纪泽龙's avatar
纪泽龙 committed
256 257
      // 清空所有正在编辑状态的线
      this.gaoMap.linePolyEditorAllClose();
纪泽龙's avatar
纪泽龙 committed
258 259 260 261 262 263
    },
    // 新建按钮还原
    createReset() {
      this.iconClass = "icon-create";
      this.createValue = 0;
      this.createLabel = "新建";
264
      this.gaoMap.closeAddMarker();
纪泽龙's avatar
纪泽龙 committed
265
    },
纪泽龙's avatar
纪泽龙 committed
266
    editDevice() {
纪泽龙's avatar
纪泽龙 committed
267
      this.targetNum = this.targetNum != 2 ? 2 : 0;
纪泽龙's avatar
纪泽龙 committed
268 269
      this.gaoMap.lineType = this.targetNum;
      if (this.targetNum != 2) {
纪泽龙's avatar
纪泽龙 committed
270
        this.gaoMap.linePolyEditorAllClose();
271 272
        this.gaoMap.removeMarkerDragg();
        this.gaoMap.mapOperateType = "normal";
纪泽龙's avatar
1  
纪泽龙 committed
273
      } else {
274 275 276 277 278 279 280
        // 如果正在新建线条,则清空
        this.gaoMap.newLineReset();
        this.deviceType = false;
        this.gaoMap.mapOperateType = "edit";
        this.gaoMap.addMarkerDragg();
        // this.gaoMap.placeSearch.clear();
        this.gaoMap.closeAddMarker();
纪泽龙's avatar
纪泽龙 committed
281
      }
纪泽龙's avatar
1  
纪泽龙 committed
282
      // 关闭当前的infowindow
纪泽龙's avatar
纪泽龙 committed
283
      this.gaoMap.closeInfoWindow();
纪泽龙's avatar
纪泽龙 committed
284
      this.createReset();
耿迪迪's avatar
耿迪迪 committed
285
    },
纪泽龙's avatar
纪泽龙 committed
286
    deleteDevice() {
纪泽龙's avatar
纪泽龙 committed
287
      this.targetNum = this.targetNum != 3 ? 3 : 0;
纪泽龙's avatar
纪泽龙 committed
288
      this.gaoMap.lineType = this.targetNum;
289 290 291
      if (this.targetNum != 3) {
        this.gaoMap.removeMarkerDragg();
        this.gaoMap.mapOperateType = "normal";
纪泽龙's avatar
1  
纪泽龙 committed
292
      } else {
293 294 295 296 297 298 299 300 301 302
        // 如果正在新建线条,则清空
        this.gaoMap.newLineReset();
        // 清空所有正在编辑状态的线
        this.gaoMap.linePolyEditorAllClose();
        this.deviceType = false;
        this.gaoMap.mapOperateType = "delete";
        this.gaoMap.removeMarkerDragg();
        //this.gaoMap.placeSearch.clear();
        this.gaoMap.closeAddMarker();
      }
纪泽龙's avatar
1  
纪泽龙 committed
303
      // 关闭当前的infowindow
纪泽龙's avatar
纪泽龙 committed
304
      this.gaoMap.closeInfoWindow();
纪泽龙's avatar
纪泽龙 committed
305
      this.createReset();
耿迪迪's avatar
耿迪迪 committed
306
    },
纪泽龙's avatar
纪泽龙 committed
307
    selectDeviceType(val) {
纪泽龙's avatar
纪泽龙 committed
308 309 310
      // if("add" == this.operationType){
      this.gaoMap.draw(val);
      // }
纪泽龙's avatar
纪泽龙 committed
311 312 313 314 315 316
      this.deviceType = false;
      this.value = "";
      // 如果选择的是新建管道
      if (val == 1) {
        this.gaoMap.lineType = 1;
        this.gaoMap.createNewLine();
耿迪迪's avatar
耿迪迪 committed
317
      }
纪泽龙's avatar
纪泽龙 committed
318
    },
耿迪迪's avatar
耿迪迪 committed
319
    getDeviceInfo(queryParams) {
耿迪迪's avatar
耿迪迪 committed
320
      this.loading = true;
耿迪迪's avatar
耿迪迪 committed
321
      getAllDeviceInfo(queryParams).then((response) => {
纪泽龙's avatar
纪泽龙 committed
322 323 324 325 326 327 328
        if (response.code == 200) {
          for (var i = 0; i < response.data.length; i++) {
            if ("1" == response.data[i].deviceType) {
              this.gaoMap.addMarker(
                DEVICE_TYPE.REGEULATORBOX,
                response.data[i]
              );
耿迪迪's avatar
耿迪迪 committed
329
            }
纪泽龙's avatar
纪泽龙 committed
330 331
            if ("2" == response.data[i].deviceType) {
              this.gaoMap.addMarker(DEVICE_TYPE.VALUEWELL, response.data[i]);
耿迪迪's avatar
耿迪迪 committed
332
            }
纪泽龙's avatar
纪泽龙 committed
333 334
            if ("3" == response.data[i].deviceType) {
              this.gaoMap.addMarker(DEVICE_TYPE.FLOWMETER, response.data[i]);
耿迪迪's avatar
耿迪迪 committed
335
            }
纪泽龙's avatar
纪泽龙 committed
336 337
            if ("4" == response.data[i].deviceType) {
              this.gaoMap.addMarker(DEVICE_TYPE.PRESSUREGAGE, response.data[i]);
338
            }
耿迪迪's avatar
耿迪迪 committed
339 340 341 342
          }
        }
        this.loading = false;
      });
343
    },
耿迪迪's avatar
耿迪迪 committed
344 345
    getPipeList(queryParams) {
      pipeAllInfoList(queryParams).then((res) => {
纪泽龙's avatar
1  
纪泽龙 committed
346 347 348 349
        console.log("管道", res);
        if (res.code == 200) {
          this.gaoMap.addPolyline(res.data);
        }
纪泽龙's avatar
纪泽龙 committed
350 351
      });
    },
纪泽龙's avatar
1  
纪泽龙 committed
352 353 354 355 356 357 358 359 360 361 362
    searchClear() {
      this.iconClass = "icon-create";
      this.createValue = 0;
      this.createLabel = "新建";
      this.targetNum = 0;
      this.gaoMap.lineType = 0;
      this.gaoMap.newLineReset();
      this.gaoMap.linePolyEditorAllClose();
      this.gaoMap.closeAddMarker();
      this.gaoMap.removeMarkerDragg();
      this.gaoMap.mapOperateType = "normal";
纪泽龙's avatar
纪泽龙 committed
363
      this.leftBarNum=[1,2,3,4,7]
纪泽龙's avatar
z  
纪泽龙 committed
364
      // map.remove(this.gaodeMap.markerOverlays);
纪泽龙's avatar
1  
纪泽龙 committed
365
    },
纪泽龙's avatar
纪泽龙 committed
366
    search() {
纪泽龙's avatar
1  
纪泽龙 committed
367
      this.searchClear();
耿迪迪's avatar
耿迪迪 committed
368
      map.clearMap();
369
      this.gaoMap.placeSearch.clear();
纪泽龙's avatar
1  
纪泽龙 committed
370
      if (!(!this.gaoMap.searchSelectAdcode && !this.gaoMap.searchSelectName)) {
耿迪迪's avatar
耿迪迪 committed
371 372
        this.gaoMap.placeSearch.setCity(this.gaoMap.searchSelectAdcode);
        this.gaoMap.placeSearch.search(this.gaoMap.searchSelectName);
纪泽龙's avatar
1  
纪泽龙 committed
373
        this.getDeviceInfo({ deviceName: this.gaoMap.searchSelectName });
耿迪迪's avatar
耿迪迪 committed
374
        this.gaoMap.polyLines = [];
纪泽龙's avatar
1  
纪泽龙 committed
375
        this.getPipeList({ pipeName: this.gaoMap.searchSelectName });
耿迪迪's avatar
耿迪迪 committed
376 377
        this.gaoMap.searchSelectAdcode = undefined;
        this.gaoMap.searchSelectName = undefined;
纪泽龙's avatar
1  
纪泽龙 committed
378
      } else {
耿迪迪's avatar
耿迪迪 committed
379
        this.gaoMap.placeSearch.search(this.keyWord);
纪泽龙's avatar
1  
纪泽龙 committed
380
        this.getDeviceInfo({ deviceName: this.keyWord });
耿迪迪's avatar
耿迪迪 committed
381
        this.gaoMap.polyLines = [];
纪泽龙's avatar
1  
纪泽龙 committed
382
        this.getPipeList({ pipeName: this.keyWord });
耿迪迪's avatar
耿迪迪 committed
383
      }
纪泽龙's avatar
纪泽龙 committed
384
    },
纪泽龙's avatar
纪泽龙 committed
385
    // 新建下拉列表关闭 window点击事件
纪泽龙's avatar
纪泽龙 committed
386 387 388
    barClose() {
      console.log("window");
      this.deviceType = false;
纪泽龙's avatar
纪泽龙 committed
389
      // 关闭当前线条的infowindow
纪泽龙's avatar
1  
纪泽龙 committed
390
      this.gaoMap.closeInfoWindow();
纪泽龙's avatar
纪泽龙 committed
391 392 393 394 395
      // 如果没有选择的时候点window 则高亮消失
      if (this.targetNum == 1 && this.iconClass == "icon-create") {
        this.targetNum = 0;
      }
      // 辅助新建重新画线
纪泽龙's avatar
纪泽龙 committed
396 397
      // if (!this.gaoMap.lineFlag || this.gaoMap.lineType != 1) return;
      console.log("利用window把lineFlagh恢复");
纪泽龙's avatar
纪泽龙 committed
398
      this.gaoMap.lineFlag = false;
纪泽龙's avatar
纪泽龙 committed
399
      // this.gaoMap.createNewLine();
纪泽龙's avatar
纪泽龙 committed
400
    },
纪泽龙's avatar
1  
纪泽龙 committed
401 402 403 404 405
    refreshMap() {
      this.iconClass = "icon-create";
      this.createValue = 0;
      this.createLabel = "新建";
      this.targetNum = 0;
耿迪迪's avatar
耿迪迪 committed
406 407
      map.clearMap();
      this.initMap();
纪泽龙's avatar
纪泽龙 committed
408 409
      this.leftBarNum=[1,2,3,4,7];
      this.keyWord="";
纪泽龙's avatar
1  
纪泽龙 committed
410
    },
纪泽龙's avatar
纪泽龙 committed
411 412 413 414 415
  },

  beforeDestroy() {
    console.log("移除window事件");
    window.removeEventListener("click", this.barClose);
纪泽龙's avatar
纪泽龙 committed
416 417
  },
};
耿迪迪's avatar
耿迪迪 committed
418
</script>
纪泽龙's avatar
纪泽龙 committed
419 420


耿迪迪's avatar
耿迪迪 committed
421
<style lang="scss" scoped>
422 423 424 425 426 427 428
// 解决地图下拉框
#container{
  position: fixed;
  top: 80px;
  bottom:0;
  width: 100%;
}
纪泽龙's avatar
纪泽龙 committed
429
// 左边的bar
430

纪泽龙's avatar
纪泽龙 committed
431 432 433
.leftBar-wrapper {
  position: fixed;
  left: 100px;
耿迪迪's avatar
耿迪迪 committed
434
  top: 150px;
纪泽龙's avatar
纪泽龙 committed
435 436 437 438 439 440 441 442 443
  .box {
    width: 180px;
    height: 48px;
    display: flex;
    background-color: #ffffff;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;
    cursor: pointer;
纪泽龙's avatar
纪泽龙 committed
444 445 446 447 448 449 450
    position: relative;
    > i {
      position: absolute;
      line-height: 48px;
      right: 20px;
      color: #fff;
    }
纪泽龙's avatar
纪泽龙 committed
451
    &:hover {
纪泽龙's avatar
纪泽龙 committed
452 453 454 455 456
      // background-color: #053b6a;
      // color: #ffffff;
      // > i {
      //   color:#fff;
      // }
纪泽龙's avatar
纪泽龙 committed
457 458 459
    }
    &:hover .left,
    &:hover .right {
纪泽龙's avatar
纪泽龙 committed
460
      // color: #ffffff;
纪泽龙's avatar
纪泽龙 committed
461 462
    }
    &.active {
纪泽龙's avatar
纪泽龙 committed
463
      // background-color: #053b6a;
纪泽龙's avatar
纪泽龙 committed
464 465
      .left,
      .right {
纪泽龙's avatar
纪泽龙 committed
466 467 468 469
        color: #053b6a;
      }
      > i {
        color: #053b6a;
纪泽龙's avatar
纪泽龙 committed
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572
      }
    }
    .left {
      color: #053b6a;
      line-height: 48px;
      margin-left: 40px;
    }
    .right {
      color: #1d1d1d;
      line-height: 48px;
      margin-left: 20px;
    }
  }
}

.btn-wrapper {
  position: fixed;
  right: 32px;
  top: 100px;
  .myBtn {
    display: flex;
    justify-content: space-between;
    .el-btn {
      width: 144px;
      height: 44px;
      background-color: #053b6a;
      margin-right: 22px;
      border-radius: 4px;
      text-align: center;
      line-height: 44px;
      color: #fff;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      justify-content: space-between;
      &.active {
        background: #31eaea;
        color: #053b6a !important;
      }
      .left {
        padding-left: 38px;
        i {
          font-size: 18px;
        }
      }
      .right {
        padding-right: 38px;
      }

      .newLetf {
        margin-left: 20px;
      }
      .newRight {
        margin-right: 20px;
        position: relative;
        i {
          position: absolute;
          right: 0px;
          top: 1px;
          font-size: 30px;
        }
      }
    }
  }
  .animate {
    .option {
      .op-btn {
        width: 144px;
        height: 38px;
        border-radius: 0;
        color: #053b6a;
        line-height: 38px;
        background-color: #fff;
        cursor: pointer;
        position: relative;
        border: 1px solid #cccccc;
        border-top: 0;
        &.active {
          background-image: url("../../../assets/images/bac1.png");
        }
        .left {
          position: relative;
          margin-right: 30px;
          margin-left: 22px;
          i {
            position: absolute;
            top: -7px;
            font-size: 20px;
          }
        }
        .right {
          display: inline-block;
          font-size: 14px;
          line-height: 38px;
        }

        &:hover {
          background-image: url("../../../assets/images/bac1.png");
        }
      }
    }
  }
}
纪泽龙's avatar
纪泽龙 committed
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591
.input-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border-radius: 0.25rem;
  width: 22rem;
  border-width: 0;
  border-radius: 0.4rem;
  box-shadow: 0 2px 6px 0 rgba(114, 124, 245, 0.5);
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 0.75rem 1.25rem;
}
耿迪迪's avatar
耿迪迪 committed
592

纪泽龙's avatar
纪泽龙 committed
593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637
.input-item {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  height: 2.2rem;
}
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0 0.5rem 0 0;
}
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  background-color: transparent;
  background-image: none;
  color: #25a5f7;
  border-color: #25a5f7;
  padding: 0.25rem 0.5rem;
  line-height: 1.5;
  border-radius: 1rem;
  -webkit-appearance: button;
  cursor: pointer;
  width: 6rem;
  margin: 0 1rem 0 2rem;
}
耿迪迪's avatar
耿迪迪 committed
638

纪泽龙's avatar
纪泽龙 committed
639 640 641 642 643 644 645 646 647
.btn:hover {
  color: #fff;
  background-color: #25a5f7;
  border-color: #25a5f7;
}
.input-text {
  width: 4rem;
  margin-right: 1rem;
}
纪泽龙's avatar
纪泽龙 committed
648
.search-input {
耿迪迪's avatar
耿迪迪 committed
649
  position: fixed;
650
  top: 100px;
耿迪迪's avatar
耿迪迪 committed
651
  left: 7%;
纪泽龙's avatar
纪泽龙 committed
652
  width: 240px;
653
}
纪泽龙's avatar
纪泽龙 committed
654
.search-but {
耿迪迪's avatar
耿迪迪 committed
655
  position: fixed;
纪泽龙's avatar
纪泽龙 committed
656
  top: 100px;
耿迪迪's avatar
耿迪迪 committed
657
  left: 23%;
纪泽龙's avatar
纪泽龙 committed
658 659 660
  width: 85px;
  color: white;
  background-color: #053b6a;
661
}
耿迪迪's avatar
耿迪迪 committed
662

纪泽龙's avatar
1  
纪泽龙 committed
663
.refresh-but {
耿迪迪's avatar
耿迪迪 committed
664
  position: fixed;
耿迪迪's avatar
耿迪迪 committed
665
  top: 100px;
耿迪迪's avatar
耿迪迪 committed
666
  left: 28%;
耿迪迪's avatar
耿迪迪 committed
667 668 669 670
  width: 85px;
  color: white;
  background-color: #053b6a;
}
耿迪迪's avatar
耿迪迪 committed
671
</style>
耿迪迪's avatar
耿迪迪 committed
672