From 6eb9ff3a500e2c6f27fdf6c63c57010aa87b214f Mon Sep 17 00:00:00 2001 From: mouse <1014893517@qq.com> Date: Sun, 24 Dec 2023 16:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E4=BD=9C=E5=8C=BB=E9=99=A2=EF=BC=8C?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=95=B0=E6=8D=AE=E6=B7=B1=E6=8B=B7=E8=B4=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/static-data/core.ts | 11 ++ src/views/patients-manage/patients-manage.vue | 2 +- .../permissions-manage/doctor-manage.vue | 2 +- .../permissions-manage/form/doctor-form.vue | 2 +- src/views/permissions-manage/menu-manage.vue | 2 +- src/views/permissions-manage/role-manage.vue | 2 +- src/views/system-manage/form/doctor-form.vue | 141 --------------- .../system-manage/form/hospital-form.vue | 166 ++++++++++++++++++ src/views/system-manage/hospitals.vue | 79 +++++---- 9 files changed, 227 insertions(+), 180 deletions(-) delete mode 100644 src/views/system-manage/form/doctor-form.vue create mode 100644 src/views/system-manage/form/hospital-form.vue diff --git a/src/static-data/core.ts b/src/static-data/core.ts index 9068a5b..2e04065 100644 --- a/src/static-data/core.ts +++ b/src/static-data/core.ts @@ -17,6 +17,15 @@ export const getDeptData = () => { return depts } +export const getusers = () => { + const user = [] + while (user.length < 50) { + user.push({ name: '管理员' + user.length, code: 'admin' + user.length }) + } + return user +} + +// 病人名称数据 export const getPatients = () => { const patients = [] while (patients.length < 10000) { @@ -24,6 +33,7 @@ export const getPatients = () => { } return patients } + export const getNarcotismWay = () => { const narcotismWay = [] while (narcotismWay.length < 10) { @@ -32,6 +42,7 @@ export const getNarcotismWay = () => { } return narcotismWay } + export const getFormTypes = () => { const types = [ {name: '生命体征表单'}, diff --git a/src/views/patients-manage/patients-manage.vue b/src/views/patients-manage/patients-manage.vue index 911df16..d70e479 100644 --- a/src/views/patients-manage/patients-manage.vue +++ b/src/views/patients-manage/patients-manage.vue @@ -121,7 +121,7 @@ const viewUserInfo = (e: any) => { formDialogTitle.value = '个人信息' setTimeout(() => { patientsFormRef.value.resetData() - patientsFormRef.value.formData = e + patientsFormRef.value.formData = JSON.parse(JSON.stringify(e)) }, 0) } const viewSurgeryInfo = (e: any) => { diff --git a/src/views/permissions-manage/doctor-manage.vue b/src/views/permissions-manage/doctor-manage.vue index eaa158b..c61d055 100644 --- a/src/views/permissions-manage/doctor-manage.vue +++ b/src/views/permissions-manage/doctor-manage.vue @@ -114,7 +114,7 @@ const editData = (e: any) => { formDialogTitle.value = '修改' setTimeout(() => { doctorFormRef.value.resetData() - doctorFormRef.value.formData = e + doctorFormRef.value.formData = JSON.parse(JSON.stringify(e)) }, 0) } const tableRowClick = (row: any) => { diff --git a/src/views/permissions-manage/form/doctor-form.vue b/src/views/permissions-manage/form/doctor-form.vue index 4637aed..a832728 100644 --- a/src/views/permissions-manage/form/doctor-form.vue +++ b/src/views/permissions-manage/form/doctor-form.vue @@ -33,7 +33,7 @@ - + 有效 禁用 diff --git a/src/views/permissions-manage/menu-manage.vue b/src/views/permissions-manage/menu-manage.vue index c1d2a02..aab57c1 100644 --- a/src/views/permissions-manage/menu-manage.vue +++ b/src/views/permissions-manage/menu-manage.vue @@ -120,7 +120,7 @@ const editData = (e: any) => { formDialogTitle.value = '修改' setTimeout(() => { doctorFormRef.value.resetData() - doctorFormRef.value.formData = e + doctorFormRef.value.formData = JSON.parse(JSON.stringify(e)) }, 0) } const tableRowClick = (row: any) => { diff --git a/src/views/permissions-manage/role-manage.vue b/src/views/permissions-manage/role-manage.vue index 48c344b..f934267 100644 --- a/src/views/permissions-manage/role-manage.vue +++ b/src/views/permissions-manage/role-manage.vue @@ -111,7 +111,7 @@ const editData = (e: any) => { formDialogTitle.value = '修改' setTimeout(() => { RoleFormRef.value.resetData() - RoleFormRef.value.formData = e + RoleFormRef.value.formData = JSON.parse(JSON.stringify(e)) }, 0) } const tableRowClick = (row: any) => { diff --git a/src/views/system-manage/form/doctor-form.vue b/src/views/system-manage/form/doctor-form.vue deleted file mode 100644 index 4637aed..0000000 --- a/src/views/system-manage/form/doctor-form.vue +++ /dev/null @@ -1,141 +0,0 @@ - - - - - diff --git a/src/views/system-manage/form/hospital-form.vue b/src/views/system-manage/form/hospital-form.vue new file mode 100644 index 0000000..c166280 --- /dev/null +++ b/src/views/system-manage/form/hospital-form.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/system-manage/hospitals.vue b/src/views/system-manage/hospitals.vue index 24fcc44..b97f933 100644 --- a/src/views/system-manage/hospitals.vue +++ b/src/views/system-manage/hospitals.vue @@ -18,21 +18,23 @@ @row-click="tableRowClick"> - - - + + + + - - - + + + + + + + - +