From f2a0ea849099f49a3d2a9c7e5c44d033df22468f Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 14 八月 2024 14:55:38 +0800
Subject: [PATCH] 设备管理模块

---
 pages/inspection/scene/info/components/device-location/index.wxml |   67 ++++++++++++++++++++++-----------
 1 files changed, 44 insertions(+), 23 deletions(-)

diff --git a/pages/inspection/scene/info/components/device-location/index.wxml b/pages/inspection/scene/info/components/device-location/index.wxml
index 854451f..a069e05 100644
--- a/pages/inspection/scene/info/components/device-location/index.wxml
+++ b/pages/inspection/scene/info/components/device-location/index.wxml
@@ -1,28 +1,10 @@
-<view wx:if="{{time}}" class="flex-h">
+<view wx:if="{{_createTime}}" class="flex-h">
   <!-- <t-divider content="鍙樻洿鏃堕棿: {{time}}" align="left" /> -->
-  <view>{{index}}. 鍙樻洿鏃堕棿: {{time}}</view>
-  <view wx:if="{{readOnly}}">
+  <view>{{index}}. 鍙樻洿鏃堕棿: {{_createTime}}</view>
+  <!-- <view wx:if="{{readOnly}}">
     <t-button theme="primary" size="extra-small" bind:tap="changeEdit">淇敼</t-button>
-  </view>
+  </view> -->
 </view>
-<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-cell title="鏄惁瑙勮寖">
   <t-switch
     model:value="{{dlStandard}}"
@@ -34,12 +16,51 @@
   />
 </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"
@@ -47,4 +68,4 @@
   >
   <t-button wx:else theme="primary" block block size="small" bind:tap="update">鏇存柊</t-button>
 </view>
-<!-- <t-divider /> -->
+<t-divider />

--
Gitblit v1.9.3