111 lines
4.9 KiB
Plaintext
111 lines
4.9 KiB
Plaintext
|
|
<!--pages/msg/push/index.wxml-->
|
|||
|
|
<title-bar title="应急上报"></title-bar>
|
|||
|
|
<scroll-view scroll-y refresher-enabled style="height: calc(100vh - {{topBarH}}px);">
|
|||
|
|
<view class="item">
|
|||
|
|
<!-- 标题 -->
|
|||
|
|
<view class="h-div v-center header">
|
|||
|
|
<text class="single"></text>
|
|||
|
|
<text class="title">标题</text>
|
|||
|
|
</view>
|
|||
|
|
<input bindinput="inputContent" data-name="title" class="put v-div h-center" placeholder="请输入标题" value="{{postData.title}}"></input>
|
|||
|
|
<!-- 时间 -->
|
|||
|
|
<view class="h-div v-center header">
|
|||
|
|
<text class="single"></text>
|
|||
|
|
<text class="title">事发时间</text>
|
|||
|
|
</view>
|
|||
|
|
<picker mode="date" value="{{postData.createTime}}" bindchange="bindDateChange">
|
|||
|
|
<input disabled class="put v-div h-center" placeholder="请选择" value="{{postData.createTime}}"></input>
|
|||
|
|
</picker>
|
|||
|
|
<!-- 地点 -->
|
|||
|
|
<!-- <view class="h-div v-center header">
|
|||
|
|
<text class="single"></text>
|
|||
|
|
<text class="title">事发地点</text>
|
|||
|
|
</view>
|
|||
|
|
<input catchtap="chooseAddress" class="put v-div h-center" disabled placeholder="请输入" value="{{postData.address}}"></input> -->
|
|||
|
|
<!-- 类型 -->
|
|||
|
|
<view class="h-div v-center header">
|
|||
|
|
<text class="single"></text>
|
|||
|
|
<text class="title">事件类型</text>
|
|||
|
|
</view>
|
|||
|
|
<input catchtap="popModal" data-type="showTypePop" disabled class="put v-div h-center" placeholder="请选择" value="{{TypeData[postData.type-1].emerTypeName}}"></input>
|
|||
|
|
<!-- 地区 -->
|
|||
|
|
<view class="h-div v-center header">
|
|||
|
|
<text class="single"></text>
|
|||
|
|
<text class="title">地区</text>
|
|||
|
|
</view>
|
|||
|
|
<picker mode="multiSelector" bindchange="areabindMultiPickerChange" bindcolumnchange="areabindMultiPickerColumnChange"
|
|||
|
|
value="{{areamultiIndex}}" range="{{areanewArr}}">
|
|||
|
|
<view class="picker picker1">
|
|||
|
|
<!-- 当前选择: <van-button type="primary">
|
|||
|
|
{{areanewArr[0][areamultiIndex[0]]}},{{areanewArr[1][areamultiIndex[1]]}},{{areanewArr[2][areamultiIndex[2]]}}</van-button> -->
|
|||
|
|
<view>当前选择:{{areamultiArray[0].children[area[1]].orgname}}</view>
|
|||
|
|
</view>
|
|||
|
|
</picker>
|
|||
|
|
<!-- 所属组织 -->
|
|||
|
|
<view class="h-div v-center header">
|
|||
|
|
<text class="single"></text>
|
|||
|
|
<text class="title">所属组织</text>
|
|||
|
|
</view>
|
|||
|
|
<picker mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange"
|
|||
|
|
value="{{multiIndex}}" range="{{newArr}}">
|
|||
|
|
<view class="picker picker1">
|
|||
|
|
<!-- 当前选择: <van-button type="primary">
|
|||
|
|
{{newArr[0][multiIndex[0]]}},{{newArr[1][multiIndex[1]]}},{{newArr[2][multiIndex[2]]}}</van-button> -->
|
|||
|
|
|
|||
|
|
<view>当前选择:{{multiArray[0].children[0].children[organization[2]].performclassname}}</view>
|
|||
|
|
</view>
|
|||
|
|
</picker>
|
|||
|
|
<!-- 详细地址 -->
|
|||
|
|
<view class="h-div v-center header">
|
|||
|
|
<text class="single"></text>
|
|||
|
|
<text class="title">详细地址</text>
|
|||
|
|
</view>
|
|||
|
|
<view catchtap="toShowAddress" class="picker1">
|
|||
|
|
地址:{{postData.addressName}}
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<!-- 内容 -->
|
|||
|
|
<view class="h-div v-center header">
|
|||
|
|
<text class="single"></text>
|
|||
|
|
<text class="title">事件描述</text>
|
|||
|
|
</view>
|
|||
|
|
<textarea bindinput="inputContent" data-name="content" value="{{postData.content}}" style="color: #333333;" class="put v-div" placeholder="请输入工作内容"></textarea>
|
|||
|
|
<!-- 附件 -->
|
|||
|
|
<view class="h-div v-center header">
|
|||
|
|
<text class="single"></text>
|
|||
|
|
<text class="title flex">附件</text>
|
|||
|
|
<text catchtap="chooseFile" class="title cuIcon-roundadd" style="font-weight: normal;color: #5DA6F4;">添加图片</text>
|
|||
|
|
</view>
|
|||
|
|
<view class="grid">
|
|||
|
|
<view class="img" wx:for="{{files}}" style="position: relative;">
|
|||
|
|
<text wx:if="{{!postData.emerEventId}}" catchtap="deleteFile" data-id="{{item.sysdocumentid}}" class="cuIcon-delete del" style="color:red;"></text>
|
|||
|
|
<image class="img" src="{{baseUrl+item.filepath}}" catchtap="filePre" data-url="{{item.filepath}}" />
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
<view class="space"></view>
|
|||
|
|
</scroll-view>
|
|||
|
|
<view class="option" wx:if="{{!postData.emerEventId}}">
|
|||
|
|
<view catchtap="push" class="btn">上报</view>
|
|||
|
|
</view>
|
|||
|
|
|
|||
|
|
<!-- 选择通知类型 -->
|
|||
|
|
<view class="cu-modal {{showTypePop?'show':''}}">
|
|||
|
|
<view class="cu-dialog pop" catchtap>
|
|||
|
|
<view class="cu-bar justify-end pop-header">
|
|||
|
|
<view class="content">选择工作类型</view>
|
|||
|
|
<view class="action" catchtap="popModal" data-type="showTypePop">
|
|||
|
|
<text class="cuIcon-close text-red"></text>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
<radio-group class="block" style="max-height: 50vh;overflow-y: scroll;">
|
|||
|
|
<view class="cu-list menu text-left">
|
|||
|
|
<view class="cu-item" wx:for="{{TypeData}}" wx:key>
|
|||
|
|
<label catchtap="typeChange" data-item="{{item}}" data-index="{{index}}" class="flex justify-between align-center flex-sub">
|
|||
|
|
<view class="flex-sub">{{item.emerTypeName}}</view>
|
|||
|
|
</label>
|
|||
|
|
</view>
|
|||
|
|
</view>
|
|||
|
|
</radio-group>
|
|||
|
|
</view>
|
|||
|
|
</view>
|