瀏覽代碼

Merge branch 'dev' of https://e.coding.net/g-pheu9517/grt-iscs/ISCS_Ui_Admin_Base into dev

wangyani 1 年之前
父節點
當前提交
01652a14f0
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 3 2
      src/components/ImageUpload/index.vue
  2. 1 1
      src/views/mes/md/segregationpoint/index.vue

+ 3 - 2
src/components/ImageUpload/index.vue

@@ -94,7 +94,7 @@ export default {
           this.fileList = list.map(item => {
             if (typeof item === "string") {
               if (item.indexOf(this.baseUrl) === -1) {
-                  // item = { name: this.baseUrl + item, url: this.baseUrl + item };
+                  // item = { name: this.baseUrl + item, url: this.baseUrl + item };k
                 item={name: item, url: item}
               } else {
                   item = { name: item, url: item };
@@ -133,7 +133,8 @@ export default {
         this.fileList = this.fileList.concat(this.uploadList);
         this.uploadList = [];
         this.number = 0;
-        this.$emit("onUploaded", this.listToString(this.fileList));
+        // this.$emit("onUploaded", this.listToString(this.fileList));
+        this.$emit("onUploaded", this.fileList)
         this.$modal.closeLoading();
       }
     },

+ 1 - 1
src/views/mes/md/segregationpoint/index.vue

@@ -480,7 +480,7 @@ export default {
     },
     //图片上传成功
     handleImgUplaoded(imgUrl) {
-      this.form.pointIcon = imgUrl;
+      this.form.pointIcon = imgUrl[0].url;
     },
     //图片移除
     handleImgRemoved(imgUrl) {