|
@@ -107,8 +107,12 @@ const finishTask=()=>{
|
|
|
saveData.taskInfo=pageData.zkInfoList
|
|
|
saveData.zgInfo=pageData.zgInfoList
|
|
|
saveData.detail=pageData.zgMeasureList
|
|
|
+ uni.showLoading({
|
|
|
+ title: '提交中.....',
|
|
|
+ mask: true
|
|
|
+ });
|
|
|
http.post("app-api/rectify/save",saveData).then(res=>{
|
|
|
- console.log(res)
|
|
|
+ uni.hideLoading()
|
|
|
uni.navigateBack({
|
|
|
delta: 1
|
|
|
});
|
|
@@ -122,13 +126,17 @@ const showImage=(id)=>{
|
|
|
|
|
|
// 获取整改数据
|
|
|
const getRectificationData=()=>{
|
|
|
+ uni.showLoading({
|
|
|
+ title: '',
|
|
|
+ mask: true
|
|
|
+ });
|
|
|
http.get("app-api/rectify/getZgDetail",{id:pageData.id}).then(res=>{
|
|
|
+ uni.hideLoading()
|
|
|
console.log(res)
|
|
|
pageData.zkInfoList=res.taskInfo
|
|
|
pageData.zgInfoList=res.zgInfo
|
|
|
pageData.zgMeasureList=res.detail
|
|
|
res.detail.forEach(item=>{
|
|
|
- console.log(item.measureUrls);
|
|
|
if(typeof(item.measureUrls)=='string'){
|
|
|
var urls=item.measureUrls.split(",")
|
|
|
item.measureUrls=[]
|
|
@@ -137,9 +145,7 @@ const getRectificationData=()=>{
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
})
|
|
|
-
|
|
|
}
|
|
|
|
|
|
onShow(()=>{
|