Selaa lähdekoodia

fix:搜索页面传错

zh 2 vuotta sitten
vanhempi
commit
f430333300
1 muutettua tiedostoa jossa 13 lisäystä ja 1 poistoa
  1. 13 1
      src/layout/components/Navbar.vue

+ 13 - 1
src/layout/components/Navbar.vue

@@ -96,7 +96,7 @@
                     "
                     >重置</el-button
                   >
-                  <el-button type="primary" @click="getNoticeList">查询</el-button>
+                  <el-button type="primary" @click="getNoticeLists">查询</el-button>
                 </div>
               </el-form-item>
             </el-col>
@@ -418,6 +418,18 @@ export default {
         this.listLoading = false
       })
     },
+    getNoticeLists(){
+      this.listLoading = true
+      getNoticeList({
+        pageNum: 1,
+        pageSize: this.pageSize2,
+        specification: this.form.specification
+      }).then(res => {
+        this.noticeList = res.data.records
+        this.listTotal2 = res.data.total
+        this.listLoading = false
+      })
+    },
     handleNotice(flag = true) {
       if (flag || flag == 'click') {
         if (flag == 'click') {