|
|
@ -183,7 +183,7 @@ |
|
|
|
</cover-view> |
|
|
|
</cover-view> |
|
|
|
<cover-view class="umodal-line2"></cover-view> |
|
|
|
<cover-view class="umodal-line2"></cover-view> |
|
|
|
|
|
|
|
|
|
|
|
<cover-view class="umodal-btn" @click="handleCheck(2)"> |
|
|
|
<cover-view class="umodal-btn" @click="handleCheck(2, true)"> |
|
|
|
确认 |
|
|
|
确认 |
|
|
|
</cover-view> |
|
|
|
</cover-view> |
|
|
|
</cover-view> |
|
|
|
</cover-view> |
|
|
@ -231,6 +231,7 @@ export default { |
|
|
|
show: false, |
|
|
|
show: false, |
|
|
|
type:'edit', |
|
|
|
type:'edit', |
|
|
|
show2: false, |
|
|
|
show2: false, |
|
|
|
|
|
|
|
pcType: 0 |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
onLoad(options) { |
|
|
@ -246,7 +247,12 @@ export default { |
|
|
|
this.pageType = 1; |
|
|
|
this.pageType = 1; |
|
|
|
this.initData(); |
|
|
|
this.initData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
onShow() { |
|
|
|
|
|
|
|
if(this.pcType == 2) { |
|
|
|
|
|
|
|
this.pcType = 0 |
|
|
|
|
|
|
|
this.backPage() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
onReady() { |
|
|
|
onReady() { |
|
|
|
// wx请求获取位置权限 |
|
|
|
// wx请求获取位置权限 |
|
|
|
this.getAuthorize() |
|
|
|
this.getAuthorize() |
|
|
@ -414,9 +420,8 @@ export default { |
|
|
|
// } |
|
|
|
// } |
|
|
|
// this.data = this.data.concat(data); |
|
|
|
// this.data = this.data.concat(data); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleCheck(v) { |
|
|
|
handleCheck(v, t) { |
|
|
|
this.show = false; |
|
|
|
this.show = false; |
|
|
|
this.show2 = false; |
|
|
|
|
|
|
|
if (v == 1) { |
|
|
|
if (v == 1) { |
|
|
|
// let json = { |
|
|
|
// let json = { |
|
|
|
// name: "023县道", |
|
|
|
// name: "023县道", |
|
|
@ -444,7 +449,31 @@ export default { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
if (v == 2) { |
|
|
|
if (v == 2) { |
|
|
|
this.$.open("/pages/investigation/task" + "?id=" + this.businessId); |
|
|
|
if(t) { |
|
|
|
|
|
|
|
this.$request |
|
|
|
|
|
|
|
.globalRequest( |
|
|
|
|
|
|
|
"/hiddenDanger/highDanger/HighDangerSaveStatus", |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
businessId: this.businessId, |
|
|
|
|
|
|
|
pcType: "2", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"GET" |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
|
|
console.log(res); |
|
|
|
|
|
|
|
if (res.code === 200) { |
|
|
|
|
|
|
|
this.pcType = 2 |
|
|
|
|
|
|
|
this.show2 = false; |
|
|
|
|
|
|
|
this.$.open("/pages/investigation/task" + "?id=" + this.businessId); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$.toast(res.message); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.show2 = false; |
|
|
|
|
|
|
|
this.$.open("/pages/investigation/task" + "?id=" + this.businessId); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// this.$.open(url + "?id=" + 'RX202310210236'); |
|
|
|
// this.$.open(url + "?id=" + 'RX202310210236'); |
|
|
|