File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 11import type { FormInstance , TableColumnCtx } from 'element-plus'
22import { ElNotification , dayjs } from 'element-plus'
3- import { cloneDeep , isEmpty } from 'lodash-es'
3+ import { cloneDeep , isArray , isEmpty } from 'lodash-es'
44import Sortable from 'sortablejs'
55import { reactive } from 'vue'
66import { useRoute } from 'vue-router'
@@ -598,14 +598,15 @@ export default class baTable {
598598 val = this . comSearch . form [ key ]
599599 }
600600
601- if ( val !== null ) {
602- comSearchData . push ( {
603- field : key ,
604- val : val ,
605- operator : fieldDataTemp . operator ,
606- render : fieldDataTemp . render ,
607- } )
608- }
601+ if ( val === null ) continue
602+ if ( isArray ( val ) && ! val . length ) continue
603+
604+ comSearchData . push ( {
605+ field : key ,
606+ val : val ,
607+ operator : fieldDataTemp . operator ,
608+ render : fieldDataTemp . render ,
609+ } )
609610 }
610611
611612 return comSearchData
You can’t perform that action at this time.
0 commit comments