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; 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;

View File

@ -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);

View File

@ -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 || [];

View File

@ -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;
} }

View File

@ -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;

View File

@ -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);