进入页面判断当前用户的classId和考核的classId是否相同

dev_2022-03-03
jialong.yu 3 years ago
parent 8e6876e304
commit 7751ee4a4b
  1. 7
      src/components/TestPanel.vue
  2. 3
      src/config/index.js

@ -253,9 +253,9 @@ export default {
const list = res.list const list = res.list
const assessmentId = this.assessmentId const assessmentId = this.assessmentId
let done = false let done = false
list.map(e => { const classId = this.classId
// reportId // reportIdclassIdclassId
if (e.assessmentId == assessmentId && e.reportId) { if (list.find(e => e.assessmentId == assessmentId && e.reportId && e.classId == classId)) {
done = true done = true
this.isSubmit = true this.isSubmit = true
newmain.$emit('isSubmit', this.isSubmit) newmain.$emit('isSubmit', this.isSubmit)
@ -264,7 +264,6 @@ export default {
history.back() // history.back() //
}, 1500) }, 1500)
} }
})
// //
if (!done) { if (!done) {
this.getList().then(() => { this.getList().then(() => {

@ -3,7 +3,8 @@ import util from '@/util'
const isHh = location.host.includes('10.196.131.73') //是否是河海版本 const isHh = location.host.includes('10.196.131.73') //是否是河海版本
const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试 const isBeta = process.env.NODE_ENV === 'development' || location.host.includes('39.108.250.202') //是否是职站测试
const host = location.origin + ':9000/' let host = location.origin + ':9000/'
if (process.env.NODE_ENV === 'development') host = "http://192.168.31.151:9000/"
/** /**
* python8个系统的id和名称 * python8个系统的id和名称
* id即systemId从cookie里取 * id即systemId从cookie里取

Loading…
Cancel
Save