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" /> - +