fix bug
This commit is contained in:
@ -275,22 +275,22 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
|
||||
save() {
|
||||
if (
|
||||
!this.sf.value.templateName ||
|
||||
!this.sf.value.templateType ||
|
||||
!this.sf?.value.templateName ||
|
||||
!this.sf?.value.templateType ||
|
||||
!this.sf2.value.templateContent ||
|
||||
!(this.title || this.detailList.templateName)
|
||||
) {
|
||||
this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
return;
|
||||
}
|
||||
if (this.sf.value.templateType == 'MX') {
|
||||
if (this.sf.value.contractType == '') {
|
||||
if (this.sf?.value.templateType == 'MX') {
|
||||
if (this.sf?.value.contractType == '') {
|
||||
this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
return;
|
||||
}
|
||||
}
|
||||
const params = {
|
||||
...this.sf.value,
|
||||
...this.sf?.value,
|
||||
...this.sf2.value,
|
||||
templateTitle: this.detailList.templateName || this.title
|
||||
};
|
||||
|
||||
@ -34,7 +34,7 @@ export class ContractManagementPolicyComponent implements OnInit {
|
||||
*/
|
||||
get reqParams() {
|
||||
const params: any = {
|
||||
...(this.sf && this.sf.value)
|
||||
...(this.sf && this.sf?.value)
|
||||
};
|
||||
delete params.expand;
|
||||
return params;
|
||||
|
||||
Reference in New Issue
Block a user