fast(设备管理、设备详情): 取消“空间”标签屏蔽

This commit is contained in:
fhysy 2024-11-20 15:58:18 +08:00
parent f2d896626a
commit 2a7a7286ca
6 changed files with 21 additions and 21 deletions

View File

@ -844,10 +844,10 @@ export default {
this.loading = true;
listDevice(this.queryParams).then((response) => {
let list = response.rows.map(item=>{
if(item.deviceLabel && item.deviceLabel[0] == '空间'){
item.deviceLabel.shift();
return item;
}
// if(item.deviceLabel && item.deviceLabel[0] == ''){
// item.deviceLabel.shift();
// return item;
// }
return item;
})
this.deviceList = list;

View File

@ -120,9 +120,9 @@ export default {
//
deviceInfo() {
getDevice(this.deviceId).then(response => {
if(response.data.deviceLabel && response.data.deviceLabel[0] == '空间'){
response.data.deviceLabel.shift();
}
// if(response.data.deviceLabel && response.data.deviceLabel[0] == ''){
// response.data.deviceLabel.shift();
// }
this.infoData = response.data;
if (this.breadcrumbList.length <= 0) {
this.breadcrumbList.push(this.infoData);

View File

@ -380,10 +380,10 @@ export default {
)
).then((res) => {
let list = res.rows.map(item=>{
if(item.deviceLabel && item.deviceLabel[0] == '空间'){
item.deviceLabel.shift();
return item;
}
// if(item.deviceLabel && item.deviceLabel[0] == ''){
// item.deviceLabel.shift();
// return item;
// }
return item;
})
this.list = list || [];

View File

@ -222,9 +222,9 @@ export default {
//
deviceInfo(type) {
getDevice(this.deviceId).then((response) => {
if(response.data.deviceLabel && response.data.deviceLabel[0] == '空间'){
response.data.deviceLabel.shift();
}
// if(response.data.deviceLabel && response.data.deviceLabel[0] == ''){
// response.data.deviceLabel.shift();
// }
if (!type) {
this.pInfo = response.data;
}

View File

@ -291,10 +291,10 @@ export default {
this.loading = true;
listDevice(this.queryParams).then(response => {
let list = response.rows.map(item=>{
if(item.deviceLabel && item.deviceLabel[0] == '空间'){
item.deviceLabel.shift();
return item;
}
// if(item.deviceLabel && item.deviceLabel[0] == ''){
// item.deviceLabel.shift();
// return item;
// }
return item;
})
this.deviceList = list;

View File

@ -108,9 +108,9 @@ export default {
//
deviceInfo() {
getDevice(this.deviceId).then(response => {
if(response.data.deviceLabel && response.data.deviceLabel[0] == '空间'){
response.data.deviceLabel.shift();
}
// if(response.data.deviceLabel && response.data.deviceLabel[0] == ''){
// response.data.deviceLabel.shift();
// }
this.infoData = response.data;
if (this.breadcrumbList.length <= 0) {
this.breadcrumbList.push(this.infoData);