|
@@ -23,34 +23,29 @@ Page({
|
|
|
pictureBasePath: res.pictureBasePath,
|
|
|
zgjdList: res.zgjdList
|
|
|
})
|
|
|
+ if (res.zgjdList.length > 0 && res.zgjdList[0].riskStatus == "risk_status_2") {
|
|
|
+
|
|
|
+ this.setData({
|
|
|
+ hidden: false
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
bindPickerChange: function (e) {
|
|
|
- //let nume=e.detail.value
|
|
|
- console.log('picker发送选择改变,携带值为',parseInt(nume)+1)
|
|
|
+ let nume = e.detail.value
|
|
|
+ console.log('picker发送选择改变,携带值为', parseInt(nume) + 1)
|
|
|
|
|
|
let obj = new Object();
|
|
|
obj.busInspectionId = this.data.busInspectionId
|
|
|
obj.logId = this.data.buslogId
|
|
|
- obj.lat_day = parseInt(nume)+1
|
|
|
+ obj.lat_day = parseInt(nume) + 1
|
|
|
+
|
|
|
http.send_post("/system/AppXunjianController/changeInspection", obj, this.getChangeSuccess);
|
|
|
},
|
|
|
getChangeSuccess(res) {
|
|
|
console.log("&&&&", res)
|
|
|
if (res.code == 200) {
|
|
|
this.setData({
|
|
|
- index: e.detail.value,
|
|
|
- // isRefreshUP: true
|
|
|
- })
|
|
|
-
|
|
|
- this.getZhenggaijindu(this.data.busInspectionId)
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- getChangeSuccess2(res) {
|
|
|
- console.log("&&&&", res)
|
|
|
- if (res.code == 200) {
|
|
|
- this.setData({
|
|
|
//index: e.detail.value,
|
|
|
isRefreshUP: true
|
|
|
})
|
|
@@ -59,11 +54,13 @@ Page({
|
|
|
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
/**
|
|
|
* 页面的初始数据
|
|
|
*/
|
|
|
data: {
|
|
|
host: app.globalData.host,
|
|
|
+ hidden: true,
|
|
|
pictureBasePath: null,
|
|
|
zgjdList: null,
|
|
|
isRefreshUP: false,
|
|
@@ -154,7 +151,7 @@ Page({
|
|
|
obj.busInspectionId = this.data.busInspectionId
|
|
|
obj.logId = this.data.buslogId
|
|
|
obj.riskStatus = "risk_status_2"
|
|
|
- http.send_post("/system/AppXunjianController/changeInspection", obj, this.getChangeSuccess2);
|
|
|
+ http.send_post("/system/AppXunjianController/changeInspection", obj, this.getChangeSuccess);
|
|
|
}
|
|
|
}
|
|
|
})
|