Lou
2023-12-27 3a3eacecf7cff294b6567f67bfd6dab7191d9883
首页位置选择调整,新增区域选择页面,审核页面增加时间筛选
31 files modified
1 files added
649 ■■■■ changed files
common/setting.js 4 ●●●● patch | view | raw | blame | history
pages.json 8 ●●●●● patch | view | raw | blame | history
pages/circle/index.vue 9 ●●●● patch | view | raw | blame | history
pages/home/index.vue 53 ●●●● patch | view | raw | blame | history
pages/home/selectSite.vue 202 ●●●●● patch | view | raw | blame | history
static/icon/login-title.png patch | view | raw | blame | history
static/icon/nav-07.png patch | view | raw | blame | history
static/icon/nav-08.png patch | view | raw | blame | history
static/icon/nav-bg-01.png patch | view | raw | blame | history
static/icon/nav-bg-02.png patch | view | raw | blame | history
static/icon/nav-bg-03.png patch | view | raw | blame | history
static/icon/nav-bg-04.png patch | view | raw | blame | history
static/icon/nav-bg-05.png patch | view | raw | blame | history
static/icon/nav-bg-06.png patch | view | raw | blame | history
static/icon/nav-bg-07.png patch | view | raw | blame | history
static/icon/nav-bg-08.png patch | view | raw | blame | history
static/icon/nav-bg-09.png patch | view | raw | blame | history
static/icon/nav-bg-10.png patch | view | raw | blame | history
static/icon/nav-bg-11.png patch | view | raw | blame | history
static/icon/nav-bg-12.png patch | view | raw | blame | history
static/icon/nav-bg-13.png patch | view | raw | blame | history
static/icon/nav-bg-14.png patch | view | raw | blame | history
static/img/center-bg.png patch | view | raw | blame | history
static/img/login-bg.png patch | view | raw | blame | history
static/img/repair-bg.png patch | view | raw | blame | history
subPackage/house/list/auditList.vue 113 ●●●● patch | view | raw | blame | history
subPackage/house/roomDetails/index.vue 4 ●●●● patch | view | raw | blame | history
subPackage/task/index.vue 5 ●●●●● patch | view | raw | blame | history
subPackage/workbench/views/audit.vue 120 ●●●● patch | view | raw | blame | history
subPackage/workbench/views/cshw.vue 15 ●●●●● patch | view | raw | blame | history
subPackage/workbench/views/rental.vue 48 ●●●●● patch | view | raw | blame | history
subPackage/workbench/views/report.vue 68 ●●●●● patch | view | raw | blame | history
common/setting.js
@@ -10,8 +10,8 @@
    version: '2.0.0',
    // 开发环境接口Url
    // devUrl:'http://z4042833u6.wicp.vip',
    devUrl: 'http://192.168.0.108:9528',
    // devUrl: 'https://srgdjczzxtpt.com:2080/api',
    // devUrl: 'http://192.168.0.106:9528',
    devUrl: 'https://srgdjczzxtpt.com:2080/api',
    minioBaseUrl: "https://srgdjczzxtpt.com:2080/gminio/jczz/",
    // minioBaseUrl:"http://192.168.0.103:9528/",
    // minioBaseUrl: 'https://srgdjczzxtpt.com:2080/',
pages.json
@@ -50,6 +50,14 @@
                "navigationBarBackgroundColor": "#fff",
                "navigationBarTextStyle": "black"
            }
        },
        {
            "path": "pages/home/selectSite",
            "style": {
                "navigationBarTitleText": "区域选择",
                "navigationBarBackgroundColor": "#fff",
                "navigationBarTextStyle": "black"
            }
        }
    ],
    "subPackages": [
pages/circle/index.vue
@@ -109,7 +109,8 @@
                commentContent: "", //评论内容
                page: 1,
                isSearch: false,
                commentList: []
                commentList: [],
                envVersion:""
            }
        },
@@ -126,6 +127,12 @@
                this.$refs.paging.reload();
            })
        },
        onShow(){
            let accountInfo = wx.getAccountInfoSync();
            this.envVersion = accountInfo.miniProgram.envVersion;
        },
        // onPullDownRefresh() {
        //     this.getCircleList();
pages/home/index.vue
@@ -1,13 +1,24 @@
<template>
    <view class="layout">
        <u-navbar height="48" :autoBack="false" safeAreaInsetTop placeholder @leftClick="selectBoxShow = !selectBoxShow"
        <!-- <u-navbar height="48" :autoBack="false" safeAreaInsetTop placeholder @leftClick="selectBoxShow = !selectBoxShow"
            bgColor="#017BFC">
            <view slot="left" class="top flex">
                <view class="top-text f-30 fw c-ff">{{curSelectSite.name?curSelectSite.name:'暂无绑定' +roleTypeName+'信息'}}
                </view>
                <u-icon name="arrow-down" color="#fff"></u-icon>
            </view>
        </u-navbar> -->
        <u-navbar height="48" :autoBack="false" safeAreaInsetTop placeholder @leftClick="navToSelectSite()"
            bgColor="#017BFC">
            <view slot="left" class="top flex">
                <view class="top-text f-30 fw c-ff">{{curSelectSite.name?curSelectSite.name:'暂无绑定' +roleTypeName+'信息'}}
                </view>
                <u-icon name="arrow-right" color="#fff"></u-icon>
            </view>
        </u-navbar>
        <view class="swiper">
            <u-swiper :list="bannerList" height="320rpx" radius="10"></u-swiper>
@@ -279,6 +290,12 @@
                }
                this.init()
            })
            //选择位置刷新楼盘表
            uni.$on('refreshPage',(val)=>{
                console.log("refreshPage=>",val);
                this.curSelectSite = val
                this.getHouseDataList(val.id)
            })
        },
        onShareAppMessage() {
@@ -544,18 +561,15 @@
                }
            },
            setLiveMenu(arr) {
                if (arr.length) {
                    let index = this.getLiveMenuItem(arr, 1)
                    let index2 = this.getLiveMenuItem(arr, 2)
                    // let index3 = this.getLiveMenuItem(arr, 3)
                    if (this.curSelectSite.addressType == 1) {
                        if (index != -1) {
                            arr.splice(index, 1)
                            index = this.getLiveMenuItem(arr, 1)
                            index2 = this.getLiveMenuItem(arr, 2)
                            // index3 = this.getLiveMenuItem(arr, 3)
                        }
                        if (index2 == -1 && this.roleType == 2) {
                            arr.push({
@@ -565,19 +579,7 @@
                            })
                            index = this.getLiveMenuItem(arr, 1)
                            index2 = this.getLiveMenuItem(arr, 2)
                            // index3 = this.getLiveMenuItem(arr, 3)
                        }
                        // if(index3 ==  -1){
                        //     arr.push({
                        //         name: "取保候审",
                        //         path: "/subPackage/label/bail",
                        //         pictureImg: "/static/icon/nav-11.png"
                        //     })
                        //     index = this.getLiveMenuItem(arr, 1)
                        //     index2 = this.getLiveMenuItem(arr, 2)
                        //     index3 = this.getLiveMenuItem(arr, 3)
                        // }
                    } else {
                        if (index == -1) {
                            arr.unshift({
@@ -587,20 +589,12 @@
                            })
                            index = this.getLiveMenuItem(arr, 1)
                            index2 = this.getLiveMenuItem(arr, 2)
                            // index3 = this.getLiveMenuItem(arr, 3)
                        }
                        if (index2 != -1) {
                            arr.splice(index2, 1)
                            index = this.getLiveMenuItem(arr, 1)
                            index2 = this.getLiveMenuItem(arr, 2)
                            // index3 = this.getLiveMenuItem(arr, 3)
                        }
                        // if(index3 != -1){
                        //     arr.splice(index3, 1)
                        //     index = this.getLiveMenuItem(arr, 1)
                        //     index2 = this.getLiveMenuItem(arr, 2)
                        //     index3 = this.getLiveMenuItem(arr, 3)
                        // }
                    }
                }
                return arr;
@@ -610,12 +604,9 @@
                if (type == 1) {
                    let index = arr.findIndex(item => item.name == "标签报事")
                    return index;
                } else if(type == 2){
                } else{
                    let index2 = arr.findIndex(item => item.name == "租户上报")
                    return index2
                }else {
                    let index3 = arr.findIndex(item => item.name.trim() == "取保候审")
                    return index3
                }
            },
@@ -662,6 +653,10 @@
                        icon: "none"
                    })
                }
            },
            navToSelectSite(){
                this.$u.func.globalNavigator('selectSite', "navTo")
            },
            //扫一扫
@@ -714,7 +709,7 @@
            getHouseType(code) {
                // getPublicSecurityDetail
                getQrCodeDetail({
                    roleName: "网格员",
                    roleName: uni.getStorageSync("activeRole").roleName,
                    addressCode: code,
                }).then(res => {
                    console.log(res)
pages/home/selectSite.vue
New file
@@ -0,0 +1,202 @@
<template>
    <view class="">
        <view class="hander bgc-ff f-30">
            <text class="c-99">所选位置:</text>
            <text v-if="currentSite.name">{{currentSite.name}}</text>
            <block v-if="!currentSite.name">
                <text v-if="rolesType== 1">暂无绑定街道社区网格信息</text>
                <text v-if="rolesType==2">暂无绑定居民信息</text>
                <text v-if="rolesType==3">暂无绑定街道社区信息</text>
            </block>
        </view>
        <view class="section bgc-ff" v-if="roleType == 2 && list.length">
            <view class="section-title flex a-i-c">
                <block v-for="(item,index) in list">
                    <text :class="[ 'mr-100',index == selectIndex?'fw f-32':'f-28']"
                        @click="changeType(index)">{{item.name}}</text>
                </block>
            </view>
            <view class="">
                <view class="nomore f-30"  v-if="!list[selectIndex].children.length" >
                      暂无{{selectIndex == 0?"房屋":"场所"}}信息
                </view>
                <view class="site-list f-30 flex j-c-s-b a-i-c" v-for="(i,k) in list[selectIndex].children"
                    @click="selectChilren(i,k)">
                    <text>{{i.name}}</text>
                    <u-icon v-if="k == chilrenIndex && chilrenId == i.id" size="26" name="checkbox-mark"
                        color="#017BFC"></u-icon>
                </view>
            </view>
        </view>
        <view class="section bgc-ff" v-if="roleType == 1 && list.length">
            <view class="section-title flex j-c-s-b  a-i-c">
                <view class="flex a-i-c">
                    <text class="f-32 fw">街道社区</text>
                    <text class="ml-20 f-28">{{cateName}}</text>
                </view>
                <view class="select-btn c-main f-28" @click="isShow = true">选择街道</view>
            </view>
            <view class="">
                <view class="nomore f-30" v-if="!list[selectIndex].children.length">
                    暂无社区信息
                </view>
                <view class="site-list f-30 flex j-c-s-b a-i-c" v-for="(i,k) in list[selectIndex].children"
                    @click="selectChilren(i,k)">
                    <text>{{i.name}}</text>
                    <u-icon v-if="k == chilrenIndex && chilrenId == i.id" size="26" name="checkbox-mark"
                        color="#017BFC"></u-icon>
                </view>
            </view>
        </view>
        <u-picker :show="isShow" :columns="[list]" :defaultIndex=[selectIndex] title="选择街道" keyName="name"
            @confirm="confirmSelect" @cancel="isShow = false"   @close="isShow = false"></u-picker>
            <u-toast ref="uToast"></u-toast>
    </view>
</template>
<script>
    import {
        getFuncList,
    } from "@/api/doorplateAddress/doorplateAddress";
    export default {
        data() {
            return {
                addressType: 1,
                selectIndex: 0,
                list: [],
                currentSite: {},
                chilrenIndex: 0,
                chilrenId: "",
                roleType: 1,
                cateName: "",
                isShow: false,
                rolesType:1
            }
        },
        onLoad() {
            let {
                roleName
            } = uni.getStorageSync("activeRole");
            if (roleName == '网格员' || roleName == '系统管理员') {
                this.rolesType = 1;
            } else if (roleName == '居民') {
                this.rolesType = 2;
            } else if (roleName == '民警') {
                this.rolesType = 3;
            }
            this.roleName = roleName;
            this.roleType = roleName == "居民" ? 2 : 1;
            this.getList()
        },
        methods: {
            changeType(index) {
                this.selectIndex = index;
            },
            selectChilren(item, index) {
                this.chilrenId = item.id;
                this.chilrenIndex = index;
                console.log(item)
                uni.navigateBack({
                    success:()=> {
                        this.$store.commit("setSiteInfo",item)
                        uni.$emit("refreshPage",item)
                    }
                })
            },
            getList() {
                this.$refs.uToast.show({
                    type: 'loading',
                    message: '正在加载',
                    duration: 9999999
                })
                getFuncList(
                    this.roleType,
                    this.roleName
                ).then(res => {
                    console.log(res);
                    this.list = res.data;
                    this.$nextTick(() => {
                        if(this.list.length){
                            this.getSelectIndex()
                        }
                        this.$refs.uToast.isShow = false
                    })
                    // this.cateName = res.data[0].name;
                    // this.currentSite = res.data[0].children[0]
                    // this.chilrenId = res.data[0].children[0].id
                })
            },
            confirmSelect(e) {
                console.log(e);
                this.selectIndex = e.indexs[0];
                this.cateName = e.value[0].name;
                this.isShow = false;
            },
            getSelectIndex(){
                let data = uni.getStorageSync("siteInfo");
                this.currentSite = data;
                for(let i = 0,ii = this.list.length;i<ii;i++){
                    for(let k= 0,kk = this.list[i].children.length;k<kk;k++){
                        if(this.list[i].children[k].name == data.name){
                            this.selectIndex = i;
                            this.cateName = this.list[i].name;
                            this.chilrenId = this.list[i].children[k].id;
                            this.chilrenIndex = k
                        }
                    }
                }
            }
        }
    }
</script>
<style lang="scss">
    page {
        background-color: #f5f5f5;
    }
    .hander {
        padding: 30rpx;
        margin-bottom: 20rpx;
    }
    .section {
        .section-title {
            padding: 30rpx;
            border-bottom: 1px solid #f5f5f5;
        }
        .mr-100 {
            margin-right: 100rpx;
        }
        .site-list {
            padding: 30rpx;
            border-bottom: 1px solid #f5f5f5;
        }
        .select-btn {
            padding: 6rpx 20rpx;
            border: 1px solid currentColor;
            border-radius: 30rpx;
        }
    }
    .nomore{
        padding:30rpx;
    }
</style>
static/icon/login-title.png

static/icon/nav-07.png

static/icon/nav-08.png

static/icon/nav-bg-01.png

static/icon/nav-bg-02.png

static/icon/nav-bg-03.png

static/icon/nav-bg-04.png

static/icon/nav-bg-05.png

static/icon/nav-bg-06.png

static/icon/nav-bg-07.png

static/icon/nav-bg-08.png

static/icon/nav-bg-09.png

static/icon/nav-bg-10.png

static/icon/nav-bg-11.png

static/icon/nav-bg-12.png

static/icon/nav-bg-13.png

static/icon/nav-bg-14.png

static/img/center-bg.png

static/img/login-bg.png

static/img/repair-bg.png

subPackage/house/list/auditList.vue
@@ -3,7 +3,12 @@
        <view class="header bgc-ff">
            <view class="tab">
                <u-tabs :list="tabList" :current="tabIndex" @click="changeTab" :inactiveStyle="{color:'#999999'}"
                    :activeStyle="{color:'#017BFC'}"></u-tabs>
                    :activeStyle="{color:'#017BFC'}">
                    <view class="tab-filter flex j-c-c a-i-c" slot="right" @click="showDateModal">
                        <text class="f-28">时间筛选</text>
                        <u-icon name="arrow-down"></u-icon>
                    </view>
                </u-tabs>
            </view>
            <view class="search-box">
                <u-search placeholder="请输入住户名" v-model="keyword" :clearabled="true" :showAction="true" :animation="true"
@@ -12,23 +17,6 @@
        </view>
        <view class="list">
            <!-- <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k" @click="navTo(i.name,i.id)">
                <view class="item-title flex a-i-c j-c-s-b mb-20">
                    <text class="f-32 fw">{{i.name}}</text>
                    <u-tag v-if="i.status == 1" text="待审批" type="warning" plain plainFill></u-tag>
                    <u-tag v-if="i.status == 2" text="审核通过" type="success" plain plainFill></u-tag>
                    <u-tag v-if="i.status == 3" text="审核拒绝" type="error" plain plainFill></u-tag>
                </view>
                <view class="item-row flex a-i-c j-c-s-b">
                    <text class="f-28">时间</text>
                    <text class="f-28 c-66">{{i.createTime}}</text>
                </view>
                <view class="item-row flex a-i-c j-c-s-b">
                    <text class="f-28">地址</text>
                    <text class="address f-28 c-66">{{i.addressName}}</text>
                </view>
            </view> -->
            <view class="card-box flex bgc-ff" v-for="(item,index) in list" :key="index">
                <view class="l flex-1 flex a-i-c">
                    <view class="head-img mr-20">
@@ -41,7 +29,7 @@
                            手机:{{item.phoneNumber?item.phoneNumber:"--"}}
                        </view>
                        <view class="">
                            楼盘:{{item.aoiName}}
                            楼盘:{{item.aoiName?item.aoiName:"--"}}
                        </view>
                    </view>
                </view>
@@ -58,7 +46,9 @@
                </view>
            </view>
        </view>
        <u-toast ref="uToast"></u-toast>
        <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
        <date-range-modal ref="dateRane" @comfirm="handleComfirmDate" @rest="handleRestDate" />
    </view>
</template>
@@ -67,10 +57,23 @@
        getHouseholdList,
        updateHousehold
    } from "@/api/house/household.js"
    import dateRangeModal from '@/components/dateRangeModal/modal.vue';
    export default {
        components: {
            dateRangeModal
        },
        data() {
            return {
                tabList: [{
                tabList: [
                    {
                        name: "全部",
                        status: ""
                    },
                    {
                        name: "待审核",
                        status: 0
                    },
@@ -84,16 +87,21 @@
                    // },
                ],
                tabIndex: 0,
                currentStatus: 0,
                currentStatus: "",
                list: [],
                loadingStatus: 'nomore',
                currentPage: 1,
                frequency: '',
                keyword: ""
                keyword: "",
                selectDate: [],
            }
        },
        onLoad(option) {
            if(option.from){
                this.tabIndex = 1;
                this.currentStatus = 0;
            }
            this.getList()
        },
        onReachBottom() {
@@ -124,12 +132,27 @@
                this.currentPage = 1;
            },
            getList() {
                getHouseholdList({
                this.$nextTick(() => {
                    this.loadingStatus = 'loadmore'
                    this.$refs.uToast.show({
                        type: 'loading',
                        message: '正在加载',
                        duration: 9999999
                    })
                })
                let params = {
                    page: this.currentPage,
                    size: 20,
                    confirmFlag: this.currentStatus,
                    name: this.keyword,
                }).then(res => {
                }
                if(this.selectDate.length){
                     params.startTime = this.selectDate[0],
                     params.endTime = this.selectDate[1]
                }
                getHouseholdList(params).then(res => {
                    if (res.code != 200) {
                        uni.showToast({
                            title: '数据请求失败',
@@ -139,10 +162,13 @@
                    }
                    let records = res.data.records;
                    this.list = [...this.list, ...records]
                    this.$nextTick(() => {
                        this.$refs.uToast.isShow = false
                    })
                    this.loadingStatus = 'nomore'
                })
            },
            auditResident(item,index){
            auditResident(item, index) {
                uni.showModal({
                    title: "提示",
                    content: "是否要通过该住户?",
@@ -154,17 +180,31 @@
                    }
                })
            },
            auditResidentRequest(item,index){
                updateHousehold(item).then(res=>{
                    if(res.code == 200){
            auditResidentRequest(item, index) {
                updateHousehold(item).then(res => {
                    if (res.code == 200) {
                        uni.showToast({
                            title:"操作成功"
                            title: "操作成功"
                        })
                        // this.$set(this.list,index,item);
                        this.list.splice(index,1);
                        this.list.splice(index, 1);
                    }
                })
            },
            showDateModal() {
                this.$refs.dateRane.open();
            },
            handleRestDate() {
                this.selectDate = [];
                this.resetParams();
                this.getList()
            },
            handleComfirmDate(val) {
                this.selectDate = val;
                this.resetParams();
                this.getList()
            }
        }
    }
@@ -196,6 +236,11 @@
        background-color: #fff;
    }
    .tab-filter {
        padding: 0 20rpx;
    }
    .search-box {
        padding: 20rpx 0;
    }
@@ -225,10 +270,12 @@
            }
        }
    }
    .card-box{
    .card-box {
        padding: 20rpx;
        margin-bottom: 20rpx;
        .info{
        .info {
            line-height: 60rpx;
        }
    }
subPackage/house/roomDetails/index.vue
@@ -18,7 +18,7 @@
                    <view class="flex j-c-s-b info-content" v-if="houseInfo.buildingName">
                        <view class="house-info">
                            <text>{{houseInfo.buildingName}}{{houseInfo.unitName?houseInfo.unitName:"一单元"}}{{ houseInfo.houseName}}室</text>
                            <text>{{houseInfo.buildingName}}{{houseInfo.unitName||""}}{{ houseInfo.houseName}}室</text>
                            <text class="c-aa">(共{{ houseInfo.allNum }}人)</text>
                        </view>
                        <view class="flex a-i-c">
@@ -309,7 +309,7 @@
                this.rentOutList = houseRentalList
                this.ownerInfoList = householdList
                this.houseInfo.houseName = houseName
                this.houseInfo.unitName = unitName
                this.houseInfo.unitName = unitName || ""
                this.houseInfo.houseTitle = aoiName || subAoi
                this.houseInfo.buildingName = buildingName
                this.houseInfo.addressName = addressName
subPackage/task/index.vue
@@ -126,7 +126,7 @@
                </view>
            </view>
            
            <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(i.path)"    v-for="i in securityList">
            <view class="nav-item flex j-c-s-b a-i-c" @click="navTo(`${i.path}&from=task`)"    v-for="i in securityList">
                <text class="f-28">{{i.name}}</text>
                <view class="flex">
                    <block v-if="bailCount > 0">
@@ -231,13 +231,14 @@
            navTo(url) {
                if(!url || url == "暂无" ){
                    uni.showToast({
                        title:"功能开发中~",
                        icon:"none"
                    })
                }else {
                    this.$u.func.globalNavigator(url)
                    this.$u.func.globalNavigator(`${url}?from=task`)
                }
            }
        }
subPackage/workbench/views/audit.vue
@@ -2,10 +2,17 @@
    <view>
        <view class="tab">
            <u-tabs :list="tabList" :current="tabIndex" @click="changeTab" :inactiveStyle="{color:'#999999'}"
                :activeStyle="{color:'#017BFC'}"></u-tabs>
                :activeStyle="{color:'#017BFC'}">
                <view class="tab-filter flex j-c-c a-i-c" slot="right" @click="showDateModal">
                    <text class="f-28">时间筛选</text>
                    <u-icon name="arrow-down"></u-icon>
                </view>
            </u-tabs>
        </view>
        <view class="list">
            <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k" @click="navTo(i.name,i.id,i.reportType)">
            <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k"
                @click="navTo(i.name,i.id,i.reportType)">
                <view class="item-title flex a-i-c j-c-s-b mb-20">
                    <text class="f-32 fw">{{i.name}}</text>
                    <u-tag v-if="i.status == 1" text="待审批" type="warning" plain plainFill></u-tag>
@@ -22,7 +29,10 @@
                </view>
            </view>
        </view>
        <u-toast ref="uToast"></u-toast>
        <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
        <date-range-modal ref="dateRane" @comfirm="handleComfirmDate" @rest="handleRestDate" />
    </view>
</template>
@@ -30,10 +40,20 @@
    import {
        getAuditReportingList
    } from "@/api/reporting/reporting"
    import dateRangeModal from '@/components/dateRangeModal/modal.vue';
    export default {
        components: {
            dateRangeModal
        },
        data() {
            return {
                tabList: [{
                tabList: [
                    {
                        name: "全部",
                        status: "",
                    },
                    {
                        name: "待审核",
                        status: 1
                    },
@@ -47,38 +67,31 @@
                    },
                ],
                tabIndex: 0,
                currentStatus: 1,
                currentStatus: "",
                list: [],
                loadingStatus: 'nomore',
                currentPage: 1,
                frequency: '',
                reportType:""
                reportType: "",
                selectDate: [],
            }
        },
        onLoad(option) {
            // if (option.type == 1) {
            //     uni.setNavigationBarTitle({
            //         title: "一次性"
            //     })
            //     this.frequency = 1
            // }
            // if (option.type == 2) {
            //     uni.setNavigationBarTitle({
            //         title: "周期性"
            //     })
            //     this.frequency = 2
            // }
            if(option.reportType){
            console.log(option);
            if (option.reportType) {
                this.reportType = option.reportType;
                uni.setNavigationBarTitle({
                    title:"取保候审"
                    title: "取保候审"
                })
            }
            if (option.from) {
                this.tabIndex = 1;
                this.currentStatus = 1;
            }
            this.getList()
        },
        onReachBottom() {
            this.currentPage++
@@ -89,22 +102,37 @@
            changeTab(e) {
                this.tabIndex = e.index;
                this.currentStatus = e.status;
                this.list = [];
                this.currentPage = 1;
                this.resetParams();
                this.getList();
            },
            resetParams() {
                this.list = [];
                this.currentPage = 1;
            },
            getList() {
                this.$nextTick(() => {
                    this.loadingStatus = 'loadmore'
                    this.$refs.uToast.show({
                        type: 'loading',
                        message: '正在加载',
                        duration: 9999999
                    })
                })
                let params = {
                    page: this.currentPage,
                    size: 20,
                    status: this.currentStatus,
                    frequency: this.frequency,
                }
                if(this.reportType){
                if (this.selectDate.length) {
                    params.startTime = this.selectDate[0],
                        params.endTime = this.selectDate[1]
                }
                if (this.reportType) {
                    params.reportType = this.reportType
                }
                getAuditReportingList(params).then(res => {
                    if (res.code != 200) {
                        uni.showToast({
@@ -115,20 +143,39 @@
                    }
                    let records = res.data.records;
                    this.list = [...this.list, ...records]
                    this.$nextTick(() => {
                        this.$refs.uToast.isShow = false
                    })
                    this.loadingStatus = 'nomore'
                })
            },
            navTo(name,id,type) {
                if(type == 1){
            navTo(name, id, type) {
                if (type == 1) {
                    this.$u.func.globalNavigator(`bailReportDetail?id=${id}`)
                }else if (type == 2){
                } else if (type == 2) {
                    this.$u.func.globalNavigator(`hotelReportDetail?id=${id}`)
                }else if (type == 3 || type == 4 || type == 5){
                } else if (type == 3 || type == 4 || type == 5) {
                    this.$u.func.globalNavigator(`labelReportDetail?id=${id}`)
                }else if(type == 6){
                } else if (type == 6) {
                    this.$u.func.globalNavigator(`schoolReportDetail?id=${id}`)
                }
            },
            showDateModal() {
                this.$refs.dateRane.open();
            },
            handleRestDate() {
                this.selectDate = [];
                this.resetParams();
                this.getList()
            },
            handleComfirmDate(val) {
                this.selectDate = val;
                this.resetParams();
                this.getList()
            }
        }
    }
</script>
@@ -156,8 +203,11 @@
    }
    .tab /deep/.u-tabs__wrapper__nav__item {
        flex: 1;
    // .tab /deep/.u-tabs__wrapper__nav__item {
    //     flex: 1;
    // }
    .tab-filter {
        padding: 0 20rpx;
    }
    .list {
@@ -182,4 +232,4 @@
            }
        }
    }
</style>
</style>
subPackage/workbench/views/cshw.vue
@@ -46,6 +46,10 @@
                    <text class="f-28">法人信息</text>
                    <text class="f-28 c-66">{{ item.legalPerson  ? item.legalPerson : '未完善'}}</text>
                </view>
                <view class="item-row flex a-i-c j-c-s-b f-28">
                    <text>时间</text>
                    <text class="c-66">{{item.createTime}}</text>
                </view>
            </view>
        </view>
        <u-toast ref="uToast"></u-toast>
@@ -98,7 +102,7 @@
                    },
                ],
                tabIndex: 0,
                tabStatus: 1,
                tabStatus: "",
                keyWord: '',
                loadingStatus: 'nomore',
                clickInfo: {},
@@ -106,6 +110,15 @@
                selectDate:[],
            }
        },
        onLoad(option){
            if(option.from){
                this.tabIndex = 1;
                this.tabStatus = 1;
            }
        },
        onShow() {
            this.currentRole = uni.getStorageSync("activeRole")
            this.resetParams()
subPackage/workbench/views/rental.vue
@@ -7,7 +7,12 @@
            </view> -->
            <view class="tabs">
                <u-tabs :list="tabsList" :current="tabIndex" @click="tabClick" :inactiveStyle="{color:'#999999'}"
                    :activeStyle="{color:'#017BFC'}"></u-tabs>
                    :activeStyle="{color:'#017BFC'}">
                    <view class="tab-filter flex j-c-c a-i-c" slot="right" @click="showDateModal">
                        <text class="f-28">时间筛选</text>
                        <u-icon name="arrow-down"></u-icon>
                    </view>
                </u-tabs>
            </view>
            <view class="search-box">
                <u-search placeholder="请输入租户名" v-model="keyword" :clearabled="true" :showAction="true" :animation="true"
@@ -65,6 +70,7 @@
        </view>
        <u-toast ref="uToast"></u-toast>
        <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="已经到底了" line />
         <date-range-modal  ref="dateRane"    @comfirm="handleComfirmDate"  @rest="handleRestDate"  />
    </view>
</template>
@@ -73,7 +79,12 @@
        getRentalHouseContent,
        getStatistics
    } from '@/api/houseRental/houseRental.js'
    import dateRangeModal from '@/components/dateRangeModal/modal.vue';
    export default {
        components:{
            dateRangeModal
        },
        data() {
            return {
@@ -175,7 +186,8 @@
                        value: 2
                    },
                ],
                tabIndex: 0
                tabIndex: 0,
                selectDate:[]
            }
        },
        computed: {
@@ -191,7 +203,11 @@
                })
            }
        },
        onLoad() {
        onLoad(option) {
            if(option.from){
                this.tabIndex = 1
                this.pagingParams.auditStatus = 0;
            }
            this.currentRole = uni.getStorageSync('activeRole')
            this.getStatistics()
        },
@@ -285,6 +301,12 @@
                const {
                    roleName
                } = this.currentRole
                if(this.selectDate.length){
                    this.pagingParams.startTime = this.selectDate[0],
                    this.pagingParams.endTime = this.selectDate[1]
                }
                const {
                    code,
                    data: {
@@ -330,6 +352,19 @@
                    current: 1,
                    size: 10
                }
            },
            showDateModal(){
                this.$refs.dateRane.open();
            },
            handleRestDate(){
                this.selectDate = [];
                this.resetParams();
                this.getRentalHouseInfo()
            },
            handleComfirmDate(val){
                this.selectDate = val;
                this.resetParams();
                this.getRentalHouseInfo()
            }
        }
    }
@@ -358,6 +393,13 @@
        height: 100rpx;
    }
    .tabs{
        width:100%;
    }
    .tab-filter {
        padding: 0 20rpx;
    }
    .search-box {
        padding: 20rpx 24rpx 30rpx;
subPackage/workbench/views/report.vue
@@ -1,10 +1,17 @@
<template>
    <view>
        <u-sticky>
            <view class="tab">
            <view class="hander">
                <view class="tab">
                    <u-tabs :list="tabList" :scrollable="false" :current="tabIndex" @click="changeTab"
                        :inactiveStyle="{color:'#999999'}" :activeStyle="{color:'#017BFC'}"></u-tabs>
                        :inactiveStyle="{color:'#999999'}" :activeStyle="{color:'#017BFC'}">
                        <view class="tab-filter flex j-c-c a-i-c" slot="right" @click="showDateModal">
                            <text class="f-28">时间筛选</text>
                            <u-icon name="arrow-down"></u-icon>
                        </view>
                        </u-tabs>
                    <view class="search">
                        <u-search placeholder="请输入需要查询信息的姓名" v-model="keyWord" :clearabled="true" :showAction="true"
                            :animation="true" @search="searchConfirm" @clear="clearConfirm"></u-search>
@@ -30,9 +37,14 @@
                    <text class="f-28">事发地</text>
                    <text class="address f-28 c-66">{{ item.address || "" }}</text>
                </view>
                <view class="item-row flex a-i-c j-c-s-b f-28">
                    <text>时间</text>
                    <text class="c-66">{{item.createTime}}</text>
                </view>
            </view>
        </view>
        <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
        <date-range-modal  ref="dateRane"    @comfirm="handleComfirmDate"  @rest="handleRestDate"  />
    </view>
</template>
@@ -40,7 +52,11 @@
    import {
        getPage
    } from '@/api/task/taskReportForRepairs.js'
    import dateRangeModal from '@/components/dateRangeModal/modal.vue';
    export default {
        components:{
            dateRangeModal
        },
        data() {
            return {
                reportList: [],
@@ -48,7 +64,13 @@
                    current: 1,
                    size: 10
                },
                tabList: [{
                tabList: [
                    {
                            name: "全部",
                            status: "",
                        },
                    {
                        name: "待处理",
                        status: 1,
                        type: 'warning'
@@ -87,11 +109,20 @@
                    }
                ],
                tabIndex: 0,
                tabStatus: 1,
                tabStatus:"",
                keyWord: '',
                loadingStatus: 'nomore'
                loadingStatus: 'nomore',
                selectDate:[]
            }
        },
        onLoad(option) {
            if(option.from){
                this.tabIndex = 1;
                this.tabStatus = 1;
            }
        },
        onShow() {
            this.currentRole = uni.getStorageSync("activeRole")
            this.reportList = []
@@ -107,6 +138,10 @@
                const params = {
                    realName: this.keyWord,
                    confirmFlag: this.tabStatus
                }
                if(this.selectDate.length){
                     params.startTime = this.selectDate[0],
                     params.endTime = this.selectDate[1]
                }
                const { roleName } = this.currentRole
                const res = await getPage({
@@ -157,6 +192,21 @@
                const data = JSON.stringify(item)
                // this.$u.func.globalNavigator('/subPackage/workbench/views/reportAudit?id='+id)
                this.$u.func.globalNavigator('/subPackage/workbench/views/reportAudit?data='+data)
            },
            showDateModal(){
                this.$refs.dateRane.open();
            },
            handleRestDate(){
                this.selectDate = [];
                this.resetParams();
                this.getPageList()
            },
            handleComfirmDate(val){
                this.selectDate = val;
                this.resetParams();
                this.getPageList()
            }
        }
    }
@@ -167,9 +217,15 @@
        background-color: #F5F5F5;
    }
    .tab {
    .hander {
        background-color: #fff;
.tab {
            width: 100%;
        }
        .tab-filter {
            padding: 0 20rpx;
        }
        .search {
            padding: 20rpx 70rpx;
        }