shuishen
2024-05-07 234df9376e044b39a8904a77784daf9f5de71d71
租赁信息分页异常修复
1 files modified
24 ■■■■ changed files
src/views/rentalInfo/index.vue 24 ●●●● patch | view | raw | blame | history
src/views/rentalInfo/index.vue
@@ -41,7 +41,7 @@
                    </div>
                    <div class="search-item-box" style="justify-content: flex-start;" v-if="chooseTab == '租客管理'">
                        <el-button @click="filterBtn" class="bjnr-btn"
                            :class="{ isOneClick: keyManFlag == 3 }">重点人员({{zdryNum}})</el-button>
                            :class="{ isOneClick: keyManFlag == 3 }">重点人员({{ zdryNum }})</el-button>
                    </div>
                </div>
                <div class="list police-info" ref="tableBox">
@@ -98,7 +98,7 @@
<script>
import { initMapPosition } from '@/utils/mapPositionInit'
import { getTaskResidencePermitApplyList, getHouseRentalList, getHouseholdSelectTenantList, getDictionaryListByCode,selectTenantStatistic } from "@/api/rentalInfo/index.js"
import { getTaskResidencePermitApplyList, getHouseRentalList, getHouseholdSelectTenantList, getDictionaryListByCode, selectTenantStatistic } from "@/api/rentalInfo/index.js"
import detailDialog from './components/detailDialog.vue'
let loading = null
@@ -110,7 +110,7 @@
    data () {
        return {
            zdryNum:0,
            zdryNum: 0,
            boxShow: false,
            tabList: ['居住证申请', '出租屋管理', '租客管理'],
            chooseTab: '居住证申请',
@@ -190,29 +190,29 @@
    },
    methods: {
        selectTenantStatistic(){
            var that = this;
        selectTenantStatistic () {
            var that = this
            selectTenantStatistic({
                keyword:this.keyword
            }).then(res=>{
                that.zdryNum = res.data.data.count;
                keyword: this.keyword
            }).then(res => {
                that.zdryNum = res.data.data.count
            })
        },
        // 下拉值发生改变
        changeSelect () {
            this.pages.current = 1
            this.pages.currentPage = 1
            this.initTableList()
        },
        // 点击搜索
        searchBtn () {
            this.pages.current = 1
            this.pages.currentPage = 1
            this.initTableList()
        },
        // 重置搜索
        resetSearch () {
            this.pages.current = 1
            this.pages.currentPage = 1
            this.keyword = ''
            this.keyManFlag = ''
            this.initTableList()
@@ -454,7 +454,7 @@
        // 分页处理
        handleCurrentChange (current) {
            this.pages.current = current
            this.pages.currentPage = current
            this.initTableList()
        },