fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-01-18 09:51:21
|
* @Date : 2022-01-18 09:51:21
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-04-27 17:26:44
|
* @LastEditTime : 2022-04-28 13:43:18
|
||||||
* @FilePath : \\tms-obc-web\\proxy.conf.js
|
* @FilePath : \\tms-obc-web\\proxy.conf.js
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -30,7 +30,7 @@ module.exports = {
|
|||||||
// },
|
// },
|
||||||
'//api': {
|
'//api': {
|
||||||
target: {
|
target: {
|
||||||
host: 'tms-api-dev.eascs.com',
|
host: 'tms-api-test.eascs.com',
|
||||||
protocol: 'https:',
|
protocol: 'https:',
|
||||||
port: 443
|
port: 443
|
||||||
},
|
},
|
||||||
|
|||||||
@ -111,11 +111,29 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
|
|||||||
// };
|
// };
|
||||||
|
|
||||||
constructor(private service: SystemService) {}
|
constructor(private service: SystemService) {}
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: any): void {
|
||||||
if (changes.configList) {
|
if (changes.configList) {
|
||||||
console.log(changes.configList);
|
console.log(changes.configList.currentValue[0]?.remark);
|
||||||
console.log(changes.configList.currentValue);
|
this.personServe = changes.configList.currentValue[0]?.remark.personServe, // 个人提现手续费
|
||||||
|
this.enterpriseServe= changes.configList.currentValue[0]?.remark.enterpriseServe, // 企业提现手续费
|
||||||
|
this.auditValue= changes.configList.currentValue[0]?.remark.auditValue, // 提现审核
|
||||||
|
this.auditTime= changes.configList.currentValue[0]?.remark.auditTime, // 审核时间
|
||||||
|
this.silenceClient= changes.configList.currentValue[0]?.remark.silenceClient, // 沉默客户
|
||||||
|
this.loseClient= changes.configList.currentValue[0]?.remark.loseClient // 流失客户
|
||||||
|
this.everyDayData= changes.configList.currentValue[0]?.remark.everyDayData // 流失客户
|
||||||
|
this.MonthDayData= changes.configList.currentValue[0]?.remark.MonthDayData // 流失客户
|
||||||
|
if (this.auditTime == '2') {
|
||||||
|
this.auditTimeStatus = true;
|
||||||
|
// 每天
|
||||||
|
if(this.everyDayData){
|
||||||
|
this.everyDayData = this.everyDayData
|
||||||
|
} else if(this.MonthDay) {
|
||||||
|
// 每周
|
||||||
|
this.MonthDayData = this.MonthDayData
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.auditTimeStatus = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -173,14 +191,12 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
|
|||||||
console.log(this.MonthDayData);
|
console.log(this.MonthDayData);
|
||||||
}
|
}
|
||||||
everyDayChange(type: any): void {
|
everyDayChange(type: any): void {
|
||||||
console.log(type);
|
|
||||||
if (type) {
|
if (type) {
|
||||||
this.MonthDay = false;
|
this.MonthDay = false;
|
||||||
this.TimeStatus = true;
|
this.TimeStatus = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MonthDayChange(type: any): void {
|
MonthDayChange(type: any): void {
|
||||||
console.log(type);
|
|
||||||
if (type) {
|
if (type) {
|
||||||
this.everyDay = false;
|
this.everyDay = false;
|
||||||
this.TimeStatus = false;
|
this.TimeStatus = false;
|
||||||
@ -323,7 +339,6 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
changeAuto(value: any) {
|
changeAuto(value: any) {
|
||||||
console.log(value);
|
|
||||||
if (value == '2') {
|
if (value == '2') {
|
||||||
this.auditTimeStatus = true;
|
this.auditTimeStatus = true;
|
||||||
} else {
|
} else {
|
||||||
@ -331,7 +346,6 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
save() {
|
save() {
|
||||||
console.log();
|
|
||||||
let params : any = {
|
let params : any = {
|
||||||
personServe: this.personServe, // 个人提现手续费
|
personServe: this.personServe, // 个人提现手续费
|
||||||
enterpriseServe: this.enterpriseServe, // 企业提现手续费
|
enterpriseServe: this.enterpriseServe, // 企业提现手续费
|
||||||
@ -343,21 +357,15 @@ export class PartnerSystemConfigComponent implements OnInit, OnChanges {
|
|||||||
if(this.auditTime == '2') {
|
if(this.auditTime == '2') {
|
||||||
// 每天
|
// 每天
|
||||||
if(this.everyDay){
|
if(this.everyDay){
|
||||||
console.log(this.everyDayData);
|
|
||||||
params.everyDayData = this.everyDayData
|
params.everyDayData = this.everyDayData
|
||||||
} else if(this.MonthDay) {
|
} else if(this.MonthDay) {
|
||||||
// 每周
|
// 每周
|
||||||
params.MonthDayData = this.MonthDayData
|
params.MonthDayData = this.MonthDayData
|
||||||
console.log(this.MonthDayData);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log( JSON.stringify(params));
|
|
||||||
console.log( this.configList);
|
|
||||||
const pra = Object.assign({}, ...this.configList)
|
const pra = Object.assign({}, ...this.configList)
|
||||||
pra.remark = JSON.stringify(params)
|
pra.remark = JSON.stringify(params)
|
||||||
console.log(pra);
|
this.service.request(this.service.$api_update_config_batch, [pra]).subscribe(res => {
|
||||||
|
|
||||||
this.service.request(this.service.$api_update_config_batch, pra).subscribe(res => {
|
|
||||||
if (res) {
|
if (res) {
|
||||||
this.service.msgSrv.success('修改配置成功');
|
this.service.msgSrv.success('修改配置成功');
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user