Pārlūkot izejas kodu

feat: 增加数据查询返回数量限制

将多个API调用中的分页参数rows从999增加到99999
laiqi 1 nedēļu atpakaļ
vecāks
revīzija
0dfa37e428

+ 2 - 1
package.json

@@ -170,5 +170,6 @@
     "vite": "5.2.8",
     "vite-plugin-restart": "^0.4.2",
     "vue-tsc": "^1.8.27"
-  }
+  },
+  "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319"
 }

+ 1 - 1
src/pages/order/index.vue

@@ -147,7 +147,7 @@ function handleBack() {
 onLoad((query) => {
   overlayShow.value = true
   orderStore
-    .getOrderViewList({ ordersuserid: appStore.appInfo.userid }, { pageindex: 1, rows: 999 })
+    .getOrderViewList({ ordersuserid: appStore.appInfo.userid }, { pageindex: 1, rows: 99999 })
     .then((res) => {
       orderListAll.value = res
       orderListShow.value = res

+ 3 - 3
src/store/coupon.ts

@@ -22,7 +22,7 @@ export const useCouponStore = defineStore(
     // 获取优惠券列表
     const getCouponList = async (couponproductids: string) => {
       const { data: couponList, loading } = useRequest(
-        () => getCouponListApi({ couponproductids }, { pageindex: 1, rows: 999 }),
+        () => getCouponListApi({ couponproductids }, { pageindex: 1, rows: 99999 }),
         {
           immediate: true,
         },
@@ -105,7 +105,7 @@ export const useCouponStore = defineStore(
     // 通过优惠券code获取产品信息(视图)
     const getCoupon2ViewmList = async (params: { coupon2code: string }) => {
       const { data: couponList, loading } = useRequest(
-        () => getCoupon2ViewmListApi(params, { pageindex: 1, rows: 999 }),
+        () => getCoupon2ViewmListApi(params, { pageindex: 1, rows: 99999 }),
         {
           immediate: true,
         },
@@ -118,7 +118,7 @@ export const useCouponStore = defineStore(
     // 获取已关联到当前用户的优惠券列表
     const getCoupon2List = async (params) => {
       const { data: couponList, loading } = useRequest(
-        () => getCoupon2ListApi(params, { pageindex: 1, rows: 999 }),
+        () => getCoupon2ListApi(params, { pageindex: 1, rows: 99999 }),
         {
           immediate: true,
         },

+ 1 - 1
src/store/dict.ts

@@ -8,7 +8,7 @@ export const useDictStore = defineStore(
     // 获取配置列表
     const getConfigList = async (groupname: string) => {
       const { data: configList, loading } = useRequest(
-        () => getConfigListApi({ groupname }, { pageindex: 1, rows: 999 }),
+        () => getConfigListApi({ groupname }, { pageindex: 1, rows: 99999 }),
         {
           immediate: true,
         },

+ 1 - 1
src/store/file.ts

@@ -17,7 +17,7 @@ export const useFileStore = defineStore(
       attmodel: string
     }) => {
       const { data: configList, loading } = useRequest(
-        () => getAttachmentListApi({ attlsh, attmodel }, { pageindex: 1, rows: 999 }),
+        () => getAttachmentListApi({ attlsh, attmodel }, { pageindex: 1, rows: 99999 }),
         {
           immediate: true,
         },

+ 1 - 1
src/store/order.ts

@@ -16,7 +16,7 @@ export const useOrderStore = defineStore(
     // 获取订单列表
     const getOrderList = async (ordersuserid: string) => {
       const { data: orderList, loading } = useRequest(
-        () => getOrderListApi({ ordersuserid }, { pageindex: 1, rows: 999 }),
+        () => getOrderListApi({ ordersuserid }, { pageindex: 1, rows: 99999 }),
         {
           immediate: true,
         },

+ 1 - 1
src/store/product.ts

@@ -8,7 +8,7 @@ export const useProductStore = defineStore(
     // 获取产品列表
     const getProductList = async (productsmerchantid: string) => {
       const { data: productList, loading } = useRequest(
-        () => getProductListApi({ productsmerchantid }, { pageindex: 1, rows: 999 }),
+        () => getProductListApi({ productsmerchantid }, { pageindex: 1, rows: 99999 }),
         {
           immediate: true,
         },

+ 1 - 1
src/store/user.ts

@@ -71,7 +71,7 @@ export const useUserStore = defineStore(
     // 获取销售网点列表
     const getSellUserList = async () => {
       const { data: userList, loading } = useRequest(
-        () => getUserListApi({ usersnature: '经销商' }, { pageindex: 1, rows: 999 }),
+        () => getUserListApi({ usersnature: '经销商' }, { pageindex: 1, rows: 99999 }),
         {
           immediate: true,
         },