Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
selector: 'admin-edit-announce',
templateUrl: './edit-announce.html',
styleUrls: ['./edit-announce.less']
})
export class EditAnnounceComponent implements OnInit, OnDestroy {
private _subscription = new Subscription();
@Input()
announce: Announce;
announceForm: FormGroup;
position = 1;
dpConfig:IDatePickerConfig = {
returnedValueType: ECalendarValue.Moment
};
validationMessages = {
sort_order: {
'required': 'sort order不能为空'
},
content: {
'required': 'url不能为空'
},
image_url: {
'required': 'image_url不能为空'
},
start_time: {
'required': '开始时间不能为空',
},