|
|
@ -200,6 +200,7 @@ import Setting from '@/setting' |
|
|
|
import { getProjectBySystemId, getProjectDetail, submit, getQueryCache, deleteCache, checkTest, checkTest2 } from "@/api/http.js"; |
|
|
|
import { getProjectBySystemId, getProjectDetail, submit, getQueryCache, deleteCache, checkTest, checkTest2 } from "@/api/http.js"; |
|
|
|
import { mapMutations } from 'vuex' |
|
|
|
import { mapMutations } from 'vuex' |
|
|
|
import { async } from 'q'; |
|
|
|
import { async } from 'q'; |
|
|
|
|
|
|
|
import Bus from '@/libs/bus' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
sendSync: { |
|
|
|
sendSync: { |
|
|
@ -214,10 +215,6 @@ export default { |
|
|
|
type: Number, |
|
|
|
type: Number, |
|
|
|
default: null |
|
|
|
default: null |
|
|
|
}, |
|
|
|
}, |
|
|
|
codeId: { |
|
|
|
|
|
|
|
type: Number, |
|
|
|
|
|
|
|
default: 0 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
showIt: { |
|
|
|
showIt: { |
|
|
|
type: Boolean, |
|
|
|
type: Boolean, |
|
|
|
required: true |
|
|
|
required: true |
|
|
@ -235,7 +232,6 @@ export default { |
|
|
|
grade: "00", |
|
|
|
grade: "00", |
|
|
|
exampleData: "", |
|
|
|
exampleData: "", |
|
|
|
codeid: "", |
|
|
|
codeid: "", |
|
|
|
codeIds: [], |
|
|
|
|
|
|
|
judgmentPointsIds: [], |
|
|
|
judgmentPointsIds: [], |
|
|
|
text: "", |
|
|
|
text: "", |
|
|
|
isStart: false, |
|
|
|
isStart: false, |
|
|
@ -318,6 +314,9 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, 4000) |
|
|
|
}, 4000) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Bus.$on('setSubmited', data => { |
|
|
|
|
|
|
|
this.popContainer = data |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
countVal: { |
|
|
|
countVal: { |
|
|
@ -365,11 +364,9 @@ export default { |
|
|
|
let token = sessionStorage.getItem('token') || this.getQueryVariable('token') |
|
|
|
let token = sessionStorage.getItem('token') || this.getQueryVariable('token') |
|
|
|
let cid = sessionStorage.getItem('cid') || this.getQueryVariable('cid') |
|
|
|
let cid = sessionStorage.getItem('cid') || this.getQueryVariable('cid') |
|
|
|
let systemId = sessionStorage.getItem('systemId') || this.getQueryVariable('systemId') |
|
|
|
let systemId = sessionStorage.getItem('systemId') || this.getQueryVariable('systemId') |
|
|
|
let projectId |
|
|
|
let projectId = this.getQueryVariable('projectId') |
|
|
|
if (sessionStorage.getItem('projectId')) { |
|
|
|
if (sessionStorage.getItem('projectId')) { |
|
|
|
projectId = sessionStorage.getItem('projectId') |
|
|
|
projectId = sessionStorage.getItem('projectId') |
|
|
|
} else { |
|
|
|
|
|
|
|
projectId = this.getQueryVariable('projectId') |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
console.log('mounted', projectId) |
|
|
|
console.log('mounted', projectId) |
|
|
|
let assessmentId = sessionStorage.getItem('assessmentId') || this.getQueryVariable('assessmentId') |
|
|
|
let assessmentId = sessionStorage.getItem('assessmentId') || this.getQueryVariable('assessmentId') |
|
|
@ -378,6 +375,7 @@ export default { |
|
|
|
let teamId = sessionStorage.getItem('teamId') || this.getQueryVariable('teamId') |
|
|
|
let teamId = sessionStorage.getItem('teamId') || this.getQueryVariable('teamId') |
|
|
|
let classId = sessionStorage.getItem('classId') || this.getQueryVariable('classId') |
|
|
|
let classId = sessionStorage.getItem('classId') || this.getQueryVariable('classId') |
|
|
|
let stopTime = sessionStorage.getItem('stopTime') || this.getQueryVariable('stopTime') |
|
|
|
let stopTime = sessionStorage.getItem('stopTime') || this.getQueryVariable('stopTime') |
|
|
|
|
|
|
|
let mallId = sessionStorage.getItem('mallId') || this.getQueryVariable('mallId') |
|
|
|
let timestamp = +stopTime; |
|
|
|
let timestamp = +stopTime; |
|
|
|
if (timestamp != null) { |
|
|
|
if (timestamp != null) { |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -399,6 +397,7 @@ export default { |
|
|
|
this.stageId = stageId |
|
|
|
this.stageId = stageId |
|
|
|
this.teamId = teamId |
|
|
|
this.teamId = teamId |
|
|
|
this.classId = classId |
|
|
|
this.classId = classId |
|
|
|
|
|
|
|
this.mallId = mallId |
|
|
|
} |
|
|
|
} |
|
|
|
let tokens = sessionStorage.getItem('token') |
|
|
|
let tokens = sessionStorage.getItem('token') |
|
|
|
if (tokens || token) { |
|
|
|
if (tokens || token) { |
|
|
@ -408,7 +407,6 @@ export default { |
|
|
|
2 : |
|
|
|
2 : |
|
|
|
0 |
|
|
|
0 |
|
|
|
this.assessmentId && this.projectId && this.checkVer() |
|
|
|
this.assessmentId && this.projectId && this.checkVer() |
|
|
|
this.codeId && this.codeIds.push(this.codeId) |
|
|
|
|
|
|
|
if (JSON.parse(assessmentId != null && assessmentId != '' && assessmentId != 'null' || this.competitionId)) { |
|
|
|
if (JSON.parse(assessmentId != null && assessmentId != '' && assessmentId != 'null' || this.competitionId)) { |
|
|
|
this.selectProjects({ |
|
|
|
this.selectProjects({ |
|
|
|
projectId |
|
|
|
projectId |
|
|
@ -417,9 +415,11 @@ export default { |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
console.log(2222, this.showIt) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
...mapMutations({ |
|
|
|
...mapMutations({ |
|
|
|
|
|
|
|
setBusinessKey: 'system/setBusinessKey', |
|
|
|
initState: 'system/initState', |
|
|
|
initState: 'system/initState', |
|
|
|
setShowBusiness: 'system/setShowBusiness', |
|
|
|
setShowBusiness: 'system/setShowBusiness', |
|
|
|
}), |
|
|
|
}), |
|
|
@ -440,6 +440,7 @@ export default { |
|
|
|
sessionStorage.setItem('cid', cid) |
|
|
|
sessionStorage.setItem('cid', cid) |
|
|
|
sessionStorage.setItem('systemId', systemId) |
|
|
|
sessionStorage.setItem('systemId', systemId) |
|
|
|
sessionStorage.setItem('projectId', projectId) |
|
|
|
sessionStorage.setItem('projectId', projectId) |
|
|
|
|
|
|
|
sessionStorage.setItem('firstLoad2', true) |
|
|
|
if (assessmentId) { |
|
|
|
if (assessmentId) { |
|
|
|
sessionStorage.setItem('assessmentId', assessmentId) |
|
|
|
sessionStorage.setItem('assessmentId', assessmentId) |
|
|
|
} |
|
|
|
} |
|
|
@ -499,6 +500,7 @@ export default { |
|
|
|
"systemId": sessionStorage.getItem('systemId'), |
|
|
|
"systemId": sessionStorage.getItem('systemId'), |
|
|
|
"cId": sessionStorage.getItem('cid'), |
|
|
|
"cId": sessionStorage.getItem('cid'), |
|
|
|
"permissions": 0, |
|
|
|
"permissions": 0, |
|
|
|
|
|
|
|
mallId: this.mallId |
|
|
|
} |
|
|
|
} |
|
|
|
getProjectBySystemId(params).then((data) => { |
|
|
|
getProjectBySystemId(params).then((data) => { |
|
|
|
if (data.status == 200) { |
|
|
|
if (data.status == 200) { |
|
|
@ -657,6 +659,7 @@ export default { |
|
|
|
sessionStorage.setItem('accountPasswordAll', '') |
|
|
|
sessionStorage.setItem('accountPasswordAll', '') |
|
|
|
sessionStorage.setItem('projectId', this.projectId) |
|
|
|
sessionStorage.setItem('projectId', this.projectId) |
|
|
|
sessionStorage.setItem('submited', 0) |
|
|
|
sessionStorage.setItem('submited', 0) |
|
|
|
|
|
|
|
sessionStorage.setItem('firstLoad2', true) |
|
|
|
getProjectDetail(params).then((data) => { |
|
|
|
getProjectDetail(params).then((data) => { |
|
|
|
if (data.status == 200) { |
|
|
|
if (data.status == 200) { |
|
|
|
const { systemId, projectId } = data.data.projectManage |
|
|
|
const { systemId, projectId } = data.data.projectManage |
|
|
@ -751,12 +754,14 @@ export default { |
|
|
|
competitionId: this.competitionId, |
|
|
|
competitionId: this.competitionId, |
|
|
|
stageId: this.stageId, |
|
|
|
stageId: this.stageId, |
|
|
|
teamId: this.teamId, |
|
|
|
teamId: this.teamId, |
|
|
|
|
|
|
|
mallId: this.mallId |
|
|
|
} |
|
|
|
} |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
submit(params).then((data) => { |
|
|
|
submit(params).then((data) => { |
|
|
|
console.log(4, data) |
|
|
|
console.log(4, data) |
|
|
|
if (data.status == 200) { |
|
|
|
if (data.status == 200) { |
|
|
|
this.clearStore() |
|
|
|
sessionStorage.setItem('firstLoad2', true) |
|
|
|
|
|
|
|
// this.clearStore() |
|
|
|
const { retMap } = data.data |
|
|
|
const { retMap } = data.data |
|
|
|
this.reportId = retMap.reportId |
|
|
|
this.reportId = retMap.reportId |
|
|
|
let firstLoad = null |
|
|
|
let firstLoad = null |
|
|
@ -906,7 +911,7 @@ export default { |
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
sessionStorage.setItem('accountVoucher', JSON.stringify(formList)) |
|
|
|
sessionStorage.setItem('accountVoucher', JSON.stringify(formList)) |
|
|
|
sessionStorage.setItem('accountPasswordAll', '') |
|
|
|
sessionStorage.setItem('accountPasswordAll', '') |
|
|
|
sessionStorage.setItem('submited', 0) |
|
|
|
this.setBusinessKey('') |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
"projectId": projectId, |
|
|
|
"projectId": projectId, |
|
|
|
} |
|
|
|
} |
|
|
@ -947,11 +952,11 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
toggleCase () { |
|
|
|
toggleCase () { |
|
|
|
if (this.submitType) return |
|
|
|
if (this.submitType) return |
|
|
|
if (!this.lockIt) { |
|
|
|
// if (!this.lockIt) { |
|
|
|
this.$emit('update:showIt', !this.showIt) |
|
|
|
this.$emit('update:showIt', !this.showIt) |
|
|
|
} else { |
|
|
|
// } else { |
|
|
|
this.closePaneJudge = true |
|
|
|
// this.closePaneJudge = true |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
// this.caseVisible = !this.caseVisible |
|
|
|
// this.caseVisible = !this.caseVisible |
|
|
|
}, |
|
|
|
}, |
|
|
|