Explorar o código

题型查询接口调整

zhangjie hai 1 ano
pai
achega
58a33485a5

+ 3 - 5
src/components/selection/SourceDetailSelect.vue

@@ -18,7 +18,7 @@
 </template>
 
 <script>
-import { sourceDetailPageListApi } from "../../modules/question/api";
+import { sourceDetailListApi } from "../../modules/question/api";
 
 export default {
   name: "SourceDetailSelect",
@@ -73,13 +73,11 @@ export default {
         return;
       }
 
-      const res = await sourceDetailPageListApi({
-        pageNumber: 1,
-        pageSize: 100,
+      const res = await sourceDetailListApi({
         courseId: this.courseId,
         rootOrgId: this.$store.state.user.rootOrgId,
       });
-      this.optionList = res.data.content || [];
+      this.optionList = res.data || [];
     },
     select() {
       let selectVal = null;

+ 4 - 0
src/modules/question/api.js

@@ -266,6 +266,10 @@ export function sourceDetailPageListApi(data) {
   const url = `${QUESTION_API}/source/detail/page`;
   return $httpWithMsg.post(url, {}, { params: data });
 }
+export function sourceDetailListApi(data) {
+  const url = `${QUESTION_API}/source/detail/list`;
+  return $httpWithMsg.post(url, {}, { params: data });
+}
 export function deleteSourceDetailApi(ids) {
   return $httpWithMsg.post(
     `${QUESTION_API}/source/detail/delete`,