From 34f19106712e14adbda48b8d3dae0047aef94ff2 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 21 Mar 2023 10:47:21 +0800
Subject: [PATCH] 报错修改

---
 src/views/modules/function.vue          |    8 +++++---
 src/views/multimedia/multimedia.vue     |    2 +-
 src/views/modules/function multiple.vue |    2 +-
 src/views/modules/modules.vue           |    2 +-
 4 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/views/modules/function multiple.vue b/src/views/modules/function multiple.vue
index 1cb6ace..4ed6cd3 100644
--- a/src/views/modules/function multiple.vue
+++ b/src/views/modules/function multiple.vue
@@ -429,7 +429,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))
         }
       }
diff --git a/src/views/modules/function.vue b/src/views/modules/function.vue
index f08c0f4..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))
         }
       }
diff --git a/src/views/modules/modules.vue b/src/views/modules/modules.vue
index c606f33..a8745b9 100644
--- a/src/views/modules/modules.vue
+++ b/src/views/modules/modules.vue
@@ -152,7 +152,7 @@
             prop: "equipmentId",
             span:24,
             type: "select",
-            dicUrl: `/api/equipment/equipment/all?type=1`,
+            dicUrl: `/api/equipment/equipment/all?type=2`,
             props: {
               label: "code",
               value: "id"
diff --git a/src/views/multimedia/multimedia.vue b/src/views/multimedia/multimedia.vue
index 5ca0bd5..e950538 100644
--- a/src/views/multimedia/multimedia.vue
+++ b/src/views/multimedia/multimedia.vue
@@ -77,7 +77,7 @@
             label: "设备编码",
             prop: "equipmentId",
             type: "select",
-            dicUrl: `/api/equipment/equipment/all?type=1`,
+            dicUrl: `/api/equipment/equipment/all?type=2`,
             props: {
               label: "code",
               value: "id"

--
Gitblit v1.9.3