|
@@ -2715,6 +2715,7 @@ export default {
|
|
|
let isAnswer = this.$store.state.students.filter(item => {
|
|
|
return item.option != ''
|
|
|
})
|
|
|
+ if(this.$store.state.isExportPDFNow==false){
|
|
|
var times = new Date().getTime()
|
|
|
var msgInitiative = {
|
|
|
action: 'State.Get',
|
|
@@ -2747,13 +2748,14 @@ export default {
|
|
|
this.$store.state.IRSswitch = true
|
|
|
this.singnalRMessage(msgInitiative, '8888', '', '')
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
r(200)
|
|
|
})
|
|
|
},
|
|
|
//每10秒广播一次state状态
|
|
|
broadcastState() {
|
|
|
- if (this.stage != null && this.$store.state.imgArr && this.$store.state.imgArr.idArr && sessionStorage.getItem('user')) {
|
|
|
+ if (this.stage != null && this.$store.state.imgArr && this.$store.state.imgArr.idArr && sessionStorage.getItem('user')&&this.$store.state.isExportPDFNow==false) {
|
|
|
//等所有資料載入才能發訊息
|
|
|
console.log('调用到了广播方法')
|
|
|
var times = new Date().getTime()
|
|
@@ -4732,6 +4734,7 @@ export default {
|
|
|
},
|
|
|
async exportPDF() {
|
|
|
this.Hishow = false
|
|
|
+ this.$store.state.IRSswitch = false
|
|
|
const doc = new jsPDF('l', 'px', [window.innerWidth, window.innerHeight])
|
|
|
this.$store.state.carouselSlide = 1
|
|
|
let that = this
|
|
@@ -4792,6 +4795,7 @@ export default {
|
|
|
function clearTime() {
|
|
|
clearInterval(myInterval)
|
|
|
that.$store.state.isExportPDFNow = false
|
|
|
+ that.$store.state.IRSswitch = true
|
|
|
}
|
|
|
},
|
|
|
add() {
|