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