From 8a9530d8136aa467dc4bfa3844290b282ca1edd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E7=BB=A7=E7=BB=AD=E5=90=B9?= <17611323298@163.com> Date: Fri, 8 Dec 2023 15:31:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Statistics/Insightintothedetails.vue | 3 +- src/views/Statistics/ai/createReport.vue | 19 ++++-- src/views/Statistics/ai/reportDetail.vue | 67 ++++++++++++++----- 3 files changed, 62 insertions(+), 27 deletions(-) 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 }} + +