瀏覽代碼

feat: 选课程默认选择用户所在机构下的课程

zhangjie 9 月之前
父節點
當前提交
01a9e3e2dc

+ 2 - 0
src/modules/base/components/course-simple/SelectSimpleCourse.vue

@@ -106,7 +106,9 @@ export default {
     },
   },
   mounted() {
+    this.filter.belongOrgId = this.$ls.get("orgId", "");
     this.filter.examId = this.examId;
+    this.toPage(1);
   },
   methods: {
     async getList() {

+ 1 - 1
src/modules/target/components/training-plan/AddTrainingPlanCourse.vue

@@ -138,7 +138,7 @@ export default {
       this.modalIsShow = true;
     },
     visibleChange() {
-      this.filter.orgId = this.rowData.orgId;
+      this.filter.orgId = this.$ls.get("orgId", "");
       this.filter.cultureProgramId = this.rowData.id;
       this.toPage(1);
       this.$nextTick(() => {