李志伟 2 years ago
parent
commit
d5d3518253
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      src/pages/publicity/list.vue

+ 11
- 0
src/pages/publicity/list.vue View File

1
 <template>
1
 <template>
2
   <div class="publicity-page">
2
   <div class="publicity-page">
3
     <h3>信息公示</h3>
3
     <h3>信息公示</h3>
4
+    <div class="picker-search">
5
+      <van-search v-model="searchValue" placeholder="请输入报销人姓名" @search="onSearch" />
6
+    </div>
4
     <van-list
7
     <van-list
5
       class="publicity-list"
8
       class="publicity-list"
6
       v-model:loading="loading"
9
       v-model:loading="loading"
33
 const { invoiceId } = route.query;
36
 const { invoiceId } = route.query;
34
 
37
 
35
 const list = ref([])
38
 const list = ref([])
39
+const searchValue = ref()
36
 const error = ref(false);
40
 const error = ref(false);
37
 const loading = ref(false);
41
 const loading = ref(false);
38
 const pagenavi = reactive({ pageNum: 1, pageSize: 10, total: 0 })
42
 const pagenavi = reactive({ pageNum: 1, pageSize: 10, total: 0 })
61
   const params = { pageNum: pagenavi.pageNum + 1, pageSize: pagenavi.pageSize }
65
   const params = { pageNum: pagenavi.pageNum + 1, pageSize: pagenavi.pageSize }
62
   queryData(params)
66
   queryData(params)
63
 }
67
 }
68
+const onSearch=()=>{
69
+  const params = { pageNum: pagenavi.pageNum, pageSize: pagenavi.pageSize,personName:searchValue.value }
70
+  queryData(params)
71
+}
64
 
72
 
65
 onMounted(() => {
73
 onMounted(() => {
66
   //获取提交记录
74
   //获取提交记录
91
   // .item + .item {
99
   // .item + .item {
92
   //   margin-top: 16px;
100
   //   margin-top: 16px;
93
   // }
101
   // }
102
+  .picker-search {
103
+    flex: none;
104
+  }
94
 }
105
 }
95
 </style>
106
 </style>