|  |  | 
 |  |  |          <view class="dca_list_item" style="flex-direction: column;"> | 
 |  |  |             <view class="dca_list_item_label">图片</view> | 
 |  |  |             <view class="dca_list_item_tu" v-if="info.multifileList"> | 
 |  |  |                <view class="dca_list_item_tu_item" v-for="(item, index) in info.multifileList" :key="index"> | 
 |  |  |                <view class="dca_list_item_tu_item" v-for="(item, index) in info.multifileList" :key="index" @click="previewImage(item.fileurlFull, info.multifileList.map(item => item.fileurlFull))"> | 
 |  |  |                   <image :src="item.fileurlFull" mode="widthFix"></image> | 
 |  |  |                </view> | 
 |  |  |                <view class="dca_list_item_tu_zw"></view> | 
 |  |  | 
 |  |  |             <view class="lc"> | 
 |  |  |                <view class="lc_item" v-for="(item, index) in info.logList" :key="index"> | 
 |  |  |                   <view class="lc_item_dian"></view> | 
 |  |  |                   <view class="lc_item_xian" v-if="info.logList.length === 1 ? false : index === 0"></view> | 
 |  |  |                   <view class="lc_item_xian" v-if="info.logList.length === 1 ? false : index !== info.logList.length - 1"></view> | 
 |  |  |                   <view class="lc_item_title">{{item.title}}</view> | 
 |  |  |                   <view class="lc_item_info">{{item.companyName}}/{{item.userName}} {{item.createDate}}</view> | 
 |  |  |                   <view class="lc_item_content" v-if="![0,4].includes(item.objType)"> | 
 |  |  | 
 |  |  |                      <view class="lc_item_content_item"> | 
 |  |  |                         <view class="lc_item_content_item_label">图片:</view> | 
 |  |  |                         <view class="lc_item_content_item_img" v-if="item.multifileList"> | 
 |  |  |                            <view class="image" v-for="(item, index) in item.multifileList" :key="index"> | 
 |  |  |                               <image :src="item.fileurlFull" mode="widthFix"></image> | 
 |  |  |                            <view class="image" v-for="(child, index) in item.multifileList" :key="index" @click="previewImage(child.fileurlFull, item.multifileList.map(item => item.fileurlFull))"> | 
 |  |  |                               <image :src="child.fileurlFull" mode="widthFix"></image> | 
 |  |  |                            </view> | 
 |  |  |                            <view class="imagezw"></view> | 
 |  |  |                            <view class="imagezw"></view> | 
 |  |  | 
 |  |  |                         @afterRead="afterRead" | 
 |  |  |                         @delete="deletePic" | 
 |  |  |                         name="2" | 
 |  |  |                         multiple | 
 |  |  |                         style="margin-top: 15rpx;" /> | 
 |  |  |                   </u-form-item> | 
 |  |  |                </u--form> | 
 |  |  | 
 |  |  |                         @afterRead="afterRead" | 
 |  |  |                         @delete="deletePic" | 
 |  |  |                         name="1" | 
 |  |  |                         multiple | 
 |  |  |                         style="margin-top: 15rpx;" /> | 
 |  |  |                   </u-form-item> | 
 |  |  |                </u--form> | 
 |  |  | 
 |  |  |          this.getDetails() | 
 |  |  |       }, | 
 |  |  |       methods: { | 
 |  |  |          previewImage(current, urls) { | 
 |  |  |             uni.previewImage({ | 
 |  |  |                current, | 
 |  |  |                urls | 
 |  |  |             }); | 
 |  |  |          }, | 
 |  |  |          openGB() { | 
 |  |  |             this.stopScroll() | 
 |  |  |             this.show1 = true | 
 |  |  | 
 |  |  |          }, | 
 |  |  |          // 新增图片 | 
 |  |  |          afterRead(event) { | 
 |  |  |             var that = this | 
 |  |  |             uni.showLoading({ title: '上传中...', mask: true }) | 
 |  |  |             uni.uploadFile({ | 
 |  |  |                url: this.$baseUrl + '/web/public/upload', | 
 |  |  |                filePath: event.file.url, | 
 |  |  |                name: "file", | 
 |  |  |                url: this.$baseUrl + '/web/public/uploadBatch', | 
 |  |  |                files: event.file.map(e => { | 
 |  |  |                   return { name: 'files', uri: e.url } | 
 |  |  |                }), | 
 |  |  |                formData: { | 
 |  |  |                   folder: "WORKORDER_LOG_FILE_PATH" | 
 |  |  |                   folder: "WORKORDER_LOG_FILE_PATH", | 
 |  |  |                },    | 
 |  |  |                success: (res) => { | 
 |  |  |                success(res) { | 
 |  |  |                   uni.hideLoading(); | 
 |  |  |                   let obj = JSON.parse(res.data) | 
 |  |  |                   if (obj.code === 200) { | 
 |  |  |                      obj.data.fileurl = obj.data.imgaddr | 
 |  |  |                      this.model.multifileList.push(obj.data) | 
 |  |  |                      console.log(obj.data) | 
 |  |  |                      obj.data.forEach(item => { | 
 |  |  |                         item.fileurl = item.imgaddr | 
 |  |  |                      }) | 
 |  |  |                      that.model.multifileList = [...that.model.multifileList, ...obj.data] | 
 |  |  |                   } | 
 |  |  |                } | 
 |  |  |             }); | 
 |  |  |             }) | 
 |  |  |             // uni.uploadFile({ | 
 |  |  |             //    url: this.$baseUrl + '/web/public/upload', | 
 |  |  |             //    filePath: event.file.url, | 
 |  |  |             //    name: "file", | 
 |  |  |             //    formData: { | 
 |  |  |             //       folder: "WORKORDER_LOG_FILE_PATH" | 
 |  |  |             //    },	 | 
 |  |  |             //    success: (res) => { | 
 |  |  |             //       let obj = JSON.parse(res.data) | 
 |  |  |             //       if (obj.code === 200) { | 
 |  |  |             //          obj.data.fileurl = obj.data.imgaddr | 
 |  |  |             //          this.model.multifileList.push(obj.data) | 
 |  |  |             //       } | 
 |  |  |             //    } | 
 |  |  |             // }); | 
 |  |  |          } | 
 |  |  |       } | 
 |  |  |    } |