You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
417 lines
9.2 KiB
417 lines
9.2 KiB
import http from '../common/axios.js'
|
|
|
|
//全部api接口
|
|
export default {
|
|
// getDemo(data = {}) {
|
|
// let url = '/member/member_edit'
|
|
// return http.get(url, data).then(res => {
|
|
// return res;
|
|
// })
|
|
// },
|
|
// postDemo(data = {}) {
|
|
// let url = '/member/member_edit'
|
|
// return http.post(url, data).then(res => {
|
|
// return res;
|
|
// })
|
|
// },
|
|
|
|
|
|
//↓↓↓↓↓↓↓↓↓↓↓↓-----公共接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓
|
|
//教师/销售端登陆
|
|
personnelLogin(data = {}) {
|
|
let url = '/personnelLogin'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//教师/销售端详情
|
|
getPersonnelInfo(data = {}) {
|
|
let url = '/personnel/info'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//教师/销售端详情
|
|
editPersonnelInfo(data = {}) {
|
|
let url = '/personnel/edit'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//教师/销售端请假/打卡/签退-编辑
|
|
common_attendanceEdit(data = {}) {
|
|
let url = '/attendance/edit'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//教师/销售端请假/打卡/签退-列表
|
|
common_attendanceIndex(data = {}) {
|
|
let url = '/attendance/index'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//获取字典数据
|
|
common_Dictionary(data = {}) {
|
|
let url = '/common/getDictionary'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//公共端-获取全部员工列表
|
|
common_getPersonnelAll(data = {}) {
|
|
let url = '/personnel/getPersonnelAll'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//公共端-教师/销售端验证旧密码是否正确
|
|
common_personnelCheckOldPwd(data = {}) {
|
|
let url = '/personnel/checkOldPwd'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
|
|
//公共端-教师/销售端验证旧密码是否正确
|
|
common_personnelEdidPassword(data = {}) {
|
|
let url = '/personnel/edidPassword'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//公共端-教师/销售端验证旧密码是否正确
|
|
common_getPersonnelCampus(data = {}) {
|
|
let url = '/campus/getPersonnelCampus'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//公共端-忘记密码-通过短信验证码进行密码重置(学生/员工通用)
|
|
common_forgetPassword(data = {}) {
|
|
let url = '/common/forgetPassword'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//公共端-获取配置项
|
|
common_getConfig(data = {}) {
|
|
let url = '/common/getConfig'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
|
|
//公共端-获取配置项
|
|
common_getMiniWxOpenId(data = {}) {
|
|
let url = '/common/getMiniWxOpenId'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//↑↑↑↑↑↑↑↑↑↑↑↑-----公共接口相关-----↑↑↑↑↑↑↑↑↑↑↑↑
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//↓↓↓↓↓↓↓↓↓↓↓↓-----教练接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取添加学员列表
|
|
addStudentList(data = {}) {
|
|
let url = '/course/addStudentList'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
addStudent(data = {}) {
|
|
let url = '/course/addStudent'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
delStudentCourse(data = {}) {
|
|
let url = '/course/delStudentCourse'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//获取班级列表
|
|
jlClassList(data = {}) {
|
|
let url = '/class/jlClassList'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//获取课程列表
|
|
courseList(data = {}) {
|
|
let url = '/course/courseList'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//获取课程详情
|
|
courseInfo(data = {}) {
|
|
let url = '/course/courseInfo'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//教研管理文章列表
|
|
teachingResearchList(data = {}) {
|
|
let url = '/teachingResearch/list'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//教研管理文章详情
|
|
teachingResearchInfo(id) {
|
|
let url = '/teachingResearch/info/' + id
|
|
return http.get(url).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//获取能看的教研管理类型
|
|
teachingResearchLookType(data = {}) {
|
|
let url = '/teachingResearch/lookType'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//获取试卷
|
|
getTeachingTestPaper(data = {}) {
|
|
let url = '/teachingResearch/teachingTestPaper'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//提交试卷
|
|
submitTestPaper(data = {}) {
|
|
let url = '/teachingResearch/submitTestPaper'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//↑↑↑↑↑↑↑↑↑↑↑↑-----教练接口相关-----↑↑↑↑↑↑↑↑↑↑↑↑
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//↓↓↓↓↓↓↓↓↓↓↓↓-----销售接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓
|
|
//修改销售端个人资料
|
|
editPersonnel(data = {}) {
|
|
let url = '/personnel/info'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-客户资源-添加
|
|
xs_addCustomerResources(data = {}) {
|
|
let url = '/customerResources/add'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-客户资源-编辑
|
|
xs_editCustomerResources(data = {}) {
|
|
let url = '/customerResources/edit'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-查询客户资源全部列表
|
|
xs_getAllCustomerResources(data = {}) {
|
|
let url = '/customerResources/getAll'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-客户资源-获取修改日志列表
|
|
xs_customerResourcesGetEditLogList(data = {}) {
|
|
let url = '/customerResources/getEditLogList'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-资源共享-列表
|
|
xs_resourceSharingIndex(data = {}) {
|
|
let url = '/resourceSharing/index'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-资源共享-分配员工
|
|
xs_resourceSharingAssign(data = {}) {
|
|
let url = '/resourceSharing/assign'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-资源共享-详情(客户资源详情)
|
|
xs_resourceSharingInfo(data = {}) {
|
|
let url = '/resourceSharing/info'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
|
|
//销售端-沟通记录-添加
|
|
xs_communicationRecordsAdd(data = {}) {
|
|
let url = '/communicationRecords/add'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
|
|
//销售端-获取好友关系绑定详情
|
|
xs_chatGetChatFriendsInfo(data = {}) {
|
|
let url = '/chat/getChatFriendsInfo'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-获取聊天消息列表
|
|
xs_chatGetChatMessagesList(data = {}) {
|
|
let url = '/chat/getChatMessagesList'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-发送聊天消息
|
|
xs_chatSendChatMessages(data = {}) {
|
|
let url = '/chat/sendChatMessages'
|
|
return http.post(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
//销售端-好友关系列表
|
|
xs_chatGetChatFriendsList(data = {}) {
|
|
let url = '/chat/getChatFriendsList'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
|
|
//员工端统计(销售)-获取销售首页数据统计
|
|
xs_statisticsMarketHome(data = {}) {
|
|
let url = '/statistics/marketHome'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
|
|
//员工端统计(销售)-获取销售数据页统计
|
|
xs_statisticsMarketData(data = {}) {
|
|
let url = '/statistics/marketData'
|
|
return http.get(url, data).then(res => {
|
|
return res;
|
|
})
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//↑↑↑↑↑↑↑↑↑↑↑↑-----销售接口相关-----↑↑↑↑↑↑↑↑↑↑↑
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//↓↓↓↓↓↓↓↓↓↓↓↓-----学生接口相关-----↓↓↓↓↓↓↓↓↓↓↓↓
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//↑↑↑↑↑↑↑↑↑↑↑↑-----学生接口相关-----↑↑↑↑↑↑↑↑↑↑↑↑
|
|
|
|
|
|
|
|
}
|