月搜索默认为本月时值改为string
This commit is contained in:
@@ -423,7 +423,7 @@ const initTable = async () => {
|
||||
if(['年','年度','年份'].includes(item.fieldName)&&item.searchDefaultValue=='本年'){
|
||||
tableSearch.value[config.prop]=getCurrentDate().year.toString()
|
||||
}else if( ['月','月度','月份'].includes(item.fieldName)&&item.searchDefaultValue=='本月'){
|
||||
tableSearch.value[config.prop]=new Date().getMonth() + 1
|
||||
tableSearch.value[config.prop]=(new Date().getMonth() + 1)+''
|
||||
}else if(item.fieldType=='Date'&&item.searchDefaultValue=='当日'){
|
||||
tableSearch.value[config.prop]=getCurrentDate().fullDate
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user