diff --git a/src/views/Statistics/Insightintothedetails.vue b/src/views/Statistics/Insightintothedetails.vue index 866b7fd..44853b5 100644 --- a/src/views/Statistics/Insightintothedetails.vue +++ b/src/views/Statistics/Insightintothedetails.vue @@ -167,8 +167,7 @@ export default { let minTime = this.pickerMinDate - day1; return ( time.getTime() >= maxTime || - time.getTime() <= minTime || - time.getTime() >= Date.now() - 1 * 24 * 3600 * 1000 + time.getTime() <= minTime ); } else { return time.getTime() > Date.now() - 1 * 24 * 3600 * 1000; diff --git a/src/views/Statistics/ai/createReport.vue b/src/views/Statistics/ai/createReport.vue index cc469ee..3c98d1c 100644 --- a/src/views/Statistics/ai/createReport.vue +++ b/src/views/Statistics/ai/createReport.vue @@ -46,7 +46,7 @@ " :on-remove=" (file, fileList) => { - handleChange(file, fileList, 'system'); + handleChanges(file, fileList, 'system'); } " :file-list="system" @@ -75,7 +75,7 @@ " :on-remove=" (file, fileList) => { - handleChange(file, fileList, 'user'); + handleChanges(file, fileList, 'user'); } " :accept="acceptList" @@ -104,7 +104,7 @@ " :on-remove=" (file, fileList) => { - handleChange(file, fileList, 'assistant'); + handleChanges(file, fileList, 'assistant'); } " :accept="acceptList" @@ -590,6 +590,11 @@ export default { }, methods: { + // 文件上传成功 + handleChanges(file, filelist, name) { + console.log(file, filelist, name); + this[name] = filelist; + }, // 文件上传成功 handleChange(file, filelist, name) { console.log(file, filelist, name); @@ -749,10 +754,10 @@ export default { // 生成报告规则 creatMonthRule() { - if (this.assistant.length == 0) { - this.$message.error("请上传期望的回应"); - return; - } + // if (this.assistant.length == 0) { + // this.$message.error("请上传期望的回应"); + // return; + // } let obj = { system: this.system, user: this.user, diff --git a/src/views/Statistics/ai/reportDetail.vue b/src/views/Statistics/ai/reportDetail.vue index c817ba6..afaa810 100644 --- a/src/views/Statistics/ai/reportDetail.vue +++ b/src/views/Statistics/ai/reportDetail.vue @@ -11,6 +11,12 @@ 生成时间: {{ objPagesData.createTime }} + +