水运情况bug修改

main
张群 2 years ago
parent b22c005fd7
commit 65f7e3b2c9
  1. 39
      pages/water/transportation/form.vue

@ -86,14 +86,30 @@
</picker>
</view>
</view> -->
<view class="form_item">
<!-- <view class="form_item_remark">
<view class="form_item_label">事故内容</view>
<view class="form_item_input">
<uni-easyinput v-model="item.accidentContent" type="textarea"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="200">
</uni-easyinput>
</view>
</view> -->
<view class="form_item">
<view class="form_item_label">事故内容</view>
<view class="form_item_input form_input">
<uni-easyinput v-model="item.accidentContent"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="50">
</uni-easyinput>
</view>
</view>
<!-- <view class="form_item">
<view class="form_item_label">事故具体情况</view>
<view class="form_item_input form_input">
<uni-easyinput v-model="item.dataDetails"
placeholderStyle="color: #D4D4D4;font-size:28rpx;" placeholder="请输入" maxlength="200">
</uni-easyinput>
</view>
</view>
</view> -->
<view class="form_item">
<view class="form_item_label">处置工作开展情况</view>
<view class="form_item_input form_input">
@ -298,8 +314,7 @@
let checkAccident = true;
if(this.form.listContion.length > 0){
checkAccident = this.form.listContion.every(item => {
return checkNotEmpty(item.accidentContent) && checkNotEmpty(item.accidentHappened) && checkNotEmpty(item.endTime) && checkNotEmpty(item
.gradeAccidents) && checkNotEmpty(item.occurrenceLocation)
return checkNotEmpty(item.accidentContent) && checkNotEmpty(item.accidentHappened) && checkNotEmpty(item.occurrenceLocation)
})
}
if (!checkAccident) {
@ -323,12 +338,14 @@
submitForm() {
this.form.listContion.map((item,index) => {
item.rowKey = index;
item.accidentHappened = this.formatdate(item.accidentHappened);
item.endTime = this.formatdate(item.endTime);
})
uni.showLoading({
title: '提交中...',
mask: true
})
this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/saveOrUpdate', this
this.$request(getApp().globalData.baseUrl + '/api/biz/watertransportRunSituation/saveOrUpdate', this
.form,
'POST').then(res => {
uni.hideLoading();
@ -432,11 +449,13 @@
margin-bottom: 30rpx;
.form_item_label {
color: #333333;
line-height: 42rpx;
font-size: 30rpx;
font-family: PingFang SC-Bold, PingFang SC;
font-weight: bold;
// color: #333333;
// line-height: 42rpx;
// font-size: 30rpx;
// font-family: PingFang SC-Bold, PingFang SC;
// font-weight: bold;
color: #666666;
font-size: 26rpx;
margin-bottom: 30rpx;
}
}

Loading…
Cancel
Save