diff --git a/pages/personLocation/exam/studydetails/studydetails.vue b/pages/personLocation/exam/studydetails/studydetails.vue index cfa19c5e..19d214dd 100644 --- a/pages/personLocation/exam/studydetails/studydetails.vue +++ b/pages/personLocation/exam/studydetails/studydetails.vue @@ -76,7 +76,7 @@ this.videoStartTime = this.$formatDates(new Date().getTime(), 'yyyy-MM-dd HH:mm:ss'); this.startFlag = false; } - console.log(dataEvery && videoEvery && (this.videoList.length > 0 || this.dataList > 0)) + console.log(dataEvery, videoEvery, (this.videoList.length > 0 || this.dataList > 0)) if(dataEvery && videoEvery && (this.videoList.length > 0 || this.dataList > 0)){ let requestData = { workerId: this.userInfo.id, @@ -259,9 +259,10 @@ method: 'post', success(res) { if (res.code == 200) { - that.isPageLength = res.result.records instanceof Array ? res.result.records.length : 0; - console.log(22222, res, that.isPageLength); + that.isPageLength = Array.isArray(res.result.records) ? res.result.records.length : 0; + console.log(22222, res.result.records.length, that.isPageLength); const isPageFlag = that.isPageLength > 0 ? true : false; + console.log(isPageFlag); that.dataList.map(item => { that.$set(item,'isFileOver',isPageFlag) })