|
|
|
@ -71,7 +71,8 @@ |
|
|
|
|
<!-- <input v-if="isEdit" type="text" class="BorderNone Height100 formInput" |
|
|
|
|
v-model="formData.roadType" placeholder="请输入道路类型" @focus="focus" /> --> |
|
|
|
|
<view class="Height100" :class="formData.roadTypeName?'':'gary'" v-if="isEdit" |
|
|
|
|
@click="showdlPicker=true">{{ formData.roadTypeName?formData.roadTypeName:'请选择道路类型' }} </view> |
|
|
|
|
@click="showdlPicker=true">{{ formData.roadTypeName?formData.roadTypeName:'请选择道路类型' }} |
|
|
|
|
</view> |
|
|
|
|
<view class="Height100" v-else>{{ formData.roadTypeName }}</view> |
|
|
|
|
<view class="Height100"></view> |
|
|
|
|
</view> |
|
|
|
@ -194,7 +195,8 @@ |
|
|
|
|
<uni-forms-item label="大车占比"> |
|
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
|
<input v-if="isEditStep2" type="number" class="BorderNone Height100 formInput" |
|
|
|
|
v-model="formData.largeVehicleRate" placeholder="请输入大车占比" @focus="focus2" @blur="blur2" /> |
|
|
|
|
v-model="formData.largeVehicleRate" placeholder="请输入大车占比" @focus="focus2" |
|
|
|
|
@blur="blur2" /> |
|
|
|
|
<view class="Height100" v-else>{{ formData.largeVehicleRate }}</view> |
|
|
|
|
<view class="Height100">%</view> |
|
|
|
|
</view> |
|
|
|
@ -202,7 +204,8 @@ |
|
|
|
|
<uni-forms-item label="非机动车流量"> |
|
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
|
<input v-if="isEditStep2" type="number" class="BorderNone Height100 formInput" |
|
|
|
|
v-model="formData.nonvehicleTraffic" placeholder="请输入非机动车流量" @focus="focus2" @blur="blur2" /> |
|
|
|
|
v-model="formData.nonvehicleTraffic" placeholder="请输入非机动车流量" @focus="focus2" |
|
|
|
|
@blur="blur2" /> |
|
|
|
|
<view class="Height100" v-else>{{ formData.nonvehicleTraffic }}</view> |
|
|
|
|
<view class="Height100">辆</view> |
|
|
|
|
</view> |
|
|
|
@ -450,16 +453,16 @@ |
|
|
|
|
<view class="blank" /> |
|
|
|
|
</view> |
|
|
|
|
<bottom-button-two :type="type" v-if="active === 1" @cancel="isEdit = !isEdit" :cancelText="isEdit?'取消':'更改'" |
|
|
|
|
@confirm="bottomButtonTwo" /> |
|
|
|
|
@confirm="bottomButtonTwo();" /> |
|
|
|
|
<!-- |
|
|
|
|
<bottom-button-two :type="type" v-else-if="active === 2" :secondText="isEditStep2?'取消':'更改'" |
|
|
|
|
@second="isEditStep2 = !isEditStep2" @first="active = 1" @last="active = 3" /> |
|
|
|
|
--> |
|
|
|
|
|
|
|
|
|
<bottom-button :type="type" v-else-if="active === 2" :secondText="isEditStep2?'取消':'更改'" |
|
|
|
|
@second="isEditStep2 = !isEditStep2" @first="active = 1" @last="active = 3" /> |
|
|
|
|
<bottom-button isSubmit :type="type" v-else-if="active === 3" :secondText="'暂存'" @first="active = 2" |
|
|
|
|
@second="submit(false)" @last="submit(true)" /> |
|
|
|
|
@second="isEditStep2 = !isEditStep2" @first="active = 1;pageScrollTo()" @last="active = 3;pageScrollTo()" /> |
|
|
|
|
<bottom-button isSubmit :type="type" v-else-if="active === 3" :secondText="'暂存'" |
|
|
|
|
@first="active = 2;pageScrollTo()" @second="submit(false)" @last="submit(true)" /> |
|
|
|
|
<u-modal :show="modalShow" content="您未录入任何隐患问题,该点段将以“无隐患”结论提交结果,请确认是否提交?" confirm-text="确定" cancel-text="取消" |
|
|
|
|
:showConfirmButton="true" :showCancelButton="true" @confirm="postSaveManualInvestigation" |
|
|
|
|
@cancel="modalShow = false" :closeOnClickOverlay="false"></u-modal> |
|
|
|
@ -863,6 +866,14 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
pageScrollTo() { |
|
|
|
|
uni.pageScrollTo({ |
|
|
|
|
scrollTop: 0, |
|
|
|
|
duration: 200 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 确认授权后,获取用户位置 |
|
|
|
|
getLocationInfo() { |
|
|
|
|
uni.getLocation({ |
|
|
|
@ -1266,7 +1277,7 @@ |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
this.columnsdlPicker[0].forEach(item => { |
|
|
|
|
if(item.enumvalue == res.result.sectionType) { |
|
|
|
|
if (item.enumvalue == res.result.sectionType) { |
|
|
|
|
this.$set(this.formData, 'roadTypeName', item.enumName) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -1295,7 +1306,10 @@ |
|
|
|
|
}, |
|
|
|
|
// "/hiddenDanger/highDanger/getSectionInfo", |
|
|
|
|
getBaseData(businessId) { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getSectionInfo", {nuserid: this.$.getData("token"), businessId}, "GET").then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getSectionInfo", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
for (let k in res.result) { |
|
|
|
|
if (res.result[k] == 0) { |
|
|
|
@ -1308,7 +1322,7 @@ |
|
|
|
|
}; |
|
|
|
|
console.log('this.columnsdlPicker', this.columnsdlPicker) |
|
|
|
|
this.columnsdlPicker[0]?.forEach(item => { |
|
|
|
|
if(item.enumvalue == this.formData.roadType) { |
|
|
|
|
if (item.enumvalue == this.formData.roadType) { |
|
|
|
|
this.$set(this.formData, 'roadTypeName', item.enumName) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -1316,7 +1330,10 @@ |
|
|
|
|
this.getBaseDefaultData() |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getSectionTraffic", {nuserid: this.$.getData("token"), businessId}, "GET").then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getSectionTraffic", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
// todo 无数据结构 |
|
|
|
|
this.formData = { |
|
|
|
@ -1325,7 +1342,10 @@ |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getImportDangerDisplay", {sid: "02", businessId}, "GET").then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getImportDangerDisplay", { |
|
|
|
|
sid: "02", |
|
|
|
|
businessId |
|
|
|
|
}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
// todo 无数据结构 |
|
|
|
|
for (let items of res.result) { |
|
|
|
@ -1379,23 +1399,32 @@ |
|
|
|
|
// }); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getImportDangers", {nuserid: this.$.getData("token"), businessId}, "GET").then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getImportDangers", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.investigationList = res.result; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getUserHiddenDangerList", {pcType: 2, businessId}, "GET").then((res) => { |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getUserHiddenDangerList", { |
|
|
|
|
pcType: 2, |
|
|
|
|
businessId |
|
|
|
|
}, "GET").then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.hiddenDangerList.push(...res.result) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getDangerItems", {nuserid: this.$.getData("token"), businessId}, "GET") |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.problemTreeSelectConfirmList = res.result; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.$request.globalRequest("/hiddenDanger/highDanger/getDangerItems", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, "GET") |
|
|
|
|
.then((res) => { |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.problemTreeSelectConfirmList = res.result; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleSelectProblem(item, index) { |
|
|
|
|
// this.problemTreeSelectConfirmList.push(item) |
|
|
|
@ -1647,7 +1676,6 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
bottomButtonTwo() { |
|
|
|
|
console.log(this.type) |
|
|
|
|
if (!this.type) { |
|
|
|
|
if (!this.formData.roadType) { |
|
|
|
|
return this.$.toast("请输入道路类型"); |
|
|
|
@ -1665,7 +1693,7 @@ |
|
|
|
|
return this.$.toast("请输入限速"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.pageScrollTo() |
|
|
|
|
this.isEdit = false; |
|
|
|
|
this.active = 2; |
|
|
|
|
}, |
|
|
|
|