我的薪资福利页面查询优化

This commit is contained in:
黎永顺 2023-03-03 14:20:43 +08:00
parent 8b1b16d5e4
commit 1d2705931f
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ export default class MySalary extends React.Component {
selectedKey: "0",
salaryBillVisible: false,
salaryInfoId: "",
salaryRange: [moment().format("YYYY-MM"), moment().format("YYYY-MM")]
salaryRange: [moment().startOf("year").format("YYYY-MM"), moment().format("YYYY-MM")]
};
this.pageInfo = { current: 1, pageSize: 10 };
this.historyPageInfo = { current: 1, pageSize: 10 };

View File

@ -62,7 +62,7 @@ export class MySalaryStore {
// Object.assign(this._reqParams, { token });
// this.getFormData({ viewAttr: 1 });
this.hasRight = true;
isRoot && this.mySalaryBillList([moment().format("YYYY-MM"), moment().format("YYYY-MM")]);
isRoot && this.mySalaryBillList([moment().startOf("year").format("YYYY-MM"), moment().format("YYYY-MM")]);
} else {
this.hasRight = false;
}