设备绑定码接口对接

main
zhufu 3 months ago
parent de7f76c332
commit 93dc51f981

@ -6,6 +6,7 @@ enum Api {
GetUavPageList = '/api/Manage/GetUavPageList',
EditUav = '/api/Manage/EditUav',
DeleteUav = '/api/Manage/DeleteUav',
GetGateway = '/api/AirportMaintenance/GetGateway',
}
export function GetDataList(params) {
@ -41,4 +42,9 @@ export function DeleteUav(id: string) {
return defHttp.post({
url: `${Api.DeleteUav}?id=${id}`,
});
}
export function GetGateway() {
return defHttp.post({
url: Api.GetGateway,
});
}

@ -5,21 +5,29 @@
</p>
<div class="show-item">
<div class="item-label">组织名称</div>
<div class="item-value">TEST</div>
<div class="item-value">{{data?.orgName}}</div>
</div>
<div class="show-item">
<div class="item-label">组织 ID</div>
<div class="item-value">XDX9VU</div>
<div class="item-value">{{data.orgId}}</div>
</div>
<div class="show-item">
<div class="item-label">设备绑定码</div>
<div class="item-value">6473D312</div>
<div class="item-value">{{data.gatewaySn}}</div>
</div>
</div>
</template>
<script setup lang="ts">
import {} from "vue"
import { onMounted, ref } from "vue"
import { GetGateway } from '@/api/demo/device'
const data = ref({})
onMounted(() => {
GetGateway().then(res => {
console.log('GetGateway',res)
data.value = res
})
})
</script>
<style lang="scss" scoped>

Loading…
Cancel
Save