本文整理匯總了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;
});
});
}