瀏覽代碼

qc详情显示bug fix

panxingxin 5 年之前
父節點
當前提交
849f47f2ae
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/app/store-qc-detail/store-qc-detail.page.ts

+ 2 - 1
src/app/store-qc-detail/store-qc-detail.page.ts

@@ -29,6 +29,7 @@ export class StoreQCDetailPage implements OnInit {
     public userData: UserData) { }
 
   ngOnInit() {
+    this.showDetail = true
     this.storage.get('QCdetails').then((val) => {
       this.QCdetails = JSON.parse(val)
     });
@@ -53,7 +54,7 @@ export class StoreQCDetailPage implements OnInit {
     if (this.QCdetails) {
       this.qcData = this.QCdetails
       for (let i of this.qcData['details']) {
-        this.showDetail = true
+        this.showDetail = false
         // 获取QA日志
         let qalogdata = await this.userData.getQAlog(i.sscId, i.pid)
         if (JSON.parse(qalogdata).data.length !== 0) {