当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript _.union方法代码示例

本文整理汇总了TypeScript中entcore._.union方法的典型用法代码示例。如果您正苦于以下问题:TypeScript _.union方法的具体用法?TypeScript _.union怎么用?TypeScript _.union使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在entcore._的用法示例。


在下文中一共展示了_.union方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: init

                function init(subjectScheduled){
                    SubjectCopyService.resolveBySubjectScheduled_force(subjectScheduled).then(
                        function () {
                            scope.subjectCopyList = SubjectCopyService.getListBySubjectScheduled(subjectScheduled);
                            scope.subjectCopyList.forEach(copy => {
                                if(copy.is_corrected){
                                    scope.score.sum += copy.final_score;
                                    scope.score.nb++;
                                }
                            });
                            CorrectionService.automaticCorrection(scope.subjectCopyList, scope.selectedSubjectScheduled);
                        }
                    );

                    let r = _.map(_.union(scope.selectedSubjectScheduled.scheduled_at.userList, scope.selectedSubjectScheduled.scheduled_at.groupList), _.clone);

                    let total = r.length;
                    let current = 1;
                    _.forEach(r, function (obj) {
                        if (total !== current) obj.name = obj.name + ' - ';
                        current++;
                    });

                    scope.lUserGroup = r;
                    scope.selectedSubjectScheduled.lUserGroup = scope.lUserGroup;
                }
开发者ID:OPEN-ENT-NG,项目名称:exercizer,代码行数:26,代码来源:teacherDashboardCorrectionCopyList.ts

示例2: function

                ArchivesService.getListArchivedSubjectScheduledCopy(subjectScheduled.id , (array => {
                    scope.subjectCopyList = array;
                    let r = _.map(_.union(scope.selectedSubjectScheduled.scheduled_at.userList, scope.selectedSubjectScheduled.scheduled_at.groupList), _.clone);

                    let total = r.length;
                    let current = 1;
                    _.forEach(r, function (obj) {
                        if (total !== current) obj.name = obj.name + ' - ';
                        current++;
                    });

                    scope.lUserGroup = r;
                }))
开发者ID:OPEN-ENT-NG,项目名称:exercizer,代码行数:13,代码来源:dashboardArchivesCopyList.ts

示例3: init

                function init(subjectScheduled){
                    SubjectCopyService.resolveBySubjectScheduled_force(subjectScheduled).then(
                        function () {
                            scope.subjectCopyList = SubjectCopyService.getListBySubjectScheduled(subjectScheduled);
                        }
                    );

                    let r = _.map(_.union(scope.selectedSubjectScheduled.scheduled_at.userList, scope.selectedSubjectScheduled.scheduled_at.groupList), _.clone);

                    let total = r.length;
                    let current = 1;
                    _.forEach(r, function (obj) {
                        if (total !== current) obj.name = obj.name + ' - ';
                        current++;
                    });
                    
                    scope.lUserGroup = r; 
                };
开发者ID:OPEN-ENT-NG,项目名称:exercizer,代码行数:18,代码来源:teacherDashboardSimpleCorrectionCopyList.ts


注:本文中的entcore._.union方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。