路径修改

openf12
yujialong 2 years ago
parent 5448660f5f
commit c9c53af150
  1. 32
      src/api/index.js
  2. 4
      src/components/TestPanel.vue
  3. 19
      src/config/index.js

@ -1,25 +1,25 @@
import config from '@/config'
export default {
getProjectDetail: 'occupationlab/projectManage/getProjectDetail',
getProjectDetail: 'occupationlab/occupationlab/projectManage/getProjectDetail',
submit: 'python/python/submit',
runPythonCode: 'python/python/runPythonCode',
queryBcJudgmentByBcId: 'judgment/bcJudgmentPoint/queryBcJudgmentByBcId',
queryTestProject: 'occupationlab/projectManage/getProjectBySystemId',
editExperimentalData: 'occupationlab/experimentalReport/editExperimentalData',
queryBcJudgmentPointByBcId: 'judgment/bcJudgmentPoint/queryBcJudgmentPointByBcId',
queryBcJudgmentByBcId: 'judgment/judgment/bcJudgmentPoint/queryBcJudgmentByBcId',
queryTestProject: 'occupationlab/occupationlab/projectManage/getProjectBySystemId',
editExperimentalData: 'occupationlab/occupationlab/experimentalReport/editExperimentalData',
queryBcJudgmentPointByBcId: 'judgment/judgment/bcJudgmentPoint/queryBcJudgmentPointByBcId',
saveCache: 'python/python/saveCache',
getLastCache: 'python/python/getLastCache',
delCache: 'python/python/delCache',
getDetailById: 'occupationlab/assessment/getDetailById',
pageStuAssessment: 'occupationlab/assessment/pageStuAssessment',
modelClassList: `nakadai/model/reference/modelClassList`,
referenceDemoList: `nakadai/model/reference/demo/referenceDemoList`,
referenceFindById: `nakadai/model/reference/demo/findById`,
checkIsShowBySystemId: `nakadai/model/reference/checkIsShowBySystemId`,
getDetailById: 'occupationlab/occupationlab/assessment/getDetailById',
pageStuAssessment: 'occupationlab/occupationlab/assessment/pageStuAssessment',
modelClassList: `nakadai/nakadai/model/reference/modelClassList`,
referenceDemoList: `nakadai/nakadai/model/reference/demo/referenceDemoList`,
referenceFindById: `nakadai/nakadai/model/reference/demo/findById`,
checkIsShowBySystemId: `nakadai/nakadai/model/reference/checkIsShowBySystemId`,
fileUpload: `${config.host}nakadai/nakadai/oss/fileUpload`,
importData: `occupationlab/python/file/data/importData`,
lookExcel: `occupationlab/python/file/data/lookExcel`,
lookOver: `occupationlab/python/file/data/lookOver`,
batchDeletion: `occupationlab/python/file/data/batchDeletion`,
myData: `occupationlab/python/file/data/myData`
importData: `occupationlab/occupationlab/python/file/data/importData`,
lookExcel: `occupationlab/occupationlab/python/file/data/lookExcel`,
lookOver: `occupationlab/occupationlab/python/file/data/lookOver`,
batchDeletion: `occupationlab/occupationlab/python/file/data/batchDeletion`,
myData: `occupationlab/occupationlab/python/file/data/myData`
}

@ -505,9 +505,9 @@ export default {
e.examScore = item.score
e.finishedResult = item.finishedResult // 12
} else {
e.score = 0
e.examScore = 0
}
score += e.score //
score += e.examScore //
})
this.grade = util.handleZero(score) // 0
this.editReport(res.reportId)

@ -1,11 +1,16 @@
import util from '@/util'
const isHh = location.host.includes('10.196.131.73') //是否是河海版本
const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试
const url = location.host
const isHh = url.includes('10.196.131.73') //是否是河海版本
const isPro = url.includes('occupationlab.com') //是否职站生产
let host = location.origin + ':9000/'
// 39.108.250.202 | 192.168.31.151
if (process.env.NODE_ENV === 'development') host = 'http://192.168.31.151:9000/'
let host = location.origin + '/'
// 121.37.12.51 | 192.168.31.151
if (process.env.NODE_ENV === 'development') {
host = 'http://192.168.31.151:9000/'
} else if (isPro) {
host = 'https://occupationlab.com/'
}
const systemId = util.getCookie('systemId')
/**
* python8个系统的id和名称
@ -54,10 +59,6 @@ export default {
* @description 是否是河海版本
*/
isHh,
/**
* @description 是否是开发/测试版本
*/
isBeta,
/**
* @description 系统主题色
*/

Loading…
Cancel
Save