riku
2024-08-14 f2a0ea849099f49a3d2a9c7e5c44d033df22468f
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
<view wx:if="{{_createTime}}" class="flex-h">
  <!-- <t-divider content="变更时间: {{time}}" align="left" /> -->
  <view>{{index}}. 变更时间: {{_createTime}}</view>
  <!-- <view wx:if="{{readOnly}}">
    <t-button theme="primary" size="extra-small" bind:tap="changeEdit">修改</t-button>
  </view> -->
</view>
<t-cell title="是否规范">
  <t-switch
    model:value="{{dlStandard}}"
    defaultValue="{{true}}"
    label="{{['是', '否']}}"
    slot="note"
    disabled="{{readOnly}}"
    bind:change="onStandardChange"
  />
</t-cell>
<t-input
  label="设备位置"
  placeholder="请输入安装位置"
  model:value="{{dlLocation}}"
  disabled="{{readOnly}}"
/>
<!-- <t-input
  label="经度"
  placeholder="请输入经度"
  model:value="{{dlLongitude}}"
  disabled="{{readOnly}}"
/>
<t-input
  label="维度"
  placeholder="请输入维度"
  model:value="{{dlLatitude}}"
  disabled="{{readOnly}}"
/> -->
<t-input
  wx:if="{{!dlStandard}}"
  label="不规范说明"
  placeholder="请输入说明"
  model:value="{{dlUnstandardReason}}"
  disabled="{{readOnly}}"
/>
<!-- <t-input
  label="更新时间"
  placeholder="请输入更新时间"
  model:value="{{_createTime}}"
  disabled="{{readOnly}}"
/> -->
<block wx:if="{{_imgPath.length > 0}}">
  <t-cell title="现场图片">
    <view class="img-group" slot="description">
      <view wx:for="{{_imgPath}}" wx:key="index" wx:for-item="m">
        <t-image
          src="{{m}}"
          t-class="img-group_img"
          shape="round"
          bindtap="previewImage"
          data-index="{{index}}"
        />
      </view>
    </view>
  </t-cell>
</block>
<view wx:if="{{!readOnly}}" style="display: flex; gap: 4">
  <t-button theme="light" block size="small" bind:tap="cancel">取消</t-button>
  <t-button wx:if="{{!isUpdate}}" theme="primary" block block size="small" bind:tap="confirm"
    >保存</t-button
  >
  <t-button wx:else theme="primary" block block size="small" bind:tap="update">更新</t-button>
</view>
<t-divider />