Merge branch 'develop'
This commit is contained in:
@ -5,7 +5,7 @@ import { OnChanges } from '@angular/core';
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-05 11:01:55
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-27 11:13:07
|
||||
* @LastEditTime : 2022-04-27 20:04:05
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-template-detail\\contract-template-detail.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -220,12 +220,6 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
}
|
||||
|
||||
save() {
|
||||
console.log(this.sf.value.templateName);
|
||||
console.log(this.sf.value.templateType);
|
||||
console.log(this.sf2.value.templateContent);
|
||||
console.log(this.title);
|
||||
console.log(this.title || this.detailList.templateName);
|
||||
|
||||
if (!this.sf.value.templateName || !this.sf.value.templateType || !this.sf2.value.templateContent || !(this.title || this.detailList.templateName)) {
|
||||
this.service.msgSrv.error('必填参数为空,请检查再重新保存!');
|
||||
return;
|
||||
@ -239,7 +233,7 @@ export class ContractManagementTemplateTextComponent implements OnInit {
|
||||
const params = {
|
||||
...this.sf.value,
|
||||
...this.sf2.value,
|
||||
templateTitle: this.title || this.detailList.templateName
|
||||
templateTitle: this.detailList.templateName||this.title
|
||||
};
|
||||
console.log(params);
|
||||
this.service.request(this.service.$api_save_contractTemplate, params).subscribe((res: any) => {
|
||||
|
||||
Reference in New Issue
Block a user