Commit efd537c3 by huaying

fix: 时间选择器修改

parent 0ee0c137
......@@ -99,7 +99,7 @@ export default {
};
},
created() {
// this.searchGroup();
this.searchGroup();
},
activated() {
if (this.$route.meta.refresh) {
......@@ -108,8 +108,8 @@ export default {
pageNum: 1,
pageSize: 20
};
this.searchGroup();
}
this.searchGroup();
},
methods: {
onSearch() {
......
......@@ -119,7 +119,7 @@ export default {
start = start.setFullYear(start.getFullYear() - 2);
end = end.getTime();
}
return time.getTime() < start || time.getTime() > end;
return time.getTime() <= start || time.getTime() >= end;
}
};
}
......@@ -228,7 +228,6 @@ export default {
}
await this.api(paras).then(res => {
console.log(res);
if (res.data.code == 0) {
this.tableData = res.data.result.result || [];
this.totalCount = res.data.result.totalCount;
......
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