Commit 51348b84 authored by godwithdh's avatar godwithdh

readly

parent 346587ea
......@@ -183,7 +183,7 @@ export default {
this.readOnly=this.$route.meta.readOnly
this.value.sCreateAppid=this.$route.params.openId
if(this.readOnly){
this.millisecond=this.$route.params.millisecond
this.millisecond=parseInt(this.$route.params.millisecond)
this.getHealthDate()
}else{
this.value.iEmploeeId=this.$route.params.id
......@@ -194,13 +194,24 @@ export default {
},
methods:{
async getHealthDate(){
var data=[
var value=await this.request("getStatisticalDetails",{
data:[
{key:"url",value:"HealthLog"},
{key:"dDate",value:util.dateFormat(new Date(this.millisecond),"yyyy-MM-dd")},
{key:"openid",value:this.value.sCreateAppid}
]
var value=await this.request("getStatisticalDetails",data)
// if()
},"加载中",{})
if(value&&value[0]){
Object.assign(this.value,value[0],{
bHaveBeen: value[0].bHaveBeen?1:0,
bHospital: value[0].bHospital?1:0,
bQuarantine: value[0].bQuarantine?1:0,
bTouch: value[0].bTouch?1:0,
})
this.address=value[0].sAddress.split(",")
}else{
this.$vux.toast.text('获取数据失败!', 'middle');
}
},
logHide(e){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment