getData(){
let customer_id = localStorage.getItem('customer_id')
let param = new URLSearchParams();
param.append('customer_id', customer_id); this.$http({
method: 'post',
url: '/Cases/list.do', data: param
})
.then(({data})=>{ data.data.medicationCasesVoList.forEach((e)=>{ if(e.medicationName !== ''){ this.medicationCasesVoList.medicationName = e.medicationName;
} if(e.medicationTime !== ''){ this.medicationCasesVoList.medicationTime = e.medicationTime; // 时间戳转日期
this.changeTime1()
}
})
}
在网页上调试可以进行赋值,但到app上的话就报错
- 2 回答
- 0 关注
- 901 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消