<template>
|
<view class="page-box">
|
<u-sticky bgColor="white" :offsetTop="0">
|
<view class="set-search">
|
<u-search placeholder="请输入执法主题 " v-model="value" @clear="value = '';search()" @search="search" @blur="search" shape="square" :showAction="false"></u-search>
|
</view>
|
<view class="border"></view>
|
<u-tabs :list="list1" @click="click" :current="current" :scrollable="false" bgColor="white"></u-tabs>
|
</u-sticky>
|
<view class="list">
|
<view class="list-item" @click="goReport(item.orderId)" v-for="(item,index) in list" :key="index">
|
<view class="top-title">
|
<text>{{item.enforceReason}}</text>
|
<text class="status status2" v-if="item.checkStatus == 2 || item.checkStatus == 1">通过</text>
|
<!-- <text class="status " v-if="item.checkStatus == 1">审批中</text> -->
|
<text class="status status4" v-if="item.checkStatus == -1">拒绝</text>
|
</view>
|
<view class="user-info">
|
<text>{{item.applyUser}}</text>
|
<view class="driver"></view>
|
<text>{{item.applyDeptName}}</text>
|
</view>
|
<view class="set-line">
|
<text>执法对象:</text>{{item.companyName}}
|
</view>
|
<view class="line"></view>
|
<view class="set-flex set-start set-flex-content-between">
|
<view>
|
<view class="set-line1">
|
<text>执法时间:</text>{{item.planTime}}
|
</view>
|
<view class="set-line1">
|
<text>申请时间:</text>{{item.applyTime}}
|
</view>
|
</view>
|
</view>
|
</view>
|
<u-empty v-if="!list.length"></u-empty>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
import { checkedList } from '@/api/policy.js'
|
export default {
|
data() {
|
return {
|
current: 0,
|
queryParams: {
|
pageNum: 1,
|
pageSize: 10,
|
isAsc: "desc",
|
orderByColumn: "apply_time"
|
},
|
list1: [{
|
name: '全部',
|
value: ''
|
}, {
|
name: '通过',
|
value: 2
|
}, {
|
name: '拒绝',
|
value: -1
|
}],
|
list: [
|
|
],
|
total: 1,
|
value: ''
|
}
|
},
|
onLoad() {
|
this.enforceLogList()
|
},
|
onReachBottom() {
|
if(this.total == this.list.length) {
|
return
|
}
|
this.queryParams.pageNum++
|
this.enforceLogList()
|
},
|
methods: {
|
search(e) {
|
this.list = []
|
this.queryParams.enforceReason = e
|
this.queryParams.pageNum = 1
|
this.enforceLogList()
|
},
|
goReport(order) {
|
uni.navigateTo({
|
url: `/policy/judgeApply/judgeApply?id=${order}&title=setTitle`
|
})
|
},
|
click(e) {
|
this.list = []
|
this.queryParams.pageNum = 1
|
this.current = e.index
|
this.enforceLogList()
|
},
|
enforceLogList() {
|
checkedList({...this.queryParams, checkStatus: this.list1[this.current].value}).then(val => {
|
this.list = [...this.list,...val.data.rows]
|
this.total = val.data.total
|
})
|
}
|
}
|
}
|
</script>
|
<style>
|
page {
|
background-color: #F4F4F4;
|
}
|
</style>
|
<style lang="scss" scoped>
|
@import "./translateRecord.scss";
|
/deep/ .u-sticky{
|
position: -webkit-sticky;
|
}
|
</style>
|