Răsfoiți Sursa

系统漏洞修复

jack.zhou 2 luni în urmă
părinte
comite
7b81347e68

+ 4 - 0
src/api/platform/system/index.ts

@@ -39,5 +39,9 @@ export function useSystemApi() {
 		getProjectGroupList(query?: object) {
 			return request.postRequest(basePath, 'ProjectGroup', 'GetProjectGroupList', query);
 		},
+		// 课题组列表
+		getProjectGroupListForApp(query?: object) {
+			return request.postRequest(basePath, 'ProjectGroup', 'GetProjectGroupListForApp', query);
+		},
 	};
 }

+ 4 - 0
src/api/project/index.ts

@@ -154,5 +154,9 @@ export function useProApi() {
 		getFinanceAccountList(query?: object) {
 			return request.postRequest(basePath, 'Finance', 'GetFinanceAccountList', query);
 		},
+		// 课题组所有成员列表
+		getProjectGroupListForApp(query?: object) {
+			return request.postRequest(adminPath, 'ProjectGroup', 'GetProjectGroupListForApp', query);
+		},
 	};
 }

+ 1 - 1
src/view/entry/components/allocate.vue

@@ -353,7 +353,7 @@
       systemApi.getUserList({ noPage: true }),
       platformApi.getAllPlatformList({ noPage: true }),
       dictApi.getDictDataByType('sys_user_type'),
-      systemApi.getProjectGroupList({ noPage: true }),
+      systemApi.getProjectGroupListForApp({ noPage: true }),
       userInfos.value.platformId != 0 ? platformApi.getResourceTypeDict({ id: userInfos.value.platformId }) : '',
     ]).then(([dept, user, plat, type, pjt, cell]) => {
       belongOrgOption.value = dept?.data || []

+ 1 - 1
src/view/entry/components/confirm.vue

@@ -235,7 +235,7 @@
       systemApi.getUserList({ noPage: true }),
       platformApi.getDetail({ id: userInfos.value.platformId }),
       dictApi.getDictDataByType('sys_user_type'),
-      systemApi.getProjectGroupList({ noPage: true }),
+      systemApi.getProjectGroupListForApp({ noPage: true }),
       userInfos.value.platformId != 0 ? platformApi.getResourceTypeDict({ id: userInfos.value.platformId }) : ''
     ]).then(([dept, user, plat, type, pjt, cell]) => {
       belongOrgOption.value = dept?.data || []

+ 1 - 1
src/view/entry/components/upload.vue

@@ -97,7 +97,7 @@ const getDicts = () => {
 		systemApi.getUserList({ noPage: true }),
 		platformApi.getAllPlatformList({ noPage: true }),
 		dictApi.getDictDataByType('sys_user_type'),
-		systemApi.getProjectGroupList({ noPage: true }),
+		systemApi.getProjectGroupListForApp({ noPage: true }),
 		platformApi.getResourceTypeDict({ id: 10 }),
 	]).then(([dept, user, plat, type, pjt, cell]) => {
 		belongOrgOption.value = dept?.data || [];

+ 1 - 1
src/view/home/index.vue

@@ -154,7 +154,7 @@
       dictApi.getDictDataByType('sys_com_sex'),
       dictApi.getDictDataByType('sys_user_certificate'),
       deptApi.getDeptTree(),
-      proApi.getProjectGroupList({ noPage: true }),
+      proApi.getProjectGroupListForApp({ noPage: true }),
       dictApi.getDictDataByType('sci_pjt_level')
     ]).then(([type, sex, cert, dept, pjt, pjtType]) => {
       userTypeList.value = type.data.values || []

+ 1 - 1
src/view/register/index.vue

@@ -506,7 +506,7 @@
       dictApi.getDictDataByType('sys_com_sex'),
       dictApi.getDictDataByType('sys_user_certificate'),
       deptApi.getDeptTree(),
-      proApi.getProjectGroupList({ noPage: true }),
+      proApi.getProjectGroupListForApp({ noPage: true }),
       dictApi.getDictDataByType('sci_pjt_level'),
     ]).then(([type, sex, cert, dept, pjt, pjtType]) => {
       userTypeList.value = type.data.values || []