diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index 1b77a2d..789e73e 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -11,20 +11,118 @@ highlight-current-row @row-click="rowick" ref="dataList" - > - - - - - - - - - - - - + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
人员登记 @@ -75,6 +173,8 @@ import { mapState } from "vuex"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; import PatientRegisterEdit from '../../components/patientRegister/PatientRegisterEdit.vue' +import { dddw } from "@/utlis/proFunc"; + export default { components: { PatientRegisterEdit @@ -128,8 +228,39 @@ export default { this.dialogVisible = true }, + ldddw(arrayData,key,value,display){ + return dddw(arrayData,key,value,display) + }, + + //查询 + query(){ + getapi("/api/app/patient-register/in-filter").then( + (res) => { + this.dataList = res.data.items; + } + ); + }, + }, + + //监听事件 + watch: { + //触发查询事件 + 'patientRegister.query.times'(newVal, oldVal) { + if (newVal != oldVal) { + alert('触发查询事件') + this.query() + } + }, + 'patientRegister.patientRegisterRd.id'(newVal, oldVal) { + if (newVal != oldVal) { + //console.log('patientRegister.patientRegisterRd.customerOrgId',this.patientRegister.patientRegisterRd.customerOrgId) + objCopy(this.patientRegister.patientRegisterRd, this.form) + } + }, + }, + };