submit.wxml 6.2 KB

1
  1. <view class="body _div data-v-2bfad09e"><uni-forms vue-id="535fc428-1" label-position="top" rules="{{rules}}" model="{{formData}}" data-ref="form" class="data-v-2bfad09e vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><uni-forms-item vue-id="{{('535fc428-2')+','+('535fc428-1')}}" label="预警标题" name="desc" required="{{true}}" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('535fc428-3')+','+('535fc428-2')}}" placeholder="请输入描述" value="{{formData.hdangerTitle}}" data-event-opts="{{[['^input',[['__set_model',['$0','hdangerTitle','$event',[]],['formData']]]]]}}" class="data-v-2bfad09e" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('535fc428-4')+','+('535fc428-1')}}" label="采空区" name="goafId" required="{{true}}" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" vue-id="{{('535fc428-5')+','+('535fc428-4')}}" localdata="{{goafList}}" value="{{formData.goafId}}" data-event-opts="{{[['^input',[['__set_model',['$0','goafId','$event',[]],['formData']]]]]}}" class="data-v-2bfad09e" bind:__l="__l"></uni-data-select></uni-forms-item><block wx:if="{{false}}"><uni-forms-item vue-id="{{('535fc428-6')+','+('535fc428-1')}}" label="预警类型" name="hdangerType" required="{{true}}" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" vue-id="{{('535fc428-7')+','+('535fc428-6')}}" clear="{{false}}" localdata="{{hdangerTypes}}" value="{{formData.hdangerType}}" data-event-opts="{{[['^input',[['__set_model',['$0','hdangerType','$event',[]],['formData']]]]]}}" class="data-v-2bfad09e" bind:__l="__l"></uni-data-select></uni-forms-item></block><block wx:if="{{formState!=='form_checkList'}}"><uni-forms-item vue-id="{{('535fc428-8')+','+('535fc428-1')}}" label="检查表" name="checklistId" required="{{true}}" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-select bind:input="__e" vue-id="{{('535fc428-9')+','+('535fc428-8')}}" localdata="{{checkList}}" value="{{formData.checklistId}}" data-event-opts="{{[['^input',[['__set_model',['$0','checklistId','$event',[]],['formData']]]]]}}" class="data-v-2bfad09e" bind:__l="__l"></uni-data-select></uni-forms-item></block><uni-forms-item vue-id="{{('535fc428-10')+','+('535fc428-1')}}" label="评审人" name="reviewAccountId" required="{{true}}" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><view style="padding-bottom:16rpx;" class="data-v-2bfad09e"><uni-data-picker vue-id="{{('535fc428-11')+','+('535fc428-10')}}" map="{{groupMap}}" placeholder="请选择组织" popup-title="请选择组织" localdata="{{groupList}}" value="{{groupId}}" data-event-opts="{{[['^nodeclick',[['onnodeclick']]],['^change',[['onchangeGroup']]],['^input',[['__set_model',['','groupId','$event',[]]]]]]}}" bind:nodeclick="__e" bind:change="__e" bind:input="__e" class="data-v-2bfad09e" bind:__l="__l"></uni-data-picker></view><uni-data-select bind:input="__e" vue-id="{{('535fc428-12')+','+('535fc428-10')}}" localdata="{{userList}}" value="{{formData.reviewAccountId}}" data-event-opts="{{[['^input',[['__set_model',['$0','reviewAccountId','$event',[]],['formData']]]]]}}" class="data-v-2bfad09e" bind:__l="__l"></uni-data-select></uni-forms-item><uni-forms-item vue-id="{{('535fc428-13')+','+('535fc428-1')}}" label="预警等级" name="hdangerLevel" required="{{true}}" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><uni-data-checkbox bind:input="__e" vue-id="{{('535fc428-14')+','+('535fc428-13')}}" localdata="{{hdangerLevels}}" value="{{formData.hdangerLevel}}" data-event-opts="{{[['^input',[['__set_model',['$0','hdangerLevel','$event',[]],['formData']]]]]}}" class="data-v-2bfad09e" bind:__l="__l"></uni-data-checkbox></uni-forms-item><uni-forms-item vue-id="{{('535fc428-15')+','+('535fc428-1')}}" label="发生时间" name="submitTime" required="{{true}}" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><uni-datetime-picker bind:input="__e" vue-id="{{('535fc428-16')+','+('535fc428-15')}}" type="datetime" value="{{formData.submitTime}}" data-event-opts="{{[['^input',[['__set_model',['$0','submitTime','$event',[]],['formData']]]]]}}" class="data-v-2bfad09e" bind:__l="__l"></uni-datetime-picker></uni-forms-item><uni-forms-item vue-id="{{('535fc428-17')+','+('535fc428-1')}}" label="截止时间" name="dangerDeadline" required="{{true}}" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><uni-datetime-picker bind:input="__e" vue-id="{{('535fc428-18')+','+('535fc428-17')}}" type="datetime" value="{{formData.dangerDeadline}}" data-event-opts="{{[['^input',[['__set_model',['$0','dangerDeadline','$event',[]],['formData']]]]]}}" class="data-v-2bfad09e" bind:__l="__l"></uni-datetime-picker></uni-forms-item><uni-forms-item vue-id="{{('535fc428-19')+','+('535fc428-1')}}" label="描述" name="hdangerDesc" required="{{true}}" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><uni-easyinput bind:input="__e" vue-id="{{('535fc428-20')+','+('535fc428-19')}}" type="textarea" autoHeight="{{true}}" placeholder="请输入描述" value="{{formData.hdangerDesc}}" data-event-opts="{{[['^input',[['__set_model',['$0','hdangerDesc','$event',[]],['formData']]]]]}}" class="data-v-2bfad09e" bind:__l="__l"></uni-easyinput></uni-forms-item><uni-forms-item vue-id="{{('535fc428-21')+','+('535fc428-1')}}" label="附件" class="data-v-2bfad09e" bind:__l="__l" vue-slots="{{['default']}}"><view class="upload-container _div data-v-2bfad09e"><image class="upload data-v-2bfad09e" src="/static/icon/upload.png" mode="widthFix" data-event-opts="{{[['tap',[['upload',['$event']]]]]}}" bindtap="__e"></image><view class="tip _p data-v-2bfad09e">注:单个附件上传不超过10M,附件累计不超过20M</view></view><block wx:if="{{$root.g0>0}}"><view class="preview data-v-2bfad09e"><block wx:for="{{formData.attachList}}" wx:for-item="attach" wx:for-index="index" wx:key="index"><image class="preview-item data-v-2bfad09e" src="{{attach.fileUrl}}" mode="widthFix"></image></block></view></block></uni-forms-item></uni-forms><view data-event-opts="{{[['tap',[['onSubmit',['$event']]]]]}}" class="footer data-v-2bfad09e" bindtap="__e">提交</view></view>