Ver Fonte

修改请求页数

yangg há 1 semana atrás
pai
commit
c5fe25bf7a

+ 1 - 1
src/views/position/Jobcompetency/crud.tsx

@@ -214,7 +214,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					},
 					dict: dict({
 						getData: async () => {
-							const res = await api.GetPositionList({page:1,limit:1000,tenant_id:1});
+							const res = await api.GetPositionList({page:1,limit:100,tenant_id:1});
 							return res.data || [];
 						},
 						label: 'title',

+ 1 - 1
src/views/position/list/components/api.ts

@@ -96,7 +96,7 @@ export function getAllUsers() {
 	return request({
 		url: '/api/system/user/',
 		method: 'get',
-		params: { limit: 999 },
+		params: { limit: 100 },
 	}).then((res: any) => {
 		return XEUtils.map(res.data, (item: any) => {
 			return {

+ 1 - 1
src/views/questionBank/labelList/crud.tsx

@@ -166,7 +166,7 @@ export const createCrudOptions = function ({ crudExpose }: CreateCrudOptionsProp
 					},
 					dict: dict({
 						getData: async () => {
-							const res = await api.GetcategoryList({page:1,limit:1000,tenant_id:1});
+							const res = await api.GetcategoryList({page:1,limit:100,tenant_id:1});
 							console.log(res.data.items);
 							return res.data.items || [];
 						},

+ 1 - 1
src/views/questionBank/list/components/api.ts

@@ -96,7 +96,7 @@ export function getAllUsers() {
 	return request({
 		url: '/api/system/user/',
 		method: 'get',
-		params: { limit: 999 },
+		params: { limit: 100 },
 	}).then((res: any) => {
 		return XEUtils.map(res.data, (item: any) => {
 			return {

+ 1 - 1
src/views/system/config/components/formContent.vue

@@ -285,7 +285,7 @@ let uploadImgKey = ref(null);
 
 // 获取数据
 const getInit = () => {
-  api.GetList({ parent: props.options.id, limit: 999 }).then((res: any) => {
+  api.GetList({ parent: props.options.id, limit: 100 }).then((res: any) => {
     let data = res.data;
     formList.value = data;
     const _formData: any = {};

+ 1 - 1
src/views/system/config/index.vue

@@ -54,7 +54,7 @@ let editableTabs: any = ref([]);
 const getTabs = () => {
 	api
 		.GetList({
-			limit: 999,
+			limit: 100,
 			parent__isnull: true,
 		})
 		.then((res: any) => {

+ 1 - 1
src/views/system/role/components/api.ts

@@ -96,7 +96,7 @@ export function getAllUsers() {
 	return request({
 		url: '/api/system/user/',
 		method: 'get',
-		params: { limit: 999 },
+		params: { limit: 100 },
 	}).then((res: any) => {
 		return XEUtils.map(res.data, (item: any) => {
 			return {