Mr.Shi
2023-09-13 39db74652a6470caf84ac8fb27ad903912354261
minipro_standard/pages_inspect/pages/equipmentInspection/equipmentInspection.vue
@@ -50,9 +50,9 @@
               <view class="box_list1_club_list_item" v-for="(item, index) in form.files" :key="index"
                  @click="seeBigFile(index)">
                  <image class="close" src="@/static/ic_delete@2x.png" @click.stop="dele(index)" />
                  <image class="play" src="@/static/ic_play@2x.png" v-if="item.type === 1" />
                  <image class="play" src="@/static/ic_play@2x.png" v-if="item.typec === 1" />
                  <view class="type">
                     <video :src="item.url" v-if="item.type === 1"></video>
                     <video :src="item.url" v-if="item.typec === 1"></video>
                     <image v-else class="type_img" :src="item.url" mode="widthFix" />
                  </view>
               </view>
@@ -63,8 +63,7 @@
      </view>
      <view class="box_list2">
         <view class="box_list2_label">备注</view>
         <textarea name="" id="" v-model="form.remarks" cols="20" rows="5" maxlength="300"
            placeholder="请详细描述巡检情况"></textarea>
         <textarea v-model="form.remarks" cols="20" rows="5" maxlength="300" placeholder="请详细描述巡检情况"></textarea>
      </view>
      <view class="box_footer">
         <button class="box_footer_submit" v-preventReClick @click="submit">提交</button>
@@ -261,7 +260,6 @@
               sourceType: ['album', 'camera'],
               success: (chooseImageRes) => {
                  const tempFilePaths = chooseImageRes.tempFiles;
                  console.log(tempFilePaths)
                  for (let i = 0; i < tempFilePaths.length; i++) {
                     uni.uploadFile({
                        url: baseUrl + '/ext/routeCardExt/upload',
@@ -275,16 +273,16 @@
                        },
                        success: (uploadFileRes) => {
                           let res = JSON.parse(uploadFileRes.data)
                           let type = ''
                           let typec = ''
                           for (let s = 0; s < fileType.length; s++) {
                              if (tempFilePaths[i].tempFilePath.indexOf(fileType[s].name) !== -1) {
                                 type = fileType[s].type
                                 typec = fileType[s].type
                              }
                           }
                           that.form.files.push({
                              fileUrl: res.data.imgaddr,
                              filename: res.data.imgname,
                              type,
                              typec,
                              url: res.data.url
                           })
                        }