|
@ -262,7 +262,7 @@ export default { |
|
|
}else{ |
|
|
}else{ |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
title:"提示", |
|
|
title:"提示", |
|
|
content:"添加虫害失败!", |
|
|
content:res.msg||"添加虫害失败!", |
|
|
showCancel:false, |
|
|
showCancel:false, |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -273,12 +273,13 @@ export default { |
|
|
text:e, |
|
|
text:e, |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
console.log(res,'---res----2----') |
|
|
if(res.statu){ |
|
|
if(res.statu){ |
|
|
this.list.push({id:res.data.id,name:e}) |
|
|
this.list.push({id:res.data.id,name:e}) |
|
|
}else{ |
|
|
}else{ |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
title:"提示", |
|
|
title:"提示", |
|
|
content:"添加病害失败!", |
|
|
content:res.msg||"添加病害失败!", |
|
|
showCancel:false, |
|
|
showCancel:false, |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|