体系搜索-处理日期置空的情况
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
tooltip-effect="dark"
|
||||
style="width: 100%;overflow-y: auto;overflow-x: hidden;"
|
||||
border
|
||||
:height="300"
|
||||
:height="400"
|
||||
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',fontWeight: 'bold', height: '48px'}"
|
||||
@sort-change="sortChange"
|
||||
@selection-change="selectionChange">
|
||||
@@ -287,6 +287,12 @@ export default {
|
||||
this.selected = []
|
||||
},
|
||||
releaseDateChange (event) {
|
||||
if (!event) {
|
||||
this.releaseDate = ['', '']
|
||||
this.searchForm.startReleaseDate = ''
|
||||
this.searchForm.endReleaseDate = ''
|
||||
return
|
||||
}
|
||||
this.releaseDate = event
|
||||
const startTime = event[0]
|
||||
const endTime = event[1]
|
||||
@@ -294,6 +300,12 @@ export default {
|
||||
this.searchForm.endReleaseDate = endTime
|
||||
},
|
||||
implementDateChange (event) {
|
||||
if (!event) {
|
||||
this.implementDate = ['', '']
|
||||
this.searchForm.startImplementDate = ''
|
||||
this.searchForm.endImplementDate = ''
|
||||
return
|
||||
}
|
||||
this.implementDate = event
|
||||
const startTime = event[0]
|
||||
const endTime = event[1]
|
||||
|
||||
Reference in New Issue
Block a user