Commit fa179495 by 姜雷

写法规范

parent 27fefd5a
...@@ -215,14 +215,13 @@ export default { ...@@ -215,14 +215,13 @@ export default {
}, },
computed: { computed: {
allDataOptions() { allDataOptions() {
let list = this.list.filter( return this.list
i => !this.trueValue.includes(i[this.mapProps.key]) .filter(i => !this.trueValue.includes(i[this.mapProps.key]))
); .filter(i =>
list = list.filter(i => this.filters.allValue
this.filters.allValue ? i[this.mapProps.label].includes(this.filters.allValue)
? i[this.mapProps.label].includes(this.filters.allValue) : true
: true );
);
return list; return list;
}, },
selectDataOptions() { selectDataOptions() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment