Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/master_tuzuo' into master_tuzuo

lyq 7 mēneši atpakaļ
vecāks
revīzija
2a3fad6361
1 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 10 0
      data-ui/src/views/data/digitalforest/plant/index.vue

+ 10 - 0
data-ui/src/views/data/digitalforest/plant/index.vue

@@ -278,6 +278,16 @@ export default {
         })
       })
     },
+
+    removeImage(value) {
+      if (value) {
+        this.form.attachId = this.form.attachId.replace(this.form.attachId.indexOf(',' + value) == -1 ? value + ',' : ',' + value, '')
+      }
+
+    },
+    getUrl(url) {
+      this.form.attachId = url;
+    },
     send(val) {
       debugger
       if (val===true){