linwe
2023-11-12 b77cc2d2012ecb4b876538ac7aee3edac7db8a2f
subPackage/workbench/views/audit.vue
@@ -50,16 +50,29 @@
            currentStatus: 1,
            list: [],
            loadingStatus: 'nomore',
            currentPage: 1
            currentPage: 1,
            frequency: '',
         }
      },
      onLoad() {
      onLoad(option) {
         if (option.type == 1) {
            uni.setNavigationBarTitle({
               title: "一次性"
            })
            this.frequency = 1
         }
         if (option.type == 2) {
            uni.setNavigationBarTitle({
               title: "周期性"
            })
            this.frequency = 2
         }
         this.getList()
      },
      onReachBottom() {
         this.currentPage++
         this.getPageList()
         this.getList()
      },
      methods: {
@@ -74,7 +87,8 @@
            getAuditReportingList({
               page: this.currentPage,
               size: 20,
               status: this.currentStatus
               status: this.currentStatus,
               frequency: this.frequency,
            }).then(res => {
               if (res.code != 200) {
                  uni.showToast({
@@ -149,4 +163,4 @@
         }
      }
   }
</style>
</style>