From a43d56bdc984ede6b54740273328a73050c7386c Mon Sep 17 00:00:00 2001 From: wangshiming Date: Thu, 12 May 2022 17:54:52 +0800 Subject: [PATCH] fix bug --- .../abnormal-feedback.component.ts | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/src/app/routes/partner/rebate-management/model/abnormal-feedback/abnormal-feedback.component.ts b/src/app/routes/partner/rebate-management/model/abnormal-feedback/abnormal-feedback.component.ts index eed28c66..a2d22712 100644 --- a/src/app/routes/partner/rebate-management/model/abnormal-feedback/abnormal-feedback.component.ts +++ b/src/app/routes/partner/rebate-management/model/abnormal-feedback/abnormal-feedback.component.ts @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-03-10 14:50:45 * @LastEditors : Shiming - * @LastEditTime : 2022-05-12 17:41:17 + * @LastEditTime : 2022-05-12 17:54:15 * @FilePath : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\model\\abnormal-feedback\\abnormal-feedback.component.ts * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -35,11 +35,13 @@ export class ParterRebateManageMenAbnormalFeedbackComponent implements OnInit { initData() { if (this.i) { console.log(this.i); - - this.service.request(this.service.$api_get_getExceptionMessage, { partnerId: this.i?.partnerId,month: this.i.month,year: this.i.year }).subscribe(res => { - console.log(res); - this.mybidDetailInfo = res - }); + + this.service + .request(this.service.$api_get_getExceptionMessage, { partnerId: this.i?.partnerId, month: this.i.month, year: this.i.year }) + .subscribe(res => { + console.log(res); + this.mybidDetailInfo = res; + }); } } initSF() { @@ -65,14 +67,21 @@ export class ParterRebateManageMenAbnormalFeedbackComponent implements OnInit { }; } close() { - if(!this.sf.valid) { - this.service.msgSrv.error('请填写必填项!') - return + if (!this.sf.valid) { + this.service.msgSrv.error('请填写必填项!'); + return; } let params = { - - } - this.service.request(this.service.$api_get_partnerIncomeExceptionAdd) - this.modalRef.destroy(); + partnerId: this.i?.partnerId, + month: this.i.month, + year: this.i.year, + ...this.sf.value + }; + this.service.request(this.service.$api_get_partnerIncomeExceptionAdd,params).subscribe((res) => { + if(res) { + this.service.msgSrv.success('保存成功!'); + this.modalRef.destroy(); + } + }) } }