فهرست منبع

Merge branch 'dev_1.2.0' of http://git.qmth.com.cn/union-question/union-question-web into dev_1.2.0

zhangjie 2 سال پیش
والد
کامیت
7711d5662b
2فایلهای تغییر یافته به همراه6 افزوده شده و 9 حذف شده
  1. 3 4
      src/modules/card/api.js
  2. 3 5
      src/modules/card/components/ModifyCard.vue

+ 3 - 4
src/modules/card/api.js

@@ -1,11 +1,10 @@
 import { $httpWithMsg } from "../../plugins/axios";
 import { QUESTION_API } from "@/constants/constants.js";
 
-export const questionTeacherQueryApi = (rootOrgId) => {
-  return $httpWithMsg.get(`${QUESTION_API}/user/all/1/100`, {
+export const questionTeacherQueryApi = (name) => {
+  return $httpWithMsg.get(`${QUESTION_API}/user/assignteacher/1/100`, {
     params: {
-      roleCode: "ASSIGN_TEACHER",
-      rootOrgId,
+      name,
     },
   });
 };

+ 3 - 5
src/modules/card/components/ModifyCard.vue

@@ -86,13 +86,11 @@ export default {
     };
   },
   mounted() {
-    this.getTeachers();
+    this.getTeachers("");
   },
   methods: {
-    async getTeachers() {
-      const res = await questionTeacherQueryApi(
-        this.$store.state.user.rootOrgId
-      );
+    async getTeachers(name) {
+      const res = await questionTeacherQueryApi(name);
       this.teachers = res.data.content;
     },
     visibleChange() {