瀏覽代碼

增添海图测试

liuchang 4 年之前
父節點
當前提交
1cfd1211a0

+ 1 - 0
ebc-middle-platform/src/index.html

@ -14,6 +14,7 @@
14 14
<div class="app" id="app"></div>
15 15
<script src="/static/conf/app-conf.js"></script>
16 16
<script src="/static/conf/defaultConfig.js"></script>
17
<script src="http://192.168.74.189:9999/gisapi/getscript"></script>
17 18
<!-- start:js -->
18 19
<script src="/dist/vendor-dev/base-bbc4a50d.js"></script>
19 20
<script src="/hmr/main/main.js"></script>

+ 23 - 0
ebc-middle-platform/src/modules/orientation/orientation.scss

@ -0,0 +1,23 @@
1
.orientation-container{
2
    width: 92.5%;
3
    margin: 10px;
4
    margin-left: 40px;
5
    margin-right: 40px;
6
    box-sizing: border-box;
7
    .search-container{
8
      width: 50%;
9
      margin-bottom: 10px;
10
    }
11
}
12
13
.demo__slipbox .slipbox__header{
14
    text-align: left;
15
    padding: 16px;
16
  }
17
  .demo__slipbox .slipbox__header span{
18
    margin-left: 15px;
19
  }
20
  .demo__slipbox .slipbox__body{
21
    padding: 20px 20px 100px;
22
    border-top: 1px solid #ccc;
23
  }

+ 134 - 1
ebc-middle-platform/src/modules/orientation/orientation.vue

@ -1,3 +1,136 @@
1 1
<template>
2
  <div>人员定位</div>
2
  <div class="orientation-container">
3
    <div class="search-container">
4
      <t-row :gutter="16">
5
        <t-col>
6
          <t-button-group>
7
            <t-button color="primary">海图</t-button>
8
            <t-button>卫星</t-button>
9
          </t-button-group>
10
        </t-col>
11
        <t-col>
12
          <t-input
13
            icon="account-multiple"
14
            icon-placement="right"
15
            placeholder="请输入姓名或终端编号..."
16
            style="width: 220px"
17
          ></t-input>
18
        </t-col>
19
        <t-col>
20
          <t-button color="info" icon="delete-outline">轨迹</t-button>
21
        </t-col>
22
        <t-col></t-col>
23
      </t-row>
24
    </div>
25
    <div id="div1">人员定位</div>
26
    <div>
27
      <t-slipbox :visibled.sync="visible" :styles="styls" direction="left" class="demo__slipbox" >
28
        <template slot="header">
29
          <t-button
30
            type="outline-secondary"
31
            size="sm"
32
            icon="format-align-left"
33
            @click.native="hideSlip"
34
          ></t-button>
35
          <span>自定义头部</span>
36
        </template>
37
        <template>
38
          <t-form :model="formItem">
39
            <t-form-item label="输入框">
40
              <t-input v-model="formItem.input" placeholder="请输入"></t-input>
41
            </t-form-item>
42
            <t-form-item label="选择器">
43
              <t-select v-model="formItem.select" placeholder="请选择">
44
                <t-option value="beijing">北京市</t-option>
45
                <t-option value="shanghai">上海市</t-option>
46
                <t-option value="shenzhen">深圳市</t-option>
47
              </t-select>
48
            </t-form-item>
49
            <t-form-item label="日期控件">
50
              <div class="row">
51
                <div class="col-12">
52
                  <t-form-item>
53
                    <t-date-picker
54
                      v-model="formItem.rangeDate"
55
                      type="dateTimeRange"
56
                      placeholder="请选择日期时间"
57
                    ></t-date-picker>
58
                  </t-form-item>
59
                </div>
60
                <div class="col-12">
61
                  <t-form-item>
62
                    <t-date-picker v-model="formItem.singleYearVal" type="year" placeholder="请选择年份"></t-date-picker>
63
                  </t-form-item>
64
                </div>
65
              </div>
66
            </t-form-item>
67
            <t-form-item label="性别" prop="gender">
68
              <t-radio-group v-model="formItem.gender">
69
                <t-radio label="male">男</t-radio>
70
                <t-radio label="female">女</t-radio>
71
              </t-radio-group>
72
            </t-form-item>
73
            <t-form-item label="爱好" prop="interest">
74
              <t-checkbox-group v-model="formItem.interest">
75
                <t-checkbox label="吃饭"></t-checkbox>
76
                <t-checkbox label="睡觉"></t-checkbox>
77
                <t-checkbox label="跑步"></t-checkbox>
78
                <t-checkbox label="看电影"></t-checkbox>
79
              </t-checkbox-group>
80
            </t-form-item>
81
            <t-form-item>
82
              <t-button type="primary">提交</t-button>
83
              <t-button class="ml-2">取消</t-button>
84
            </t-form-item>
85
          </t-form>
86
        </template>
87
      </t-slipbox>
88
      <div class="oparate__btn--group">
89
        <t-button type="primary" @click.native="showSlip">点击显示滑出块</t-button>
90
        <small>(从右侧出现)</small>
91
      </div>
92
    </div>
93
  </div>
3 94
</template>
95
96
<script>
97
import "./orientation.scss";
98
export default {
99
  data() {
100
    return {
101
      map: null,
102
      visible: true,
103
      shadow: false,
104
      styls: { width: "400px", height:"80%",margin:"80px 0 0 0",},
105
      formItem: {
106
        input: "",
107
        select: "",
108
        rangeDate: [],
109
        singleYearVal: "",
110
        interest: [],
111
        gender: "",
112
      },
113
    };
114
  },
115
  mounted() {
116
    this.initMap("");
117
  },
118
  methods: {
119
    initMap(value) {
120
      this.map = new Ai.Map("div1", {
121
        ak: "MTYwMDcMTAwMU1UWXdNRGMxTmpnME1USXpOU014TnpRdw__",
122
      });
123
      var maplayer = null;
124
      maplayer = Ai.TileLayer("http://192.168.74.189:9999/tdtimg");
125
      this.map.addLayer(maplayer);
126
      this.map.setView([39.915599, 116.406568], 5); //地图定位
127
    },
128
     showSlip() {
129
      this.visible = true;
130
    },
131
    hideSlip() {
132
      this.visible = false;
133
    },
134
  },
135
};
136
</script>