| | |
| | | {{ 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> |
| | | |
| | |
| | | data() { |
| | | return { |
| | | options: {}, |
| | | data: "" |
| | | data: "", |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | 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> |
| | | |