摄像头接口更改

This commit is contained in:
851673013@qq.com 2022-07-14 18:31:19 +08:00
parent c951b7f858
commit b9dc8c15b4
2 changed files with 7 additions and 8 deletions

View File

@ -33,14 +33,14 @@ export function searchCamera(params) {
}
export function getCameraAllOrgan(params) {
return request({
url: `/api/project/selectSubOrgan`,
url: `/api/project/selectSubOrganNew`,
method: 'get',
params,
})
}
export function getCameraByParentId(params) {
return request({
url: `/api/project/selectByParentId`,
url: `/api/project/selectByParentIdNew`,
method: 'get',
params,
})

View File

@ -11,6 +11,7 @@
:class="item.show ? 'topSelect' : ''"
>
{{ item.name }}
({{ item.channelCount }})
<DownOutlined v-show="!item.show" />
<UpOutlined v-show="item.show" />
</div>
@ -39,9 +40,7 @@
fill="#0058e1"
></path>
</svg>
<span class="name">
{{ val.name }}
</span>
<span class="name">{{ val.name }}({{ val.channelCount }})</span>
</div>
<span v-if="item.children.length < 0">{{ val.total }}</span>
<span v-else>
@ -55,7 +54,7 @@
:key="child.id"
class="child"
:class="selectId == child.id ? 'select2' : ''"
@click="onSelect(item, val, child)"
@click="onSelect(item, child, child)"
>
<div>
<svg
@ -79,7 +78,7 @@
{{ child.name }}
</span>
</div>
<span>{{ child.total }}</span>
<span>{{ child.channelCount }}</span>
</div>
</div>
</div>
@ -122,7 +121,6 @@
if (select === '123') {
select = ''
}
// debugger
console.log(
'获取url中的select=====================>',
router.currentRoute.value.query.select
@ -242,6 +240,7 @@
// }
const selectId = ref('')
const onSelect = (item, val, child) => {
debugger
console.log('item, val, child', child)
mybus.emit('getCameraByParentId', val.id)
mybus.emit('getListByParentId', val.id)