fast(设备管理、设备详情): 取消“空间”标签屏蔽
This commit is contained in:
parent
f2d896626a
commit
2a7a7286ca
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 || [];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue