diff --git a/src/views/modules/analysis/item/difficult-Item-list.vue b/src/views/modules/analysis/item/difficult-Item-list.vue index 292d71f1..48f2821d 100644 --- a/src/views/modules/analysis/item/difficult-Item-list.vue +++ b/src/views/modules/analysis/item/difficult-Item-list.vue @@ -34,7 +34,7 @@ value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="选择日期时间" - @change="changeTime" + @change="changeItemStartTime" > @@ -44,7 +44,7 @@ :picker-options="pickerBeginDateAfter" value-format="yyyy-MM-dd" format="yyyy-MM-dd" - placeholder="选择日期时间" @change="changeTime"> + placeholder="选择日期时间" @change="changeItemStartTime"> @@ -64,7 +64,7 @@ :picker-options="pickerBeginDateBeforeProcessed" value-format="yyyy-MM-dd" format="yyyy-MM-dd" - placeholder="选择日期时间" @change="changeTime"> + placeholder="选择日期时间" @change="changeProcessedStartTime"> @@ -73,7 +73,7 @@ :picker-options="pickerBeginDateAfterProcessed" value-format="yyyy-MM-dd" format="yyyy-MM-dd" - placeholder="选择日期时间" @change="changeTime"> + placeholder="选择日期时间" @change="changeProcessedStartTime"> @@ -292,6 +292,18 @@ export default { look (id) { this.$parent.selectComponent = 'ItemDetailView' this.$router.push({ path: '/analysis-item-difficult-Item', query: { id: id } }) + }, + changeItemStartTime(dateValue){ + if (dateValue === null || dateValue === '' || dateValue === "null" ) { + this.dataForm.changeItemStartTime = '' + this.dataForm.changeItemEndTime = '' + } + }, + changeProcessedStartTime(dateValue){ + if (dateValue === null || dateValue === '' || dateValue === "null" ) { + this.dataForm.processedStartTime = '' + this.dataForm.processedEndTime = '' + } } } } diff --git a/src/views/modules/analysis/item/report-solved-item-list.vue b/src/views/modules/analysis/item/report-solved-item-list.vue index 51d17752..33147e21 100644 --- a/src/views/modules/analysis/item/report-solved-item-list.vue +++ b/src/views/modules/analysis/item/report-solved-item-list.vue @@ -19,7 +19,7 @@ value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="选择日期时间" - style="width:200px" @change="changeTime"> + style="width:200px" @change="changeReportStartTime"> @@ -29,7 +29,7 @@ value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="选择日期时间" - style="width:200px" @change="changeTime"> + style="width:200px" @change="changeReportStartTime"> @@ -214,6 +214,12 @@ export default { e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') this.dataForm.searchContent = e.target.value }, + changeReportStartTime(dateValue){ + if (dateValue === null || dateValue === '' || dateValue === "null" ) { + this.dataForm.reportStartTime = '' + this.dataForm.reportEndTime = '' + } + } } } diff --git a/src/views/modules/analysis/item/report-unsolved-item-list.vue b/src/views/modules/analysis/item/report-unsolved-item-list.vue index 58a90bf8..25681ae5 100644 --- a/src/views/modules/analysis/item/report-unsolved-item-list.vue +++ b/src/views/modules/analysis/item/report-unsolved-item-list.vue @@ -19,7 +19,7 @@ value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="选择日期时间" - style="width:200px" @change="changeTime"> + style="width:200px" @change="changeReportStartTime"> @@ -29,7 +29,7 @@ value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="选择日期时间" - style="width:200px" @change="changeTime"> + style="width:200px" @change="changeReportStartTime"> @@ -171,6 +171,12 @@ export default { e.target.value = e.target.value.replace(/[`~!#$%^&*()_\+=<>?:"{}|~!#¥%……&*()={}|《》?:“”【】\\[\]、;‘’,。、\s+]/g, '') this.dataForm.searchContent = e.target.value }, + changeReportStartTime(dateValue){ + if (dateValue === null || dateValue === '' || dateValue === "null" ) { + this.dataForm.reportStartTime = '' + this.dataForm.reportEndTime = '' + } + } } }