20240205
luoJunYong.123 3 years ago
parent 64ee731829
commit 3dd7fdcf8d
  1. 8
      src/components/case/index.vue

@ -191,13 +191,14 @@ export default {
sessionStorage.setItem('assessmentId', assessmentId) sessionStorage.setItem('assessmentId', assessmentId)
sessionStorage.setItem('token', token) sessionStorage.setItem('token', token)
if(process.env.NODE_ENV === "development") { if(process.env.NODE_ENV === "development") {
}else { }else {
this.intervalJudge = setInterval(() => { this.intervalJudge = setInterval(() => {
const data = { const data = {
id: parseInt(sessionStorage.getItem('assessmentId')), id: parseInt(sessionStorage.getItem('assessmentId')),
token: parseInt(sessionStorage.getItem('token')) token: parseInt(sessionStorage.getItem('token'))
} }
this.getData()
checkTest(data).then(data => { checkTest(data).then(data => {
const { data: { data: { status } } } = data const { data: { data: { status } } } = data
if(status !== 1) { if(status !== 1) {
@ -211,7 +212,7 @@ export default {
}else { }else {
} }
}) })
}, 3000) }, 4000)
} }
}, },
watch: { watch: {
@ -323,7 +324,10 @@ export default {
"permissions":0, "permissions":0,
} }
getProjectBySystemId(params).then((data)=>{ getProjectBySystemId(params).then((data)=>{
console.log('---topicList')
console.log(data)
if(data.status == 200){ if(data.status == 200){
console.log(data.data.projects)
// //
this.getBeginTime() this.getBeginTime()
this.topicList = [] this.topicList = []

Loading…
Cancel
Save