Ver código fonte

上传图片修改

qinhouyu 1 ano atrás
pai
commit
be4d2e1ad8

+ 1 - 1
src/components/ObsImageUpload/index.vue

@@ -126,7 +126,7 @@ export default {
       const findex = this.fileList.map(f => f.url).indexOf(file.url);
       if(findex > -1) {
         if (file.url!=null){
-          picDel({picUrl:file.url}).then(res=>{})
+          // picDel({picUrl:file.url}).then(res=>{})
           this.fileList.splice(findex, 1);
         }
       }

+ 1 - 0
src/views/zdsz/openbolt/index.vue

@@ -457,6 +457,7 @@ export default {
       getComprehensive(id).then(response => {
         this.loading = false;
         this.form = response.data;
+        response.data.mapList.forEach(a=>a.url=a.picUrl)
         this.form.picIds = response.data.mapList;
         this.open = true;
         this.title = "修改开栓";

+ 1 - 0
src/views/zdsz/opencheck/index.vue

@@ -449,6 +449,7 @@ export default {
       getComprehensive(id).then(response => {
         this.loading = false;
         this.form = response.data;
+        response.data.mapList.forEach(a=>a.url=a.picUrl)
         this.form.picIds = response.data.mapList;
 
         this.open = true;

+ 1 - 0
src/views/zdsz/openrepair/index.vue

@@ -449,6 +449,7 @@ export default {
       getComprehensive(id).then(response => {
         this.loading = false;
         this.form = response.data;
+        response.data.mapList.forEach(a=>a.url=a.picUrl)
         this.form.picIds = response.data.mapList;
 
         this.open = true;