1
YM
2024-06-11 a4fe90ef374a9a3144fb8de5d7229dd11bfa7ff4
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>