Merge branch 'weiyu'
This commit is contained in:
@ -53,7 +53,7 @@ export class SmsTemplateComponent implements OnInit {
|
||||
templateCode: {
|
||||
type: 'string',
|
||||
title: '模板编码',
|
||||
readOnly: this.isEdit ? true : false,
|
||||
readOnly: this.isEdit,
|
||||
ui: { placeholder: '请输入模板编码', }
|
||||
},
|
||||
templateContent: {
|
||||
@ -103,6 +103,8 @@ export class SmsTemplateComponent implements OnInit {
|
||||
edit(item: any) {
|
||||
// console.log(item);
|
||||
this.isEdit = true;
|
||||
this.editSchema!.properties!.templateCode.readOnly = true;
|
||||
this.sfEdit?.refreshSchema();
|
||||
this.tempData = item;
|
||||
this.isVisible = true;
|
||||
}
|
||||
@ -122,6 +124,8 @@ export class SmsTemplateComponent implements OnInit {
|
||||
|
||||
add() {
|
||||
this.isEdit = false;
|
||||
this.editSchema!.properties!.templateCode.readOnly = false;
|
||||
this.sfEdit?.refreshSchema();
|
||||
this.tempData = {};
|
||||
this.isVisible = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user