zhangjie 1 年之前
父節點
當前提交
b96fe9d014

+ 7 - 1
src/components/base/OrgSelect.vue

@@ -104,6 +104,12 @@ export default {
       type: Boolean,
       default: true,
     },
+    filterParam: {
+      type: Object,
+      default() {
+        return {};
+      },
+    },
   },
   directives: { Clickoutside },
   data() {
@@ -139,7 +145,7 @@ export default {
   },
   methods: {
     async getList() {
-      const orgs = await organizationList();
+      const orgs = await organizationList(this.filterParam);
       this.orgs = orgs || [];
 
       if (this.orgs.length) {

+ 1 - 0
src/modules/course/components/profession/ModifyProfessional.vue

@@ -26,6 +26,7 @@
         <org-select
           v-model="modalForm.orgId"
           placeholder="所属学院"
+          :filter-param="{ orgId: instance.orgId, withoutPrintingRoom: true }"
         ></org-select>
       </el-form-item>
     </el-form>

+ 3 - 1
src/modules/course/views/ProfessionalCertification.vue

@@ -14,6 +14,7 @@
             <org-select
               v-model="filter.orgId"
               placeholder="所属学院"
+              :filter-param="{ orgId: userOrgId, withoutPrintingRoom: true }"
             ></org-select>
           </el-form-item>
         </template>
@@ -123,6 +124,7 @@ export default {
       total: 0,
       dataList: [],
       curRow: {},
+      userOrgId: this.$ls.get("orgId", ""),
     };
   },
   mounted() {
@@ -150,7 +152,7 @@ export default {
     },
     toAdd() {
       this.curRow = {
-        orgId: this.$ls.get("orgId", ""),
+        orgId: this.userOrgId,
       };
       this.$refs.ModifyProfessional.open();
     },