|
@@ -179,7 +179,7 @@
|
|
<view v-else>暂无图片</view>
|
|
<view v-else>暂无图片</view>
|
|
</view>
|
|
</view>
|
|
<view v-else class="pound_list">
|
|
<view v-else class="pound_list">
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
|
|
|
|
|
|
+ <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl[index]"
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
</view>
|
|
</view>
|
|
@@ -253,7 +253,7 @@
|
|
<view v-else>暂无图片</view>
|
|
<view v-else>暂无图片</view>
|
|
</view>
|
|
</view>
|
|
<view v-else class="pound_list">
|
|
<view v-else class="pound_list">
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
|
|
|
|
|
|
+ <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl[index]"
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
:size-type="['compressed']" :imgIndex='index' @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
</view>
|
|
</view>
|
|
@@ -350,7 +350,7 @@
|
|
<image v-for='item in pictureTotal' @click='shadeshow(item)' style='width:100px;height:100px;' :src="item" mode=""></image>
|
|
<image v-for='item in pictureTotal' @click='shadeshow(item)' style='width:100px;height:100px;' :src="item" mode=""></image>
|
|
</view>
|
|
</view>
|
|
<view v-else>
|
|
<view v-else>
|
|
- <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl"
|
|
|
|
|
|
+ <upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="9" :file-list="imgUrl[index]"
|
|
:size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError" @on-remove="onRemove"
|
|
:size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError" @on-remove="onRemove"
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
@on-uploaded="isAdd = true" :before-upload="filterFileType" @on-progress="onProgress"></upload>
|
|
</view>
|
|
</view>
|
|
@@ -847,9 +847,19 @@
|
|
}
|
|
}
|
|
}else if(res.data.data.tranType=='汽运'){
|
|
}else if(res.data.data.tranType=='汽运'){
|
|
for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
|
|
for (var i = 0; i < res.data.data.tranCarInfoList.length; i++) {
|
|
|
|
+ this.imgUrl[i]=[]
|
|
res.data.data.tranCarInfoList[i].show2=false
|
|
res.data.data.tranCarInfoList[i].show2=false
|
|
if(res.data.data.tranCarInfoList[i].unloadPoundImg){
|
|
if(res.data.data.tranCarInfoList[i].unloadPoundImg){
|
|
- this.imgUrl.push({url:res.data.data.tranCarInfoList[i].unloadPoundImg.split(",")[i]})
|
|
|
|
|
|
+ if(res.data.data.tranCarInfoList[i].unloadPoundImg){
|
|
|
|
+ var arr=res.data.data.tranCarInfoList[i].unloadPoundImg.split(",")
|
|
|
|
+ for (var q = 0; q < arr.length; q++) {
|
|
|
|
+ if(arr[q]!=''){
|
|
|
|
+ this.imgUrl[i].push({url:arr[q]})
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.freightspace=res.data.data.tranCarInfoList
|
|
this.freightspace=res.data.data.tranCarInfoList
|
|
@@ -881,6 +891,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ console.log(this.imgUrl)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getImgUrl(res1,res2,res3,res4) {
|
|
getImgUrl(res1,res2,res3,res4) {
|