From 121a13fc5677187f0a1ef18be014ab3770c541a3 Mon Sep 17 00:00:00 2001 From: Sun_sun <469361609@qq.com> Date: Mon, 13 Oct 2025 10:16:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=A2=9E=E5=88=A0=E6=94=B9?= =?UTF-8?q?=E6=9F=A5=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/program.js | 4 ++ src/views/Program.vue | 164 +++++++++++++++++++++++++++++++----------- 2 files changed, 126 insertions(+), 42 deletions(-) diff --git a/src/api/program.js b/src/api/program.js index cc89b7e..90e26cf 100644 --- a/src/api/program.js +++ b/src/api/program.js @@ -4,6 +4,10 @@ import {programRequest} from '@/utils/api' export const programAPI = { // 登录 list: (params) => programRequest.get('/program/list', {params}), + add: (data) => programRequest.post('/program', data), + update: (data) => programRequest.patch("/program", data), + delete: (id) => programRequest.delete(`/program/${id}`), + getOne: (id) => programRequest.get(`/program/${id}`), } export default { diff --git a/src/views/Program.vue b/src/views/Program.vue index a2ed37a..7b43034 100644 --- a/src/views/Program.vue +++ b/src/views/Program.vue @@ -47,33 +47,33 @@ - - - - - - - - - + + + + + + + + + - + - - - + + + + + + + + + + + - + 搜索 @@ -112,7 +112,7 @@ type="danger" plain icon="Delete" - :disabled="multiple" + :disabled="single" @click="handleDelete" >删除 @@ -122,12 +122,14 @@ - + +