| | |
| | | <view> |
| | | <u-sticky bgColor="white"> |
| | | <view class="set-search"> |
| | | <u-search placeholder="请输入要查询的企业" shape="square" :showAction="false"></u-search> |
| | | <u-search placeholder="请输入要查询的企业" @search="search" @blur="search" shape="square" :showAction="false"></u-search> |
| | | </view> |
| | | <view class="border"></view> |
| | | </u-sticky> |
| | | <view class="item"> |
| | | <view class="item" v-for="(item,index) in list1"> |
| | | <img src="/static/i05.png" class="img" alt="" /> |
| | | <view class="right"> |
| | | <view class="name"> |
| | | 北京尚策互动科技有限公司 |
| | | {{item.companyName}} |
| | | </view> |
| | | <view class="box"> |
| | | <view class="l"> |
| | | <p>执法单位:农业农村局</p> |
| | | <p>执法时间:2024-06-03 12:30:67</p> |
| | | <p>执法单位:{{item.executeDeptName}}</p> |
| | | <p>执法时间:{{item.executeTime}}</p> |
| | | </view> |
| | | <view class="r"> |
| | | <view class="r" @click="chakan(item.orderId)"> |
| | | 去查看 |
| | | </view> |
| | | </view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { showList } from '@/api/index.js' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | list1:[], |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10 |
| | | }, |
| | | total: 1, |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | if(this.list1.length == this.total) { |
| | | return |
| | | } |
| | | this.queryParams.pageNum++ |
| | | this.getList() |
| | | }, |
| | | methods: { |
| | | |
| | | search(e){ |
| | | this.list1 = [] |
| | | this.queryParams.pageNum =1 |
| | | this.queryParams.companyName = e |
| | | this.getList() |
| | | }, |
| | | chakan(id){ |
| | | uni.navigateTo({ |
| | | url: `/pages/message/details?id=${id}` |
| | | }) |
| | | }, |
| | | getList() { |
| | | showList({...this.queryParams}).then(val => { |
| | | // console.log(val.data) |
| | | this.total = val.data.total |
| | | this.list1 = [...this.list1,...val.data.rows] |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |