Commit aaa4d44f authored by 以墨为白's avatar 以墨为白 🎧

筛选bug

parent e07fed51
......@@ -204,7 +204,7 @@ export default {
dataOrderByParams(timeFrame, user) {
let newsArr = [];
let tmpArr = this.publicNoticeList;
if (user != null) {
if (user) {
tmpArr = this.publicNoticeList.filter(item => { return item.fromUserId == user });
}
tmpArr.forEach(item => {
......@@ -350,7 +350,7 @@ export default {
this.dataOrderByParams(5, val ? val : null);
},
handleChangeTimeFrame(val) {
this.dataOrderByParams(val, this.formInfo.fromUser);
this.dataOrderByParams(val ? val : 5, this.formInfo.fromUser);
},
compare(obj1, obj2) {
var val1 = obj1.createTime;
......
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