Forráskód Böngészése

调整管道设备列表样式;修复记录录入插入图片选择文件不生效的问题

yangguanjin 6 napja
szülő
commit
18ec613c12

+ 6 - 1
src/pages/editor/equipCheckRecordEditor.vue

@@ -453,7 +453,12 @@ const takePhotoRN = () => {
 const pickFileRN = () => {
   ;(window as any).ReactNativeWebView.postMessage(
     JSON.stringify({
-      type: 'pickFile',
+      type: 'selectFile',
+      allowedTypes: [
+        'image/jpeg',
+        'image/png',
+      ],
+      multiple: false,
     }),
   )
 }

+ 13 - 13
src/pages/taskOnline/TaskOnlinePipeEquipmentList.vue

@@ -67,12 +67,21 @@
                   />
                 </view>
               </view>
+              <view class="cell-bottom">
+                <view
+                  v-if="mainCheckerUser != null"
+                  class="record-btn blue-btn"
+                  @click="handleRouteToEquipmentDetail(pipeSet, 'INSPECT')"
+                >
+                  <text class="blue-btn-text">记录录入</text>
+                </view>
+              </view>
             </view>
           </template>
 
           <view v-if="!pipeSetChildren[pipeSet.id]" class="loading-text">加载中...</view>
           <view v-else-if="pipeSetChildren[pipeSet.id].length === 0" class="empty-text-small">
-            <text>暂无下级管线</text>
+            <text>暂无下级管</text>
           </view>
           <view v-else>
             <view
@@ -102,7 +111,6 @@
                   </view>
                 </view>
               </view>
-
               <view
                 class="child-pipe-info"
                 @click="handleRouteToEquipmentDetail(childPipe, 'EQUIPMENT')"
@@ -114,16 +122,6 @@
                   </text>
                 </view>
               </view>
-
-              <view class="cell-bottom">
-                <view
-                  v-if="childPipe.isClaim"
-                  class="record-btn blue-btn"
-                  @click="handleRouteToEquipmentDetail(childPipe, 'INSPECT')"
-                >
-                  <text class="blue-btn-text">记录录入</text>
-                </view>
-              </view>
             </view>
           </view>
         </wd-collapse-item>
@@ -869,7 +867,7 @@ const handleUpdateSafetyManagerConfirm = async (params: { name: string; phone: s
 
 const handleRouteToEquipmentDetail = async (item: any, pageType: string) => {
   uni.showLoading({ title: '加载中' })
-  const equipPipeId = item.equipPipeId
+  const equipPipeId = item.id
   const inputIdResp = await getInputIdByEquipId({ equipId: equipPipeId })
   if (inputIdResp.code != 0 || inputIdResp.data == '') {
     uni.showToast({ title: '查找设备信息失败', icon: 'none' })
@@ -1058,6 +1056,8 @@ const handleRouteToEquipmentDetail = async (item: any, pageType: string) => {
   flex-direction: row;
   align-items: center;
   justify-content: flex-end;
+  margin-top: 10px;
+  padding-right: 40px;
 }
 
 .claim-btn,