ccjgmwz 3 년 전
부모
커밋
b2bc779d88
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 1
      components/upload.vue
  2. 1 1
      pageD/warehousings/ex_warehouse.vue

+ 6 - 1
components/upload.vue

@@ -393,7 +393,12 @@ export default {
 						this.lists[index].response = result;
 						this.lists[index].progress = 0;
 						this.lists[index].error = false;
-						this.$emit('on-success', result, index, this.lists);
+						let data = result
+						this.$emit('on-success', data, index, this.lists);
+						uni.hideLoading();
+						this.uploading = false;
+						this.uploadFile(index + 1);
+						this.$emit('on-change', data, index, this.lists);
 					}
 				)
 			// // 创建上传对象

+ 1 - 1
pageD/warehousings/ex_warehouse.vue

@@ -371,7 +371,7 @@
 				}
 			},
 			getImgUrl(res) {
-				console.log()
+				console.log("res",res)
 				this.imgUrls.push(res.data);
 			},
 			onRemove(index) {