1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-04cb4da8"],{"7c77":function(t,e,n){},c24f:function(t,e,n){"use strict";n.d(e,"W",(function(){return u})),n.d(e,"M",(function(){return a})),n.d(e,"L",(function(){return o})),n.d(e,"k",(function(){return c})),n.d(e,"r",(function(){return i})),n.d(e,"d",(function(){return s})),n.d(e,"h",(function(){return l})),n.d(e,"g",(function(){return d})),n.d(e,"q",(function(){return m})),n.d(e,"s",(function(){return f})),n.d(e,"I",(function(){return b})),n.d(e,"O",(function(){return h})),n.d(e,"K",(function(){return g})),n.d(e,"J",(function(){return p})),n.d(e,"f",(function(){return v})),n.d(e,"e",(function(){return _})),n.d(e,"n",(function(){return O})),n.d(e,"Q",(function(){return j})),n.d(e,"p",(function(){return w})),n.d(e,"P",(function(){return y})),n.d(e,"bb",(function(){return k})),n.d(e,"T",(function(){return x})),n.d(e,"R",(function(){return C})),n.d(e,"S",(function(){return L})),n.d(e,"V",(function(){return S})),n.d(e,"U",(function(){return F})),n.d(e,"X",(function(){return P})),n.d(e,"v",(function(){return M})),n.d(e,"w",(function(){return E})),n.d(e,"Y",(function(){return $})),n.d(e,"i",(function(){return U})),n.d(e,"ab",(function(){return D})),n.d(e,"C",(function(){return T})),n.d(e,"cb",(function(){return N})),n.d(e,"m",(function(){return W})),n.d(e,"Z",(function(){return A})),n.d(e,"F",(function(){return B})),n.d(e,"B",(function(){return I})),n.d(e,"A",(function(){return z})),n.d(e,"z",(function(){return R})),n.d(e,"D",(function(){return J})),n.d(e,"y",(function(){return G})),n.d(e,"x",(function(){return V})),n.d(e,"u",(function(){return q})),n.d(e,"t",(function(){return H})),n.d(e,"o",(function(){return K})),n.d(e,"l",(function(){return Q})),n.d(e,"G",(function(){return X})),n.d(e,"H",(function(){return Y})),n.d(e,"db",(function(){return Z})),n.d(e,"N",(function(){return tt})),n.d(e,"E",(function(){return et})),n.d(e,"b",(function(){return nt})),n.d(e,"a",(function(){return rt})),n.d(e,"eb",(function(){return ut})),n.d(e,"j",(function(){return at})),n.d(e,"c",(function(){return ot}));var r=n("b6bd");function u(t){return Object(r.a)({url:"user/user",method:"get",params:t})}function a(t){return Object(r.a)({url:"setting/config/user/".concat(t),method:"get"})}function o(t,e){return Object(r.a)({url:"setting/config/user/".concat(t),method:"post",data:e})}function c(t){return Object(r.a)({url:"user/user/".concat(t,"/edit"),method:"get"})}function i(t){return Object(r.a)({url:"user/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}function s(t){return Object(r.a)({url:"marketing/coupon/grant",method:"get",params:t})}function l(t){return Object(r.a)({url:"user/edit_other/".concat(t),method:"get"})}function d(t){return Object(r.a)({url:"user/user/".concat(t),method:"get"})}function m(t){return Object(r.a)({url:"user/one_info/".concat(t.id),method:"get",params:t.datas})}function f(t){return Object(r.a)({url:"user/user_level/vip_list",method:"get",params:t})}function b(t){return Object(r.a)({url:"user/user_level/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function h(t,e){return Object(r.a)({url:"user/user_level/task/".concat(t),method:"get",params:e})}function g(t){return Object(r.a)({url:"user/user_level/set_task_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function p(t){return Object(r.a)({url:"user/user_level/set_task_must/".concat(t.id,"/").concat(t.is_must),method:"PUT"})}function v(t){return Object(r.a)({url:"/user/user_level/create_task",method:"get",params:t})}function _(t){return Object(r.a)({url:"user/user_level/create",method:"get",params:t})}function O(t){return Object(r.a)({url:"user/give_level/".concat(t),method:"get"})}function j(t){return Object(r.a)({url:"user/user_group/list",method:"get",params:t})}function w(t){return Object(r.a)({url:"user/user_group/add/".concat(t),method:"get"})}function y(t){return Object(r.a)({url:"setting/update_admin",method:"PUT",data:t})}function k(t){return Object(r.a)({url:"user/set_group",method:"post",data:t})}function x(t){return Object(r.a)({url:"user/user_label",method:"get",params:t})}function C(t,e){return Object(r.a)({url:"user/user_label/add/".concat(t),method:"get",params:e})}function L(t){return Object(r.a)({url:"user/user_label_cate/all",method:"get",params:t})}function S(t){return Object(r.a)({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function F(t){return Object(r.a)({url:"user/user_label_cate/create",method:"get"})}function P(t){return Object(r.a)({url:"/user/member_batch/index",method:"get",params:t})}function M(t,e){return Object(r.a)({url:"/user/member_batch/save/".concat(t),method:"post",data:e})}function E(t,e){return Object(r.a)({url:"/user/member_batch/set_value/".concat(t),method:"get",params:e})}function $(t,e){return Object(r.a)({url:"/user/member_card/index/".concat(t),method:"get",params:e})}function U(t,e){return Object(r.a)({url:"/export/memberCard/".concat(t),method:"get",params:e})}function D(){return Object(r.a)({url:"/user/member/ship",method:"get"})}function T(t,e){return Object(r.a)({url:"/user/member_ship/save/".concat(t),method:"post",data:e})}function N(){return Object(r.a)({url:"/user/user/syncUsers",method:"get"})}function W(){return Object(r.a)({url:"/user/user/create",method:"get"})}function A(){return Object(r.a)({url:"/user/member_scan",method:"get"})}function B(t,e){return Object(r.a)({url:"user/label/".concat(t),method:"post",data:e})}function I(t){return Object(r.a)({url:"user/member_right/save/".concat(t.id),method:"post",data:t})}function z(){return Object(r.a)({url:"user/member/right",method:"get"})}function R(t){return Object(r.a)({url:"/user/member/record",method:"get",params:t})}function J(){return Object(r.a)({url:"user/member/ship_select",method:"get"})}function G(t){return Object(r.a)({url:"user/member_card/set_status",method:"get",params:t})}function V(t){return Object(r.a)({url:"user/member_ship/set_ship_status",method:"get",params:t})}function q(t,e){return Object(r.a)({url:"user/member_agreement/save/".concat(t),method:"post",data:e})}function H(){return Object(r.a)({url:"user/member/agreement",method:"get"})}function K(t){return Object(r.a)({url:"user/give_level_time/".concat(t),method:"get"})}function Q(t){return Object(r.a)({url:"user/label/".concat(t),method:"get"})}function X(t){return Object(r.a)({url:"user/save_set_label",method:"put",data:t})}function Y(t){return Object(r.a)({url:"setting/info",method:"get"})}function Z(t){return Object(r.a)({url:"user/visit_list/".concat(t.id),method:"get",params:t.datas})}function tt(t){return Object(r.a)({url:"user/spread_list/".concat(t.id),method:"get",params:t.datas})}function et(t){return Object(r.a)({url:"user/user/".concat(t.uid),method:"put",data:t})}function nt(t,e){return Object(r.a)({url:"agent/set_agent_agreement/".concat(t),method:"post",data:e})}function rt(){return Object(r.a)({url:"agent/get_agent_agreement",method:"get"})}function ut(){return Object(r.a)({url:"user/synchro/work/label",method:"get"})}function at(t){return Object(r.a)({url:"user/user/extend_info/".concat(t),method:"get"})}function ot(t){return Object(r.a)({url:"user/batch_process",method:"post",data:t})}},dfd5:function(t,e,n){"use strict";n.r(e);var r=n("a34a"),u=n.n(r),a=n("2f62"),o=n("c24f");function c(t,e,n,r,u,a,o){try{var c=t[a](o),i=c.value}catch(t){return void n(t)}c.done?e(i):Promise.resolve(i).then(r,u)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={name:"user_label",data:function(){return{grid:{xl:24,lg:24,md:24,sm:24,xs:24},loading:!1,columns1:[{title:"ID",key:"id",Width:80,minWidth:50,maxWidth:80},{title:"标签名称",key:"label_name"},{title:"操作",slot:"action",align:"center",minWidth:120,maxWidth:140}],labelFrom:{page:1,limit:10,label_cate:""},labelLists:[],total:0,theme3:"light",labelSort:[],sortName:""}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(n,!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(a.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getUserLabelAll()},methods:{add:function(){var t=this,e=this.labelFrom.label_cate?this.labelFrom.label_cate:0;this.$modalForm(Object(o.R)(0,{label_cate:e})).then((function(){return t.getList()}))},getList:function(){var t=this;this.loading=!0,Object(o.T)(this.labelFrom).then(function(){var e,n=(e=u.a.mark((function e(n){var r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.labelLists=r.list,t.total=r.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,u){var a=e.apply(t,n);function o(t){c(a,r,u,o,i,"next",t)}function i(t){c(a,r,u,o,i,"throw",t)}o(void 0)}))});return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.labelFrom.page=t,this.getList()},edit:function(t){var e=this;this.$modalForm(Object(o.R)(t)).then((function(){return e.getList()}))},del:function(t,e,n){var r=this,u={title:e,num:n,url:"user/user_label/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(u).then((function(t){r.$Message.success(t.msg),r.labelLists.splice(n,1),r.labelLists.length||(r.labelFrom.page=1==r.labelFrom.page?1:r.labelFrom.page-1),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))},getUserLabelAll:function(t){var e=this;Object(o.S)().then((function(n){n.data.unshift({name:"全部",id:""}),n.data.forEach((function(t){t.status=!1})),t||(e.sortName=n.data[0].id,e.labelFrom.label_cate=n.data[0].id,e.getList()),e.labelSort=n.data}))},showMenu:function(t){this.labelSort.forEach((function(e){e.id==t.id?e.status=!t.status:e.status=!1}))},labelEdit:function(t){var e=this;this.$modalForm(Object(o.V)(t.id)).then((function(){return e.getUserLabelAll(1)}))},addSort:function(){var t=this;this.$modalForm(Object(o.U)()).then((function(){return t.getUserLabelAll()}))},deleteSort:function(t,e,n){var r=this,u={title:e,num:n,url:"user/user_label_cate/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(u).then((function(t){r.$Message.success(t.msg),r.labelSort.splice(n,1),r.labelSort=[],r.getUserLabelAll()})).catch((function(t){r.$Message.error(t.msg)}))},bindMenuItem:function(t){this.labelSort.forEach((function(t){t.status=!1})),this.labelFrom.page=1,this.labelFrom.label_cate=t.id,this.getList()},userLabeSync:function(){var t=this;Object(o.eb)().then((function(e){t.$Message.success(e.msg)})).catch((function(e){t.$Message.error(e.msg)}))}}},d=(n("e1ea"),n("2877")),m=Object(d.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Row",{staticClass:"ivu-mt box-wrapper"},[t.labelSort.length>0?n("Col",{staticClass:"left-wrapper",attrs:{span:"3"}},[n("Menu",{attrs:{theme:t.theme3,"active-name":t.sortName,width:"auto"}},[n("MenuGroup",t._l(t.labelSort,(function(e,r){return n("MenuItem",{key:r,staticClass:"menu-item",attrs:{name:e.id},nativeOn:{click:function(n){return t.bindMenuItem(e)}}},[t._v("\n "+t._s(e.name)+"\n "),0!=r?n("div",{staticClass:"icon-box"},[n("Icon",{attrs:{type:"ios-more",size:"24"},on:{click:function(n){return n.stopPropagation(),t.showMenu(e)}}})],1):t._e(),0!=r?n("div",{directives:[{name:"show",rawName:"v-show",value:e.status,expression:"item.status"}],staticClass:"right-menu ivu-poptip-inner"},[n("div",{staticClass:"ivu-poptip-body",on:{click:function(n){return t.labelEdit(e)}}},[n("div",{staticClass:"ivu-poptip-body-content"},[n("div",{staticClass:"ivu-poptip-body-content-inner"},[t._v("编辑")])])]),n("div",{staticClass:"ivu-poptip-body",on:{click:function(n){return t.deleteSort(e,"删除分类",r)}}},[n("div",{staticClass:"ivu-poptip-body-content"},[n("div",{staticClass:"ivu-poptip-body-content-inner"},[t._v("删除")])])])]):t._e()])})),1)],1)],1):t._e(),n("Col",{ref:"rightBox",attrs:{span:"21"}},[n("Card",{attrs:{bordered:!1,"dis-hover":""}},[n("Row",{attrs:{type:"flex"}},[n("Col",t._b({},"Col",t.grid,!1),[n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-label_add"],expression:"['admin-user-label_add']"}],attrs:{type:"primary"},on:{click:t.add}},[t._v("添加标签")]),n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-label_add"],expression:"['admin-user-label_add']"}],staticClass:"ml10",attrs:{type:"success"},on:{click:t.addSort}},[t._v("添加分类")]),n("Button",{staticClass:"ml10",attrs:{ghost:"",type:"primary"},on:{click:function(e){return t.userLabeSync()}}},[t._v("同步企业微信标签")])],1)],1),n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.labelLists,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"icons",fn:function(t){var e=t.row;return t.index,[n("viewer",[n("div",{staticClass:"tabBox_img"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.icon,expression:"row.icon"}]})])])]}},{key:"action",fn:function(e){var r=e.row,u=e.index;return[n("a",{on:{click:function(e){return t.edit(r.id)}}},[t._v("修改")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.del(r,"删除标签",u)}}},[t._v("删除")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.labelFrom.limit},on:{"on-change":t.pageChange}})],1)],1)],1)],1)],1)}),[],!1,null,"1e279bba",null);e.default=m.exports},e1ea:function(t,e,n){"use strict";var r=n("7c77");n.n(r).a}}]);
|