From 10bc47a275dfd896ba4e72f073d9f901c5390597 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Wed, 22 Mar 2023 16:05:14 +0800
Subject: [PATCH] 模块不绑定设备编码,设备编码绑定模块

---
 src/views/modules/function.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/views/modules/function.vue b/src/views/modules/function.vue
index 5f2741f..194efc5 100644
--- a/src/views/modules/function.vue
+++ b/src/views/modules/function.vue
@@ -348,7 +348,8 @@
               res: 'data',
               url: 'link'
             },
-            action: "/api/function/function/put-file-attach"
+            action: "/api/function/function/put-file-attach",
+            data: {},
           },
         ]
       },
@@ -371,7 +372,8 @@
               res: 'data',
               url: 'link'
             },
-            action: "/api/function/function/put-file-attach"
+            action: "/api/function/function/put-file-attach",
+            data: {},
           },
         ]
       },
@@ -435,7 +437,7 @@
       handler(newVal){
         console.log(newVal)
         if (newVal.length > 0) {
-          let url = data.fileUrl[0].value
+          let url = newVal[0].value
           this.iframePath = 'http://192.168.0.200:8012/onlinePreview?url=' + encodeURIComponent(Base64.encode(url))
         }
       }
@@ -596,7 +598,7 @@
           if (res.data.code == 200){
             resolve()
           }else {
-            reject
+            reject()
           }
         })
       });

--
Gitblit v1.9.3