flx:优化企业监控大屏展示

This commit is contained in:
Rain_ 2025-11-17 09:17:56 +08:00
parent a2e603a931
commit 9620b7b3b0

View File

@ -86,13 +86,10 @@
</span> </span>
<span <span
:class=" :class="
data.videoName {'videoName' : data.videoName,
? 'videoName' 'projectName' : data.projectName,
: data.projectName 'companyName2' : data.companyType == 2,
? 'projectName' 'color-01' : data.videoItem && data.videoItem.deviceState == 1}
: data.companyType == 2
? 'companyName2'
: ''
" "
:title="node.label" :title="node.label"
>{{ node.label }} >{{ node.label }}
@ -559,8 +556,11 @@ export default {
item.children.length > 0 item.children.length > 0
) { ) {
item.children = this.recursion(item.children); item.children = this.recursion(item.children);
if(item.children.length > 0) {
return item; return item;
} }
return
}
console.log(item.deviceState, this.searchInfo.deviceState); console.log(item.deviceState, this.searchInfo.deviceState);
if(item.type == "video") { if(item.type == "video") {
if(item.videoItem && item.videoItem.deviceState == this.searchInfo.deviceState) { if(item.videoItem && item.videoItem.deviceState == this.searchInfo.deviceState) {
@ -631,6 +631,9 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.color-01{
color: #01FFF0 !important;
}
.header-search { .header-search {
padding: 10px 15px; padding: 10px 15px;
.header-box1 { .header-box1 {