From 797e9dbd575020d92cd237259d4693fdb53017eb Mon Sep 17 00:00:00 2001 From: lijingyu007 <904564792@qq.com> Date: Wed, 22 May 2024 18:17:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E6=89=8D+=E6=95=99=E5=B8=88=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/trainService/index.js | 101 +++++++++++++++++ src/views/trainService/talentPool.vue | 140 +++++++++++++++++++----- src/views/trainService/trainTeacher.vue | 59 +++++----- 4 files changed, 244 insertions(+), 58 deletions(-) diff --git a/.env.development b/.env.development index 2623e82..fe92452 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_BASE_API = '/test-api' # VUE_APP_BASE_TARGET = 'http://www.keyitest.cn/test-api' -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 4306b50..cd46a79 100644 --- a/src/api/trainService/index.js +++ b/src/api/trainService/index.js @@ -80,4 +80,105 @@ export function searchNum(id, query) { params: query, }) +} + + + +// 人才库+教师 +// 新增人才 +export function listTalent() { + return request({ + url: '/talent/admin/list', + method: 'get', + headers: { + isToken: false + } + }) +} +export function addTalent(data) { + return request({ + url: '/talent/admin/add', + method: 'post', + data, + headers: { + isToken: false + } + }) +} +// 修改人才 +export function updateTalent(data) { + return request({ + url: '/talent/admin/update', + method: 'post', + data, + headers: { + isToken: false + } + }) +} + +// 删除人才-删除教师 +export function deleteTalent(id) { + return request({ + url: '/talent/admin/' + id, + method: 'delete', + headers: { + isToken: false + } + }) +} + +// 查看人才-教师详情 +export function detailTalent(id) { + return request({ + url: '/talent/admin/' + id, + method: 'get', + headers: { + isToken: false + } + }) +} + +export function listTeacher() { + return request({ + url: '/talent/admin/teacherList', + method: 'get', + headers: { + isToken: false + } + }) +} +// 新增教师 +export function addTeacher(data) { + return request({ + url: '/talent/admin/teacher/add', + method: 'post', + data, + headers: { + isToken: false + } + }) +} +// 修改教师 +export function updateTeacher(data) { + return request({ + url: '/talent/admin/teacher/update', + method: 'post', + data, + headers: { + isToken: false + } + }) +} + +// 下载模板 +export function importTemplate() { + return request({ + url: '/talent/admin/download', + method: 'get', + responseType: 'blob', + headers: { + isToken: false + } + }) } \ No newline at end of file diff --git a/src/views/trainService/talentPool.vue b/src/views/trainService/talentPool.vue index 3e463b2..c1f184f 100644 --- a/src/views/trainService/talentPool.vue +++ b/src/views/trainService/talentPool.vue @@ -16,19 +16,19 @@ 重置 --> -
+
新增 - 导入 + 导入
- - - - - - + + + + + +