From 1d2705931fb1b09b2f9475ccc1985a1e6b273370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 3 Mar 2023 14:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E8=96=AA=E8=B5=84=E7=A6=8F?= =?UTF-8?q?=E5=88=A9=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/mySalary/index.js | 2 +- pc4mobx/hrmSalary/stores/mySalary.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/mySalary/index.js b/pc4mobx/hrmSalary/pages/mySalary/index.js index d0f6469a..6902836e 100644 --- a/pc4mobx/hrmSalary/pages/mySalary/index.js +++ b/pc4mobx/hrmSalary/pages/mySalary/index.js @@ -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 }; diff --git a/pc4mobx/hrmSalary/stores/mySalary.js b/pc4mobx/hrmSalary/stores/mySalary.js index 0bba9f52..ca127047 100644 --- a/pc4mobx/hrmSalary/stores/mySalary.js +++ b/pc4mobx/hrmSalary/stores/mySalary.js @@ -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; }