2 lines
6.0 KiB
JavaScript
2 lines
6.0 KiB
JavaScript
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8314],{63449:function(M,y,s){s.r(y);var O=s(48305),t=s.n(O),f=s(50959),p=s(94675),i=s(33917),D=s(52495),a=s(11527);y.default=function(v){var o=v.values,j=v.modalOpenState,c=v.onModalOpenState,P=(0,f.useState)(null),m=t()(P,2),A=m[0],T=m[1],w=(0,f.useState)(null),h=t()(w,2),C=h[0],g=h[1];(0,f.useEffect)(function(){o!=null&&o.id&&(0,D.HY)(o==null?void 0:o.id).then(function(d){var _=d.data,u=d.success;u&&(g((_==null?void 0:_.upLevel)||[]),T(_==null?void 0:_.downLevel))}).catch(function(){})},[o]);var E=[{title:"ID",dataIndex:"id",search:!1},{title:"\u7528\u6237",dataIndex:"shop",search:!1,render:function(_,u){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{children:["\u7528\u6237\u540D\uFF1A",u==null?void 0:u.userName]}),(0,a.jsxs)("div",{children:["\u624B\u673A\u53F7\uFF1A",u==null?void 0:u.phone]}),(0,a.jsxs)("div",{children:["\u7B49\u7EA7\uFF1A",u==null?void 0:u.level]})]})}},{title:"\u4F59\u989D",dataIndex:"points2",search:!1},{title:"\u6536\u76CA",dataIndex:"points1",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",search:!1}];return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(p.Z,{width:"800px",title:"",open:j,onOk:function(){c(!1)},onCancel:function(){c(!1)},children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{margin:"15px 0"},children:"\u4E0A\u7EA7"}),(0,a.jsx)(i.Z,{rowKey:"id",columns:E,dataSource:C,pagination:!1}),(0,a.jsx)("div",{style:{margin:"15px 0"},children:"\u4E0B\u7EA7"}),(0,a.jsx)(i.Z,{rowKey:"id",columns:E,dataSource:A,pagination:!1})]})})})}},52495:function(M,y,s){s.d(y,{HY:function(){return E},Xt:function(){return w},_L:function(){return C},_S:function(){return _},bO:function(){return v},bi:function(){return S},nA:function(){return A},rb:function(){return D},t:function(){return P},w2:function(){return F},xD:function(){return j}});var O=s(90228),t=s.n(O),f=s(87999),p=s.n(f),i=s(7485);function D(n){return a.apply(this,arguments)}function a(){return a=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},n)})),a.apply(this,arguments)}function v(n){return o.apply(this,arguments)}function o(){return o=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/add",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},n)})),o.apply(this,arguments)}function j(n){return c.apply(this,arguments)}function c(){return c=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/update",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},n)})),c.apply(this,arguments)}function P(n){return m.apply(this,arguments)}function m(){return m=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/deleteBatchByIds",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},n)})),m.apply(this,arguments)}function A(n){return T.apply(this,arguments)}function T(){return T=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/updateUserLevel",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},n)})),T.apply(this,arguments)}function w(n){return h.apply(this,arguments)}function h(){return h=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/userTransferHanging",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},n)})),h.apply(this,arguments)}function C(n){return g.apply(this,arguments)}function g(){return g=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/export ",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{},responseType:"blob"}));case 1:case"end":return e.stop()}},n)})),g.apply(this,arguments)}function E(n){return d.apply(this,arguments)}function d(){return d=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/upAndDownLevel?id=".concat(r),{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 1:case"end":return e.stop()}},n)})),d.apply(this,arguments)}function _(n){return u.apply(this,arguments)}function u(){return u=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/userRecharge",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},n)})),u.apply(this,arguments)}function S(){return U.apply(this,arguments)}function U(){return U=p()(t()().mark(function n(){return t()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,i.request)("/api/sms/sensitiveSendSms",{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"}}));case 1:case"end":return l.stop()}},n)})),U.apply(this,arguments)}function F(n){return b.apply(this,arguments)}function b(){return b=p()(t()().mark(function n(r){return t()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/users/accountChange",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},n)})),b.apply(this,arguments)}}}]);
|