From 3246735b18d668093445d3725efed990e742a953 Mon Sep 17 00:00:00 2001 From: Guoxianpeng <744964089@qq.com> Date: Fri, 10 Apr 2026 17:21:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/api/workbench.ts | 15 + admin/src/views/workbench/index.vue | 2551 +++++++++-------- server/app/common/model/Order.php | 1 + .../app/common/model/doctor/Appointment.php | 6 +- 4 files changed, 1383 insertions(+), 1190 deletions(-) create mode 100644 admin/src/api/workbench.ts diff --git a/admin/src/api/workbench.ts b/admin/src/api/workbench.ts new file mode 100644 index 00000000..61ca314c --- /dev/null +++ b/admin/src/api/workbench.ts @@ -0,0 +1,15 @@ +import request from '@/utils/request' + +/** + * 工作台相关API + */ +export const workbenchApi = { + /** + * 获取工作台数据 + */ + getWorkbenchData: () => { + return request.get({ + url: '/workbench/index' + }) + } +} diff --git a/admin/src/views/workbench/index.vue b/admin/src/views/workbench/index.vue index c8ba1a28..6e7eca34 100644 --- a/admin/src/views/workbench/index.vue +++ b/admin/src/views/workbench/index.vue @@ -1,1243 +1,1420 @@ + \ No newline at end of file diff --git a/server/app/common/model/Order.php b/server/app/common/model/Order.php index 5afa05bb..a0908ae9 100644 --- a/server/app/common/model/Order.php +++ b/server/app/common/model/Order.php @@ -173,3 +173,4 @@ class Order extends BaseModel } } } +} diff --git a/server/app/common/model/doctor/Appointment.php b/server/app/common/model/doctor/Appointment.php index 77aa8525..a8309852 100644 --- a/server/app/common/model/doctor/Appointment.php +++ b/server/app/common/model/doctor/Appointment.php @@ -96,8 +96,8 @@ class Appointment extends BaseModel return $this->hasOne('app\adminapi\logic\auth\AdminLogic', 'id', 'doctor_id') ->bind(['doctor_name' => 'name']); } - public function diagnosis(){ - - return $this->belongsTo('app\common\model\tcm\Diagnosis', 'patient_id', 'id'); + public function diagnosis() + { + return $this->belongsTo('app\common\model\tcm\Diagnosis', 'patient_id', 'id'); } }