Quellcode durchsuchen

Merge remote-tracking branch 'origin/master'

wangchao vor 4 Jahren
Ursprung
Commit
1d225203e0

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

@ -151,9 +151,11 @@ export default {
151 151
    UPD_MAP_TAG: '/mapTag/modifyMapTagInfo' // 查询地图标记信息用作修改
152 152
  },
153 153
  equipment: {
154
    EQUIPMENT_TYPE: '/equipment/loadAllResourceToolType', // 获取所有设备类型
154 155
    GET_ALL_EQUIPMENT: '/equipment/queryAllEquipmentInfo', // 查询所有设备信息
155 156
    GET_EQUIPMENT: '/equipment/queryEquipmentInfo', // 查询设备管理信息
156
    ADD_EQUIPMENT: '/equipment/modifyEquipmentInfo', // 新增/修改设备管理信息
157
    CREATE_EQUIPMENT: '/equipment/createEquipmentInfo', // 新增设备管理信息
158
    UPDATE_EQUIPMENT: '/equipment/modifyEquipmentInfo',
157 159
    DEL_EQUIPMENT: '/equipment/deleteEquipmentInfo', // 删除设备管理信息
158 160
    REPETITION_EQUIPMENT: '/equipment/verifyEquipmentInfoRepetition', // 删除设备管理信息
159 161
    GET_ONE_EQUIPMENT: '/equipment/queryOneEquipmentInfo' // 查询单个设备信息

+ 10 - 1
ebc-middle-platform/src/modules/system-management/equipment-management.scss

@ -27,7 +27,7 @@
27 27
        }
28 28
      }
29 29
      .label{
30
        min-width: 30px;
30
        min-width: 70px;
31 31
      }
32 32
      .btns button{
33 33
        margin: 0 2px;
@ -37,6 +37,15 @@
37 37
  .table-pager{
38 38
    margin: 20px auto;
39 39
  }
40
  .demo-loading-container{
41
    display: inline-block;
42
    position: relative;
43
    border: 1px solid #eee;
44
  }
45
}
46
.loading--fix{
47
  color: #000;
48
  background-color: rgba(255, 255, 255, 0.8);
40 49
}
41 50
.submit-button{
42 51
  background-color: #147BD1;

+ 263 - 233
ebc-middle-platform/src/modules/system-management/equipment-management.vue

@ -6,10 +6,7 @@
6 6
          <div class="label">设备类型:</div>
7 7
          <div class="input-rule">
8 8
            <t-select v-model="queryCondition.equipmentType" style="width: 200px" clearable placeholder="请选择...">
9
              <t-option value="001">船舶</t-option>
10
              <t-option value="002">风机</t-option>
11
              <t-option value="003">升压站</t-option>
12
              <t-option value="004">测风塔</t-option>
9
              <t-option v-for="(item,index) in typeList" :value="item.resourceToolType" :key="index+'type'">{{ item.name }}</t-option>
13 10
            </t-select>
14 11
          </div>
15 12
        </div>
@ -29,7 +26,7 @@
29 26
          <t-button color="success" icon="search-outline" @click="onSearch">查询</t-button>
30 27
          <t-button color="secondary" icon="loading" class="reset-btn" @click="onReset">重置</t-button>
31 28
          <t-button color="secondary" icon="upload-outline" @click="toExport">导出至Excel</t-button>
32
          <t-button color="secondary" icon="delete-outline" @click="toExport">删除</t-button>
29
          <t-button color="secondary" icon="delete-outline" @click="batchDelete">删除</t-button>
33 30
        </div>
34 31
      </div>
35 32
      <div class="search-ctn" style="justify-content: flex-end;">
@ -41,32 +38,19 @@
41 38
      </div>
42 39
    </div>
43 40
    <div>
44
      <t-table :data="table.data">
41
      <t-table :data="table.data" :loading="tableLoading" @selection-change="handleSelectionChange">
45 42
        <t-table-column type="selection" width="70"></t-table-column>
46
        <t-table-column prop="FACILITY_NAME" label="设备名称"></t-table-column>
47
        <t-table-column prop="FACILITY_CODE" label="设备编号"></t-table-column>
48
        <t-table-column prop="FACILITY_TYPE" label="设备类型">
49
          <template slot-scope="scope">
50
            <div v-if="scope.row.FACILITY_TYPE==1">
51
              <span >船舶</span>
52
            </div>
53
            <div v-if="scope.row.FACILITY_TYPE==2">
54
              <span>风机</span>
55
            </div>
56
            <div v-if="scope.row.FACILITY_TYPE==3">
57
              <span>升压站</span>
58
            </div>
59
            <div v-if="scope.row.FACILITY_TYPE==4">
60
              <span>测风塔</span>
61
            </div>
62
          </template>
43
        <t-table-column prop="resourceToolName" label="设备名称"></t-table-column>
44
        <t-table-column prop="resourceToolCode" label="设备编号"></t-table-column>
45
        <t-table-column :formatter="type_formatter" prop="resourceToolType" label="设备类型">
63 46
        </t-table-column>
64
        <t-table-column :formatter="longLatFormatter" prop="LONGITUDE" label="经度"></t-table-column>
65
        <t-table-column :formatter="longLatFormatter" prop="LATITUDE" label="度"></t-table-column>
47
        <t-table-column prop="radius" label="半径"></t-table-column>
48
        <t-table-column prop="longitude" label="经度"></t-table-column>
49
        <t-table-column prop="latitude" label="纬度"></t-table-column>
66 50
        <t-table-column
67
            fixed="right"
68
            label="操作"
69
            width="120"
51
          fixed="right"
52
          label="操作"
53
          width="120"
70 54
        >
71 55
          <template slot-scope="scope">
72 56
            <a href="javascript:void(0)" size="sm" @click="handleClick(scope.row)">编辑</a>
@ -84,11 +68,11 @@
84 68
               @on-change="onPagerChange">
85 69
      </t-pager>
86 70
    </div>
87
    <t-modal :visibled.sync="modal":mask-closable="false" title="新增设备" >
71
    <t-modal :visibled.sync="modal" :mask-closable="false" title="新增设备" >
88 72
      <t-form ref="formValidate" :model="formValidate" :rules="ruleValidate" :label-width="80" label-position="left">
89 73
        <t-form-item label="设备类型" prop="type">
90
          <t-select v-model="formValidate.type" placeholder="请选择设备类型" clearable @change="typeChange(1)">
91
            <t-option v-for="(item, index) in typeList" :value="item.value" :key="index">{{ item.label }}</t-option>
74
          <t-select v-model="formValidate.type" placeholder="请选择设备类型" clearable>
75
            <t-option v-for="(item,index) in typeList" :value="item.resourceToolType" :key="index+'type'">{{ item.name }}</t-option>
92 76
          </t-select>
93 77
        </t-form-item>
94 78
        <t-form-item label="设备名称" prop="name">
@ -97,14 +81,17 @@
97 81
        <t-form-item label="设备编号" prop="number">
98 82
          <t-input v-model="formValidate.number" placeholder="请输入字母、数字、中划线、下划线、#"></t-input>
99 83
        </t-form-item>
100
        <div v-if="!lngLatDisabled">
84
        <t-form-item label="半径" prop="radius">
85
          <t-input v-model="formValidate.radius" placeholder="请输入设备名称"></t-input>
86
        </t-form-item>
87
        <div v-if="formValidate.type!=='001'">
101 88
          <t-form-item label="经度" prop="lng">
102
            <t-format-input v-model="formValidate.lng" numeral numeral-decimal-scale=8 placeholder="请输入数字"></t-format-input>
89
            <t-format-input v-model="formValidate.lng" :numeral-decimal-scale="8" numeral placeholder="请输入数字"></t-format-input>
103 90
          </t-form-item>
104 91
        </div>
105
        <div v-if="!lngLatDisabled">
92
        <div v-if="formValidate.type!=='001'">
106 93
          <t-form-item label="纬度" prop="lat">
107
            <t-format-input v-model="formValidate.lat" numeral numeral-decimal-scale=8 placeholder="请输入数字"></t-format-input>
94
            <t-format-input v-model="formValidate.lat" :numeral-decimal-scale="8" numeral placeholder="请输入数字"></t-format-input>
108 95
          </t-form-item>
109 96
        </div>
110 97
      </t-form>
@ -113,27 +100,28 @@
113 100
        <t-button class="submit-button" @click="submit">保存</t-button>
114 101
      </div>
115 102
    </t-modal>
116
    <t-modal :visibled.sync="updateModal":mask-closable="false" title="编辑设备" >
117
      <t-form ref="updateRow" :model="updateRow" :rules="updateRowValidate" :label-width="80" label-position="left">
118
        <t-form-item label="设备类型" prop="FACILITY_TYPE">
119
          <t-select v-model="updateRow.FACILITY_TYPE" placeholder="请选择设备类型" clearable @change="typeChange(2)">
120
            <t-option v-for="(item, index) in typeList" :value="item.value" :key="index">{{ item.label }}</t-option>
121
          </t-select>
103
    <t-modal :visibled.sync="updateModal" :mask-closable="false" title="编辑设备" >
104
      <t-form ref="updateRow" :model="updateRow" :rules="ruleUpdateValidate" :label-width="80" label-position="left">
105
        <t-form-item label="设备类型" prop="resourceToolType">
106
          {{ updateRow.name }}
122 107
        </t-form-item>
123
        <t-form-item label="设备名称" prop="FACILITY_NAME">
124
          <t-input v-model="updateRow.FACILITY_NAME" placeholder="请输入设备名称"></t-input>
108
        <t-form-item label="设备编号" prop="resourceToolCode">
109
          {{ updateRow.resourceToolCode }}
125 110
        </t-form-item>
126
        <t-form-item label="设备编号" prop="FACILITY_CODE">
127
          {{ updateRow.FACILITY_CODE }}
111
        <t-form-item label="设备名称" prop="resourceToolName">
112
          <t-input v-model="updateRow.resourceToolName" placeholder="请输入设备名称"></t-input>
128 113
        </t-form-item>
129
        <div v-if="!lngLatDisabled">
130
          <t-form-item label="经度" prop="LONGITUDE">
131
            <t-format-input v-model="updateRow.LONGITUDE" numeral numeral-decimal-scale=8 placeholder="请输入数字"></t-format-input>
114
        <t-form-item label="半径" prop="radius">
115
          <t-input v-model="updateRow.radius" numeral placeholder="请输入设备半径"></t-input>
116
        </t-form-item>
117
        <div v-if="updateRow.resourceToolType!=='001'">
118
          <t-form-item label="经度" prop="longitude">
119
            <t-format-input v-model="updateRow.longitude" :numeral-decimal-scale="8" numeral placeholder="请输入数字"></t-format-input>
132 120
          </t-form-item>
133 121
        </div>
134
        <div v-if="!lngLatDisabled">
135
          <t-form-item label="纬度" prop="LATITUDE">
136
            <t-format-input v-model="updateRow.LATITUDE" numeral numeral-decimal-scale=8 placeholder="请输入数字"></t-format-input>
122
        <div v-if="updateRow.resourceToolType!=='001'">
123
          <t-form-item label="纬度" prop="latitude">
124
            <t-format-input v-model="updateRow.latitude" :numeral-decimal-scale="8" numeral placeholder="请输入数字"></t-format-input>
137 125
          </t-form-item>
138 126
        </div>
139 127
      </t-form>
@ -142,6 +130,7 @@
142 130
        <t-button class="submit-button" @click="updateSubmit">保存</t-button>
143 131
      </div>
144 132
    </t-modal>
133
    <t-loading v-model="fullLoading" fullscreen tip="加载中...."></t-loading>
145 134
  </div>
146 135
</template>
147 136
<script>
@ -150,31 +139,7 @@ import services from '../../conf/services'
150 139
export default {
151 140
  data() {
152 141
    return {
153
      // currentLoading: false,
154
      // searchResult: [],
155
      // demoDataA: [],
156
      // currentLoading_n: false,
157
      // searchResult_n: [],
158
      // demoDataA_n: [],
159
      lngLatDisabled: false,
160
      typeList: [
161
        {
162
          value: '001',
163
          label: '船舶'
164
        },
165
        {
166
          value: '002',
167
          label: '风机'
168
        },
169
        {
170
          value: '003',
171
          label: '升压站'
172
        },
173
        {
174
          value: '004',
175
          label: '测风塔'
176
        }
177
      ],
142
      typeList: [],
178 143
      table: {
179 144
        data: [
180 145
        ],
@ -184,25 +149,28 @@ export default {
184 149
          total: 0
185 150
        }
186 151
      },
152
      selection: [],
153
      tableLoading: true,
154
      fullLoading: false,
187 155
      queryCondition: {
188
        type: '',
189
        equipmentType: '',
156
        equipmentType: null,
190 157
        equipmentName: '',
191 158
        equipmentNumber: ''
192 159
      },
193
      rangeDate: '',
194 160
      modal: false,
195 161
      updateModal: false,
196 162
      updateRow: {
197
        FACILITY_TYPE: '',
198
        FACILITY_NAME: '',
199
        FACILITY_CODE: '',
200
        LONGITUDE: '',
201
        LATITUDE: ''
163
        resourceToolType: '',
164
        resourceToolName: '',
165
        radius: null,
166
        resourceToolCode: '',
167
        longitude: '',
168
        latitude: ''
202 169
      },
203 170
      formValidate: {
204 171
        type: '',
205 172
        name: '',
173
        radius: null,
206 174
        number: '',
207 175
        lng: '',
208 176
        lat: ''
@ -225,9 +193,14 @@ export default {
225 193
            t: this,
226 194
            validator: async function(rule, value, callback) {
227 195
              // TODO 判断编号重复
228
              if (await rule.t.checkReptition(1, value)) {
196
              var flag = await rule.t.checkReptition({
197
                resourceToolName: value
198
              })
199
              console.log(flag)
200
              if (flag) {
201
                console.log('编号重复')
229 202
                callback(rule.message)
230
              }else {
203
              } else {
231 204
                return true
232 205
              }
233 206
            }
@ -248,7 +221,10 @@ export default {
248 221
                callback(rule.message)
249 222
              } else {
250 223
                // TODO 判断编号重复
251
                var y = await rule.t.checkReptition(2, value)
224
                var y = await rule.t.checkReptition({
225
                  resourceToolCode: value
226
                })
227
                console.log(y)
252 228
                if (y) {
253 229
                  rule.message = '编号重复'
254 230
                  callback(rule.message)
@ -259,6 +235,19 @@ export default {
259 235
            }
260 236
          }
261 237
        ],
238
        radius: [
239
          {
240
            message: '请输入数字',
241
            trigger: 'blur',
242
            validator: function(rule, value, callback) {
243
              if (isNaN(value)) {
244
                callback(rule.message)
245
              } else {
246
                return true
247
              }
248
            }
249
          }
250
        ],
262 251
        lng: [
263 252
          {
264 253
            required: true,
@ -280,7 +269,7 @@ export default {
280 269
        lat: [
281 270
          {
282 271
            required: true,
283
            message: '度不能为空',
272
            message: '度不能为空',
284 273
            trigger: 'blur'
285 274
          },
286 275
          {
@ -296,26 +285,34 @@ export default {
296 285
          }
297 286
        ]
298 287
      },
299
      updateRowValidate: {
300
        FACILITY_TYPE: [{
301
          required: true,
302
          message: '设备类型不能为空',
303
          trigger: 'change'
304
        }],
305
        FACILITY_NAME: [
288
      ruleUpdateValidate: {
289
        resourceToolName: [
306 290
          {
307 291
            required: true,
308 292
            message: '设备名称不能为空',
309
            trigger: 'blur'
293
            trigger: 'blur',
294
            validator: (rule, value, callback) => {
295
              console.log(value)
296
              if (value) {
297
                callback()
298
              } else {
299
                callback(rule.message)
300
              }
301
            }
310 302
          },
311 303
          {
312 304
            message: '设备名称重复',
313 305
            trigger: 'blur',
314 306
            t: this,
315 307
            validator: async function(rule, value, callback) {
308
              console.log(value)
316 309
              // TODO 判断编号重复
317
              var x = await rule.t.checkReptition(3, value)
318
              if (x) {
310
              var flag = await rule.t.checkReptition({
311
                resourceToolName: value
312
              })
313
              console.log(flag)
314
              if (flag) {
315
                console.log('编号重复')
319 316
                callback(rule.message)
320 317
              } else {
321 318
                return true
@ -323,7 +320,20 @@ export default {
323 320
            }
324 321
          }
325 322
        ],
326
        LONGITUDE: [
323
        radius: [
324
          {
325
            message: '请输入数字',
326
            trigger: 'blur',
327
            validator: function(rule, value, callback) {
328
              if (isNaN(value)) {
329
                callback(rule.message)
330
              } else {
331
                return true
332
              }
333
            }
334
          }
335
        ],
336
        longitude: [
327 337
          {
328 338
            required: true,
329 339
            message: '经度不能为空',
@ -341,10 +351,10 @@ export default {
341 351
            }
342 352
          }
343 353
        ],
344
        LATITUDE: [
354
        latitude: [
345 355
          {
346 356
            required: true,
347
            message: '度不能为空',
357
            message: '度不能为空',
348 358
            trigger: 'blur'
349 359
          },
350 360
          {
@ -363,84 +373,98 @@ export default {
363 373
    }
364 374
  },
365 375
  mounted() {
366
    this.getList()
376
    this.getType().then(() => {
377
      this.getList()
378
    })
367 379
  },
368 380
  methods: {
381
    async getType() {
382
      await this.$test.post(services.equipment.EQUIPMENT_TYPE, {}
383
      ).then(res => {
384
        // 请求成功处理...
385
        if (res.data.success) {
386
          this.typeList = res.data.data
387
        }
388
      }).catch(res => {
389
        // 请求失败处理...
390
      })
391
    },
369 392
    getList() {
370
      var params = new FormData()
371
      params.append('data', JSON.stringify({
372
        pageNum: this.table.pager.currentPage,
393
      this.tableLoading = true
394
      this.$test.post(services.equipment.GET_EQUIPMENT, {
395
        pageNumber: this.table.pager.currentPage,
373 396
        pageSize: this.table.pager.size,
374
        FACILITY_CODE: this.queryCondition.equipmentNumber,
375
        FACILITY_TYPE: this.queryCondition.equipmentType,
376
        FACILITY_NAME: this.queryCondition.equipmentName
377
      }))
378
      this.$test.post(services.equipment.GET_EQUIPMENT, params
397
        data: {
398
          resourceToolType: this.queryCondition.equipmentType,
399
          resourceToolNameAsLike: this.queryCondition.equipmentName,
400
          resourceToolCode: this.queryCondition.equipmentNumber
401
        }
402
      }
379 403
      ).then(res => {
380 404
        // 请求成功处理...
381
        this.table.data = res.data.result.list
382
        this.table.pager.total = res.data.result.total
405
        console.log(res)
406
        this.tableLoading = false
407
        if (res.data.success) {
408
          this.table.data = res.data.data.data
409
          this.table.pager.total = res.data.data.total
410
        }
383 411
      }).catch(res => {
384 412
        // 请求失败处理...
385 413
      })
386 414
    },
387
    onChange(value) {
388
      console.log('date change:' + value)
415
    type_formatter(row, column) {
416
      var arr = this.typeList.filter((item) => {
417
        return item.resourceToolType === row.resourceToolType
418
      })
419
      if (arr[0]) {
420
        return arr[0].name
421
      }
389 422
    },
390 423
    onReset() {
391
      this.queryCondition.equipmentType = ''
392
      this.queryCondition.equipmentName = ''
393
      this.queryCondition.equipmentNumber = ''
394
      this.searchResult = [
395
        {
396
          FACILITY_CODE: '',
397
          FACILITY_ID: '',
398
          FACILITY_NAME: '',
399
          FACILITY_TYPE: '',
400
          LATITUDE: '',
401
          LONGITUDE: ''
402
        }
403
      ]
404
      this.searchResult_n = [
405
        {
406
          FACILITY_CODE: '',
407
          FACILITY_ID: '',
408
          FACILITY_NAME: '',
409
          FACILITY_TYPE: '',
410
          LATITUDE: '',
411
          LONGITUDE: ''
412
        }
413
      ]
424
      this.queryCondition = {
425
        equipmentType: null,
426
        equipmentName: '',
427
        equipmentNumber: ''
428
      }
414 429
      this.onSearch()
415 430
    },
416 431
    onSearch() {
432
      this.table = {
433
        data: [
434
        ],
435
        pager: {
436
          currentPage: 1,
437
          size: 10,
438
          total: 0
439
        }
440
      }
417 441
      this.getList()
418 442
    },
419 443
    toExport() {
420 444
421 445
    },
422
    checkReptition(type, value) {
423
      var that = this
424
      return new Promise(function(resolve) {
425
        var params = new FormData()
426
        if (type === 1) {
427
          params.append('data', JSON.stringify({
428
            FACILITY_NAME: value
429
          }))
430
        } else if (type === 2) {
431
          params.append('data', JSON.stringify({
432
            FACILITY_CODE: value
433
          }))
434
        } else {
435
          params.append('data', JSON.stringify({
436
            FACILITY_NAME: value,
437
            FACILITY_ID: that.updateRow.FACILITY_ID
438
          }))
446
    checkReptition(data) {
447
      return new Promise((resolve) => {
448
        this.$test.post(services.equipment.GET_EQUIPMENT, {
449
          pageNumber: 1,
450
          pageSize: 10,
451
          data: data
439 452
        }
440
        that.$test.post(services.equipment.REPETITION_EQUIPMENT, params
441 453
        ).then(res => {
442
          console.log(1)
443
          resolve(res.data.result)
454
        // 请求成功处理...
455
          console.log(res)
456
          if (res.data.success) {
457
            if (res.data.data.totalPage > 0 && res.data.data.data[0].resourceToolId === this.updateRow.resourceToolId) {
458
              resolve(false)
459
            } else {
460
              resolve(res.data.data.totalPage > 0)
461
            }
462
          } else {
463
            resolve(false)
464
          }
465
        }).catch(res => {
466
        // 请求失败处理...
467
          resolve(false)
444 468
        })
445 469
      })
446 470
    },
@ -453,37 +477,46 @@ export default {
453 477
      this.getList()
454 478
    },
455 479
    cancel() {
456
      this.$refs['formValidate'].resetFields()
457
      this.$refs['updateRow'].resetFields()
458 480
      this.modal = false
459 481
      this.updateModal = false
460
      this.formValidate.type = ''
461
      this.formValidate.name = ''
462
      this.formValidate.number = ''
463
      this.formValidate.lng = ''
464
      this.formValidate.lat = ''
465
      this.table.pager.currentPage = 1
482
      this.formValidate = {
483
        type: '',
484
        name: '',
485
        radius: null,
486
        number: '',
487
        lng: '',
488
        lat: ''
489
      }
466 490
    },
467 491
    submit() {
468 492
      this.$refs.formValidate.validate(valid => {
469 493
        console.log(valid)
470 494
        if (valid) {
471
          var params = new FormData()
472
          params.append('data', JSON.stringify({
473
            params: {
474
              FACILITY_TYPE: this.formValidate.type,
475
              FACILITY_NAME: this.formValidate.name,
476
              FACILITY_CODE: this.formValidate.number,
477
              LONGITUDE: this.formValidate.lng,
478
              LATITUDE: this.formValidate.lat
479
            }
480
          }))
481
          this.$test.post(services.equipment.ADD_EQUIPMENT, params
495
          this.fullLoading = true
496
          this.$test.post(services.equipment.CREATE_EQUIPMENT, {data: {
497
            latitude: this.formValidate.lat ? this.formValidate.lat : null,
498
            longitude: this.formValidate.lng ? this.formValidate.lng : null,
499
            radius: this.formValidate.radius ? this.formValidate.radius : null,
500
            resourceToolCode: this.formValidate.number,
501
            resourceToolName: this.formValidate.name,
502
            resourceToolType: this.formValidate.type
503
          }}
482 504
          ).then(res => {
483 505
            // 请求成功处理...
484
            this.$Message.success('提交成功!')
485
            this.getList()
486
            this.cancel()
506
            this.fullLoading = false
507
            if (res.data.success) {
508
              this.$Message.success('提交成功!')
509
              this.getList()
510
              this.modal = false
511
              this.formValidate = {
512
                type: '',
513
                name: '',
514
                radius: null,
515
                number: '',
516
                lng: '',
517
                lat: ''
518
              }
519
            }
487 520
          }).catch(res => {
488 521
            // 请求失败处理...
489 522
          })
@ -496,22 +529,19 @@ export default {
496 529
      this.$refs.updateRow.validate(valid => {
497 530
        console.log(valid)
498 531
        if (valid) {
499
          var params = new FormData()
500
          params.append('data', JSON.stringify({
501
            params: {
502
              FACILITY_ID: this.updateRow.FACILITY_ID,
503
              FACILITY_TYPE: this.updateRow.FACILITY_TYPE,
504
              FACILITY_NAME: this.updateRow.FACILITY_NAME,
505
              LONGITUDE: this.updateRow.LONGITUDE,
506
              LATITUDE: this.updateRow.LATITUDE
507
            }
508
          }))
509
          this.$test.post(services.equipment.ADD_EQUIPMENT, params
532
          this.fullLoading = true
533
          console.log(this.updateRow)
534
          this.$test.post(services.equipment.UPDATE_EQUIPMENT, {
535
            data: this.updateRow
536
          }
510 537
          ).then(res => {
511 538
            // 请求成功处理...
512
            this.$Message.success('提交成功!')
513
            this.getList()
514
            this.cancel()
539
            this.fullLoading = false
540
            if (res.data.success) {
541
              this.$Message.success('提交成功!')
542
              this.getList()
543
              this.updateModal = false
544
            }
515 545
          }).catch(res => {
516 546
            // 请求失败处理...
517 547
          })
@ -521,63 +551,63 @@ export default {
521 551
      })
522 552
    },
523 553
    addEquipment() {
524
      this.lngLatDisabled = false
525 554
      this.modal = true
526 555
    },
527 556
    handleClick(row) {
528
      var params = new FormData()
529
      params.append('data', JSON.stringify({
530
        FACILITY_ID: row.FACILITY_ID
531
      }))
532
      this.$test.post(services.equipment.GET_ONE_EQUIPMENT, params
533
      ).then(res => {
534
        // 请求成功处理...
535
        this.updateModal = true
536
        this.updateRow = res.data.resultData
537
        this.typeChange(2)
538
      }).catch(res => {
539
        // 请求失败处理...
557
      this.updateModal = true
558
      console.log(row)
559
      var name
560
      this.typeList.forEach(element => {
561
        if (element.resourceToolType === row.resourceToolType) {
562
          name = element.name
563
        }
540 564
      })
565
      row.name = name
566
      this.updateRow = row
541 567
    },
542 568
    remove(row) {
543
      let that = this
544
      let confirm = {
569
      this.delete([row.resourceToolId])
570
    },
571
    delete(arr) {
572
      this.$Confirm.confirm({
545 573
        title: '请确认',
546 574
        content: '删除后不可恢复,确认删除吗?',
547
        ok: function () {
548
          var params = new FormData()
549
          params.append('data', JSON.stringify({
550
            params: {
551
              FACILITY_ID: row.FACILITY_ID
552
            }
553
          }))
554
          this.$test.post(services.equipment.DEL_EQUIPMENT, params
575
        ok: () => {
576
          this.fullLoading = true
577
          this.$test.post(services.equipment.DEL_EQUIPMENT, {
578
            data: arr
579
          }
555 580
          ).then(res => {
556 581
            // 请求成功处理...
557
            that.$Message.success('操作成功')
558
            that.getList()
582
            this.fullLoading = false
583
            if (res.data.success) {
584
              this.$Message.success('操作成功')
585
              this.table.pager.currentPage = 1
586
              this.getList()
587
            }
559 588
          }).catch(res => {
560 589
            // 请求失败处理...
561 590
          })
562 591
        }
563
      }
564
      this.$Confirm.confirm(confirm)
592
      })
565 593
    },
566
    longLatFormatter(cjsj, column, cellValue, index) {
567
      if (cjsj.FACILITY_TYPE==1) {
568
        return '--'
569
      }
570
      return cellValue
594
    handleSelectionChange(val) {
595
      var arr = []
596
      val.forEach(element => {
597
        arr.push(element.resourceToolId)
598
      })
599
      this.selection = arr
571 600
    },
572
    typeChange(t) {
573
      var value
574
      if (t === 1) {
575
        value = this.formValidate.type
576
      } else {
577
        value = this.updateRow.FACILITY_TYPE
578
      }
579
      this.lngLatDisabled = (value == 1)
601
    batchDelete() {
602
      console.log(this.selection)
603
      this.delete(this.selection)
580 604
    }
605
    // longLatFormatter(row, column, cellValue, index) {
606
    //   if (cjsj.FACILITY_TYPE === '001') {
607
    //     return '--'
608
    //   }
609
    //   return cellValue
610
    // },
581 611
  }
582 612
}
583 613
</script>

+ 34 - 4
location-rescue-service/.gitignore

@ -1,7 +1,37 @@
1
/bin/
1
### Java template
2
# Compiled class file
3
*.class
4
5
# Log file
6
*.log
7
8
# BlueJ files
9
*.ctxt
10
11
# Mobile Tools for Java (J2ME)
12
.mtj.tmp/
13
14
# Package Files #
15
*.jar
16
*.war
17
*.ear
18
*.zip
19
*.tar.gz
20
*.rar
21
22
#eclipse
2 23
/.settings
3
/target/
4 24
/.classpath
5
/.idea
6
/location-rescue-service.iml
7 25
/.project
26
27
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
28
hs_err_pid*
29
30
*.iml
31
.idea
32
target/
33
logs/
34
.DS_Store
35
36
37

+ 0 - 185
location-rescue-service/location-rescue-service.iml

@ -1,185 +0,0 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" version="4">
3
  <component name="FacetManager">
4
    <facet type="jpa" name="JPA">
5
      <configuration>
6
        <setting name="validation-enabled" value="true" />
7
        <setting name="provider-name" value="Hibernate" />
8
        <datasource-mapping>
9
          <factory-entry name="Entities" />
10
          <factory-entry name="entityManagerFactory" />
11
        </datasource-mapping>
12
        <naming-strategy-map />
13
      </configuration>
14
    </facet>
15
    <facet type="Spring" name="Spring">
16
      <configuration />
17
    </facet>
18
    <facet type="web" name="Web">
19
      <configuration>
20
        <webroots />
21
      </configuration>
22
    </facet>
23
  </component>
24
  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
25
    <output url="file://$MODULE_DIR$/target/classes" />
26
    <output-test url="file://$MODULE_DIR$/target/test-classes" />
27
    <content url="file://$MODULE_DIR$">
28
      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
29
      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
30
      <excludeFolder url="file://$MODULE_DIR$/target" />
31
    </content>
32
    <orderEntry type="inheritedJdk" />
33
    <orderEntry type="sourceFolder" forTests="false" />
34
    <orderEntry type="library" name="Maven: com.github.pagehelper:pagehelper:5.0.3" level="project" />
35
    <orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:1.0" level="project" />
36
    <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.11" level="project" />
37
    <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.8" level="project" />
38
    <orderEntry type="library" name="Maven: commons-codec:commons-codec:1.11" level="project" />
39
    <orderEntry type="library" name="Maven: org.apache.httpcomponents:httpmime:4.5.8" level="project" />
40
    <orderEntry type="library" name="Maven: com.ai.bss:work-tool-service-api:2.1-SNAPSHOT" level="project" />
41
    <orderEntry type="library" name="Maven: com.ai.bss:work-tool-model:2.1-SNAPSHOT" level="project" />
42
    <orderEntry type="library" name="Maven: com.ai.abc:persistence-mysql8:2.1-SNAPSHOT" level="project" />
43
    <orderEntry type="library" name="Maven: com.ai.abc:persistence-api:2.1-SNAPSHOT" level="project" />
44
    <orderEntry type="library" name="Maven: com.ai.abc:core:2.1-SNAPSHOT" level="project" />
45
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-jpa:2.1.5.RELEASE" level="project" />
46
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-aop:2.1.5.RELEASE" level="project" />
47
    <orderEntry type="library" name="Maven: org.aspectj:aspectjweaver:1.9.4" level="project" />
48
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.1.5.RELEASE" level="project" />
49
    <orderEntry type="library" name="Maven: com.zaxxer:HikariCP:3.2.0" level="project" />
50
    <orderEntry type="library" name="Maven: javax.transaction:javax.transaction-api:1.3" level="project" />
51
    <orderEntry type="library" name="Maven: org.springframework:spring-aspects:5.1.7.RELEASE" level="project" />
52
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.1.5.RELEASE" level="project" />
53
    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.1.8.RELEASE" level="project" />
54
    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.1.8.RELEASE" level="project" />
55
    <orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.1.7.RELEASE" level="project" />
56
    <orderEntry type="library" name="Maven: io.lettuce:lettuce-core:5.1.6.RELEASE" level="project" />
57
    <orderEntry type="library" name="Maven: io.netty:netty-common:4.1.36.Final" level="project" />
58
    <orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.36.Final" level="project" />
59
    <orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.36.Final" level="project" />
60
    <orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.36.Final" level="project" />
61
    <orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.36.Final" level="project" />
62
    <orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.36.Final" level="project" />
63
    <orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.2.9.RELEASE" level="project" />
64
    <orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.2" level="project" />
65
    <orderEntry type="library" name="Maven: redis.clients:jedis:2.9.3" level="project" />
66
    <orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.6.2" level="project" />
67
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.1.5.RELEASE" level="project" />
68
    <orderEntry type="library" name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final" level="project" />
69
    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-jpa:2.1.8.RELEASE" level="project" />
70
    <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.1.8.RELEASE" level="project" />
71
    <orderEntry type="library" name="Maven: org.springframework:spring-orm:5.1.7.RELEASE" level="project" />
72
    <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.1.7.RELEASE" level="project" />
73
    <orderEntry type="library" name="Maven: org.springframework:spring-context:5.1.7.RELEASE" level="project" />
74
    <orderEntry type="library" name="Maven: org.springframework:spring-aop:5.1.7.RELEASE" level="project" />
75
    <orderEntry type="library" name="Maven: org.springframework:spring-tx:5.1.7.RELEASE" level="project" />
76
    <orderEntry type="library" name="Maven: org.springframework:spring-beans:5.1.7.RELEASE" level="project" />
77
    <orderEntry type="library" name="Maven: org.aspectj:aspectjrt:1.9.4" level="project" />
78
    <orderEntry type="library" name="Maven: org.hibernate:hibernate-core:5.3.10.Final" level="project" />
79
    <orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.2.Final" level="project" />
80
    <orderEntry type="library" name="Maven: javax.persistence:javax.persistence-api:2.2" level="project" />
81
    <orderEntry type="library" name="Maven: org.javassist:javassist:3.23.2-GA" level="project" />
82
    <orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" />
83
    <orderEntry type="library" name="Maven: org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.1.1.Final" level="project" />
84
    <orderEntry type="library" name="Maven: org.jboss:jandex:2.0.5.Final" level="project" />
85
    <orderEntry type="library" name="Maven: javax.activation:javax.activation-api:1.2.0" level="project" />
86
    <orderEntry type="library" name="Maven: org.dom4j:dom4j:2.1.1" level="project" />
87
    <orderEntry type="library" name="Maven: org.hibernate.common:hibernate-commons-annotations:5.0.4.Final" level="project" />
88
    <orderEntry type="library" name="Maven: org.hibernate:hibernate-envers:5.3.10.Final" level="project" />
89
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-cache:2.1.5.RELEASE" level="project" />
90
    <orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.1.7.RELEASE" level="project" />
91
    <orderEntry type="library" name="Maven: net.sf.ehcache:ehcache-core:2.6.9" level="project" />
92
    <orderEntry type="library" scope="RUNTIME" name="Maven: mysql:mysql-connector-java:8.0.16" level="project" />
93
    <orderEntry type="library" scope="RUNTIME" name="Maven: com.google.protobuf:protobuf-java:3.6.1" level="project" />
94
    <orderEntry type="library" name="Maven: com.alibaba:druid-spring-boot-starter:1.1.17" level="project" />
95
    <orderEntry type="library" name="Maven: com.alibaba:druid:1.1.17" level="project" />
96
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.1.5.RELEASE" level="project" />
97
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.1.5.RELEASE" level="project" />
98
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.8" level="project" />
99
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.8" level="project" />
100
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.8" level="project" />
101
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-tomcat:2.1.5.RELEASE" level="project" />
102
    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.19" level="project" />
103
    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-el:9.0.19" level="project" />
104
    <orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.19" level="project" />
105
    <orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.0.16.Final" level="project" />
106
    <orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
107
    <orderEntry type="library" name="Maven: org.springframework:spring-web:5.1.7.RELEASE" level="project" />
108
    <orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.1.7.RELEASE" level="project" />
109
    <orderEntry type="library" name="Maven: org.springframework:spring-expression:5.1.7.RELEASE" level="project" />
110
    <orderEntry type="library" name="Maven: com.ai.bss:components-common:2.1-SNAPSHOT" level="project" />
111
    <orderEntry type="library" name="Maven: com.ai.abc:api-common:2.1-SNAPSHOT" level="project" />
112
    <orderEntry type="library" name="Maven: com.ai.abc:exception:2.1-SNAPSHOT" level="project" />
113
    <orderEntry type="library" name="Maven: com.ai.abc:utils:2.1-SNAPSHOT" level="project" />
114
    <orderEntry type="library" name="Maven: commons-lang:commons-lang:2.6" level="project" />
115
    <orderEntry type="library" name="Maven: org.json:json:20180130" level="project" />
116
    <orderEntry type="library" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
117
    <orderEntry type="library" name="Maven: com.alibaba:fastjson:1.2.69" level="project" />
118
    <orderEntry type="library" name="Maven: com.jayway.jsonpath:json-path:2.4.0" level="project" />
119
    <orderEntry type="library" name="Maven: net.minidev:json-smart:2.3" level="project" />
120
    <orderEntry type="library" name="Maven: net.minidev:accessors-smart:1.2" level="project" />
121
    <orderEntry type="library" name="Maven: org.ow2.asm:asm:5.0.4" level="project" />
122
    <orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.8.1" level="project" />
123
    <orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
124
    <orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.3.2" level="project" />
125
    <orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.9.2" level="project" />
126
    <orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.5.20" level="project" />
127
    <orderEntry type="library" name="Maven: io.swagger:swagger-models:1.5.20" level="project" />
128
    <orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.9.2" level="project" />
129
    <orderEntry type="library" name="Maven: io.springfox:springfox-core:2.9.2" level="project" />
130
    <orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.9.2" level="project" />
131
    <orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.9.2" level="project" />
132
    <orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.9.2" level="project" />
133
    <orderEntry type="library" name="Maven: com.google.guava:guava:27.1-jre" level="project" />
134
    <orderEntry type="library" name="Maven: com.google.guava:failureaccess:1.0.1" level="project" />
135
    <orderEntry type="library" name="Maven: com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava" level="project" />
136
    <orderEntry type="library" name="Maven: com.google.code.findbugs:jsr305:3.0.2" level="project" />
137
    <orderEntry type="library" name="Maven: org.checkerframework:checker-qual:2.5.2" level="project" />
138
    <orderEntry type="library" name="Maven: com.google.errorprone:error_prone_annotations:2.2.0" level="project" />
139
    <orderEntry type="library" name="Maven: com.google.j2objc:j2objc-annotations:1.1" level="project" />
140
    <orderEntry type="library" name="Maven: org.codehaus.mojo:animal-sniffer-annotations:1.17" level="project" />
141
    <orderEntry type="library" name="Maven: com.fasterxml:classmate:1.4.0" level="project" />
142
    <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:1.2.0.RELEASE" level="project" />
143
    <orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:1.2.0.RELEASE" level="project" />
144
    <orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.2.0.Final" level="project" />
145
    <orderEntry type="library" name="Maven: com.ai.bss:work-tool-service:2.1-SNAPSHOT" level="project" />
146
    <orderEntry type="library" name="Maven: com.ai.bss:system-user-service:2.1-SNAPSHOT" level="project" />
147
    <orderEntry type="library" name="Maven: com.ai.bss:system-user-model:2.1-SNAPSHOT" level="project" />
148
    <orderEntry type="library" name="Maven: com.ai.bss:person-model:2.1-SNAPSHOT" level="project" />
149
    <orderEntry type="library" name="Maven: com.ai.bss:system-user-service-api:2.1-SNAPSHOT" level="project" />
150
    <orderEntry type="library" name="Maven: com.ai.bss:person-service:2.1-SNAPSHOT" level="project" />
151
    <orderEntry type="library" name="Maven: com.ai.bss:person-service-api:2.1-SNAPSHOT" level="project" />
152
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.1.5.RELEASE" level="project" />
153
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.1.5.RELEASE" level="project" />
154
    <orderEntry type="library" name="Maven: javax.annotation:javax.annotation-api:1.3.2" level="project" />
155
    <orderEntry type="library" scope="RUNTIME" name="Maven: org.yaml:snakeyaml:1.23" level="project" />
156
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test:2.1.5.RELEASE" level="project" />
157
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-test-autoconfigure:2.1.5.RELEASE" level="project" />
158
    <orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
159
    <orderEntry type="library" name="Maven: org.assertj:assertj-core:3.11.1" level="project" />
160
    <orderEntry type="library" name="Maven: org.mockito:mockito-core:2.23.4" level="project" />
161
    <orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.9.12" level="project" />
162
    <orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy-agent:1.9.12" level="project" />
163
    <orderEntry type="library" name="Maven: org.objenesis:objenesis:2.6" level="project" />
164
    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
165
    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-library:1.3" level="project" />
166
    <orderEntry type="library" name="Maven: org.skyscreamer:jsonassert:1.5.0" level="project" />
167
    <orderEntry type="library" name="Maven: com.vaadin.external.google:android-json:0.0.20131108.vaadin1" level="project" />
168
    <orderEntry type="library" name="Maven: org.springframework:spring-core:5.1.7.RELEASE" level="project" />
169
    <orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.1.7.RELEASE" level="project" />
170
    <orderEntry type="library" name="Maven: org.springframework:spring-test:5.1.7.RELEASE" level="project" />
171
    <orderEntry type="library" name="Maven: org.xmlunit:xmlunit-core:2.6.2" level="project" />
172
    <orderEntry type="library" name="Maven: javax.xml.bind:jaxb-api:2.3.1" level="project" />
173
    <orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.8" level="project" />
174
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.9.8" level="project" />
175
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.9.0" level="project" />
176
    <orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.9.8" level="project" />
177
    <orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.1.5.RELEASE" level="project" />
178
    <orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.3" level="project" />
179
    <orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.3" level="project" />
180
    <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.26" level="project" />
181
    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.11.2" level="project" />
182
    <orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.11.2" level="project" />
183
    <orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.26" level="project" />
184
  </component>
185
</module>

+ 1 - 1
location-rescue-service/src/main/java/com/ai/bss/location/rescue/controller/DeviceManageController.java

@ -99,7 +99,7 @@ public class DeviceManageController {
99 99
	public Map<String, Object> addDeviceInfo(@RequestBody Map<String, String> params) throws Exception {
100 100
		Map<String, Object> result = new HashMap<String, Object>();
101 101
102
		if (params == null || params.get("deviceNo") == null||"".equals(params.get("deviceId"))) {
102
		if (params == null || params.get("deviceNo") == null||"".equals(params.get("deviceNo"))) {
103 103
			result.put("result", false);
104 104
			result.put("errMsg", "添加失败");
105 105
			return result;

+ 2 - 2
location-rescue-service/src/main/java/com/ai/bss/location/rescue/service/impl/DeviceManageServiceImpl.java

@ -88,9 +88,9 @@ public class DeviceManageServiceImpl implements DeviceManageService {
88 88
			for (CharacteristicSpecValue characteristicSpecValue : characteristicSpecValueList) {
89 89
				specIds.add(characteristicSpecValue.getCode());
90 90
			}
91
			paramsMap.put("specId", specIds);
91
			paramsMap.put("specIdList", specIds);
92 92
		} else {
93
			paramsMap.put("specId", params.get("deviceTypeId"));
93
			paramsMap.put("specIdList", params.get("deviceTypeId"));
94 94
		}
95 95
96 96
		// 是否绑定

+ 6 - 6
location-rescue-service/src/main/java/com/ai/bss/location/rescue/service/impl/GisParamServiceImpl.java

@ -18,22 +18,22 @@ import com.alibaba.fastjson.JSON;
18 18
public class GisParamServiceImpl implements GisParamService {
19 19
	Logger logger = LoggerFactory.getLogger(GisParamServiceImpl.class);
20 20
21
	@Value("${aap.gis.userName}")
21
	@Value("${aap.gis.userName:EBC_PPRS}")
22 22
	private String gisUserName;
23 23
24
	@Value("${aap.gis.passwd}")
24
	@Value("${aap.gis.passwd:ITBS93wMYHosT}")
25 25
	private String gisPasswd;
26 26
27
	@Value("${url.gis.token}")
27
	@Value("${url.gis.token:http://192.168.74.189:9999/gisIntf/account/gettoken}")
28 28
	private String tokenUrl;
29 29
30
	@Value("${seaMap.centre.longitude}")
30
	@Value("${seaMap.centre.longitude:123.396036}")
31 31
	private String longitude;
32 32
33
	@Value("${seaMap.centre.latitude}")
33
	@Value("${seaMap.centre.latitude:31.560302}")
34 34
	private String latitude;
35 35
36
	@Value("${seaMap.scale}")
36
	@Value("${seaMap.scale:11}")
37 37
	private String scale;
38 38
39 39
	@Override

+ 3 - 1
location-rescue-service/src/main/java/com/ai/bss/location/rescue/util/EbcConstant.java

@ -42,7 +42,9 @@ public class EbcConstant {
42 42
	//静态常量: 围栏类型
43 43
	public static final String BUSINESS_SPEC_MAP_AREA_TYPE="MAP_AREA_TYPE";
44 44
	
45
	
45
	//静态常量: 围栏类型
46
	public static final String BUSINESS_SPEC_EMPLOYEE_POSITION="mainJobPosition";
47
		
46 48
	
47 49
	
48 50
	

+ 7 - 5
location-rescue-service/src/main/java/com/ai/bss/location/rescue/util/NorthboundInterfaceUtil.java

@ -9,7 +9,9 @@ import java.util.concurrent.ConcurrentHashMap;
9 9
10 10
import org.slf4j.Logger;
11 11
import org.slf4j.LoggerFactory;
12
import org.springframework.beans.factory.annotation.Configurable;
12 13
import org.springframework.beans.factory.annotation.Value;
14
import org.springframework.context.annotation.Configuration;
13 15
import org.springframework.stereotype.Component;
14 16
15 17
import com.ai.bss.location.rescue.controller.MapTagManageController;
@ -19,21 +21,21 @@ import com.alibaba.fastjson.JSON;
19 21
 *北向接口统一入口
20 22
 * @date 2010/09/24 23:42
21 23
 */
22
@Component
24
@Configuration
23 25
public class NorthboundInterfaceUtil {
24 26
25 27
	private static final Logger logger = LoggerFactory.getLogger(MapTagManageController.class);
26 28
	
27
	@Value("${aap.iot.userCode}")
29
	@Value("${aap.iot.userCode:IOT_ADMIN}")
28 30
	private String userCode;
29 31
30
	@Value("${aap.iot.passWord}")
32
	@Value("${aap.iot.passWord:123456}")
31 33
	private String passWord;
32 34
33
	@Value("${url.iot.login}")
35
	@Value("${url.iot.login:http://47.105.130.83:8083/sso/login}")
34 36
	private String iotLoginUrl;
35 37
36
	@Value("${url.iot.service}")
38
	@Value("${url.iot.service:http://47.105.130.83:8083/dmp/terminalNorthApi/}")
37 39
	private String iotServiceUrl;
38 40
39 41
	// 定义静态存储map空间存放sign与sessionId

+ 37 - 0
security-protection-service/.gitignore

@ -0,0 +1,37 @@
1
### Java template
2
# Compiled class file
3
*.class
4
5
# Log file
6
*.log
7
8
# BlueJ files
9
*.ctxt
10
11
# Mobile Tools for Java (J2ME)
12
.mtj.tmp/
13
14
# Package Files #
15
*.jar
16
*.war
17
*.ear
18
*.zip
19
*.tar.gz
20
*.rar
21
22
#eclipse
23
/.settings
24
/.classpath
25
/.project
26
27
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
28
hs_err_pid*
29
30
*.iml
31
.idea
32
target/
33
logs/
34
.DS_Store
35
36
37