|
@@ -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;
|
|
|
},
|