本文整理汇总了TypeScript中core/common-dialogs.CommonDialog.teacher方法的典型用法代码示例。如果您正苦于以下问题:TypeScript CommonDialog.teacher方法的具体用法?TypeScript CommonDialog.teacher怎么用?TypeScript CommonDialog.teacher使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core/common-dialogs.CommonDialog
的用法示例。
在下文中一共展示了CommonDialog.teacher方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: selectSecretary
selectSecretary(target: any, subject: any) {
this.dialog.teacher(`选择${subject.subjectName}教务秘书`).then(result => {
subject.secretaryProcessing = true;
this.service.updateSecretary(subject.subjectId, result.id).subscribe(_ => {
subject.secretaryProcessing = false;
subject.secretaryId = result.id;
subject.secretaryName = result.name;
});
});
}
示例2: selectDirector
selectDirector(target: any, subject: any) {
this.dialog.teacher(`选择${subject.subjectName}专业负责人`).then(result => {
subject.directorProcessing = true;
this.service.updateDirector(subject.subjectId, result.id).subscribe(_ => {
subject.directorProcessing = false;
subject.directorId = result.id;
subject.directorName = result.name;
});
});
}