diff --git a/src/components/360View/commonForm/deveopmentFIle.vue b/src/components/360View/commonForm/deveopmentFIle.vue index f35f670..e1dfe03 100644 --- a/src/components/360View/commonForm/deveopmentFIle.vue +++ b/src/components/360View/commonForm/deveopmentFIle.vue @@ -548,6 +548,21 @@ export default { }] this.tableData = this.originTableData }, + async getPatientData() { + const { data: res } = await this.$http.get( + '/patient/view/getPatientData', + { + params: { + patientId: this.patientId + } + } + ) + if (res.code === 0) { + this.dataForm = res.data + } else { + this.$message.error(res.msg) + } + }, handleDelete() { this.$emit('del') }, diff --git a/src/components/360View/commonForm/optometryForm.vue b/src/components/360View/commonForm/optometryForm.vue index a1ee5e4..edfa663 100644 --- a/src/components/360View/commonForm/optometryForm.vue +++ b/src/components/360View/commonForm/optometryForm.vue @@ -536,6 +536,21 @@ export default { } this.tableData = this.originTableData }, + async getPatientData() { + const { data: res } = await this.$http.get( + '/patient/view/getPatientData', + { + params: { + patientId: this.patientId + } + } + ) + if (res.code === 0) { + this.dataForm = res.data + } else { + this.$message.error(res.msg) + } + }, queryData() { const ws = new WebSocket('ws://192.168.4.24:8036/xiangan-crf/websocket/0071') ws.onopen = function() {