chunk-4ed4.74b07e37.js 6.1 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4ed4"],{"7SSI":function(t,e,a){"use strict";a.r(e);var s,i=a("YEIV"),n=a.n(i),o="",l={components:{wechat_customers_label_side:a("dE/r").a},data:function(){return{group_name:"",listData:[],page:1,total_page:0,delGroupTipsShow:!1,delLabelObj:{}}},created:function(){this.getGroupList()},methods:(s={handSearch:function(){o=this.group_name||"",this.page=1,this.getTagList()},delGroupShow:function(t){this.delGroupTipsShow=!0,this.delLabelObj=t.row,this.delLabelObj.$index=t.$index},delGroup:function(){var t=this;this.delLabelTipsShow=!1,$http.pc_get("plugin/WorkWechatTag/deleteTagGroup",{id:this.delLabelObj.id},"loading").then(function(e){1===e.result?(e.msg&&t.$message.success(e.msg),t.listData.splice(t.delLabelObj.$index,1)):e.msg&&t.$message.error(e.msg),t.delGroupTipsShow=!1}).catch(function(t){console.error(t)})},pageChange:function(t){this.page=t,this.getGroupList()}},n()(s,"handSearch",function(){o=this.group_name,this.page=1,this.getGroupList()}),n()(s,"getGroupList",function(){var t=this,e={page:this.page};""!=o&&(e.group_name=o),$http.pc_get("plugin/WorkWechatTag/tagGroupList",e,"loading").then(function(e){1===e.result?(t.listData=e.data.group_list.data,t.total_page=e.data.group_list.last_page):e.msg&&t.$message.error(e.msg)}).catch(function(t){console.error(t)})}),n()(s,"gotoLabelGroupEdit",function(t){var e={};t>0&&(e.group_id=t),this.$router.push(this.fun.getUrl("wechatCustomersLabelGroupEdit",{},e))}),n()(s,"seeLabel",function(t){this.$router.push(this.fun.getUrl("wechatCustomersLabelManagement",{group_id:t},{}))}),n()(s,"refreshWechatTag",function(){var t=this;$http.pc_get("plugin/WorkWechatTag/refreshWechatTag",{},"loading").then(function(e){1===e.result?e.msg&&t.$message.success(e.msg):e.msg&&t.$message.error(e.msg)}).catch(function(t){console.error(t)})}),n()(s,"refreshShopTag",function(){var t=this;$http.pc_get("plugin/WorkWechatTag/refreshShopTag",{},"loading").then(function(e){1===e.result?e.msg&&t.$message.success(e.msg):e.msg&&t.$message.error(e.msg)}).catch(function(t){console.error(t)})}),s)},r=(a("gh9M"),a("KHd+")),c=Object(r.a)(l,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"all"},[a("wechat_customers_label_side",{attrs:{defaultActive:"3"}}),t._v(" "),a("div",{attrs:{id:"app"}},[a("div",{staticClass:"header"},[a("div",{staticClass:"vue-main-title"},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content customers_name title"},[t._v("\n 标签组管理\n ")]),t._v(" "),a("div",{staticClass:"add_label_btn"},[a("el-button",{attrs:{type:"primary",size:"mini",plain:""},on:{click:t.gotoLabelGroupEdit}},[a("i",{staticClass:"el-icon-plus"}),t._v("添加分组")])],1)]),t._v(" "),a("div",{staticClass:"search"},[a("el-input",{staticStyle:{width:"150px","margin-right":"10px"},attrs:{placeholder:"分组名称"},model:{value:t.group_name,callback:function(e){t.group_name=e},expression:"group_name"}}),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.handSearch}},[t._v("搜索")]),t._v(" "),a("div",{staticClass:"syncBtn"},[a("el-button",{attrs:{type:"primary"},on:{click:t.refreshWechatTag}},[t._v("同步企业微信标签组")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.refreshShopTag}},[t._v("同步商城标签组")])],1)],1)]),t._v(" "),a("div",{staticClass:"list_container"},[t._m(0),t._v(" "),a("div",{staticClass:"list_table"},[a("el-table",{staticStyle:{"max-width":"100%"},attrs:{data:t.listData,"header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"}}},[a("el-table-column",{attrs:{prop:"group_name",label:"分组名称",width:"180"}}),t._v(" "),a("el-table-column",{attrs:{prop:"group_order",label:"分组排序","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"tag_count",label:"标签数量","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.gotoLabelGroupEdit(e.row.id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.seeLabel(e.row.group_id)}}},[t._v("查看标签")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.delGroupShow(e)}}},[t._v("删除")])]}}])})],1)],1)])]),t._v(" "),a("el-dialog",{attrs:{title:"操作提示",visible:t.delGroupTipsShow,width:"30%",center:""},on:{"update:visible":function(e){t.delGroupTipsShow=e}}},[a("span",[t._v("您确定要删除当前标签组嘛!!!")]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary"},on:{click:t.delGroup}},[t._v("\n 确定\n ")]),t._v(" "),a("el-button",{attrs:{type:"info"},on:{click:function(e){t.delGroupTipsShow=!1}}},[t._v("\n 取消\n ")])],1)]),t._v(" "),a("div",{staticClass:"vue-page"},[a("el-row",[a("el-col",{attrs:{align:"right"}},[a("el-pagination",{attrs:{layout:"prev, pager, next,jumper","page-count":t.total_page,background:""},on:{"current-change":t.pageChange}})],1)],1)],1)],1)},[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"vue-main-title"},[e("div",{staticClass:"vue-main-title-left"}),this._v(" "),e("div",{staticClass:"vue-main-title-content customers_name title"},[this._v("\n 分组列表\n ")])])}],!1,null,"e6c9fb30",null);c.options.__file="group_management.vue";e.default=c.exports},Oh5z:function(t,e,a){},"RU/L":function(t,e,a){a("Rqdy");var s=a("WEpk").Object;t.exports=function(t,e,a){return s.defineProperty(t,e,a)}},Rqdy:function(t,e,a){var s=a("Y7ZC");s(s.S+s.F*!a("jmDH"),"Object",{defineProperty:a("2faE").f})},SEkw:function(t,e,a){t.exports={default:a("RU/L"),__esModule:!0}},YEIV:function(t,e,a){"use strict";e.__esModule=!0;var s=function(t){return t&&t.__esModule?t:{default:t}}(a("SEkw"));e.default=function(t,e,a){return e in t?(0,s.default)(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}},gh9M:function(t,e,a){"use strict";var s=a("Oh5z");a.n(s).a}}]);