Browse Source

地图标记数据查询

chenxr3 4 years ago
parent
commit
2211f615b8

+ 5 - 1
ebc-middle-platform/src/conf/axios.config.js

@ -37,7 +37,11 @@ const conf = {
37 37
  commonConfig: {
38 38
    baseURL: 'http://10.1.241.36:8085/mock/9/aidp/'
39 39
  },
40
  root: {}
40
  root: {
41
    test: {
42
      baseURL: 'http://localhost:8087/ipu/'
43
    }
44
  }
41 45
}
42 46
43 47
// 将优先的静态配置覆盖本配置

+ 3 - 0
ebc-middle-platform/src/conf/services.js

@ -138,5 +138,8 @@ export default {
138 138
    GET_ARTICLE_TYPE: '/list/article/type', // 查询文章种类
139 139
    GET_ARTICLE_HOT: '/list/article/hot', // 查询大家都在看
140 140
    GET_ARTICLE_REVIEW: '/list/article/review' // 查询浏览历史
141
  },
142
  mapTag: {
143
    GET_MAP_TAG: '/mapTag/queryMapTagInfo' // 查询地图标记信息
141 144
  }
142 145
}

+ 21 - 18
ebc-middle-platform/src/modules/system-management/map-mark.vue

@ -25,9 +25,9 @@
25 25
    </div>
26 26
    <div>
27 27
      <t-table :data="table.data">
28
        <t-table-column prop="markName" label="标记名称"></t-table-column>
29
        <t-table-column prop="type" label="类型"></t-table-column>
30
        <t-table-column prop="createTime" label="创建时间"></t-table-column>
28
        <t-table-column prop="MAP_TAG_NAME" label="标记名称"></t-table-column>
29
        <t-table-column prop="MAP_TAG_TYPE" label="类型"></t-table-column>
30
        <t-table-column prop="CREATE_DATE" label="创建时间"></t-table-column>
31 31
        <t-table-column
32 32
          fixed="right"
33 33
          label="操作"
@ -104,26 +104,12 @@
104 104
</template>
105 105
<script>
106 106
import './map-mark.scss'
107
import services from '../../conf/services'
107 108
export default {
108 109
  data() {
109 110
    return {
110 111
      table: {
111 112
        data: [
112
          {
113
            markName: '考勤区域',
114
            type: '考勤区域',
115
            createTime: '2020.7.10 08:21:43'
116
          },
117
          {
118
            markName: '考勤区域',
119
            type: '考勤区域',
120
            createTime: '2020.7.10 08:21:43'
121
          },
122
          {
123
            markName: '考勤区域',
124
            type: '考勤区域',
125
            createTime: '2020.7.10 08:21:43'
126
          }
127 113
        ],
128 114
        pager: {
129 115
          currentPage: 1,
@ -162,6 +148,9 @@ export default {
162 148
      polygonDrawer: null
163 149
    }
164 150
  },
151
  created() {
152
    this.getList(1, 20, '')
153
  },
165 154
  mounted() {
166 155
    this.map = new Ai.Map('modalMap', {
167 156
      ak: 'MTYwMTMMTAwMU1UWXdNVE0wTlRNMU16WTBNeU14TnpRdw__',
@ -188,6 +177,20 @@ export default {
188 177
    })
189 178
  },
190 179
  methods: {
180
    getList(pageNum, pageSize, MAP_TAG_NAME) {
181
      this.$test.post(services.mapTag.GET_MAP_TAG, {
182
        params: {
183
          pageNum: pageNum,
184
          pageSize: pageSize,
185
          MAP_TAG_NAME: MAP_TAG_NAME
186
        }
187
      }).then(res => {
188
        // 请求成功处理...
189
        this.table.data = res.data.result.list
190
      }).catch(res => {
191
        // 请求失败处理...
192
      })
193
    },
191 194
    onChange(value) {
192 195
      console.log('date change:' + value)
193 196
    },