From a75de95cd5481bc782caee3b3a3cdd52f991f944 Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期五, 07 六月 2024 17:19:31 +0800
Subject: [PATCH] 1

---
 src/pages/fileDetail/index.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/pages/fileDetail/index.vue b/src/pages/fileDetail/index.vue
index dceaaaf..d38d632 100644
--- a/src/pages/fileDetail/index.vue
+++ b/src/pages/fileDetail/index.vue
@@ -5,7 +5,8 @@
         {{ data }}
       </code>
     </pre>
-    <div v-else v-html="data"></div>
+    <div v-else-if="'NT'" v-html="data"></div>
+    <div v-else-if="'RDF'" v-html="data"></div>
   </view>
 </template>
 
@@ -16,7 +17,7 @@
   data() {
     return {
       options: {},
-      data: ""
+      data: "",
     };
   },
   onLoad(options) {
@@ -28,17 +29,18 @@
       if (this.options.type == "Person") {
         getPersonDataOutput({
           personId: this.options.id,
-          dataTypeEO: this.options.outputType
+          dataTypeEO: this.options.outputType,
         }).then((res) => {
           this.data = res;
         });
       } else {
         getMedicalDataOutput(this.options).then((res) => {
           this.data = res;
+          console.log(this.data, "data");
         });
       }
-    }
-  }
+    },
+  },
 };
 </script>
 

--
Gitblit v1.9.1