Преглед изворни кода

Merge branch 'master' of http://182.92.126.35:3000/msx/Vent-App

bobo04052021@163.com пре 6 дана
родитељ
комит
ad7c1f46d2
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      pages/gasreport/components/gasImgIdentify.vue

+ 4 - 3
pages/gasreport/components/gasImgIdentify.vue

@@ -201,7 +201,7 @@ export default {
             indexList: [],//识别数据
             indexParam: {},//当前选中识别的数据
             imageSrc: '',
-            imageSrcList: [],
+            imageSrcList: '',
             deviceId: '',
             rangeBc: [
                 { value: '夜班', text: "夜班" },
@@ -348,16 +348,17 @@ export default {
             let that = this
             if (that.imageSrc) {
                 that.loading = true
+                let jcNum=that.deviceName.indexOf('第三次')!=-1 ? 3 : null
                 let apiUrlImg = `${configService.apiUrlP.substring(0, configService.apiUrlP.lastIndexOf(':'))}:6006`
                 uni.uploadFile({
                     url: `${apiUrlImg}/gasIdentify`,
-                    filePath: that.imageSrcList[0].path,
+                    filePath: that.imageSrcList,
                     name: 'img',
                     formData: {
                         'user': that.username,
                         'order': that.classType,
                         'reportdate': that.searchTime,
-                        'checkorder': Number(that.checkNum)
+                        'checkorder': jcNum ? jcNum : Number(that.checkNum)
                     },
                     success: (res) => {
                         if (res) {