File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ export default {
185185 getCheckFilterDef () {
186186 return {
187187 width: 14 ,
188- prop : ' state_code' ,
188+ props : ' state_code' ,
189189 def: [{
190190 ' code' : ' created' ,
191191 ' name' : ' 未处理'
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ export default {
199199
200200 this .filters .forEach ((filter ) => {
201201 let val = filter .val
202- if (! val) {
202+ if (! val || val . length === 0 ) {
203203 return true
204204 }
205205
@@ -217,7 +217,7 @@ export default {
217217 // filter value is list, at the same time not empty
218218 defaultFilterFunction = function (el , filter ) {
219219 return filter .props .some (prop => {
220- return filter .value .indexOf (el[prop]) > - 1
220+ return filter .val .indexOf (el[prop]) > - 1
221221 })
222222 }
223223 }
You can’t perform that action at this time.
0 commit comments