diff --git a/src/views/Statistics/Insightintothedetails.vue b/src/views/Statistics/Insightintothedetails.vue index 58c0c15..866b7fd 100644 --- a/src/views/Statistics/Insightintothedetails.vue +++ b/src/views/Statistics/Insightintothedetails.vue @@ -25,6 +25,7 @@ value-format="yyyy-MM-dd" start-placeholder="开始日期" end-placeholder="结束日期" + :picker-options="pickerOptions" > @@ -153,6 +154,27 @@ export default { value: "", input: "", tableData: [], + pickerMinDate: '', + // 日期选择器的 + pickerOptions: { + onPick: (obj) => { + this.pickerMinDate = new Date(obj.minDate).getTime(); + }, + disabledDate: (time) => { + if (this.pickerMinDate) { + const day1 = 30 * 24 * 3600 * 1000; + let maxTime = this.pickerMinDate + day1; + let minTime = this.pickerMinDate - day1; + return ( + time.getTime() >= maxTime || + time.getTime() <= minTime || + time.getTime() >= Date.now() - 1 * 24 * 3600 * 1000 + ); + } else { + return time.getTime() > Date.now() - 1 * 24 * 3600 * 1000; + } + }, + }, fromobj: { staDate: "", endDate: "", @@ -172,15 +194,15 @@ export default { mounted() { // 权限 this.sta_idx_download = this.permissions["sta_idx_download"]; - console.log(this.$route.query) - console.log(Object.keys(this.$route.query)) + console.log(this.$route.query); + console.log(Object.keys(this.$route.query)); if (Object.keys(this.$route.query).length > 0) { var isnull = this.$route.query.flag; if (isnull.TimetoAhoose) this.TimetoAhoose = isnull.TimetoAhoose; if (isnull.customtime) this.customtime = isnull.customtime; this.fromobj.staDate = isnull.starttime; this.fromobj.endDate = isnull.endoftime; - this.fromobj.projectId = isnull.houseId + this.fromobj.projectId = isnull.houseId; this.fromobj.keywords = isnull.keywordsId; if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) { this.TimetoAhoose = 6; @@ -195,10 +217,19 @@ export default { methods: { // 导出 downLoads() { + let datatype = ""; + if (this.TimetoAhoose == 6) { + datatype = ""; + } else { + datatype = this.TimetoAhoose; + } exportMethodPost( "autoSR/matchKeywords/receptionRecordExport", "画像详情", - this.fromobj + { + ...this.fromobj, + dateType: datatype + } ); }, diff --git a/src/views/Statistics/ai/createReport.vue b/src/views/Statistics/ai/createReport.vue index 2af7152..abf4b00 100644 --- a/src/views/Statistics/ai/createReport.vue +++ b/src/views/Statistics/ai/createReport.vue @@ -44,6 +44,11 @@ handleChange(file, fileList, 'system'); } " + :on-remove=" + (file, fileList) => { + handleChange(file, fileList, 'system'); + } + " :file-list="system" :accept="acceptList" > @@ -68,6 +73,11 @@ handleChange(file, fileList, 'user'); } " + :on-remove=" + (file, fileList) => { + handleChange(file, fileList, 'user'); + } + " :accept="acceptList" :file-list="user" > @@ -92,6 +102,11 @@ handleChange(file, fileList, 'assistant'); } " + :on-remove=" + (file, fileList) => { + handleChange(file, fileList, 'assistant'); + } + " :accept="acceptList" :file-list="assistant" >