<view class="page">
|
<t-input
|
label="任务标签"
|
placeholder="请输入文字"
|
align="right"
|
data-tag="taskTag"
|
value="{{taskTag}}"
|
clearable
|
bind:change="bindInputChange"
|
bind:clear="bindInputChange"
|
></t-input>
|
<time-picker
|
time="{{timeText}}"
|
timeFormat="YYYY-MM-DD HH时"
|
timeMode="hour"
|
start="{{startTime}}"
|
end="{{endTime}}"
|
bind:timePickerChange="ontimePickerChange"
|
>
|
<view slot="text">
|
<t-cell
|
t-class="t-class-cell"
|
title="截止时间"
|
arrow
|
hover
|
note="{{timeText}}"
|
/>
|
</view>
|
</time-picker>
|
<t-cell
|
t-class="t-class-cell"
|
title="巡查企业"
|
arrow
|
hover
|
note="{{receiverText}}"
|
bindtap="openUserList"
|
/>
|
<block wx:if="{{selectedSceneTypes.length > 0}}">
|
<view class="tag">*{{selectedSceneTypesText[0]}}</view>
|
<view class="title">
|
<t-icon
|
name="edit-1"
|
color="var(--td-primary-color)"
|
size="36rpx"
|
data-name="edit-1"
|
/>
|
{{selectedSceneTypesText[1]}}
|
</view>
|
<t-cell
|
wx:for="{{selectedPatrolTypes}}"
|
wx:key="index"
|
t-class="t-class-cell"
|
title="{{item.sceneTypeText}}行业自巡查清单"
|
arrow
|
hover
|
note="{{item.patrolText}}"
|
data-index="{{index}}"
|
bindtap="openPatrolList"
|
/>
|
<view class="tag"> *发布单位默认为当前账户,可作修改 </view>
|
<t-input
|
label="发布单位"
|
placeholder="请输入文字"
|
align="right"
|
data-tag="publishUnit"
|
value="{{publishUnit}}"
|
clearable
|
bind:change="bindInputChange"
|
></t-input>
|
</block>
|
<view class="page-footer">
|
<t-button
|
class="btn-left"
|
size="large"
|
theme="danger"
|
variant="outline"
|
bindtap="onCancelCheck"
|
data-key="showCancel"
|
>取消</t-button
|
>
|
<t-button
|
class="btn-right"
|
size="large"
|
theme="primary"
|
bindtap="onConfirmCheck"
|
data-key="showConfirm"
|
>发布</t-button
|
>
|
</view>
|
</view>
|
|
<t-dialog
|
visible="{{showConfirm}}"
|
title="发布确认"
|
content=""
|
confirm-btn="{{ { content: '确定', variant: 'base' } }}"
|
cancel-btn="取消"
|
bind:confirm="onConfirm"
|
bind:cancel="closeDialog"
|
/>
|
|
<t-dialog
|
visible="{{showCancel}}"
|
content="确定取消当前已编辑的内容?"
|
confirm-btn="{{ { content: '确定', variant: 'base', theme: 'danger' } }}"
|
cancel-btn="取消"
|
bind:confirm="onCancel"
|
bind:cancel="closeDialog"
|
/>
|
|
<t-popup
|
visible="{{popupVisible}}"
|
bind:visible-change="onVisibleChange"
|
placement="right"
|
>
|
<user-list
|
refresh="{{popupRefresh}}"
|
bind:clickConfirm="popupConfirm"
|
bind:clickCancel="popupCancel"
|
></user-list>
|
</t-popup>
|
|
<t-popup
|
visible="{{patrolPopupVisible}}"
|
bind:visible-change="onPatrolTaskVisibleChange"
|
placement="bottom"
|
>
|
<view class="popup-btn-group">
|
<t-button
|
block="{{false}}"
|
t-class="t-class-button"
|
theme="default"
|
size="extra-small"
|
bindtap="closePatrolList"
|
>取消</t-button
|
>
|
<view style="display: flex;align-items: center;">
|
<t-checkbox
|
t-class="t-class-checkbox"
|
t-class-border="t-class-border-checkbox"
|
t-class-content="t-class-content-checkbox"
|
t-class-label="t-class-label-checkbox"
|
placement="right"
|
borderless
|
icon="rectangle"
|
block="{{true}}"
|
label="全选"
|
checked="{{selectedPatrolTypes[patrolPopupIndex].checkAll}}"
|
bind:change="onCheckAll"
|
/>
|
<t-button
|
block="{{false}}"
|
t-class="t-class-button"
|
theme="primary"
|
size="extra-small"
|
bindtap="onSelfPatrolPickerChange"
|
>{{selectedPatrolTypes[patrolPopupIndex].selectedCount > 0 ? '(' +
|
selectedPatrolTypes[patrolPopupIndex].selectedCount + ')' :
|
''}}确定</t-button
|
>
|
</view>
|
</view>
|
<!-- <scroll-view style="height: 70vh" scroll-y="{{true}}"> -->
|
<t-grid column="{{4}}" theme="card">
|
<t-grid-item
|
wx:for="{{selectedPatrolTypes[patrolPopupIndex].patrolTypes}}"
|
wx:key="index"
|
class="{{item.selected ? 'patrol-task-item-selected' : 'patrol-task-item'}}"
|
badge-props="{{ item.selected }}"
|
text="{{item.ledgerName}}"
|
image="{{item.iconUrl}}"
|
data-index="{{index}}"
|
bindtap="chosePatrolTask"
|
/>
|
</t-grid>
|
<!-- </scroll-view> -->
|
</t-popup>
|