riku
2025-04-27 f46786f11c5c08ead7501a82e5a71430ad69b782
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<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>