首页位置选择调整,新增区域选择页面,审核页面增加时间筛选
31 files modified
1 files added
| | |
| | | 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/', |
| | |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/home/selectSite", |
| | | "style": { |
| | | "navigationBarTitleText": "区域选择", |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTextStyle": "black" |
| | | } |
| | | } |
| | | ], |
| | | "subPackages": [ |
| | |
| | | commentContent: "", //评论内容 |
| | | page: 1, |
| | | isSearch: false, |
| | | commentList: [] |
| | | commentList: [], |
| | | envVersion:"" |
| | | } |
| | | }, |
| | | |
| | |
| | | this.$refs.paging.reload(); |
| | | }) |
| | | }, |
| | | |
| | | |
| | | onShow(){ |
| | | let accountInfo = wx.getAccountInfoSync(); |
| | | this.envVersion = accountInfo.miniProgram.envVersion; |
| | | }, |
| | | |
| | | // onPullDownRefresh() { |
| | | // this.getCircleList(); |
| | |
| | | <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>
|
| | |
| | | }
|
| | | this.init()
|
| | | })
|
| | | //选择位置刷新楼盘表
|
| | | uni.$on('refreshPage',(val)=>{
|
| | | console.log("refreshPage=>",val);
|
| | | this.curSelectSite = val
|
| | | this.getHouseDataList(val.id)
|
| | | })
|
| | | },
|
| | |
|
| | | onShareAppMessage() {
|
| | |
| | | }
|
| | | },
|
| | |
|
| | |
|
| | | 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({
|
| | |
| | | })
|
| | | 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({
|
| | |
| | | })
|
| | | 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;
|
| | |
| | | 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
|
| | | }
|
| | | },
|
| | |
|
| | |
| | | icon: "none"
|
| | | })
|
| | | }
|
| | | },
|
| | | |
| | | navToSelectSite(){
|
| | | this.$u.func.globalNavigator('selectSite', "navTo")
|
| | | },
|
| | |
|
| | | //扫一扫
|
| | |
| | | getHouseType(code) {
|
| | | // getPublicSecurityDetail
|
| | | getQrCodeDetail({
|
| | | roleName: "网格员",
|
| | | roleName: uni.getStorageSync("activeRole").roleName,
|
| | | addressCode: code,
|
| | | }).then(res => {
|
| | | console.log(res)
|
| New file |
| | |
| | | <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> |
| | |
| | | <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" |
| | |
| | | </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"> |
| | |
| | | 手机:{{item.phoneNumber?item.phoneNumber:"--"}} |
| | | </view> |
| | | <view class=""> |
| | | 楼盘:{{item.aoiName}} |
| | | 楼盘:{{item.aoiName?item.aoiName:"--"}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </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> |
| | | |
| | |
| | | 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 |
| | | }, |
| | |
| | | // }, |
| | | ], |
| | | 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() { |
| | |
| | | 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: '数据请求失败', |
| | |
| | | } |
| | | 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: "是否要通过该住户?", |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | 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() |
| | | } |
| | | } |
| | | } |
| | |
| | | background-color: #fff; |
| | | } |
| | | |
| | | .tab-filter { |
| | | padding: 0 20rpx; |
| | | } |
| | | |
| | | |
| | | .search-box { |
| | | padding: 20rpx 0; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | .card-box{ |
| | | |
| | | .card-box { |
| | | padding: 20rpx; |
| | | margin-bottom: 20rpx; |
| | | .info{ |
| | | |
| | | .info { |
| | | line-height: 60rpx; |
| | | } |
| | | } |
| | |
| | |
|
| | | <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">
|
| | |
| | | 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
|
| | |
| | | </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"> |
| | |
| | | |
| | | |
| | | navTo(url) { |
| | | |
| | | if(!url || url == "暂无" ){ |
| | | uni.showToast({ |
| | | title:"功能开发中~", |
| | | icon:"none" |
| | | }) |
| | | }else { |
| | | this.$u.func.globalNavigator(url) |
| | | this.$u.func.globalNavigator(`${url}?from=task`) |
| | | } |
| | | } |
| | | } |
| | |
| | | <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> |
| | |
| | | </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> |
| | | |
| | |
| | | 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 |
| | | }, |
| | |
| | | }, |
| | | ], |
| | | 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++ |
| | |
| | | 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({ |
| | |
| | | } |
| | | 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> |
| | |
| | | |
| | | } |
| | | |
| | | .tab /deep/.u-tabs__wrapper__nav__item { |
| | | flex: 1; |
| | | // .tab /deep/.u-tabs__wrapper__nav__item { |
| | | // flex: 1; |
| | | // } |
| | | .tab-filter { |
| | | padding: 0 20rpx; |
| | | } |
| | | |
| | | .list { |
| | |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | <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>
|
| | |
| | | },
|
| | | ],
|
| | | tabIndex: 0,
|
| | | tabStatus: 1,
|
| | | tabStatus: "",
|
| | | keyWord: '',
|
| | | loadingStatus: 'nomore',
|
| | | clickInfo: {},
|
| | |
| | | selectDate:[],
|
| | | }
|
| | | },
|
| | | |
| | | |
| | | onLoad(option){
|
| | | if(option.from){
|
| | | this.tabIndex = 1;
|
| | | this.tabStatus = 1;
|
| | | }
|
| | | },
|
| | | |
| | | onShow() {
|
| | | this.currentRole = uni.getStorageSync("activeRole")
|
| | | this.resetParams()
|
| | |
| | | </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"
|
| | |
| | | </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>
|
| | |
|
| | |
| | | getRentalHouseContent,
|
| | | getStatistics
|
| | | } from '@/api/houseRental/houseRental.js'
|
| | | import dateRangeModal from '@/components/dateRangeModal/modal.vue';
|
| | | |
| | | export default {
|
| | | components:{
|
| | | dateRangeModal
|
| | | },
|
| | | data() {
|
| | | return {
|
| | |
|
| | |
| | | value: 2
|
| | | },
|
| | | ],
|
| | | tabIndex: 0
|
| | | tabIndex: 0,
|
| | | selectDate:[]
|
| | | }
|
| | | },
|
| | | computed: {
|
| | |
| | | })
|
| | | }
|
| | | },
|
| | | onLoad() {
|
| | | onLoad(option) {
|
| | | if(option.from){
|
| | | this.tabIndex = 1
|
| | | this.pagingParams.auditStatus = 0;
|
| | | }
|
| | | this.currentRole = uni.getStorageSync('activeRole')
|
| | | this.getStatistics()
|
| | | },
|
| | |
| | | const {
|
| | | roleName
|
| | | } = this.currentRole
|
| | | |
| | | |
| | | if(this.selectDate.length){
|
| | | this.pagingParams.startTime = this.selectDate[0],
|
| | | this.pagingParams.endTime = this.selectDate[1]
|
| | | }
|
| | | const {
|
| | | code,
|
| | | data: {
|
| | |
| | | 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()
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | height: 100rpx;
|
| | |
|
| | | }
|
| | | .tabs{
|
| | | width:100%;
|
| | | }
|
| | | .tab-filter {
|
| | | padding: 0 20rpx;
|
| | | }
|
| | | |
| | |
|
| | | .search-box {
|
| | | padding: 20rpx 24rpx 30rpx;
|
| | |
| | | <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>
|
| | |
| | | <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>
|
| | |
|
| | |
| | | import {
|
| | | getPage
|
| | | } from '@/api/task/taskReportForRepairs.js'
|
| | | import dateRangeModal from '@/components/dateRangeModal/modal.vue';
|
| | | export default {
|
| | | components:{
|
| | | dateRangeModal
|
| | | },
|
| | | data() {
|
| | | return {
|
| | | reportList: [],
|
| | |
| | | current: 1,
|
| | | size: 10
|
| | | },
|
| | | tabList: [{
|
| | | tabList: [
|
| | | |
| | | {
|
| | | name: "全部",
|
| | | status: "",
|
| | | },
|
| | | {
|
| | | name: "待处理",
|
| | | status: 1, |
| | | type: 'warning'
|
| | |
| | | } |
| | | ],
|
| | | 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 = []
|
| | |
| | | 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({
|
| | |
| | | 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()
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | background-color: #F5F5F5;
|
| | | }
|
| | |
|
| | | .tab {
|
| | | .hander {
|
| | | background-color: #fff;
|
| | | .tab {
|
| | | width: 100%;
|
| | | }
|
| | |
|
| | | .tab-filter {
|
| | | padding: 0 20rpx;
|
| | | }
|
| | | .search {
|
| | | padding: 20rpx 70rpx;
|
| | | }
|