From cf4552f81410da1eb116ab254f2d122912cf811c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A5=B6=E7=A7=8B=E9=9C=96?= <3435598628@qq.com> Date: Sat, 7 Dec 2024 18:28:32 +0800 Subject: [PATCH] e --- api/system/doctor.js | 44 ++++++ views/system/doctor/index.vue | 269 ++++++++++++++++++++++++++++++++++ 2 files changed, 313 insertions(+) create mode 100644 api/system/doctor.js create mode 100644 views/system/doctor/index.vue diff --git a/api/system/doctor.js b/api/system/doctor.js new file mode 100644 index 0000000..454b444 --- /dev/null +++ b/api/system/doctor.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询医生列表 +export function listDoctor(query) { + return request({ + url: '/system/doctor/list', + method: 'get', + params: query + }) +} + +// 查询医生详细 +export function getDoctor(id) { + return request({ + url: '/system/doctor/' + id, + method: 'get' + }) +} + +// 新增医生 +export function addDoctor(data) { + return request({ + url: '/system/doctor', + method: 'post', + data: data + }) +} + +// 修改医生 +export function updateDoctor(data) { + return request({ + url: '/system/doctor', + method: 'put', + data: data + }) +} + +// 删除医生 +export function delDoctor(id) { + return request({ + url: '/system/doctor/' + id, + method: 'delete' + }) +} diff --git a/views/system/doctor/index.vue b/views/system/doctor/index.vue new file mode 100644 index 0000000..7e64d45 --- /dev/null +++ b/views/system/doctor/index.vue @@ -0,0 +1,269 @@ + + +