提交 cbaf24fb authored 作者: zs's avatar zs
...@@ -453,7 +453,7 @@ export default { ...@@ -453,7 +453,7 @@ export default {
let defaultList = detailsInfo.originData; let defaultList = detailsInfo.originData;
this.cardsInfo = this.tabList = defaultList.filter((building) => { this.cardsInfo = this.tabList = defaultList.filter((building) => {
building.position = building.position.filter( building.position = building.position.filter(
(pos) => pos.status === 1 (pos) => pos.status == "1" || pos.status == "2"
); );
return building.position.length; return building.position.length;
}); });
...@@ -510,9 +510,12 @@ export default { ...@@ -510,9 +510,12 @@ export default {
handlePopupConfirm(summary) { handlePopupConfirm(summary) {
this.detailsInfo.isSign = this.isSign = true; // 回显到文字显示区域 this.detailsInfo.isSign = this.isSign = true; // 回显到文字显示区域
this.detailsInfo.signImg = summary; // 回显到文字显示区域 this.detailsInfo.signImg = summary; // 回显到文字显示区域
const isException = this.detailsInfo.originData.some( const isException = this.detailsInfo.originData
(item) => item.status == 2 .reduce((acc, cur) => {
); acc.push(...cur.position);
return acc;
}, [])
.some((item) => item.status == 2);
this.detailsInfo.isException = isException ? 1 : 0; // 巡检异常 this.detailsInfo.isException = isException ? 1 : 0; // 巡检异常
this.submit( this.submit(
"sign", "sign",
...@@ -598,6 +601,9 @@ export default { ...@@ -598,6 +601,9 @@ export default {
]; ];
} else { } else {
this.list = []; this.list = [];
this.tabs = ["所有井道"];
this.tabsDetail = ["所有井道"];
this.getDetails(this.uid);
} }
this.showSyncDialog = val; this.showSyncDialog = val;
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论