|
|
|
@ -37,8 +37,8 @@ |
|
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100" v-model="formData.roadType" |
|
|
|
|
placeholder="请输入道路类型" /> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{ |
|
|
|
|
formData.roadType |
|
|
|
|
}}</text> |
|
|
|
|
formData.roadType |
|
|
|
|
}}</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
<uni-forms-item label="道路宽度"> |
|
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100" v-model="formData.roadWidth" |
|
|
|
@ -54,34 +54,34 @@ |
|
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100" v-model="formData.roadStructure" |
|
|
|
|
placeholder="请输入路面结构" /> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{ |
|
|
|
|
formData.roadStructure |
|
|
|
|
}}</text> |
|
|
|
|
formData.roadStructure |
|
|
|
|
}}</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
<uni-forms-item label="路侧防护"> |
|
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100" v-model="formData.sideProtec" |
|
|
|
|
placeholder="请输入路侧防护" /> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{ |
|
|
|
|
formData.sideProtec |
|
|
|
|
}}</text> |
|
|
|
|
formData.sideProtec |
|
|
|
|
}}</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
<uni-forms-item label="中央隔离"> |
|
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100" v-model="formData.centerSeparate" |
|
|
|
|
placeholder="请输入中央隔离" /> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{ |
|
|
|
|
formData.centerSeparate |
|
|
|
|
}}</text> |
|
|
|
|
formData.centerSeparate |
|
|
|
|
}}</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
<uni-forms-item label="设计时速"> |
|
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100" v-model="formData.designSpeed" |
|
|
|
|
placeholder="请输入设计时速" /> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" |
|
|
|
|
v-else>{{ formData.designSpeed }}Km/h</text> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{ formData.designSpeed |
|
|
|
|
}}Km/h</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
<uni-forms-item label="限速"> |
|
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100" v-model="formData.limitSpeed" |
|
|
|
|
placeholder="请输入限速" /> |
|
|
|
|
<text class="Height100 Flex Flex_C_S-Center Flex_end" |
|
|
|
|
v-else>{{ formData.limitSpeed }}Km/h</text> |
|
|
|
|
<text class="Height100 Flex Flex_C_S-Center Flex_end" v-else>{{ formData.limitSpeed |
|
|
|
|
}}Km/h</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
</uni-forms> |
|
|
|
|
<view class="photo"> |
|
|
|
@ -107,26 +107,26 @@ |
|
|
|
|
<input v-if="isEditStep2" type="number" class="BorderNone Height100" |
|
|
|
|
v-model="formData.peakHours" placeholder="请输入高峰时段" /> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{ |
|
|
|
|
formData.peakHours |
|
|
|
|
}}</text> |
|
|
|
|
formData.peakHours |
|
|
|
|
}}</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
<uni-forms-item label="平峰流量"> |
|
|
|
|
<input v-if="isEditStep2" type="number" class="BorderNone Height100" |
|
|
|
|
v-model="formData.normalTraffic" placeholder="请输入平峰流量" /> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" |
|
|
|
|
v-else>{{ formData.normalTraffic }}辆</text> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{ formData.normalTraffic |
|
|
|
|
}}辆</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
<uni-forms-item label="大车占比"> |
|
|
|
|
<input v-if="isEditStep2" type="number" class="BorderNone Height100" |
|
|
|
|
v-model="formData.largeVehicleRate" placeholder="请输入大车占比" /> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" |
|
|
|
|
v-else>{{ formData.largeVehicleRate }}%</text> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{ formData.largeVehicleRate |
|
|
|
|
}}%</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
<uni-forms-item label="非机动车流量"> |
|
|
|
|
<input v-if="isEditStep2" type="number" class="BorderNone Height100" |
|
|
|
|
v-model="formData.nonvehicleTraffic" placeholder="请输入非机动车流量" /> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" |
|
|
|
|
v-else>{{ formData.nonvehicleTraffic }}辆</text> |
|
|
|
|
<text class="Height100 Flex Flex_end Flex_C_S-Center" v-else>{{ formData.nonvehicleTraffic |
|
|
|
|
}}辆</text> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
</uni-forms> |
|
|
|
|
</view> |
|
|
|
@ -146,6 +146,10 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<u-checkbox-group v-model="checked" iconPlacement="right" placement="row"> |
|
|
|
|
<u-checkbox v-for="(item,index) in troubleshootingData" :label="item.itemname" activeColor="#2663BF" |
|
|
|
|
:name="item.id"></u-checkbox> |
|
|
|
|
</u-checkbox-group> |
|
|
|
|
<u-popup :show="showInvestigation" @close="showInvestigation = false"> |
|
|
|
|
<InvestigationItem @select="select2"></InvestigationItem> |
|
|
|
|
</u-popup> |
|
|
|
@ -258,8 +262,8 @@ |
|
|
|
|
<uni-forms-item label="隐患问题" label-position="top" label-width="100px" |
|
|
|
|
style="display: flex; align-items: center" /> |
|
|
|
|
<view v-if="hiddenDangerList2.length > 0">{{ hiddenDangerList2[0].itemname }}/{{ |
|
|
|
|
hiddenDangerList2[1].itemname |
|
|
|
|
}}/{{ hiddenDangerList2[2].itemname }}</view> |
|
|
|
|
hiddenDangerList2[1].itemname |
|
|
|
|
}}/{{ hiddenDangerList2[2].itemname }}</view> |
|
|
|
|
|
|
|
|
|
<!-- <u-input |
|
|
|
|
placeholder="请选择" |
|
|
|
@ -268,8 +272,8 @@ |
|
|
|
|
v-else |
|
|
|
|
/> --> |
|
|
|
|
<view v-else-if="dangerProblem">{{ |
|
|
|
|
dangerProblem |
|
|
|
|
}}</view> |
|
|
|
|
dangerProblem |
|
|
|
|
}}</view> |
|
|
|
|
<view v-else>请选择</view> |
|
|
|
|
<!-- --> |
|
|
|
|
</view> |
|
|
|
@ -359,60 +363,60 @@ |
|
|
|
|
investigationSelectList: [], |
|
|
|
|
investigationSelectIDList: [], |
|
|
|
|
investigationList: [{ |
|
|
|
|
name: "基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息", |
|
|
|
|
value: 1, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "xxxxx", |
|
|
|
|
value: 2 |
|
|
|
|
}, |
|
|
|
|
name: "基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息基本信息", |
|
|
|
|
value: 1, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "xxxxx", |
|
|
|
|
value: 2 |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
investigationSelect: 1, |
|
|
|
|
showInvestigationDetail: false, |
|
|
|
|
investigationDetailList: [{ |
|
|
|
|
type: "check", |
|
|
|
|
value: "" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: "text", |
|
|
|
|
value: "" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: "number", |
|
|
|
|
value: "" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: "upload", |
|
|
|
|
value: "" |
|
|
|
|
}, |
|
|
|
|
type: "check", |
|
|
|
|
value: "" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: "text", |
|
|
|
|
value: "" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: "number", |
|
|
|
|
value: "" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: "upload", |
|
|
|
|
value: "" |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
investigationDetailTitle: "title", |
|
|
|
|
isEdit: false, |
|
|
|
|
isEditStep2: false, |
|
|
|
|
active: 1, |
|
|
|
|
tablist: [{ |
|
|
|
|
title: "基本信息", |
|
|
|
|
type: "item", |
|
|
|
|
i: 1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "基本信息", |
|
|
|
|
type: "point" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "统计信息", |
|
|
|
|
type: "item", |
|
|
|
|
i: 2 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "统计信息", |
|
|
|
|
type: "point" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "隐患排查", |
|
|
|
|
type: "item", |
|
|
|
|
i: 3 |
|
|
|
|
}, |
|
|
|
|
title: "基本信息", |
|
|
|
|
type: "item", |
|
|
|
|
i: 1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "基本信息", |
|
|
|
|
type: "point" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "统计信息", |
|
|
|
|
type: "item", |
|
|
|
|
i: 2 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "统计信息", |
|
|
|
|
type: "point" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: "隐患排查", |
|
|
|
|
type: "item", |
|
|
|
|
i: 3 |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
formData: { |
|
|
|
|
roadType: "", |
|
|
|
@ -476,29 +480,29 @@ |
|
|
|
|
showProblemTreeSelect: false, |
|
|
|
|
problemTreeSelect: 0, |
|
|
|
|
problemTreeSelectList: [{ |
|
|
|
|
name: "ashfjshfjsd1" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd2" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjs3d" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd4" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd5" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd6" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd8" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd7" |
|
|
|
|
}, |
|
|
|
|
name: "ashfjshfjsd1" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd2" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjs3d" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd4" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd5" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd6" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd8" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "ashfjshfjsd7" |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
problemTreeSelectConfirmList: [], |
|
|
|
|
hiddenDangerList: [], |
|
|
|
@ -509,7 +513,10 @@ |
|
|
|
|
addInvestigationInfo: { |
|
|
|
|
type: '', |
|
|
|
|
index: 0 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//选中排查数据 |
|
|
|
|
troubleshootingData: [], |
|
|
|
|
checked: [], |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -519,19 +526,43 @@ |
|
|
|
|
this.showInvestigation2Item = v; |
|
|
|
|
}, |
|
|
|
|
select2(v, list) { |
|
|
|
|
this.showInvestigation = false; |
|
|
|
|
let id = 0; |
|
|
|
|
this.investigationSelectList.map((r) => { |
|
|
|
|
if (r.nid == v.nid) { |
|
|
|
|
id = r.nid; |
|
|
|
|
// this.showInvestigation = false; |
|
|
|
|
// let id = 0; |
|
|
|
|
// this.investigationSelectList.map((r) => { |
|
|
|
|
// if (r.nid == v.nid) { |
|
|
|
|
// id = r.nid; |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
// if (!id) { |
|
|
|
|
// v.extraConfigs = list; |
|
|
|
|
// this.investigationSelectList.push(v); |
|
|
|
|
// this.showInvestigation = false; |
|
|
|
|
// } else { |
|
|
|
|
// this.$.toast("已添加"); |
|
|
|
|
// } |
|
|
|
|
list.dangerItems.forEach(item => { |
|
|
|
|
// 假设this.troubleshootingData中没有与当前item.id相同的id |
|
|
|
|
let found = false; |
|
|
|
|
|
|
|
|
|
// 遍历this.troubleshootingData数组来查找id |
|
|
|
|
this.troubleshootingData.forEach(item2 => { |
|
|
|
|
if (item.id === item2.id) { |
|
|
|
|
// 如果找到了,设置found为true并退出循环 |
|
|
|
|
found = true; |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 如果在this.troubleshootingData中没有找到相同的id,则将其添加到result数组中 |
|
|
|
|
if (!found) { |
|
|
|
|
this.troubleshootingData.push(item); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
if (!id) { |
|
|
|
|
v.extraConfigs = list; |
|
|
|
|
this.investigationSelectList.push(v); |
|
|
|
|
this.showInvestigation = false; |
|
|
|
|
} else { |
|
|
|
|
this.$.toast("已添加"); |
|
|
|
|
// this.troubleshootingData = result |
|
|
|
|
this.showInvestigation = false |
|
|
|
|
let isId = this.investigationSelectList.some(item => item.nid === list.nid); |
|
|
|
|
if (!isId) { |
|
|
|
|
this.investigationSelectList.push(list) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
select3(v) { |
|
|
|
@ -566,25 +597,25 @@ |
|
|
|
|
newArr = ['', '', ''] |
|
|
|
|
} |
|
|
|
|
this.hiddenDangerList2 = [{ |
|
|
|
|
id: v.bigCategory, |
|
|
|
|
itemname: newArr[0] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
id: v.smallCategory, |
|
|
|
|
itemname: newArr[1] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
id: v.hdTerm, |
|
|
|
|
itemname: newArr[2] |
|
|
|
|
} |
|
|
|
|
id: v.bigCategory, |
|
|
|
|
itemname: newArr[0] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
id: v.smallCategory, |
|
|
|
|
itemname: newArr[1] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
id: v.hdTerm, |
|
|
|
|
itemname: newArr[2] |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
// console.log(this.hiddenDangerList2) |
|
|
|
|
|
|
|
|
|
if(v.hdPic){ |
|
|
|
|
if (v.hdPic) { |
|
|
|
|
this.fileList = [{ |
|
|
|
|
url: v.hdPic |
|
|
|
|
}]; |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
this.fileList = []; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -622,9 +653,9 @@ |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getSectionInfo", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
@ -638,9 +669,9 @@ |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getSectionTraffic", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
@ -655,9 +686,9 @@ |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getImportDangerDisplay", { |
|
|
|
|
sid: "02", |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
sid: "02", |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
@ -667,9 +698,10 @@ |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getImportDangerDisplayDetail", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId, |
|
|
|
|
dangerId: '26' |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
@ -689,9 +721,9 @@ |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getImportDangers", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
@ -702,9 +734,9 @@ |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getUserHiddenDangerList", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
@ -716,9 +748,9 @@ |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/getDangerItems", { |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
nuserid: this.$.getData("token"), |
|
|
|
|
businessId |
|
|
|
|
}, |
|
|
|
|
"GET" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
@ -814,20 +846,20 @@ |
|
|
|
|
let res = { |
|
|
|
|
categories: ["2018", "2019", "2020", "2021", "2022", "2023"], |
|
|
|
|
series: [{ |
|
|
|
|
name: "总量", |
|
|
|
|
legendShape: "line", |
|
|
|
|
data: [35, 8, 25, 37, 4, 20], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "大车", |
|
|
|
|
legendShape: "line", |
|
|
|
|
data: [70, 40, 65, 100, 44, 68], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "小车", |
|
|
|
|
legendShape: "line", |
|
|
|
|
data: [100, 80, 95, 150, 112, 132], |
|
|
|
|
}, |
|
|
|
|
name: "总量", |
|
|
|
|
legendShape: "line", |
|
|
|
|
data: [35, 8, 25, 37, 4, 20], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "大车", |
|
|
|
|
legendShape: "line", |
|
|
|
|
data: [70, 40, 65, 100, 44, 68], |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "小车", |
|
|
|
|
legendShape: "line", |
|
|
|
|
data: [100, 80, 95, 150, 112, 132], |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|
this.chartData = JSON.parse(JSON.stringify(res)); |
|
|
|
@ -841,7 +873,7 @@ |
|
|
|
|
len = !len ? 36 : len; |
|
|
|
|
binary = !binary ? 16 : binary; |
|
|
|
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" |
|
|
|
|
.replace(/[xy]/g, function(c) { |
|
|
|
|
.replace(/[xy]/g, function (c) { |
|
|
|
|
var r = (Math.random() * binary) | 0, |
|
|
|
|
v = c == "x" ? r : (r & 0x3) | 0x8; |
|
|
|
|
return v.toString(binary); |
|
|
|
@ -929,7 +961,7 @@ |
|
|
|
|
if (item.businessId) { |
|
|
|
|
delete item.businessId |
|
|
|
|
} |
|
|
|
|
if (item.pcCount||item.pcCount==null) { |
|
|
|
|
if (item.pcCount || item.pcCount == null) { |
|
|
|
|
delete item.pcCount |
|
|
|
|
} |
|
|
|
|
if (item.dangerProblem) { |
|
|
|
@ -943,34 +975,34 @@ |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/saveManualInvestigation", { |
|
|
|
|
...this.formData, |
|
|
|
|
businessId: this.businessId, |
|
|
|
|
extraConfigs: extraConfigs, |
|
|
|
|
describe:describe, |
|
|
|
|
// describe: [{ |
|
|
|
|
// "bigCategory": "1", |
|
|
|
|
// "bigCategoryName": "道路线性断面", |
|
|
|
|
// "smallCategory": "2", |
|
|
|
|
// "smallCategoryName": "平面线形", |
|
|
|
|
// "hdTerm": "4", |
|
|
|
|
// "hdTermName": "急弯接桥、隧道、涵洞的", |
|
|
|
|
// "hdDesc": "", |
|
|
|
|
// "hdPic": "", |
|
|
|
|
// "hdInfo": "" |
|
|
|
|
// }], |
|
|
|
|
temporary, |
|
|
|
|
}, |
|
|
|
|
...this.formData, |
|
|
|
|
businessId: this.businessId, |
|
|
|
|
extraConfigs: extraConfigs, |
|
|
|
|
describe: describe, |
|
|
|
|
// describe: [{ |
|
|
|
|
// "bigCategory": "1", |
|
|
|
|
// "bigCategoryName": "道路线性断面", |
|
|
|
|
// "smallCategory": "2", |
|
|
|
|
// "smallCategoryName": "平面线形", |
|
|
|
|
// "hdTerm": "4", |
|
|
|
|
// "hdTermName": "急弯接桥、隧道、涵洞的", |
|
|
|
|
// "hdDesc": "", |
|
|
|
|
// "hdPic": "", |
|
|
|
|
// "hdInfo": "" |
|
|
|
|
// }], |
|
|
|
|
temporary, |
|
|
|
|
}, |
|
|
|
|
"POST" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
console.log(res); |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.$.toast("保存成功"); |
|
|
|
|
setTimeout(() => { |
|
|
|
|
uni.navigateBack({ |
|
|
|
|
delta: 2, // 默认值是1,表示返回的页面层数 |
|
|
|
|
}); |
|
|
|
|
}, 1000); |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// uni.navigateBack({ |
|
|
|
|
// delta: 2, // 默认值是1,表示返回的页面层数 |
|
|
|
|
// }); |
|
|
|
|
// }, 1000); |
|
|
|
|
|
|
|
|
|
// this.data = res.result; |
|
|
|
|
// this.rname = this.data[0].name; |
|
|
|
@ -1275,4 +1307,12 @@ |
|
|
|
|
padding: 0 20rpx; |
|
|
|
|
overflow-x: auto; |
|
|
|
|
} |
|
|
|
|
.u-checkbox-group--row { |
|
|
|
|
flex-direction: column; |
|
|
|
|
padding: 0 20rpx; |
|
|
|
|
|
|
|
|
|
.u-checkbox { |
|
|
|
|
margin-bottom: 30rpx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |