Browse Source

健康首页跳转的健康报告显示不正常bug改

mw_666 3 years ago
parent
commit
697b1246ef

+ 1 - 0
src/components/other/healthReport/index.vue

@@ -1719,6 +1719,7 @@ export default {
  
     // 获取报告详情
     getReport(wtid,recorddate) {
+		console.log(this.params)
 		if(wtid == undefined){
 			return;
 		}

+ 5 - 4
src/views/HealthControl/Health0.vue

@@ -199,7 +199,7 @@
         </el-row>
       </el-col>
     </el-row>
-    <health-report :show="reportshow" :params="reportparams" @closed="closed"/>
+    <health-report :show="reportshow" :params="reportparams" ref="eport" @closed="closed"/>
   </div>
 </template>
 
@@ -699,9 +699,11 @@ export default {
   methods: {
     // 查看健康报告
     onClickReport(){
-      console.warn('查看健康报告');
+		// console.log(this.value2,new Date(new Date()).formatDate("yyyy-MM-dd"))
+      
       this.reportshow = true
-      this.reportparams = {wtId: this.value2, recorddate: new Date(new Date()).formatDate("yyyy-MM-dd")}
+      // this.reportparams = {wtId: this.value2, recorddate: new Date(new Date()).formatDate("yyyy-MM-dd")}
+	  this.$refs.eport.getReport(this.value2,new Date(new Date()).formatDate("yyyy-MM-dd"));
     },
     // 关闭健康报告
     closed(){
@@ -789,7 +791,6 @@ export default {
              wtId : this.value2
         },
         success(res) {
-          console.log('findWtHealthInfo:',res)
           that.yxtableData.data = res.data.bjyxls;
           that.tableData2.data =  res.data.djpgls;
         },

+ 0 - 1
src/views/HealthControl/HealthTab1.vue

@@ -152,7 +152,6 @@ export default {
         wtId: item.wtid,
         recorddate: recorddate,
       };
-	  console.log(this.reportparams)
 	  this.$refs.eport.getReport(item.wtid,recorddate);
     },
     // 关闭健康报告