20240205
luoJunYong.123 3 years ago
parent 5a76db9ce2
commit e911ed922a
  1. 38
      src/components/case/index.vue

@ -210,25 +210,25 @@ export default {
}, 10000)
}else {
if(process.env.NODE_ENV === "development") {
this.intervalJudge = setInterval(() => {
const data = {
id: parseInt(sessionStorage.getItem('assessmentId')),
token: parseInt(sessionStorage.getItem('token'))
}
checkTest(data).then(data => {
const { data: { data: { status } } } = data
if(status !== 1) {
this.popContainer = true
clearInterval(this.intervalJudge)
this.$message({
showClose: true,
message: '考核已结束',
type: 'success'
});
}else {
}
})
}, 4000)
// this.intervalJudge = setInterval(() => {
// const data = {
// id: parseInt(sessionStorage.getItem('assessmentId')),
// token: parseInt(sessionStorage.getItem('token'))
// }
// checkTest(data).then(data => {
// const { data: { data: { status } } } = data
// if(status !== 1) {
// this.popContainer = true
// clearInterval(this.intervalJudge)
// this.$message({
// showClose: true,
// message: '',
// type: 'success'
// });
// }else {
// }
// })
// }, 4000)
}else {
this.intervalJudge = setInterval(() => {
const data = {

Loading…
Cancel
Save