Commit 73b0487c by sunchao

上一期下一期月份转化成数字

parent eb831649
......@@ -87,7 +87,7 @@ export class SalaryDetailComponent implements OnInit {
querySalaryDetail(type){
if(type!=null){
for(let i=0;i<this.payScaleInfos.length;i++){
if(this.payScaleInfos[i]['years'] == this.years && this.payScaleInfos[i]['month'] == this.month){
if((this.payScaleInfos[i]['years'] == this.years) && ( Number(this.payScaleInfos[i]['month']) == this.month)){
//上一期
if(type=='pre'){
// if(i==this.payScaleInfos.length-1){
......@@ -117,7 +117,6 @@ export class SalaryDetailComponent implements OnInit {
}
//下一期
if(type == 'next'){
debugger;
if(i == 0){
const toast = ToastService.show('已到最后一期薪资!', 0);
setTimeout(() => {
......@@ -213,7 +212,7 @@ export class SalaryDetailComponent implements OnInit {
//薪资单列表-》用来判断上一期下一期的加减
payScaleListQuery() {
this.myService.payScaleListQuery({ practitionerIdEG: this.practitionerIdEG,practitionerId:this.practitionerId,isHistory: 2}).subscribe((res) => {
this.myService.payScaleListQuery({practitionerId:this.practitionerId,isHistory: 2}).subscribe((res) => {
if (res['success']) {
this.payScaleInfos = res['data']['payScaleInfos'];
}
......
......@@ -5,8 +5,8 @@
export const environment = {
production: false,
BACKEND_URL_CONFIG_VALUE: 'https://m.zuihuibi.cn/api',
ORIGINNAME: 'https://m.zuihuibi.cn/ydapi',
DOMAINNAME: 'https://m.zuihuibi.cn/',
BACKEND_URL_CONFIG_VALUE: 'https://mdev.zuihuibi.cn/api',
ORIGINNAME: 'https://mdev.zuihuibi.cn/ydapi',
DOMAINNAME: 'https://mdev.zuihuibi.cn/',
BAIDU_TONGJI_CODE: 'e8fa107d82e0471d097d545225aeed64'
};
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