Sfoglia il codice sorgente

乐团列表添加过滤组件

wolyshaw 4 anni fa
parent
commit
e79137aaab
1 ha cambiato i file con 11 aggiunte e 11 eliminazioni
  1. 11 11
      src/views/teamDetail/teamList.vue

+ 11 - 11
src/views/teamDetail/teamList.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="m-container">
     <h2>
-      <div class="squrt"></div>乐团列表
+      <div class="squrt"></div>乐团列表 <filter-search @reload="getList"/>
     </h2>
     <div class="m-core">
       <div class="btnList" style="margin-bottom: 20px">
@@ -337,7 +337,6 @@ export default {
     closeStudens
   },
   mounted () {
-    this.$set(this.topForm, 'teamName', this.$route.query.search)
     this.init();
   },
   activated () {
@@ -369,15 +368,15 @@ export default {
     reset () {
       this.rules.page = 1;
       this.$refs['topForm'].resetFields();
-      if (this.$route.query.search) {
-        this.$router.replace({
-          path: this.$route.path,
-          query: {
-            ...this.$route.query,
-            search: undefined
-          }
-        })
-      }
+      // if (this.$route.query.search) {
+      //   this.$router.replace({
+      //     path: this.$route.path,
+      //     query: {
+      //       ...this.$route.query,
+      //       search: undefined
+      //     }
+      //   })
+      // }
       this.getList()
     },
     search () {
@@ -392,6 +391,7 @@ export default {
         chargeTypeId: this.topForm.payType || null,
         musicGroupName: this.topForm.teamName || null,
         musicGroupStatus: this.topForm.status || null,
+        musicGroupId: this.$route.query.search
       }).then(res => {
         if (res.code == 200) {
           this.tableData = res.data.rows