GULIMMO
2023-11-09 79e5599727c2ad19bb40cccd35f6f3302ff1b896
subPackage/workbench/views/rental.vue
@@ -173,17 +173,18 @@
      methods: {
         handleSelect(res) {
            const [auditStatus, floor] = res
            console.log(auditStatus, floor);
            this.pagingParams = {
               current: 1,
               size: 10
            }
            this.tenantList = []
            this.resetParams()
            let params = {}
            if (auditStatus[0].value !== '') {
               params = {
                  auditStatus: auditStatus[0].value
               }
            }
            if (floor[0].value !== '') {
               params = {
                  ...params,
                  floor: floor[0].value
               }
            }
            this.getRentalHouseInfo(params)
         },
@@ -226,11 +227,13 @@
            this.tenantList = [...this.tenantList, ...records]
            this.loadingStatus = 'nomore'
         },
         search() {
         search() {
            this.resetParams()
            this.getRentalHouseInfo()
         },
         clear() {
            this.keyword = ''
            this.keyword = ''
            this.resetParams()
            this.search()
         },
         tenantManage({
@@ -238,6 +241,13 @@
            id
         }) {
            this.$u.func.globalNavigator(`/subPackage/bs/views/rentDetail?houseCode=${houseCode}&id=${id}`)
         },
         resetParams() {
            this.tenantList = []
            this.pagingParams = {
               current: 1,
               size: 10
            }
         }
      }
   }