From c15ef4e7267a5e213f2f1f33dcf13482991c5941 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 08 Apr 2021 16:00:04 +0800
Subject: [PATCH] 修改

---
 src/views/dataL/dataL.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/dataL/dataL.vue b/src/views/dataL/dataL.vue
index 459f0c3..ab34d3e 100644
--- a/src/views/dataL/dataL.vue
+++ b/src/views/dataL/dataL.vue
@@ -702,13 +702,14 @@
             const url = 'http://localhost:1888/api/blade-jfpts/equipment/equipment/pageDept?deviceName=000000000001&current=1&size=10&pid='
             axios.get(url)
             .then((res)=>{
-                var data = res.data.data.records;
+                var data = res.data.data.records[0];
                 this.stetDetails(data);
                 console.log(data);
             })
         },
         stetDetails(d){
-            // this.name = 1;
+            this.name = d.deviceName;
+            this.machineCode = d.deviceNumber;
         }
     },
     created() {

--
Gitblit v1.9.3