This commit is contained in:
wangshiming
2022-04-28 20:26:30 +08:00
parent 6cc12ff451
commit 2aeaa09e14
112 changed files with 339 additions and 339 deletions

View File

@ -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
};

View File

@ -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;