|
|
|
@ -98,9 +98,9 @@ |
|
|
|
|
</view> |
|
|
|
|
</uni-forms-item> |
|
|
|
|
</uni-forms> |
|
|
|
|
<view class="photo"> |
|
|
|
|
<!-- <view class="photo"> |
|
|
|
|
<image src="/static/base.jpg" mode="widthFix"></image> |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
</view> |
|
|
|
|
<view class="echarts" v-if="active === 2"> |
|
|
|
|
<qiun-data-charts type="area" :opts="opts" :chartData="chartData" /> |
|
|
|
@ -250,8 +250,8 @@ |
|
|
|
|
<view v-for="(item,index) in hiddenDangerList" :key="item" style="width: 100%"> |
|
|
|
|
<view class="problem-item"> |
|
|
|
|
<view style="display: flex; justify-content: space-between"> |
|
|
|
|
<view style="width: 80%"> |
|
|
|
|
{{ item.dangerProblem }} |
|
|
|
|
<view style="width: 80%;line-height: 30px;"> |
|
|
|
|
{{ item.hdTermName }} |
|
|
|
|
</view> |
|
|
|
|
<view> |
|
|
|
|
<view class="check" @click="onHiddenDangerList(item,index)"> |
|
|
|
@ -266,7 +266,7 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="text">{{ item.hdTerm }}</view> --> |
|
|
|
|
<view class="text">{{ item.hdDesc }}</view> |
|
|
|
|
<!-- <view class="text">{{ item.hdDesc }}</view> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
@ -321,7 +321,7 @@ |
|
|
|
|
@delete="(e) => deletePic(e, 'fileList')" name="1" :maxCount="1"></u-upload> |
|
|
|
|
</view> |
|
|
|
|
<view class="detail-item"> |
|
|
|
|
<uni-forms-item label="需采集补充信息" label-position="top" label-width="200px" /> |
|
|
|
|
<uni-forms-item label="补充信息" label-position="top" label-width="200px" /> |
|
|
|
|
<u-textarea placeholder="请输入" border="none" v-model="describe.hdInfo" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -350,6 +350,18 @@ |
|
|
|
|
@first="active = 1" @last="active = 3" /> |
|
|
|
|
<bottom-button v-else-if="active === 3" :secondText="'暂存'" @first="active = 2" @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> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -550,6 +562,10 @@ |
|
|
|
|
//选中排查数据 |
|
|
|
|
troubleshootingData: [], |
|
|
|
|
checked: [], |
|
|
|
|
modalShow: false, |
|
|
|
|
extraConfigs: [], |
|
|
|
|
describeArr: [], |
|
|
|
|
temporary: '' |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
@ -1078,14 +1094,30 @@ |
|
|
|
|
extraConfigs: extraConfigs, |
|
|
|
|
describe: describe, |
|
|
|
|
}); |
|
|
|
|
this.extraConfigs = extraConfigs |
|
|
|
|
this.describeArr = describe |
|
|
|
|
this.temporary = temporary |
|
|
|
|
console.log(this.extraConfigs,this.describeArr) |
|
|
|
|
if(!temporary) { |
|
|
|
|
this.postSaveManualInvestigation() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if(this.extraConfigs.length <= 0 || this.describeArr.length <= 0) { |
|
|
|
|
this.modalShow = true |
|
|
|
|
} else { |
|
|
|
|
this.postSaveManualInvestigation() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
postSaveManualInvestigation() { |
|
|
|
|
this.$request |
|
|
|
|
.globalRequest( |
|
|
|
|
"/hiddenDanger/highDanger/saveManualInvestigation", { |
|
|
|
|
...this.formData, |
|
|
|
|
businessId: this.businessId, |
|
|
|
|
extraConfigs: extraConfigs, |
|
|
|
|
describe: describe, |
|
|
|
|
extraConfigs: this.extraConfigs, |
|
|
|
|
describe: this.describeArr, |
|
|
|
|
temporary: this.temporary, |
|
|
|
|
// describe: [{ |
|
|
|
|
// "bigCategory": "1", |
|
|
|
|
// "bigCategoryName": "道路线性断面", |
|
|
|
@ -1097,14 +1129,17 @@ |
|
|
|
|
// "hdPic": "", |
|
|
|
|
// "hdInfo": "" |
|
|
|
|
// }], |
|
|
|
|
temporary, |
|
|
|
|
}, |
|
|
|
|
"POST" |
|
|
|
|
) |
|
|
|
|
.then((res) => { |
|
|
|
|
console.log(res); |
|
|
|
|
if (res.code === 200) { |
|
|
|
|
this.$.toast("保存成功"); |
|
|
|
|
if(this.temporary) { |
|
|
|
|
this.$.toast("保存成功"); |
|
|
|
|
} else { |
|
|
|
|
this.$.toast("暂存成功"); |
|
|
|
|
} |
|
|
|
|
setTimeout(() => { |
|
|
|
|
uni.navigateBack({ |
|
|
|
|
delta: 2, // 默认值是1,表示返回的页面层数 |
|
|
|
@ -1127,7 +1162,7 @@ |
|
|
|
|
this.$.toast(res.msg); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|