You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
18 KiB
1 lines
18 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-c2e8690a"],{be8d:function(t,e,r){"use strict";r.r(e);var n=r("2f62"),o=r("c24f");function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var u=e&&e.prototype instanceof y?e:y,i=Object.create(u.prototype),a=new N(n||[]);return o(i,"_invoke",{value:P(t,r,a)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var m="suspendedStart",p="suspendedYield",g="executing",b="completed",v={};function y(){}function O(){}function j(){}var _={};f(_,c,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(C([])));x&&x!==r&&n.call(x,c)&&(_=x);var L=j.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var s=h(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=m;return function(u,i){if(o===g)throw Error("Generator is already running");if(o===b){if("throw"===u)throw i;return{value:t,done:!0}}for(n.method=u,n.arg=i;;){var a=n.delegate;if(a){var c=S(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?b:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=b,n.method="throw",n.arg=s.arg)}}}function S(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var u=h(o,e.iterator,r.arg);if("throw"===u.type)return r.method="throw",r.arg=u.arg,r.delegate=null,v;var i=u.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function F(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(F,this),this.reset(!0)}function C(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return O.prototype=j,o(L,"constructor",{value:j,configurable:!0}),o(j,"constructor",{value:O,configurable:!0}),O.displayName=f(j,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===O||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,f(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},E(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,u){void 0===u&&(u=Promise);var i=new k(d(t,r,n,o),u);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(L),f(L,l,"Generator"),f(L,c,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var u=this.tryEntries.length-1;u>=0;--u){var i=this.tryEntries[u],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var u=o;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=e&&e<=u.finallyLoc&&(u=null);var i=u?u.completion:{};return i.type=t,i.arg=e,u?(this.method="next",this.next=u.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:C(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function a(t,e,r,n,o,u,i){try{var a=t[u](i),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function c(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){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f={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:s(s({},Object(n.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(o.p)(0)).then((function(){return t.getList()}))},getList:function(){var t=this;this.loading=!0,Object(o.R)(this.groupFrom).then(function(){var e,r=(e=i().mark((function e(r){var n;return i().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,o){var u=e.apply(t,r);function i(t){a(u,n,o,i,c,"next",t)}function c(t){a(u,n,o,i,c,"throw",t)}i(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(o.p)(t)).then((function(){return e.getList()}))},del:function(t,e,r){var n=this,o={title:e,num:r,url:"user/user_group/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(o).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)}))}}},d=r("2877"),h=Object(d.a)(f,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Row",{attrs:{type:"flex"}},[e("Col",t._b({},"Col",t.grid,!1),[e("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),e("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 r=t.row;return t.index,[e("viewer",[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.icon,expression:"row.icon"}]})])])]}},{key:"action",fn:function(r){var n=r.row,o=r.index;return[e("a",{on:{click:function(e){return t.edit(n.id)}}},[t._v("修改")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(n,"删除分组",o)}}},[t._v("删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("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=h.exports},c24f:function(t,e,r){"use strict";r.d(e,"X",(function(){return o})),r.d(e,"N",(function(){return u})),r.d(e,"M",(function(){return i})),r.d(e,"k",(function(){return a})),r.d(e,"r",(function(){return c})),r.d(e,"d",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"g",(function(){return f})),r.d(e,"q",(function(){return d})),r.d(e,"s",(function(){return h})),r.d(e,"J",(function(){return m})),r.d(e,"P",(function(){return p})),r.d(e,"L",(function(){return g})),r.d(e,"K",(function(){return b})),r.d(e,"f",(function(){return v})),r.d(e,"e",(function(){return y})),r.d(e,"n",(function(){return O})),r.d(e,"R",(function(){return j})),r.d(e,"p",(function(){return _})),r.d(e,"Q",(function(){return w})),r.d(e,"cb",(function(){return x})),r.d(e,"U",(function(){return L})),r.d(e,"S",(function(){return E})),r.d(e,"T",(function(){return k})),r.d(e,"W",(function(){return P})),r.d(e,"V",(function(){return S})),r.d(e,"Y",(function(){return F})),r.d(e,"v",(function(){return T})),r.d(e,"w",(function(){return N})),r.d(e,"Z",(function(){return C})),r.d(e,"i",(function(){return G})),r.d(e,"bb",(function(){return D})),r.d(e,"C",(function(){return M})),r.d(e,"db",(function(){return U})),r.d(e,"m",(function(){return $})),r.d(e,"ab",(function(){return I})),r.d(e,"F",(function(){return W})),r.d(e,"B",(function(){return z})),r.d(e,"A",(function(){return A})),r.d(e,"z",(function(){return B})),r.d(e,"D",(function(){return J})),r.d(e,"y",(function(){return R})),r.d(e,"x",(function(){return Y})),r.d(e,"u",(function(){return q})),r.d(e,"t",(function(){return H})),r.d(e,"o",(function(){return K})),r.d(e,"l",(function(){return Q})),r.d(e,"G",(function(){return V})),r.d(e,"I",(function(){return X})),r.d(e,"eb",(function(){return Z})),r.d(e,"O",(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,"fb",(function(){return ot})),r.d(e,"j",(function(){return ut})),r.d(e,"c",(function(){return it})),r.d(e,"H",(function(){return at}));var n=r("b6bd");function o(t){return Object(n.a)({url:"user/user",method:"get",params:t})}function u(t){return Object(n.a)({url:"setting/config/user/".concat(t),method:"get"})}function i(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 c(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 l(t){return Object(n.a)({url:"user/edit_other/".concat(t),method:"get"})}function f(t){return Object(n.a)({url:"user/user/".concat(t),method:"get"})}function d(t){return Object(n.a)({url:"user/one_info/".concat(t.id),method:"get",params:t.datas})}function h(t){return Object(n.a)({url:"user/user_level/vip_list",method:"get",params:t})}function m(t){return Object(n.a)({url:"user/user_level/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function p(t,e){return Object(n.a)({url:"user/user_level/task/".concat(t),method:"get",params:e})}function g(t){return Object(n.a)({url:"user/user_level/set_task_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function b(t){return Object(n.a)({url:"user/user_level/set_task_must/".concat(t.id,"/").concat(t.is_must),method:"PUT"})}function v(t){return Object(n.a)({url:"/user/user_level/create_task",method:"get",params:t})}function y(t){return Object(n.a)({url:"user/user_level/create",method:"get",params:t})}function O(t){return Object(n.a)({url:"user/give_level/".concat(t),method:"get"})}function j(t){return Object(n.a)({url:"user/user_group/list",method:"get",params:t})}function _(t){return Object(n.a)({url:"user/user_group/add/".concat(t),method:"get"})}function w(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 L(t){return Object(n.a)({url:"user/user_label",method:"get",params:t})}function E(t,e){return Object(n.a)({url:"user/user_label/add/".concat(t),method:"get",params:e})}function k(t){return Object(n.a)({url:"user/user_label_cate/all",method:"get",params:t})}function P(t){return Object(n.a)({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function S(t){return Object(n.a)({url:"user/user_label_cate/create",method:"get"})}function F(t){return Object(n.a)({url:"/user/member_batch/index",method:"get",params:t})}function T(t,e){return Object(n.a)({url:"/user/member_batch/save/".concat(t),method:"post",data:e})}function N(t,e){return Object(n.a)({url:"/user/member_batch/set_value/".concat(t),method:"get",params:e})}function C(t,e){return Object(n.a)({url:"/user/member_card/index/".concat(t),method:"get",params:e})}function G(t,e){return Object(n.a)({url:"/export/memberCard/".concat(t),method:"get",params:e})}function D(){return Object(n.a)({url:"/user/member/ship",method:"get"})}function M(t,e){return Object(n.a)({url:"/user/member_ship/save/".concat(t),method:"post",data:e})}function U(){return Object(n.a)({url:"/user/user/syncUsers",method:"get"})}function $(){return Object(n.a)({url:"/user/user/create",method:"get"})}function I(){return Object(n.a)({url:"/user/member_scan",method:"get"})}function W(t,e){return Object(n.a)({url:"user/label/".concat(t),method:"post",data:e})}function z(t){return Object(n.a)({url:"user/member_right/save/".concat(t.id),method:"post",data:t})}function A(){return Object(n.a)({url:"user/member/right",method:"get"})}function B(t){return Object(n.a)({url:"/user/member/record",method:"get",params:t})}function J(){return Object(n.a)({url:"user/member/ship_select",method:"get"})}function R(t){return Object(n.a)({url:"user/member_card/set_status",method:"get",params:t})}function Y(t){return Object(n.a)({url:"user/member_ship/set_ship_status",method:"get",params:t})}function q(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 Q(t){return Object(n.a)({url:"user/label/".concat(t),method:"get"})}function V(t){return Object(n.a)({url:"user/save_set_label",method:"put",data:t})}function X(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 ot(){return Object(n.a)({url:"user/synchro/work/label",method:"get"})}function ut(t){return Object(n.a)({url:"user/user/extend_info/".concat(t),method:"get"})}function it(t){return Object(n.a)({url:"user/batch_process",method:"post",data:t})}function at(t,e){return Object(n.a)({url:"/user/member/save/content/".concat(t),method:"post",data:e})}}}]); |