浏览代码

BUG修改

seimin 3 年之前
父节点
当前提交
153b22be8f
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/app/views/hushijiandan/hushijiandan.component.ts

+ 7 - 1
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -1423,7 +1423,13 @@ export class HushijiandanComponent implements OnInit {
1423 1423
   yyInspectChange(e) {
1424 1424
     if (this.currentTasktype.associationType.value === "inspect") {
1425 1425
       //陪检
1426
-      if (this.filterLinkCheckLis.length) {
1426
+      let obj = this.filterLinkCheckLis.find((item) => {
1427
+        return (
1428
+          new Date(item.yyTime).getTime() - new Date().getTime() >
1429
+          this.leadTime * 60 * 1000
1430
+        );
1431
+      });
1432
+      if (obj) {
1427 1433
         this.showDateTime();
1428 1434
       } else {
1429 1435
         this.yyTime = null;