摄像头接口更改

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) { export function getCameraAllOrgan(params) {
return request({ return request({
url: `/api/project/selectSubOrgan`, url: `/api/project/selectSubOrganNew`,
method: 'get', method: 'get',
params, params,
}) })
} }
export function getCameraByParentId(params) { export function getCameraByParentId(params) {
return request({ return request({
url: `/api/project/selectByParentId`, url: `/api/project/selectByParentIdNew`,
method: 'get', method: 'get',
params, params,
}) })

View File

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