Browse Source

Update index.tsx

lex 1 year ago
parent
commit
50c4cac4fb
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/views/tenantStudentRejest/index.tsx

+ 7 - 7
src/views/tenantStudentRejest/index.tsx

@@ -129,17 +129,17 @@ export default defineComponent({
     const getSubjectList = async () => {
       try {
         const res = await request.get('/api-tenant/open/subject/queryPage', {
-          data: { page: 1, rows: 9999 }
+          params: { page: 1, rows: 9999, queryType: 'list' }
         })
         const rows = res.data.rows || []
         const tempList: any = []
         rows.forEach((item: any) => {
-          if (item.parentSubjectId > 0) {
-            tempList.push({
-              text: item.name,
-              value: item.id
-            })
-          }
+          // if (item.parentSubjectId > 0) {
+          tempList.push({
+            text: item.name,
+            value: item.id
+          })
+          // }
         })
 
         data.subjectList = tempList