add campain key editable

This commit is contained in:
Shaun Chyxion 2020-09-03 14:21:38 +08:00
parent e4db4a7281
commit 40ba5d0817
4 changed files with 5 additions and 3 deletions

View File

@ -19,6 +19,9 @@ import com.pudonghot.yo.cms.form.BaseUpdateForm;
@Getter
@Setter
public class UpdateFormCampaign extends BaseUpdateForm implements TaggableForm {
@Trim
@NotBlank
private String campaignKey;
@Trim
@NotBlank
private String name;

View File

@ -20,7 +20,7 @@ public class Campaign extends TaggableDomain {
private Integer tenantId;
@NotUpdate
private String tenantCode;
@NotUpdate
@NotUpdateWhenNull
private String campaignKey;
private Type type;
private DailyTime dailyFrom;
@ -69,6 +69,5 @@ public class Campaign extends TaggableDomain {
*/
OVERDIAL_RATE
}
}

View File

@ -1,6 +1,6 @@
{{#form-content}}
{{form-input type='hidden' name='id'}}
{{form-input name='campaignKey' label='活动Key' readonly=true}}
{{form-input name='campaignKey' label='活动Key'}}
{{form-input name='name' label='名称'}}
{{form-input-select
name='type'