变更接口地址

master
yujialong 3 years ago
parent 712e654b71
commit e63367d2dc
  1. 8
      src/api/index.js
  2. 2
      src/layouts/header/index.vue
  3. 2
      src/pages/quesBank/list/myQuesBank.vue
  4. 4
      src/setting.js

@ -3,7 +3,7 @@ let uploadURL = Setting.upload.apiURL
export default {
// 登录 
logins: `management/userInfo/login`,
logins: `/management/userInfo/login`,
// oss文件管理
fileDeletion: `${uploadURL}/oss/manage/fileDeletion`,
@ -22,6 +22,7 @@ export default {
userinfo:`management/userInfo/getUserInfo`,
getAccount:`management/userInfo/getAccount`,
getUserAccount:`management/userInfo/getUserAccount`,
downloadManualTemp:`http://szks.supergen-edu.com/template/%E8%B6%85%E7%AB%9E%E6%95%B0%E5%AD%97%E5%8C%96%E8%80%83%E8%AF%95%E7%B3%BB%E7%BB%9F-%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C(%E4%BC%81%E4%B8%9A%E7%AB%AF%EF%BC%89.pdf`,
// 组织架构
addStaffPro: `management/staffProfessionalArchitecture/addStaffProfessionalArchitecture`,
@ -46,7 +47,7 @@ export default {
updateStaff: `management/staff/updateStaff`,
exportFailureStaff: `${Setting.apiBaseURL}/management/staff/exportFailure`,
uploadFileStaff: `${Setting.apiBaseURL}/management/staff/uploadFile`,
downloadStaffTemp: `http://39.108.250.202/template/%E8%80%83%E8%AF%95%E5%B9%B3%E5%8F%B0%E5%91%98%E5%B7%A5%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx`,
downloadStaffTemp: `http://szks.supergen-edu.com/template/%E8%80%83%E8%AF%95%E5%B9%B3%E5%8F%B0%E5%91%98%E5%B7%A5%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx`,
// 角色管理
getRole: `management/role/get`,
@ -74,7 +75,7 @@ export default {
updateUser: `cjEnterprise/user/updateUser`,
uploadFileUser: `${Setting.apiBaseURL}/cjEnterprise/user/uploadFile`,
exportFailureUser: `${Setting.apiBaseURL}/cjEnterprise/user/exportFailure`,
downloadUserTemp: 'http://liuwanr.oss-cn-shenzhen.aliyuncs.com/xlsx/20201102/1604658619702.xlsx',
downloadUserTemp: 'http://szks.supergen-edu.com/template/%E8%80%83%E8%AF%95%E5%B9%B3%E5%8F%B0%E7%94%A8%E6%88%B7%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx',
// 题库分类
AddOneLevel:`cjEnterprise/questionBank/AddOneLevel`,
@ -95,6 +96,7 @@ export default {
updateQuestions:`cjEnterprise/questions/update`,
getExcel:`cjEnterprise/questions/getExcel`,
impExcel:`${Setting.apiBaseURL}/cjEnterprise/questions/impExcel`,
downloadQuesTemp: 'http://szks.supergen-edu.com/template/%E9%A2%98%E5%BA%93%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx',
// 共享相关
batchSave:`cjEnterprise/questionSharing/batchSave`,

@ -50,7 +50,7 @@ export default {
userCommand(command){
if(command == 'help'){
this.pdfVisible = true
this.pdfSrc = 'http://39.108.250.202/template/%E8%B6%85%E7%AB%9E%E6%95%B0%E5%AD%97%E5%8C%96%E8%80%83%E8%AF%95%E7%B3%BB%E7%BB%9F-%E6%93%8D%E4%BD%9C%E6%89%8B%E5%86%8C(%E4%BC%81%E4%B8%9A%E7%AB%AF%EF%BC%89.pdf'
this.pdfSrc = this.api.downloadManualTemp
}else if(command == 'person'){
this.$router.push('/setting/person')
}else{

@ -409,7 +409,7 @@ export default {
}
},
downLoad() {
location.href = 'http://39.108.250.202/cjEnterprise/题库导入模板.xlsx'
location.href = this.api.downloadQuesTemp
},
showimportVisible() {
this.importVisible = true

@ -15,8 +15,8 @@ const Setting = {
// 页面切换时,是否显示模拟的进度条
showProgressBar: true,
// 接口请求地址
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:8001' : 'http://39.108.250.202:8000',
apiBaseURL: env === 'development' ? 'http://39.108.250.202:9000' : 'http://39.108.250.202:9000',
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://8.134.8.197:9000',
apiBaseURL: env === 'development' ? 'http://8.134.8.197:9000' : 'http://8.134.8.197:9000',
// 接口请求返回错误时,弹窗的持续时间,单位:秒
modalDuration: 3,
// 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice

Loading…
Cancel
Save