| | |
| | | <template>
|
| | | <view>
|
| | |
|
| | | <u-sticky bgColor="white">
|
| | | <u-navbar title="执法记录" :autoBack="true" placeholder>
|
| | | <view slot="left"></view>
|
| | | </u-navbar>
|
| | | <u-tabs :list="list" @change="click" :current="current" :scrollable="false" bgColor="white"></u-tabs>
|
| | | </u-sticky> |
| | | <view class="item" v-for="(item,index) in list1"> |
| | |
| | | </view> |
| | | <view class="box"> |
| | | <view class="l"> |
| | | <p>执法单位:{{item.executeDeptName}}</p> |
| | | <p>执法时间:{{item.executeTime}}</p> |
| | | <p>执法单位:{{item.executeDeptName|| item.applyDeptName}}</p>
|
| | | <p>执法时间:{{item.inTime || item.planTime}}</p>
|
| | | </view> |
| | | <view class="r" @click="chakan(item.orderId)"> |
| | | 去查看 |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <u-empty v-if="!list1.length"></u-empty>
|
| | | <!-- <view class="item"> |
| | | <img src="/static/i05.png" class="img" alt="" /> |
| | | <view class="right"> |
| | |
| | |
|
| | | <script>
|
| | | import tabsCom from '@/qiye/components/bottom.vue'
|
| | | import { companyList } from '@/api/qiye.js' |
| | | import {
|
| | | companyList
|
| | | } from '@/api/qiye.js'
|
| | |
|
| | | export default {
|
| | | components: {
|
| | |
| | | activeNumber: 1,
|
| | | list: [{
|
| | | name: '全部',
|
| | | value: {
|
| | |
|
| | | }
|
| | | }, {
|
| | | name: '待评价',
|
| | | value: {
|
| | | isEva: 0
|
| | | }
|
| | | }, {
|
| | | name: '未执法',
|
| | | value: {
|
| | | orderStatus: 2
|
| | | }
|
| | | }, {
|
| | | name: '已评价',
|
| | | value: {
|
| | | isEva: 1
|
| | | }
|
| | | }], |
| | | current: 0, |
| | | list1:[], |
| | |
| | | getList() { |
| | | let data = uni.getStorageSync("qiyedata") |
| | | this.queryParams.companyId = data.companyId |
| | | companyList({...this.queryParams}).then(val => { |
| | | companyList({
|
| | | ...this.queryParams,
|
| | | ...this.list[this.current].value
|
| | | }).then(val => {
|
| | | // console.log(val.data) |
| | | this.total = val.data.total |
| | | this.list1 = [...this.list1,...val.data.rows] |
| | |
| | | click(i) { |
| | | this.list1 = [] |
| | | this.queryParams.pageNum = 1
|
| | | console.log(i.index) |
| | | // if(i.index==0){ |
| | | this.current = i.index
|
| | | // console.log(i.index)
|
| | | |
| | | // if(i.index==1){
|
| | | // this.queryParams.isEva = 0
|
| | | // } |
| | | if(i.index==1){ |
| | | this.queryParams.isEva = 0 |
| | | } |
| | | if(i.index==2){ |
| | | this.queryParams.orderStatus = 2 |
| | | } |
| | | if(i.index==3){ |
| | | this.queryParams.isEva = 1 |
| | | } |
| | | // if(i.index==2){
|
| | | // this.queryParams.orderStatus = 2
|
| | | // }
|
| | | // if(i.index==3){
|
| | | // this.queryParams.isEva = 1
|
| | | // }
|
| | | this.getList()
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | </style> |
| | | <style lang="scss" scoped> |
| | | |
| | | .item{ |
| | | background: #fff; |
| | | border-radius: 5px; |
| | |
| | | box-sizing: border-box; |
| | | margin: 20rpx 32rpx; |
| | | display: flex; |
| | |
|
| | | .img{ |
| | | width: 56rpx; |
| | | height: 56rpx; |
| | | } |
| | |
|
| | | .right{ |
| | | width: 90%; |
| | |
|
| | | .name{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | |
|
| | | .l{ |
| | | color: #202d44; |
| | | font-size: 32rpx; |
| | |
| | | margin-bottom: 24rpx; |
| | | width: 80%; |
| | | } |
| | |
|
| | | .r{ |
| | | font-size: 28rpx; |
| | | width: 20%; |
| | | text-align: right; |
| | | } |
| | | } |
| | |
|
| | | .box{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | |
|
| | | .l{ |
| | | font-size: 26rpx; |
| | | color: #7e8593; |
| | | max-width: 80%; |
| | | } |
| | |
|
| | | .r{ |
| | | width: 132rpx; |
| | | height: 64rpx; |
| | |
| | | } |
| | | } |
| | | } |
| | |
|
| | | .color1{ |
| | | color: #FE7B32; |
| | | //cheng |
| | | } |
| | |
|
| | | .color2{ |
| | | color: #EB4746; |
| | | |
| | | //hong |
| | | } |
| | |
|
| | | .color3{ |
| | | color: #3EB47A; |
| | | //lv |