定义第三方接口信息

This commit is contained in:
lin
2025-09-29 16:15:32 +08:00
parent 85d47af644
commit eff1773101
16 changed files with 394 additions and 31 deletions

View File

@@ -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
}
})
}

View File

@@ -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)
})
})
}
}

View File

@@ -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')
}
}