Ver Fonte

客户群发里的选择标签

三七 há 4 dias atrás
pai
commit
1d95b803ac
1 ficheiros alterados com 25 adições e 1 exclusões
  1. 25 1
      src/views/qw/groupMsg/index.vue

+ 25 - 1
src/views/qw/groupMsg/index.vue

@@ -380,6 +380,13 @@
             </a>
           </div>
         </div>
+        <pagination
+          v-show="tagTotal>0"
+          :total="tagTotal"
+          :page.sync="queryTagParams.pageNum"
+          :limit.sync="queryTagParams.pageSize"
+          @pagination="getPageListTagGroup"
+        />
         <div slot="footer" class="dialog-footer">
           <el-button type="primary" @click="tagSubmitForm(changeTagDialog.type)">确 定</el-button>
           <el-button @click="tagCancel(changeTagDialog.type)">取消</el-button>
@@ -660,12 +667,21 @@ export default {
         title:"",
         open:false,
       },
-
+      tagTotal:0,
       //标签弹窗选择
       tagChange:{
         open:false,
         index:null,
       },
+
+      queryTagParams:{
+        pageNum: 1,
+        pageSize: 10,
+        total:0,
+        name:null,
+        corpId:null,
+      },
+
       //选择标签
       changeTagDialog:{
         title:"",
@@ -880,6 +896,14 @@ export default {
         }
       })
     },
+
+    getPageListTagGroup(){
+      this.queryTagParams.corpId=this.queryParams.corpId
+      allListTagGroup(this.queryTagParams).then(response => {
+        this.tagGroupList = response.rows;
+        this.tagTotal = response.total;
+      });
+    },
     handleSearchTags(name){
 
       searchTags({name:name,corpId:this.queryParams.corpId}).then(response => {