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].response = result;
 						this.lists[index].progress = 0;
 						this.lists[index].progress = 0;
 						this.lists[index].error = false;
 						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) {
 			getImgUrl(res) {
-				console.log()
+				console.log("res",res)
 				this.imgUrls.push(res.data);
 				this.imgUrls.push(res.data);
 			},
 			},
 			onRemove(index) {
 			onRemove(index) {