Commit 5f41acd9 authored by zhangderong's avatar zhangderong

Merge branch 'Ztext1' of git.quantgroup.cn:ui/recruiting-management into Ztext1

parents 14d20932 776d8f52
......@@ -11,11 +11,11 @@ module.exports = {
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {
'/text':{
'/sapi':{
target:'http://recruit-ai3.liangkebang.net',
changeOrigin:true,
pathRewrite:{
'^/text':''
'^/sapi':''
}
}
......
......@@ -6,7 +6,7 @@ import qs from 'qs'
// 获取个人信息
export function getpersonMassage(params) {
// params=qs.stringify(params)
return axios.get(`/text/api/login/me`,params,{headers: {
return axios.get(`sapi/api/login/me`,params,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
......@@ -14,21 +14,21 @@ export function getpersonMassage(params) {
// 用户退出
export function loginOUT() {
// params=qs.stringify(params)
return axios.get(`/text/api/login/logout`,{headers: {
return axios.get(`sapi/api/login/logout`,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
}
//通过某一来源查询简历信息
export function adoptOneSeeResumeList(parmars) {
return axios.post(`/text/api/resume/findListBySource`,parmars,{headers: {
return axios.post(`sapi/api/resume/findListBySource`,parmars,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
}
//通过渠道机简历信息
export function getChannelMassage() {
return axios.get(`/text/api/resume/getSourceList`,{headers: {
return axios.get(`sapi/api/resume/getSourceList`,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
......
......@@ -5,63 +5,63 @@ import {
import qs from 'qs'
// 更改约面信息
export function changeinterviewMassage(parmars) {
return axios.post(`/text/api/resumeInterview/update`,parmars,{headers: {
return axios.post(`sapi/api/resumeInterview/update`,parmars,{headers: {
'Content-Type':'application/json;',
}})
}
// 重启面试
export function oppenInterview(tid,tstatus) {
console.log(tid,tstatus)
return axios.post(`/text/api/resumeFlow/reset/${tid}/${tstatus}`,{headers: {
return axios.post(`sapi/api/resumeFlow/reset/${tid}/${tstatus}`,{headers: {
'Content-Type':'application/json;',
}})
}
// 终止面试
export function SInterview(tid) {
return axios.post(`/text/api/resumeFlow/end/${tid}`,{headers: {
return axios.post(`sapi/api/resumeFlow/end/${tid}`,{headers: {
'Content-Type':'application/json;',
}})
}
// 面试管理查询
export function SerchList(parmars) {
return axios.post(`/text/api/interview/findListByQueryVO`,parmars,{headers: {
return axios.post(`sapi/api/interview/findListByQueryVO`,parmars,{headers: {
'Content-Type':'application/json;',
'X-Requested-With':'XMLHttpRequest'
}})
}
//查看简历详情页
export function seedetail (parmars) {
return axios.get(`/text/api/html/get/${parmars.resumeId}`,{headers: {
return axios.get(`sapi/api/html/get/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json'
}})
}
//面试官查询
export function Serchinterviewor() {
return axios.post(`/text/api/interview/findInterviewerList`,{headers: {
return axios.post(`sapi/api/interview/findInterviewerList`,{headers: {
'Content-Type':'application/json;',
}})
}
//邀约人查询
export function SerchInvitationOwer() {
return axios.post(`/text/api/interview/findInviterList`,{headers: {
return axios.post(`sapi/api/interview/findInviterList`,{headers: {
'Content-Type':'application/json;',
}})
}
//新增约面信息
export function NewAddInterview(parmars) {
return axios.post(`/text/api/resumeInterview/add`,parmars,{headers: {
return axios.post(`sapi/api/resumeInterview/add`,parmars,{headers: {
'Content-Type':'application/json;',
}})
}
// 查询记录
export function recodeLIST (parmars) {
return axios.post(`/text/api/resumeFlow/history/${parmars.resumeId}`,{headers: {
return axios.post(`sapi/api/resumeFlow/history/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json'
}})
}
// 变更状态
export function changestatus (tid,tstatus) {
return axios.post(`/text/api/resumeFlow/uploadStatus/${tid}/${tstatus}`,{headers: {
return axios.post(`sapi/api/resumeFlow/uploadStatus/${tid}/${tstatus}`,{headers: {
'Content-Type':'application/json'
}})
}
\ No newline at end of file
......@@ -6,7 +6,7 @@ import qs from 'qs'
//登录
export function login(params) {
// params=qs.stringify(params)
return axios.post(`/text/api/login/doLogin`,params,{headers: {
return axios.post(`sapi/api/login/doLogin`,params,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
......@@ -14,7 +14,7 @@ export function login(params) {
//修改密码
export function updatePsd(params) {
// params=qs.stringify(params)
return axios.post(`/text/api/login/modifyPassword`,params,{headers: {
return axios.post(`sapi/api/login/modifyPassword`,params,{headers: {
'Content-Type':'application/json'
}})
}
\ No newline at end of file
......@@ -5,52 +5,52 @@ import {
import qs from 'qs'
// 查询简历列表
export function serchList(parmars){
return axios.post(`/text/api/resume/findList`,parmars,{headers: {
return axios.post(`sapi/api/resume/findList`,parmars,{headers: {
'Content-Type':'application/json'
}})
}
// 下载简历(单条)
export function downloadone (parmars) {
parmars=qs.stringify(parmars)
return axios.post(`/text/api/resumeFile/download/formatted/one`,parmars,{headers: {
return axios.post(`sapi/api/resumeFile/download/formatted/one`,parmars,{headers: {
'Content-Type':'application/x-www-form-urlencoded'
}})
}
// 搜索
export function sousuoList (parmars) {
return axios.post(`/text/api/resume/findListByQueryVO`,parmars,{headers: {
return axios.post(`sapi/api/resume/findListByQueryVO`,parmars,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
}
//查看简历详情页
export function seedetail (parmars) {
return axios.get(`/text/api/html/get/${parmars.resumeId}`,{headers: {
return axios.get(`sapi/api/html/get/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json'
}})
}
// 简历pass
export function PASS (parmars) {
console.log(parmars)
return axios.post(`/text/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: {
return axios.post(`sapi/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: {
'Content-Type':'application/json'
}})
}
// 准备约面
export function TOSEE (parmars) {
return axios.post(`/text/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: {
return axios.post(`sapi/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: {
'Content-Type':'application/json'
}})
}
// 备选
export function OPTION (parmars) {
return axios.post(`/text/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: {
return axios.post(`sapi/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,'',{headers: {
'Content-Type':'application/json'
}})
}
// 删除简历
export function deleteREsume (deleteallArr) {
return axios.post(`/text/api/resume/delete`,JSON.stringify(deleteallArr),{headers: {
return axios.post(`sapi/api/resume/delete`,JSON.stringify(deleteallArr),{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
......@@ -58,46 +58,46 @@ export function deleteREsume (deleteallArr) {
// 单条下载简历
export function downloadOne (parmars) {
console.log(parmars.resumeId)
return axios.get(`/text/api/resume/download/formatted/one?resumeId=${parmars.resumeId}`,{headers: {
return axios.get(`sapi/api/resume/download/formatted/one?resumeId=${parmars.resumeId}`,{headers: {
// 'Content-Type':'application/x-www-form-urlencoded'
}})
}
// 批量下载简历
export function downloadALL () {
return axios.get(`/text/api/resumeFile/download/formatted/compress`,{headers: {
return axios.get(`sapi/api/resumeFile/download/formatted/compress`,{headers: {
'Content-Type':'application/x-www-form-urlencoded'
}})
}
// 导出列表
export function exportLIST (parmars) {
return axios.get(`/text/api/excel/output?optSource=${parmars.optSource}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`,
return axios.get(`sapi/api/excel/output?optSource=${parmars.optSource}&keywordString=${parmars.keywordString}&company=${parmars.company}&ownerSex=${parmars.ownerSex}&highestDegreeNum=${parmars.highestDegreeNum}&flowStatusList=${parmars.flowStatusList}&ownerWorkYears1=${parmars.ownerWorkYears1}&ownerWorkYears2=${parmars.ownerWorkYears2}`,
{headers: {
'Content-Type':'application/json'
}})
}
// 操作记录
export function recodeLIST (parmars) {
return axios.post(`/text/api/resumeFlow/history/${parmars.resumeId}`,{headers: {
return axios.post(`sapi/api/resumeFlow/history/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json'
}})
}
//通过某一来源查询简历信息
export function adoptOneSeeResumeList(parmars) {
return axios.post(`/text/api/resume/findListBySource`,parmars,{headers: {
return axios.post(`sapi/api/resume/findListBySource`,parmars,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 新增约面信息
export function addinterview(parmars) {
return axios.post(`/text/api/resumeInterview/add`,parmars,{headers: {
return axios.post(`sapi/api/resumeInterview/add`,parmars,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 修改流程状态
export function updatastatus(parmars) {
return axios.post(`/text/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,{headers: {
return axios.post(`sapi/api/resumeFlow/uploadStatus/${parmars.id}/${parmars.status}`,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
......
......@@ -5,77 +5,77 @@ import {
import qs from 'qs'
//账号列表查询
export function queryaccountList(params) {
return axios.post(`/text/api/user/findList`,params,{headers: {
return axios.post(`sapi/api/user/findList`,params,{headers: {
'Content-Type':'application/json;',
}})
}
//添加账户
export function addAccount (params) {
return axios.post(`/text/api/user/add`,params,{headers: {
return axios.post(`sapi/api/user/add`,params,{headers: {
'Content-Type':'application/json',
"X-Requested-With":"XMLHttpRequest"
}})
}
//删除单条账户
export function Delateaccount(parmars){
return axios.get(`/text/api/user/delete/${parmars.id}`,{headers: {
return axios.get(`sapi/api/user/delete/${parmars.id}`,{headers: {
'Content-Type':'application/json',
}})
}
//批量删除
export function delateAllAccount(DelateARR){
return axios.post(`/text//api/user/delete`,JSON.stringify(DelateARR),{headers: {
return axios.post(`sapi//api/user/delete`,JSON.stringify(DelateARR),{headers: {
'Content-Type':'application/json',
}})
}
//恢复初始密码
export function recoveryPassword(parmars){
return axios.post(`/text/api/user/initial/${parmars.id}`,{headers: {
return axios.post(`sapi/api/user/initial/${parmars.id}`,{headers: {
'Content-Type':'application/json',
}})
}
//查询邮箱列表
export function queryemailList(parmars){
return axios.post(`/text/api/email/list`,parmars,{headers: {
return axios.post(`sapi/api/email/list`,parmars,{headers: {
'Content-Type':'application/json',
}})
}
// 同步邮箱
export function Synchronization(parmars){
return axios.post(`/text/api/email/bindAndSync`,parmars,{headers: {
return axios.post(`sapi/api/email/bindAndSync`,parmars,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 解绑邮箱
export function jiebangEmail(id){
return axios.post(`/text/api/email/unbind/${id}`,{headers: {
return axios.post(`sapi/api/email/unbind/${id}`,{headers: {
'Content-Type':'application/x-www-form-urlencoded',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 修改邮箱并重新绑定
export function updateemailTWO(parmars){
return axios.post(`/text/api/email/modify`,parmars,{headers: {
return axios.post(`sapi/api/email/modify`,parmars,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
}
// 批量解绑邮箱
export function UntyingAll(UntyingAllARR){
return axios.post(`/text/api/email/unbind/batch`,JSON.stringify(UntyingAllARR),{headers: {
return axios.post(`sapi/api/email/unbind/batch`,JSON.stringify(UntyingAllARR),{headers: {
'Content-Type':'application/json',
}})
}
// 获取二维码
export function getErcode(){
return axios.get(`/text/qrCode/getInterviewQrcode`,{headers: {
return axios.get(`sapi/qrCode/getInterviewQrcode`,{headers: {
'Content-Type':'application/json',
}})
}
// //下载二维码
// export function downloadErcode(){
// return axios.get(`/text/qrCode/downQrCode`,{headers: {
// return axios.get(`sapi/qrCode/downQrCode`,{headers: {
// 'Content-Type':'application/json',
// }})
// }
\ No newline at end of file
......@@ -6,7 +6,7 @@ import qs from 'qs'
// 提交应聘登记表
export function submitMassage(params) {
// params=qs.stringify(params)
return axios.post(`/text/api/interview/arrive`,params,{headers: {
return axios.post(`sapi/api/interview/arrive`,params,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
......
......@@ -6,14 +6,14 @@ import qs from 'qs'
// 获取上传批次号
export function getuploadNumber() {
// params=qs.stringify(params)
return axios.get(`/text/api/resume/upload/batchNum`,{headers: {
return axios.get(`sapi/api/resume/upload/batchNum`,{headers: {
'Content-Type':'application/json',
'X-Requested-With':'XMLHttpRequest'
}})
}
//上传文件
export function uploadfile(parmars) {
return axios.post(`/text/api/resume/upload`,parmars,{headers: {
return axios.post(`sapi/api/resume/upload`,parmars,{headers: {
// 'Content-Type':'multipart/form-data',
processData : false,
contentType : false,
......@@ -22,19 +22,19 @@ export function uploadfile(parmars) {
}
// 查询上传列表记录
export function serchList(parmars) {
return axios.post(`/text/api/resume/upload/history`,parmars,{headers: {
return axios.post(`sapi/api/resume/upload/history`,parmars,{headers: {
'Content-Type':'application/json',
}})
}
// 查询简历详情
export function serchRESUMEdetail(parmars) {
return axios.get(`/text/api/html/get/${parmars.resumeId}`,{headers: {
return axios.get(`sapi/api/html/get/${parmars.resumeId}`,{headers: {
'Content-Type':'application/json',
}})
}
// 查询简历详情
export function deleteREsumeUPLOad(deleteallArr) {
return axios.post(`/text/api/resume/delete`,JSON.stringify(deleteallArr),{headers: {
return axios.post(`sapi/api/resume/delete`,JSON.stringify(deleteallArr),{headers: {
'Content-Type':'application/json',
}})
}
......@@ -6,7 +6,7 @@ export default{
if (!token&&to.name!=='login'&&to.name!=='text'&&to.name!=='sweepCode') {
window.location.href = `${window.location.origin}/login`
return
}
}
next()
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment