chunk-c2e8690a.1337676f.js 11 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-c2e8690a"],{be8d:function(t,e,r){"use strict";r.r(e);var n=r("a34a"),u=r.n(n),o=r("2f62"),c=r("c24f");function a(t,e,r,n,u,o,c){try{var a=t[o](c),i=a.value}catch(t){return void r(t)}a.done?e(i):Promise.resolve(i).then(n,u)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={name:"user_group",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[{title:"ID",key:"id",width:80},{title:"分组名称",key:"group_name",minWidth:600},{title:"操作",slot:"action",fixed:"right",minWidth:120,maxWidth:140}],groupFrom:{page:1,limit:10},groupLists:[],total:0}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(r,!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(o.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"left"}}),created:function(){this.getList()},methods:{add:function(){var t=this;this.$modalForm(Object(c.p)(0)).then((function(){return t.getList()}))},getList:function(){var t=this;this.loading=!0,Object(c.Q)(this.groupFrom).then(function(){var e,r=(e=u.a.mark((function e(r){var n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.data,t.groupLists=n.list,t.total=n.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,u){var o=e.apply(t,r);function c(t){a(o,n,u,c,i,"next",t)}function i(t){a(o,n,u,c,i,"throw",t)}c(void 0)}))});return function(t){return r.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.groupFrom.page=t,this.getList()},edit:function(t){var e=this;this.$modalForm(Object(c.p)(t)).then((function(){return e.getList()}))},del:function(t,e,r){var n=this,u={title:e,num:r,url:"user/user_group/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(u).then((function(t){n.$Message.success(t.msg),n.groupLists.splice(r,1),n.groupLists.length||(n.groupFrom.page=1==n.groupFrom.page?1:n.groupFrom.page-1),n.getList()})).catch((function(t){n.$Message.error(t.msg)}))}}},l=r("2877"),f=Object(l.a)(d,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("Row",{attrs:{type:"flex"}},[r("Col",t._b({},"Col",t.grid,!1),[r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-group"],expression:"['admin-user-group']"}],attrs:{type:"primary"},on:{click:t.add}},[t._v("添加分组")])],1)],1),r("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.groupLists,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,[r("viewer",[r("div",{staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.icon,expression:"row.icon"}]})])])]}},{key:"action",fn:function(e){var n=e.row,u=e.index;return[r("a",{on:{click:function(e){return t.edit(n.id)}}},[t._v("修改")]),r("Divider",{attrs:{type:"vertical"}}),r("a",{on:{click:function(e){return t.del(n,"删除分组",u)}}},[t._v("删除")])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.total,"show-elevator":"","show-total":"","page-size":t.groupFrom.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,null,null);e.default=f.exports},c24f:function(t,e,r){"use strict";r.d(e,"W",(function(){return u})),r.d(e,"M",(function(){return o})),r.d(e,"L",(function(){return c})),r.d(e,"k",(function(){return a})),r.d(e,"r",(function(){return i})),r.d(e,"d",(function(){return s})),r.d(e,"h",(function(){return d})),r.d(e,"g",(function(){return l})),r.d(e,"q",(function(){return f})),r.d(e,"s",(function(){return m})),r.d(e,"I",(function(){return g})),r.d(e,"O",(function(){return b})),r.d(e,"K",(function(){return h})),r.d(e,"J",(function(){return p})),r.d(e,"f",(function(){return O})),r.d(e,"e",(function(){return j})),r.d(e,"n",(function(){return _})),r.d(e,"Q",(function(){return v})),r.d(e,"p",(function(){return w})),r.d(e,"P",(function(){return y})),r.d(e,"bb",(function(){return x})),r.d(e,"T",(function(){return k})),r.d(e,"R",(function(){return P})),r.d(e,"S",(function(){return L})),r.d(e,"V",(function(){return F})),r.d(e,"U",(function(){return C})),r.d(e,"X",(function(){return D})),r.d(e,"v",(function(){return E})),r.d(e,"w",(function(){return M})),r.d(e,"Y",(function(){return T})),r.d(e,"i",(function(){return $})),r.d(e,"ab",(function(){return U})),r.d(e,"C",(function(){return S})),r.d(e,"cb",(function(){return W})),r.d(e,"m",(function(){return z})),r.d(e,"Z",(function(){return B})),r.d(e,"F",(function(){return J})),r.d(e,"B",(function(){return N})),r.d(e,"A",(function(){return I})),r.d(e,"z",(function(){return Q})),r.d(e,"D",(function(){return R})),r.d(e,"y",(function(){return q})),r.d(e,"x",(function(){return A})),r.d(e,"u",(function(){return G})),r.d(e,"t",(function(){return H})),r.d(e,"o",(function(){return K})),r.d(e,"l",(function(){return V})),r.d(e,"G",(function(){return X})),r.d(e,"H",(function(){return Y})),r.d(e,"db",(function(){return Z})),r.d(e,"N",(function(){return tt})),r.d(e,"E",(function(){return et})),r.d(e,"b",(function(){return rt})),r.d(e,"a",(function(){return nt})),r.d(e,"eb",(function(){return ut})),r.d(e,"j",(function(){return ot})),r.d(e,"c",(function(){return ct}));var n=r("b6bd");function u(t){return Object(n.a)({url:"user/user",method:"get",params:t})}function o(t){return Object(n.a)({url:"setting/config/user/".concat(t),method:"get"})}function c(t,e){return Object(n.a)({url:"setting/config/user/".concat(t),method:"post",data:e})}function a(t){return Object(n.a)({url:"user/user/".concat(t,"/edit"),method:"get"})}function i(t){return Object(n.a)({url:"user/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}function s(t){return Object(n.a)({url:"marketing/coupon/grant",method:"get",params:t})}function d(t){return Object(n.a)({url:"user/edit_other/".concat(t),method:"get"})}function l(t){return Object(n.a)({url:"user/user/".concat(t),method:"get"})}function f(t){return Object(n.a)({url:"user/one_info/".concat(t.id),method:"get",params:t.datas})}function m(t){return Object(n.a)({url:"user/user_level/vip_list",method:"get",params:t})}function g(t){return Object(n.a)({url:"user/user_level/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function b(t,e){return Object(n.a)({url:"user/user_level/task/".concat(t),method:"get",params:e})}function h(t){return Object(n.a)({url:"user/user_level/set_task_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function p(t){return Object(n.a)({url:"user/user_level/set_task_must/".concat(t.id,"/").concat(t.is_must),method:"PUT"})}function O(t){return Object(n.a)({url:"/user/user_level/create_task",method:"get",params:t})}function j(t){return Object(n.a)({url:"user/user_level/create",method:"get",params:t})}function _(t){return Object(n.a)({url:"user/give_level/".concat(t),method:"get"})}function v(t){return Object(n.a)({url:"user/user_group/list",method:"get",params:t})}function w(t){return Object(n.a)({url:"user/user_group/add/".concat(t),method:"get"})}function y(t){return Object(n.a)({url:"setting/update_admin",method:"PUT",data:t})}function x(t){return Object(n.a)({url:"user/set_group",method:"post",data:t})}function k(t){return Object(n.a)({url:"user/user_label",method:"get",params:t})}function P(t,e){return Object(n.a)({url:"user/user_label/add/".concat(t),method:"get",params:e})}function L(t){return Object(n.a)({url:"user/user_label_cate/all",method:"get",params:t})}function F(t){return Object(n.a)({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function C(t){return Object(n.a)({url:"user/user_label_cate/create",method:"get"})}function D(t){return Object(n.a)({url:"/user/member_batch/index",method:"get",params:t})}function E(t,e){return Object(n.a)({url:"/user/member_batch/save/".concat(t),method:"post",data:e})}function M(t,e){return Object(n.a)({url:"/user/member_batch/set_value/".concat(t),method:"get",params:e})}function T(t,e){return Object(n.a)({url:"/user/member_card/index/".concat(t),method:"get",params:e})}function $(t,e){return Object(n.a)({url:"/export/memberCard/".concat(t),method:"get",params:e})}function U(){return Object(n.a)({url:"/user/member/ship",method:"get"})}function S(t,e){return Object(n.a)({url:"/user/member_ship/save/".concat(t),method:"post",data:e})}function W(){return Object(n.a)({url:"/user/user/syncUsers",method:"get"})}function z(){return Object(n.a)({url:"/user/user/create",method:"get"})}function B(){return Object(n.a)({url:"/user/member_scan",method:"get"})}function J(t,e){return Object(n.a)({url:"user/label/".concat(t),method:"post",data:e})}function N(t){return Object(n.a)({url:"user/member_right/save/".concat(t.id),method:"post",data:t})}function I(){return Object(n.a)({url:"user/member/right",method:"get"})}function Q(t){return Object(n.a)({url:"/user/member/record",method:"get",params:t})}function R(){return Object(n.a)({url:"user/member/ship_select",method:"get"})}function q(t){return Object(n.a)({url:"user/member_card/set_status",method:"get",params:t})}function A(t){return Object(n.a)({url:"user/member_ship/set_ship_status",method:"get",params:t})}function G(t,e){return Object(n.a)({url:"user/member_agreement/save/".concat(t),method:"post",data:e})}function H(){return Object(n.a)({url:"user/member/agreement",method:"get"})}function K(t){return Object(n.a)({url:"user/give_level_time/".concat(t),method:"get"})}function V(t){return Object(n.a)({url:"user/label/".concat(t),method:"get"})}function X(t){return Object(n.a)({url:"user/save_set_label",method:"put",data:t})}function Y(t){return Object(n.a)({url:"setting/info",method:"get"})}function Z(t){return Object(n.a)({url:"user/visit_list/".concat(t.id),method:"get",params:t.datas})}function tt(t){return Object(n.a)({url:"user/spread_list/".concat(t.id),method:"get",params:t.datas})}function et(t){return Object(n.a)({url:"user/user/".concat(t.uid),method:"put",data:t})}function rt(t,e){return Object(n.a)({url:"agent/set_agent_agreement/".concat(t),method:"post",data:e})}function nt(){return Object(n.a)({url:"agent/get_agent_agreement",method:"get"})}function ut(){return Object(n.a)({url:"user/synchro/work/label",method:"get"})}function ot(t){return Object(n.a)({url:"user/user/extend_info/".concat(t),method:"get"})}function ct(t){return Object(n.a)({url:"user/batch_process",method:"post",data:t})}}}]);