//根据uuid 获取 apt报告信息
*getNotesByUid({ payload, callback }, { call, put }) {
// payload 是个数组, 并发执行,参考redux-saga文档
let resArr = yield payload.map(item => {
return call(getNotesByUuid,item.uuid)
})
resArr = resArr.map((obj,index) => {
if(obj.code === 0){
return {
...obj.data,
uuid:payload[index].uuid
}
}
return {...payload[index], nodata:true }; //获取失败 不显示
})
callback && callback(resArr);
},