From db90b2f82a6897918b54773d7ff067a70d95d7a3 Mon Sep 17 00:00:00 2001 From: lijingyu007 <904564792@qq.com> Date: Fri, 28 Jun 2024 09:31:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8A=A5=E5=90=8D=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/trainService/index.js | 103 ++++++++++++----------- src/views/trainService/signlist.vue | 3 +- src/views/trainService/signupStudent.vue | 21 ++++- 4 files changed, 77 insertions(+), 52 deletions(-) diff --git a/.env.development b/.env.development index 8bff949..32f1e1f 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_BASE_API = '/prod-api' # VUE_APP_BASE_TARGET = 'http://www.bjkeyware.com/test-api' -VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999' +VUE_APP_BASE_TARGET = 'http://192.168.0.229:9999' # VUE_APP_BASE_TARGET = 'http://192.168.0.129:9999' # VUE_APP_BASE_TARGET = 'http://172.16.36.180:9999' diff --git a/src/api/trainService/index.js b/src/api/trainService/index.js index c9cb919..4d11606 100644 --- a/src/api/trainService/index.js +++ b/src/api/trainService/index.js @@ -1,84 +1,84 @@ import request from '@/utils/request' export function getSchoolList(query) { - return request({ - url: '/train/schoolList', - method: 'get', - params: query, - // headers: { - // isToken: false - // }, - }) + return request({ + url: '/train/schoolList', + method: 'get', + params: query, + // headers: { + // isToken: false + // }, + }) } export function addSchool(data) { - return request({ - url: '/train/school/add', - method: 'post', - data, + return request({ + url: '/train/school/add', + method: 'post', + data, - }) + }) } export function updateSchool(data) { - return request({ - url: '/train/school/update', - method: 'post', - data, - - - }) + return request({ + url: '/train/school/update', + method: 'post', + data, + + + }) } export function delSchool(id) { - return request({ - url: `/train/school/del/?schoolId=${id}`, - method: 'delete', + return request({ + url: `/train/school/del/?schoolId=${id}`, + method: 'delete', - }) + }) } export function getSignUpList(query) { - return request({ - url: `/train/trainClassList`, - method: 'get', - params: query, + return request({ + url: `/train/trainClassList`, + method: 'get', + params: query, - }) + }) } export function addSignUp(data) { - return request({ - url: '/train/trainClass/add', - method: 'post', - data, + return request({ + url: '/train/trainClass/add', + method: 'post', + data, - }) + }) } export function updateSignUp(data) { - return request({ - url: '/train/trainClass/update', - method: 'post', - data, + return request({ + url: '/train/trainClass/update', + method: 'post', + data, - }) + }) } export function delSignUp(id) { - return request({ - url: `/train/trainClass/del?trainClassId=${id}`, - method: 'delete', + return request({ + url: `/train/trainClass/del?trainClassId=${id}`, + method: 'delete', - }) + }) } // 查询已报名列表 export function searchNum(params) { - return request({ - url: `/train/trainStudentList`, - method: 'get', - params, - }) + return request({ + url: `/train/trainStudentList`, + method: 'get', + params, + }) } @@ -179,4 +179,11 @@ export function addRemarkI(data) { method: 'post', data, }) +} +// 删除报名人 +export function delSign(id) { + return request({ + url: '/train/trainStuden/del?studentId=' + id, + method: 'delete', + }) } \ No newline at end of file diff --git a/src/views/trainService/signlist.vue b/src/views/trainService/signlist.vue index 94d730a..01dc869 100644 --- a/src/views/trainService/signlist.vue +++ b/src/views/trainService/signlist.vue @@ -57,6 +57,7 @@ 校企合作班 线下培训进阶班 可靠性人才培训班 + 师资培训班 @@ -280,7 +281,7 @@ @pagination="getStudentList" /> - +