fast(设备管理、设备详情): 取消“空间”标签屏蔽
This commit is contained in:
parent
f2d896626a
commit
2a7a7286ca
|
@ -844,10 +844,10 @@ export default {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listDevice(this.queryParams).then((response) => {
|
listDevice(this.queryParams).then((response) => {
|
||||||
let list = response.rows.map(item=>{
|
let list = response.rows.map(item=>{
|
||||||
if(item.deviceLabel && item.deviceLabel[0] == '空间'){
|
// if(item.deviceLabel && item.deviceLabel[0] == '空间'){
|
||||||
item.deviceLabel.shift();
|
// item.deviceLabel.shift();
|
||||||
return item;
|
// return item;
|
||||||
}
|
// }
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
this.deviceList = list;
|
this.deviceList = list;
|
||||||
|
|
|
@ -120,9 +120,9 @@ export default {
|
||||||
// 设备详情
|
// 设备详情
|
||||||
deviceInfo() {
|
deviceInfo() {
|
||||||
getDevice(this.deviceId).then(response => {
|
getDevice(this.deviceId).then(response => {
|
||||||
if(response.data.deviceLabel && response.data.deviceLabel[0] == '空间'){
|
// if(response.data.deviceLabel && response.data.deviceLabel[0] == '空间'){
|
||||||
response.data.deviceLabel.shift();
|
// response.data.deviceLabel.shift();
|
||||||
}
|
// }
|
||||||
this.infoData = response.data;
|
this.infoData = response.data;
|
||||||
if (this.breadcrumbList.length <= 0) {
|
if (this.breadcrumbList.length <= 0) {
|
||||||
this.breadcrumbList.push(this.infoData);
|
this.breadcrumbList.push(this.infoData);
|
||||||
|
|
|
@ -380,10 +380,10 @@ export default {
|
||||||
)
|
)
|
||||||
).then((res) => {
|
).then((res) => {
|
||||||
let list = res.rows.map(item=>{
|
let list = res.rows.map(item=>{
|
||||||
if(item.deviceLabel && item.deviceLabel[0] == '空间'){
|
// if(item.deviceLabel && item.deviceLabel[0] == '空间'){
|
||||||
item.deviceLabel.shift();
|
// item.deviceLabel.shift();
|
||||||
return item;
|
// return item;
|
||||||
}
|
// }
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
this.list = list || [];
|
this.list = list || [];
|
||||||
|
|
|
@ -222,9 +222,9 @@ export default {
|
||||||
// 设备详情
|
// 设备详情
|
||||||
deviceInfo(type) {
|
deviceInfo(type) {
|
||||||
getDevice(this.deviceId).then((response) => {
|
getDevice(this.deviceId).then((response) => {
|
||||||
if(response.data.deviceLabel && response.data.deviceLabel[0] == '空间'){
|
// if(response.data.deviceLabel && response.data.deviceLabel[0] == '空间'){
|
||||||
response.data.deviceLabel.shift();
|
// response.data.deviceLabel.shift();
|
||||||
}
|
// }
|
||||||
if (!type) {
|
if (!type) {
|
||||||
this.pInfo = response.data;
|
this.pInfo = response.data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -291,10 +291,10 @@ export default {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listDevice(this.queryParams).then(response => {
|
listDevice(this.queryParams).then(response => {
|
||||||
let list = response.rows.map(item=>{
|
let list = response.rows.map(item=>{
|
||||||
if(item.deviceLabel && item.deviceLabel[0] == '空间'){
|
// if(item.deviceLabel && item.deviceLabel[0] == '空间'){
|
||||||
item.deviceLabel.shift();
|
// item.deviceLabel.shift();
|
||||||
return item;
|
// return item;
|
||||||
}
|
// }
|
||||||
return item;
|
return item;
|
||||||
})
|
})
|
||||||
this.deviceList = list;
|
this.deviceList = list;
|
||||||
|
|
|
@ -108,9 +108,9 @@ export default {
|
||||||
// 设备详情
|
// 设备详情
|
||||||
deviceInfo() {
|
deviceInfo() {
|
||||||
getDevice(this.deviceId).then(response => {
|
getDevice(this.deviceId).then(response => {
|
||||||
if(response.data.deviceLabel && response.data.deviceLabel[0] == '空间'){
|
// if(response.data.deviceLabel && response.data.deviceLabel[0] == '空间'){
|
||||||
response.data.deviceLabel.shift();
|
// response.data.deviceLabel.shift();
|
||||||
}
|
// }
|
||||||
this.infoData = response.data;
|
this.infoData = response.data;
|
||||||
if (this.breadcrumbList.length <= 0) {
|
if (this.breadcrumbList.length <= 0) {
|
||||||
this.breadcrumbList.push(this.infoData);
|
this.breadcrumbList.push(this.infoData);
|
||||||
|
|
Loading…
Reference in New Issue