Bläddra i källkod

feat: 修改默认值

haifeng.zhang 2 dagar sedan
förälder
incheckning
670f65a94b

+ 2 - 2
src/views/draw/children/department/departmentRank.vue

@@ -64,7 +64,7 @@ const averageScore = ref<number | string>(0);
 const tableData = ref<any>([]);
 const getPageScoreInfoByAssessmentApi = async (
   obj: any = {},
-  sort: any = {}
+  sort: any = { type: 1 }
 ) => {
   const params = {
     assessmentId: obj.id,
@@ -122,7 +122,7 @@ const fetchSortedData = sortOrder => {
   if (sortOrder) {
     params.type = sortOrder === "ascending" ? 1 : 2; // 1 从低到高 2从高到底
   } else {
-    params = {};
+    params.type = 1;
   }
   getPageScoreInfoByAssessmentApi(activeObj.value, params);
 };

+ 2 - 2
src/views/draw/children/head/headRank.vue

@@ -64,7 +64,7 @@ const averageScore = ref<number | string>(0);
 const tableData = ref<any>([]);
 const getPageScoreInfoByAssessmentApi = async (
   obj: any = {},
-  sort: any = {}
+  sort: any = { type: 1 }
 ) => {
   const params = {
     assessmentId: obj.id,
@@ -122,7 +122,7 @@ const fetchSortedData = sortOrder => {
   if (sortOrder) {
     params.type = sortOrder === "ascending" ? 1 : 2; // 1 从低到高 2从高到底
   } else {
-    params = {};
+    params.type = 1;
   }
   getPageScoreInfoByAssessmentApi(activeObj.value, params);
 };

+ 2 - 2
src/views/draw/children/health/healthRank.vue

@@ -64,7 +64,7 @@ const averageScore = ref<number | string>(0);
 const tableData = ref<any>([]);
 const getPageScoreInfoByAssessmentApi = async (
   obj: any = {},
-  sort: any = {}
+  sort: any = { type: 1 }
 ) => {
   const params = {
     assessmentId: obj.id,
@@ -122,7 +122,7 @@ const fetchSortedData = sortOrder => {
   if (sortOrder) {
     params.type = sortOrder === "ascending" ? 1 : 2; // 1 从低到高 2从高到底
   } else {
-    params = {};
+    params.type = 1;
   }
   getPageScoreInfoByAssessmentApi(activeObj.value, params);
 };

+ 2 - 2
src/views/draw/children/worker/workerRank.vue

@@ -64,7 +64,7 @@ const averageScore = ref<number | string>(0);
 const tableData = ref<any>([]);
 const getPageScoreInfoByAssessmentApi = async (
   obj: any = {},
-  sort: any = {}
+  sort: any = { type: 1 }
 ) => {
   const params = {
     assessmentId: obj.id,
@@ -122,7 +122,7 @@ const fetchSortedData = sortOrder => {
   if (sortOrder) {
     params.type = sortOrder === "ascending" ? 1 : 2; // 1 从低到高 2从高到底
   } else {
-    params = {};
+    params.type = 1;
   }
   getPageScoreInfoByAssessmentApi(activeObj.value, params);
 };