Browse Source

消息通知分页完成

shiyanyu 1 month ago
parent
commit
f92f87a7ee

+ 4 - 4
src/components/task/taskInfo.vue

@@ -1092,15 +1092,15 @@
           this.loading = true
           const params = {
             taskId: this.currentTaskInfo.taskId,
-            currentPage: this.messageNoticePagination.currentPage,
+            pageNum: this.messageNoticePagination.currentPage,
             pageSize: this.messageNoticePagination.pageSize,
           }
           const res = await sendMessage(params)
 
           console.log('消息通知接口返回:', res)
-          if (res && res.code === 200 && res.value && res.value.value) {
-            this.formData.messageNotice = res.value.value.records || []
-            this.messageNoticePagination.total = res.value.value.total || 0
+          if (res && res.code === 200 && res.value) {
+            this.formData.messageNotice = res.value.records || []
+            this.messageNoticePagination.total = res.value.total || 0
           } else {
             this.formData.messageNotice = []
             this.messageNoticePagination.total = 0

+ 5 - 5
src/views/EntDeclaration/auditTaskManagement/taskFillIn.vue

@@ -985,7 +985,7 @@
         },
         // 消息通知分页相关
         messageNoticePagination: {
-          currentPage: 1,
+          pageNo: 1,
           pageSize: 10,
           total: 0,
         },
@@ -1496,15 +1496,15 @@
       getSendMessage() {
         const params = {
           taskId: this.taskId,
-          currentPage: this.messageNoticePagination.currentPage,
+          pageNum: this.messageNoticePagination.currentPage,
           pageSize: this.messageNoticePagination.pageSize,
         }
         sendMessage(params)
           .then((res) => {
             console.log('消息通知', res)
-            if (res && res.code === 200 && res.value && res.value.value) {
-              this.formData.messageNoticeData = res.value.value.records || []
-              this.messageNoticePagination.total = res.value.value.total || 0
+            if (res && res.code === 200 && res.value) {
+              this.formData.messageNoticeData = res.value.records || []
+              this.messageNoticePagination.total = res.value.total || 0
             } else {
               this.formData.messageNoticeData = []
               this.messageNoticePagination.total = 0