定义第三方接口信息
This commit is contained in:
@@ -598,3 +598,14 @@ export function getAllForMap({ query, online, hasRecordPlan, channelType }) {
|
||||
}
|
||||
})
|
||||
}
|
||||
export function test() {
|
||||
return request({
|
||||
method: 'get',
|
||||
url: '/api/sy/camera/list/ids',
|
||||
params: {
|
||||
deviceIds: ['a', 'b', 'c'].join(','),
|
||||
geoCoordSys: 'GCJ02',
|
||||
traditional: true
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ import {
|
||||
stopPlayback,
|
||||
pausePlayback,
|
||||
resumePlayback,
|
||||
seekPlayback, speedPlayback, getAllForMap
|
||||
seekPlayback, speedPlayback, getAllForMap, test
|
||||
} from '@/api/commonChannel'
|
||||
|
||||
const actions = {
|
||||
@@ -571,6 +571,16 @@ const actions = {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
},
|
||||
test({ commit }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
test().then(response => {
|
||||
const { data } = response
|
||||
resolve(data)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
<div class="map-tool-btn" title="图层抽稀">
|
||||
<i class="iconfont icon-mti-sandian"></i> <span>图层抽稀</span>
|
||||
</div>
|
||||
<!-- <div class="map-tool-btn" title="位置编辑">-->
|
||||
<!-- <i class="el-icon-edit"></i> <span>位置编辑</span>-->
|
||||
<!-- </div>-->
|
||||
<div class="map-tool-btn" title="位置编辑" @click="testArray">
|
||||
<i class="el-icon-edit"></i> <span>位置编辑</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="map-tool-box-top-right">
|
||||
@@ -385,6 +385,9 @@ export default {
|
||||
if (this.infoBoxId !== null) {
|
||||
this.$refs.mapComponent.closeInfoBox(this.infoBoxId)
|
||||
}
|
||||
},
|
||||
testArray: function (){
|
||||
this.$store.dispatch('commonChanel/test')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user