提交 c4bd602f authored 作者: BaoChunXian's avatar BaoChunXian

feat: 井道异常项统计规则修改

上级 57222d0f
...@@ -338,7 +338,11 @@ export default { ...@@ -338,7 +338,11 @@ export default {
acc.push(...cur.position); acc.push(...cur.position);
return acc; return acc;
}, []); }, []);
return allPoints.filter((point) => point.status === 2).length; let allItems = allPoints.reduce((acc, cur) => {
acc.push(...cur.details);
return acc;
}, []);
return allItems.filter((point) => point.inspectionResult === 1).length;
}, },
updateDate() { updateDate() {
return moment( return moment(
...@@ -500,7 +504,7 @@ export default { ...@@ -500,7 +504,7 @@ export default {
this.$refs.inputDialog2.open(); this.$refs.inputDialog2.open();
}, },
toSign() { toSign() {
if (!isSubmit) return; if (!this.isSubmit) return;
this.$refs.signDialog.open(); this.$refs.signDialog.open();
}, },
// tab选中change 时间 // tab选中change 时间
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论