浏览代码

FIX:红德堂-训练营下拉框只能显示10条,无法显示完整列表。调整为默认查询100条

Long 1 月之前
父节点
当前提交
221a0836d8

+ 3 - 2
src/api/store/storeProduct.js

@@ -29,10 +29,11 @@ export function getStoreProduct(productId) {
   })
 }
 
-export function getCampList() {
+export function getCampList(query) {
   return request({
     url: '/course/trainingCamp/getCampListLikeName',
-    method: 'get'
+    method: 'get',
+    params: query
   })
 }
 export function getPeriodList(query) {

+ 1 - 1
src/views/statistics/userReport.vue

@@ -312,7 +312,7 @@ export default {
   },
   created() {
     this.getTreeselect(this.$store.state.user.user.companyId);
-    getCampList().then(response => {
+    getCampList({"pageNum": 1, "pageSize": 100}).then(response => {
       this.camps = response.data.list
       if (this.camps != null && this.camps.length > 0) {
         this.companyId = this.camps[0].dictValue;

+ 1 - 1
src/views/statistics/watchlogReport.vue

@@ -398,7 +398,7 @@ export default {
       this.queryParams.dimension = 'user';
     }
 
-    getCampList().then(response => {
+    getCampList({"pageNum": 1, "pageSize": 100}).then(response => {
       this.camps = response.data.list
       if (this.camps != null && this.camps.length > 0) {
         this.companyId = this.camps[0].dictValue;

+ 1 - 1
src/views/statistics/watchlogReportCompany.vue

@@ -399,7 +399,7 @@ export default {
       this.queryParams.dimension = 'sales';
     }
 
-    getCampList().then(response => {
+    getCampList({"pageNum": 1, "pageSize": 100}).then(response => {
       this.camps = response.data.list
       if (this.camps != null && this.camps.length > 0) {
         this.companyId = this.camps[0].dictValue;

+ 1 - 2
src/views/statistics/watchlogReportdept.vue

@@ -399,12 +399,11 @@ export default {
       this.queryParams.dimension = 'company';
     }
 
-    getCampList().then(response => {
+    getCampList({"pageNum": 1, "pageSize": 100}).then(response => {
       this.camps = response.data.list
       if (this.camps != null && this.camps.length > 0) {
         this.companyId = this.camps[0].dictValue;
       }
-      this.camps.push({companyId: "-1", companyName: "无"})
     });
     getCompanyList().then(response => {
       this.companys = response.data;