From 22b5328314bb6d57e36d76aa186a68d1595ac816 Mon Sep 17 00:00:00 2001 From: lynn Date: Tue, 24 Jun 2025 16:34:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BE=9B=E9=9C=80=E7=AE=A1?= =?UTF-8?q?=E7=90=86API=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/student/index.js | 24 ++ .../student/components/SupplyDemandDetail.vue | 46 +++ .../student/components/SupplyDemandEdit.vue | 150 ++++++++++ src/views/student/supply_demand.vue | 283 +++++++++--------- 4 files changed, 368 insertions(+), 135 deletions(-) create mode 100644 src/views/student/components/SupplyDemandDetail.vue create mode 100644 src/views/student/components/SupplyDemandEdit.vue diff --git a/src/api/student/index.js b/src/api/student/index.js index 186e3ed..c9a5bee 100644 --- a/src/api/student/index.js +++ b/src/api/student/index.js @@ -82,4 +82,28 @@ export function updateSchoolmate(data) { }) } +export function supplyDemandList(params) { + return request({ + method: 'get', + url: '/api/admin/supply-demand/index', + params + }) +} +// 供需管理 - 保存(新增/更新) +export function supplyDemandSave(data) { + return request({ + method: 'post', + url: '/api/admin/supply-demand/save', + data + }) +} + +// 供需管理 - 删除 +export function supplyDemandDestroy(params) { + return request({ + method: 'get', + url: '/api/admin/supply-demand/destroy', + params + }) +} diff --git a/src/views/student/components/SupplyDemandDetail.vue b/src/views/student/components/SupplyDemandDetail.vue new file mode 100644 index 0000000..dbe1f23 --- /dev/null +++ b/src/views/student/components/SupplyDemandDetail.vue @@ -0,0 +1,46 @@ + + + + \ No newline at end of file diff --git a/src/views/student/components/SupplyDemandEdit.vue b/src/views/student/components/SupplyDemandEdit.vue new file mode 100644 index 0000000..bd14935 --- /dev/null +++ b/src/views/student/components/SupplyDemandEdit.vue @@ -0,0 +1,150 @@ + + + + \ No newline at end of file diff --git a/src/views/student/supply_demand.vue b/src/views/student/supply_demand.vue index b3b7496..60cfb4f 100644 --- a/src/views/student/supply_demand.vue +++ b/src/views/student/supply_demand.vue @@ -16,19 +16,19 @@
- + - - - + + + - - + + @@ -55,57 +55,57 @@ - + - - - @@ -125,86 +125,93 @@ :total="total" >
+ + + +