2024-01-29 17:42:38 +08:00
|
|
|
<!--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>
|
2024-01-30 16:35:55 +08:00
|
|
|
<input bindinput="inputContent" data-name="title" value="{{postData.title}}" class="put v-div h-center" placeholder="请输入标题"></input>
|
2024-01-29 17:42:38 +08:00
|
|
|
<!-- 类型 -->
|
|
|
|
|
<view class="h-div v-center header">
|
|
|
|
|
<text class="single"></text>
|
|
|
|
|
<text class="title">工作类型</text>
|
|
|
|
|
</view>
|
2024-01-30 16:35:55 +08:00
|
|
|
<input catchtap="popModal" data-type="showTypePop" disabled class="put v-div h-center" placeholder="请选择" value="{{TypeData[postData.type-1].typeName}}"></input>
|
2024-01-29 17:42:38 +08:00
|
|
|
<!-- 内容 -->
|
|
|
|
|
<view class="h-div v-center header">
|
|
|
|
|
<text class="single"></text>
|
|
|
|
|
<text class="title">工作内容</text>
|
|
|
|
|
</view>
|
2024-02-05 15:53:23 +08:00
|
|
|
<textarea bindinput="inputContent" data-name="detail" value="{{postData.detail}}" style="color: #333333;" class="put v-div" placeholder="请输入工作内容"></textarea>
|
2024-01-29 17:42:38 +08:00
|
|
|
<!-- 时间 -->
|
|
|
|
|
<view class="h-div v-center header">
|
|
|
|
|
<text class="single"></text>
|
|
|
|
|
<text class="title">工作时间</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="filter">
|
2024-01-30 16:35:55 +08:00
|
|
|
<picker mode="date" value="{{postData.startTime}}" data-name="startTime" bindchange="bindDateChange">
|
2024-01-29 17:42:38 +08:00
|
|
|
<view class="picker">
|
2024-01-30 16:35:55 +08:00
|
|
|
开始时间: {{postData.startTime||'-'}}
|
2024-01-29 17:42:38 +08:00
|
|
|
</view>
|
|
|
|
|
</picker>
|
2024-01-30 16:35:55 +08:00
|
|
|
<picker mode="date" value="{{postData.endTime}}" data-name="endTime" bindchange="bindDateChange">
|
|
|
|
|
<view class="picker">
|
|
|
|
|
结束时间: {{postData.endTime||'-'}}
|
|
|
|
|
</view>
|
|
|
|
|
</picker>
|
|
|
|
|
</view>
|
2024-01-29 17:42:38 +08:00
|
|
|
<!-- 附件 -->
|
2024-01-30 16:35:55 +08:00
|
|
|
<view class="h-div v-center header">
|
2024-01-29 17:42:38 +08:00
|
|
|
<text class="single"></text>
|
|
|
|
|
<text class="title flex">附件</text>
|
2024-01-30 16:35:55 +08:00
|
|
|
<text catchtap="chooseFile" class="title cuIcon-roundadd" style="font-weight: normal;color: #5DA6F4;">添加图片</text>
|
2024-06-06 17:11:58 +08:00
|
|
|
<text catchtap="chooseMessageFile" class="title cuIcon-roundadd" style="font-weight: normal;color: #5DA6F4;margin-left: 20rpx;">文件上传</text>
|
2024-01-29 17:42:38 +08:00
|
|
|
</view>
|
2024-06-07 15:22:47 +08:00
|
|
|
<view style="width: 100%;">
|
|
|
|
|
<view style="display: flex;margin: 10px 0;align-items: center;" wx:for="{{ files}}">
|
|
|
|
|
<text style="width: 90%;Word-break:break-all" catchtap="openread" data-item="{{item}}">
|
|
|
|
|
<text>{{ index + 1 }}</text>
|
|
|
|
|
<text>{{ item.realfilename }}</text>
|
|
|
|
|
</text>
|
|
|
|
|
<text catchtap="deleteFile" data-id="{{item.sysdocumentid}}" class="cuIcon-delete del" style="color:red;"></text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="grid">
|
2024-01-30 16:35:55 +08:00
|
|
|
<view class="img" wx:for="{{files}}" style="position: relative;">
|
|
|
|
|
<text 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>
|
2024-06-07 15:22:47 +08:00
|
|
|
</view> -->
|
2024-01-29 17:42:38 +08:00
|
|
|
</view>
|
|
|
|
|
<view class="space"></view>
|
|
|
|
|
</scroll-view>
|
2024-01-30 16:35:55 +08:00
|
|
|
<view class="option">
|
|
|
|
|
<view catchtap="push" class="btn">上报</view>
|
2024-01-29 17:42:38 +08:00
|
|
|
</view>
|
|
|
|
|
|
2024-02-05 15:53:23 +08:00
|
|
|
<!-- 选择工作类型 -->
|
2024-01-29 17:42:38 +08:00
|
|
|
<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-index="{{index}}" class="flex justify-between align-center flex-sub">
|
2024-01-30 16:35:55 +08:00
|
|
|
<view class="flex-sub">{{item.typeName}}</view>
|
|
|
|
|
</label>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</radio-group>
|
|
|
|
|
</view>
|
2024-01-29 17:42:38 +08:00
|
|
|
</view>
|