修改文件
This commit is contained in:
1
.env.development
Normal file
1
.env.development
Normal file
@@ -0,0 +1 @@
|
||||
API_BASEURL=
|
||||
1
.env.production
Normal file
1
.env.production
Normal file
@@ -0,0 +1 @@
|
||||
API_BASEURL=https://iadminapi.zhongshuai2023.com
|
||||
@@ -34,4 +34,8 @@ export default [
|
||||
path: '/',
|
||||
redirect: '/404',
|
||||
},
|
||||
{
|
||||
path: '/system/uppass',
|
||||
redirect: '/system/uppass',
|
||||
},
|
||||
];
|
||||
|
||||
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -8,6 +8,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script src="/umi.2c941af4.js"></script>
|
||||
<script src="/umi.924b8a80.js"></script>
|
||||
|
||||
</body></html>
|
||||
File diff suppressed because one or more lines are too long
1
dist/src__pages__finance__earnings__index.914fca32.async.js
vendored
Normal file
1
dist/src__pages__finance__earnings__index.914fca32.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2722],{15643:function(b,m,t){t.r(m);var T=t(90228),a=t.n(T),E=t(87999),s=t.n(E),i=t(19869),y=t(50959),p=t(16030),P=t(35384),u=t(11527),g=function(){var v=(0,y.useRef)(),d=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u7528\u6237ID",dataIndex:"userId",valueType:"text",search:!1},{title:"\u94B1\u5305",dataIndex:"points2",valueType:"text",search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateTime",valueType:"text",search:!1},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createTime",valueType:"text",search:!1}];return(0,u.jsx)(p._z,{children:(0,u.jsx)("div",{style:{width:"100%",float:"right"},children:(0,u.jsx)(P.Z,{actionRef:v,rowKey:"id",search:{labelWidth:120},request:function(){var D=s()(a()().mark(function o(f,c,n){var r,_;return a()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,(0,i.xY)(f);case 2:return r=l.sent,_=r.data,l.abrupt("return",{data:(_==null?void 0:_.records)||[],total:_==null?void 0:_.total});case 5:case"end":return l.stop()}},o)}));return function(o,f,c){return D.apply(this,arguments)}}(),columns:d},"logList")})})};m.default=g},19869:function(b,m,t){t.d(m,{G6:function(){return f},I7:function(){return g},eq:function(){return P},hT:function(){return v},xY:function(){return y}});var T=t(90228),a=t.n(T),E=t(87999),s=t.n(E),i=t(7485);function y(n){return p.apply(this,arguments)}function p(){return p=s()(a()().mark(function n(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/userspoints/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{}}));case 1:case"end":return e.stop()}},n)})),p.apply(this,arguments)}function P(n){return u.apply(this,arguments)}function u(){return u=s()(a()().mark(function n(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/userspoints/extract/page",{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 g(n){return h.apply(this,arguments)}function h(){return h=s()(a()().mark(function n(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/userspoints/record/page",{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 v(n){return d.apply(this,arguments)}function d(){return d=s()(a()().mark(function n(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/userspoints/points/extract/export",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{},responseType:"blob"}));case 1:case"end":return e.stop()}},n)})),d.apply(this,arguments)}function D(n){return o.apply(this,arguments)}function o(){return o=_asyncToGenerator(_regeneratorRuntime().mark(function n(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/userspoints/points/export",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{},responseType:"blob"}));case 1:case"end":return e.stop()}},n)})),o.apply(this,arguments)}function f(n){return c.apply(this,arguments)}function c(){return c=s()(a()().mark(function n(r){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/userspoints/points/record/export",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:r||{},responseType:"blob"}));case 1:case"end":return e.stop()}},n)})),c.apply(this,arguments)}}}]);
|
||||
1
dist/src__pages__finance__integral__index.bbdfd9a7.async.js
vendored
Normal file
1
dist/src__pages__finance__integral__index.bbdfd9a7.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__finance__variation__index.efafac5a.async.js
vendored
Normal file
1
dist/src__pages__finance__variation__index.efafac5a.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__finance__withdraw__index.175af894.async.js
vendored
Normal file
1
dist/src__pages__finance__withdraw__index.175af894.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2341],{83301:function(R,P,e){e.r(P);var y=e(90228),t=e.n(y),M=e(87999),o=e.n(M),i=e(40785),T=e(7485),m=e(50959),O=e(52221),h=e(47698),I=e(45321),p=e(50159),C=e(16030),g=e(35384),r=e(75343),a=e(11527),f=function(){var j=(0,m.useRef)(),U=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName",valueType:"text",search:!1},{title:"\u529F\u7387",dataIndex:"itemType",valueType:"text",search:!1},{title:"\u9500\u552E\u4EF7\u683C",dataIndex:"salePrice",valueType:"text",search:!1},{title:"\u5229\u6DA6",dataIndex:"profit",valueType:"text",search:!1},{title:"\u5E93\u5B58",dataIndex:"stock",valueType:"text",search:!1},{title:"\u9500\u91CF",dataIndex:"sales",valueType:"text",search:!1},{title:"\u5546\u54C1\u4E3B\u56FE",dataIndex:"picture",valueType:"text",search:!1,render:function(l,d){var s=d.picture?JSON.parse(d.picture)[0]:"";return s?(0,a.jsx)(O.Z,{src:s,width:50}):""}},{title:"\u662F\u5426\u4E0A\u67B6",dataIndex:"isUp",valueType:"text",search:!1,render:function(l,d){var s=function(){var x=o()(t()().mark(function v(_){var c,u;return t()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return c=JSON.parse(JSON.stringify(d)),c.isUp=_?1:0,c.goodsDataList=c.goodsPackagesItemsVo.map(function(A){var B=A.goodsId,L=A.goodsNum;return{goodsId:B,goodsNum:L}}),D.next=5,(0,i.jQ)(c);case 5:u=D.sent,h.ZP.success(_?"\u4E0A\u67B6\u6210\u529F":"\u4E0B\u67B6\u6210\u529F"),j.current&&j.current.reload();case 8:case"end":return D.stop()}},v)}));return function(_){return x.apply(this,arguments)}}();return(0,a.jsx)(I.Z,{checkedChildren:"\u4E0A\u67B6",unCheckedChildren:"\u4E0B\u67B6",defaultChecked:!0,onChange:s})}},{title:"\u64CD\u4F5C",dataIndex:"option",width:"220px",valueType:"option",render:function(l,d){return[(0,a.jsx)(p.ZP,{type:"link",size:"small",onClick:function(){T.history.push("goodsSetMeal/".concat(d.id,"/update"))},children:"\u7F16\u8F91"},"api/sys/menu/update")]}}];return(0,a.jsx)(C._z,{children:(0,a.jsx)("div",{style:{width:"100%",float:"right"},children:(0,a.jsx)(g.Z,{actionRef:j,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,a.jsxs)(p.ZP,{type:"primary",onClick:o()(t()().mark(function l(){return t()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:T.history.push("goodsSetMeal/0/create");case 1:case"end":return s.stop()}},l)})),children:[(0,a.jsx)(r.Z,{})," \u65B0\u5EFA"]},"add")]},request:function(){var E=o()(t()().mark(function l(d,s,x){var v,_;return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,i.LD)(d);case 2:return v=u.sent,_=v.data,u.abrupt("return",{data:(_==null?void 0:_.records)||[],total:_==null?void 0:_.total});case 5:case"end":return u.stop()}},l)}));return function(l,d,s){return E.apply(this,arguments)}}(),columns:U},"goodsSetMealList")})})};P.default=f},40785:function(R,P,e){e.d(P,{LD:function(){return T},MI:function(){return O},Zg:function(){return C},jQ:function(){return I}});var y=e(90228),t=e.n(y),M=e(87999),o=e.n(M),i=e(7485);function T(r){return m.apply(this,arguments)}function m(){return m=o()(t()().mark(function r(a){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goodspackages/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return n.stop()}},r)})),m.apply(this,arguments)}function O(r){return h.apply(this,arguments)}function h(){return h=o()(t()().mark(function r(a){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goodspackages/add",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return n.stop()}},r)})),h.apply(this,arguments)}function I(r){return p.apply(this,arguments)}function p(){return p=o()(t()().mark(function r(a){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goodspackages/update",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:a||{}}));case 1:case"end":return n.stop()}},r)})),p.apply(this,arguments)}function C(r){return g.apply(this,arguments)}function g(){return g=o()(t()().mark(function r(a){return t()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goodspackages/detail",{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"},params:a}));case 1:case"end":return n.stop()}},r)})),g.apply(this,arguments)}}}]);
|
||||
1
dist/src__pages__goodsSetMeal__index.527178ce.async.js
vendored
Normal file
1
dist/src__pages__goodsSetMeal__index.527178ce.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2341],{83301:function(R,P,e){e.r(P);var y=e(90228),t=e.n(y),M=e(87999),o=e.n(M),l=e(40785),T=e(7485),m=e(50959),O=e(52221),h=e(47698),I=e(45321),p=e(50159),C=e(16030),g=e(35384),r=e(75343),n=e(11527),f=function(){var j=(0,m.useRef)(),U=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u5957\u9910\u540D\u79F0",dataIndex:"packagesName",valueType:"text",search:!0},{title:"\u529F\u7387",dataIndex:"itemType",valueType:"text",search:!1},{title:"\u9500\u552E\u4EF7\u683C",dataIndex:"salePrice",valueType:"text",search:!1},{title:"\u5229\u6DA6",dataIndex:"profit",valueType:"text",search:!1},{title:"\u5E93\u5B58",dataIndex:"stock",valueType:"text",search:!1},{title:"\u9500\u91CF",dataIndex:"sales",valueType:"text",search:!1},{title:"\u5546\u54C1\u4E3B\u56FE",dataIndex:"picture",valueType:"text",search:!1,render:function(i,d){var s=d.picture?JSON.parse(d.picture)[0]:"";return s?(0,n.jsx)(O.Z,{src:s,width:50}):""}},{title:"\u662F\u5426\u4E0A\u67B6",dataIndex:"isUp",valueType:"text",search:!1,render:function(i,d){var s=function(){var x=o()(t()().mark(function v(_){var c,u;return t()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return c=JSON.parse(JSON.stringify(d)),c.isUp=_?1:0,c.goodsDataList=c.goodsPackagesItemsVo.map(function(A){var B=A.goodsId,L=A.goodsNum;return{goodsId:B,goodsNum:L}}),D.next=5,(0,l.jQ)(c);case 5:u=D.sent,h.ZP.success(_?"\u4E0A\u67B6\u6210\u529F":"\u4E0B\u67B6\u6210\u529F"),j.current&&j.current.reload();case 8:case"end":return D.stop()}},v)}));return function(_){return x.apply(this,arguments)}}();return(0,n.jsx)(I.Z,{checkedChildren:"\u4E0A\u67B6",unCheckedChildren:"\u4E0B\u67B6",defaultChecked:!0,onChange:s})}},{title:"\u64CD\u4F5C",dataIndex:"option",width:"220px",valueType:"option",render:function(i,d){return[(0,n.jsx)(p.ZP,{type:"link",size:"small",onClick:function(){T.history.push("goodsSetMeal/".concat(d.id,"/update"))},children:"\u7F16\u8F91"},"api/sys/menu/update")]}}];return(0,n.jsx)(C._z,{children:(0,n.jsx)("div",{style:{width:"100%",float:"right"},children:(0,n.jsx)(g.Z,{actionRef:j,rowKey:"id",search:{labelWidth:120,defaultCollapsed:!1},toolBarRender:function(){return[(0,n.jsxs)(p.ZP,{type:"primary",onClick:o()(t()().mark(function i(){return t()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:T.history.push("goodsSetMeal/0/create");case 1:case"end":return s.stop()}},i)})),children:[(0,n.jsx)(r.Z,{})," \u65B0\u5EFA"]},"add")]},request:function(){var E=o()(t()().mark(function i(d,s,x){var v,_;return t()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,(0,l.LD)(d);case 2:return v=u.sent,_=v.data,u.abrupt("return",{data:(_==null?void 0:_.records)||[],total:_==null?void 0:_.total});case 5:case"end":return u.stop()}},i)}));return function(i,d,s){return E.apply(this,arguments)}}(),columns:U},"goodsSetMealList")})})};P.default=f},40785:function(R,P,e){e.d(P,{LD:function(){return T},MI:function(){return O},Zg:function(){return C},jQ:function(){return I}});var y=e(90228),t=e.n(y),M=e(87999),o=e.n(M),l=e(7485);function T(r){return m.apply(this,arguments)}function m(){return m=o()(t()().mark(function r(n){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,l.request)("/api/goodspackages/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:n||{}}));case 1:case"end":return a.stop()}},r)})),m.apply(this,arguments)}function O(r){return h.apply(this,arguments)}function h(){return h=o()(t()().mark(function r(n){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,l.request)("/api/goodspackages/add",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:n||{}}));case 1:case"end":return a.stop()}},r)})),h.apply(this,arguments)}function I(r){return p.apply(this,arguments)}function p(){return p=o()(t()().mark(function r(n){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,l.request)("/api/goodspackages/update",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:n||{}}));case 1:case"end":return a.stop()}},r)})),p.apply(this,arguments)}function C(r){return g.apply(this,arguments)}function g(){return g=o()(t()().mark(function r(n){return t()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,l.request)("/api/goodspackages/detail",{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"},params:n}));case 1:case"end":return a.stop()}},r)})),g.apply(this,arguments)}}}]);
|
||||
1
dist/src__pages__goods__index.5b10cf5b.async.js
vendored
Normal file
1
dist/src__pages__goods__index.5b10cf5b.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3759],{63937:function(j,T,e){e.r(T);var y=e(90228),a=e.n(y),O=e(87999),u=e.n(O),i=e(72951),D=e(7485),c=e(50959),M=e(52221),m=e(47698),C=e(45321),p=e(50159),I=e(16030),h=e(35384),r=e(75343),t=e(11527),f=function(){var x=(0,c.useRef)(),R=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName",valueType:"text",search:!0},{title:"\u529F\u7387",dataIndex:"itemType",valueType:"text",search:!1},{title:"\u9500\u552E\u4EF7\u683C",dataIndex:"salePrice",valueType:"text",search:!1},{title:"\u5229\u6DA6",dataIndex:"profit",valueType:"text",search:!1},{title:"\u5E93\u5B58",dataIndex:"stock",valueType:"text",search:!1},{title:"\u9500\u91CF",dataIndex:"sales",valueType:"text",search:!1},{title:"\u5546\u54C1\u4E3B\u56FE",dataIndex:"picture",valueType:"text",search:!1,render:function(l,_){var s=_.picture?JSON.parse(_.picture)[0]:"";return s?(0,t.jsx)(M.Z,{src:s,width:50}):""}},{title:"\u662F\u5426\u4E0A\u67B6",dataIndex:"isUp",valueType:"text",search:!1,render:function(l,_){var s=function(){var A=u()(a()().mark(function v(d){var g,o;return a()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return g=JSON.parse(JSON.stringify(_)),g.isUp=d?1:0,P.next=4,(0,i.Ge)(g);case 4:o=P.sent,m.ZP.success(d?"\u4E0A\u67B6\u6210\u529F":"\u4E0B\u67B6\u6210\u529F"),x.current&&x.current.reload();case 7:case"end":return P.stop()}},v)}));return function(d){return A.apply(this,arguments)}}();return(0,t.jsx)(C.Z,{checkedChildren:"\u4E0A\u67B6",value:_.isUp==1,unCheckedChildren:"\u4E0B\u67B6",defaultChecked:!0,onChange:s})}},{title:"\u64CD\u4F5C",dataIndex:"option",width:"220px",valueType:"option",render:function(l,_){return[(0,t.jsx)(p.ZP,{type:"link",size:"small",onClick:function(){D.history.push("goods/".concat(_.id,"/update"))},children:"\u7F16\u8F91"})]}}];return(0,t.jsx)(I._z,{children:(0,t.jsx)("div",{style:{width:"100%",float:"right"},children:(0,t.jsx)(h.Z,{actionRef:x,rowKey:"id",search:{labelWidth:120,defaultCollapsed:!1},toolBarRender:function(){return[(0,t.jsxs)(p.ZP,{type:"primary",onClick:u()(a()().mark(function l(){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:D.history.push("goods/0/create");case 1:case"end":return s.stop()}},l)})),children:[(0,t.jsx)(r.Z,{})," \u65B0\u5EFA"]},"add")]},request:function(){var E=u()(a()().mark(function l(_,s,A){var v,d;return a()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,i.k5)(_);case 2:return v=o.sent,d=v.data,o.abrupt("return",{data:(d==null?void 0:d.records)||[],total:d==null?void 0:d.total});case 5:case"end":return o.stop()}},l)}));return function(l,_,s){return E.apply(this,arguments)}}(),columns:R},"goodsList")})})};T.default=f},72951:function(j,T,e){e.d(T,{Ge:function(){return C},VT:function(){return I},Y:function(){return M},k5:function(){return D}});var y=e(90228),a=e.n(y),O=e(87999),u=e.n(O),i=e(7485);function D(r){return c.apply(this,arguments)}function c(){return c=u()(a()().mark(function r(t){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goods/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return n.stop()}},r)})),c.apply(this,arguments)}function M(r){return m.apply(this,arguments)}function m(){return m=u()(a()().mark(function r(t){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goods/add",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return n.stop()}},r)})),m.apply(this,arguments)}function C(r){return p.apply(this,arguments)}function p(){return p=u()(a()().mark(function r(t){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goods/update",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return n.stop()}},r)})),p.apply(this,arguments)}function I(r){return h.apply(this,arguments)}function h(){return h=u()(a()().mark(function r(t){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goods/detail",{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"},params:t}));case 1:case"end":return n.stop()}},r)})),h.apply(this,arguments)}}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3759],{63937:function(j,T,e){e.r(T);var y=e(90228),a=e.n(y),O=e(87999),u=e.n(O),i=e(72951),D=e(7485),c=e(50959),M=e(52221),m=e(47698),C=e(45321),p=e(50159),I=e(16030),h=e(35384),r=e(75343),t=e(11527),f=function(){var x=(0,c.useRef)(),R=[{title:"ID",dataIndex:"id",valueType:"text",search:!1},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName",valueType:"text",search:!1},{title:"\u529F\u7387",dataIndex:"itemType",valueType:"text",search:!1},{title:"\u9500\u552E\u4EF7\u683C",dataIndex:"salePrice",valueType:"text",search:!1},{title:"\u5229\u6DA6",dataIndex:"profit",valueType:"text",search:!1},{title:"\u5E93\u5B58",dataIndex:"stock",valueType:"text",search:!1},{title:"\u9500\u91CF",dataIndex:"sales",valueType:"text",search:!1},{title:"\u5546\u54C1\u4E3B\u56FE",dataIndex:"picture",valueType:"text",search:!1,render:function(l,_){var s=_.picture?JSON.parse(_.picture)[0]:"";return s?(0,t.jsx)(M.Z,{src:s,width:50}):""}},{title:"\u662F\u5426\u4E0A\u67B6",dataIndex:"isUp",valueType:"text",search:!1,render:function(l,_){var s=function(){var A=u()(a()().mark(function v(d){var g,o;return a()().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return g=JSON.parse(JSON.stringify(_)),g.isUp=d?1:0,P.next=4,(0,i.Ge)(g);case 4:o=P.sent,m.ZP.success(d?"\u4E0A\u67B6\u6210\u529F":"\u4E0B\u67B6\u6210\u529F"),x.current&&x.current.reload();case 7:case"end":return P.stop()}},v)}));return function(d){return A.apply(this,arguments)}}();return(0,t.jsx)(C.Z,{checkedChildren:"\u4E0A\u67B6",value:_.isUp==1,unCheckedChildren:"\u4E0B\u67B6",defaultChecked:!0,onChange:s})}},{title:"\u64CD\u4F5C",dataIndex:"option",width:"220px",valueType:"option",render:function(l,_){return[(0,t.jsx)(p.ZP,{type:"link",size:"small",onClick:function(){D.history.push("goods/".concat(_.id,"/update"))},children:"\u7F16\u8F91"})]}}];return(0,t.jsx)(I._z,{children:(0,t.jsx)("div",{style:{width:"100%",float:"right"},children:(0,t.jsx)(h.Z,{actionRef:x,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,t.jsxs)(p.ZP,{type:"primary",onClick:u()(a()().mark(function l(){return a()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:D.history.push("goods/0/create");case 1:case"end":return s.stop()}},l)})),children:[(0,t.jsx)(r.Z,{})," \u65B0\u5EFA"]},"add")]},request:function(){var E=u()(a()().mark(function l(_,s,A){var v,d;return a()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,i.k5)(_);case 2:return v=o.sent,d=v.data,o.abrupt("return",{data:(d==null?void 0:d.records)||[],total:d==null?void 0:d.total});case 5:case"end":return o.stop()}},l)}));return function(l,_,s){return E.apply(this,arguments)}}(),columns:R},"goodsList")})})};T.default=f},72951:function(j,T,e){e.d(T,{Ge:function(){return C},VT:function(){return I},Y:function(){return M},k5:function(){return D}});var y=e(90228),a=e.n(y),O=e(87999),u=e.n(O),i=e(7485);function D(r){return c.apply(this,arguments)}function c(){return c=u()(a()().mark(function r(t){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goods/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return n.stop()}},r)})),c.apply(this,arguments)}function M(r){return m.apply(this,arguments)}function m(){return m=u()(a()().mark(function r(t){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goods/add",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return n.stop()}},r)})),m.apply(this,arguments)}function C(r){return p.apply(this,arguments)}function p(){return p=u()(a()().mark(function r(t){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goods/update",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t||{}}));case 1:case"end":return n.stop()}},r)})),p.apply(this,arguments)}function I(r){return h.apply(this,arguments)}function h(){return h=u()(a()().mark(function r(t){return a()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.request)("/api/goods/detail",{method:"GET",headers:{"Content-Type":"application/json;charset=UTF-8"},params:t}));case 1:case"end":return n.stop()}},r)})),h.apply(this,arguments)}}}]);
|
||||
1
dist/src__pages__note__note__index.08b77db8.async.js
vendored
Normal file
1
dist/src__pages__note__note__index.08b77db8.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__components__EscFormModal.9ccb692c.async.js
vendored
Normal file
1
dist/src__pages__order__components__EscFormModal.9ccb692c.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__order__index.73edb8a1.async.js
vendored
Normal file
1
dist/src__pages__order__index.73edb8a1.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__piles__index.907ccf4b.async.js
vendored
Normal file
1
dist/src__pages__piles__index.907ccf4b.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__uppass__index.d3b3a79d.async.js
vendored
Normal file
1
dist/src__pages__system__uppass__index.d3b3a79d.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9966],{35763:function(v,P,r){r.r(P);var O=r(90228),a=r.n(O),T=r(26068),i=r.n(T),o=r(87999),g=r.n(o),l=r(47698),j=r(16030),p=r(49547),m=r(19014),c=r(7485),M=r(97150),h=r(86695),s=r(11527);P.default=function(){var f=function(){var y=g()(a()().mark(function u(D){var d,n,t,_,e,b,C,A;return a()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return d=JSON.parse(JSON.stringify(D)),E.next=3,(0,h.J$)(i()({},d));case 3:n=E.sent,t=n.success,t&&(l.ZP.success("\u4FEE\u6539\u6210\u529F,\u8BF7\u91CD\u65B0\u767B\u5F55"),_=window.location,e=_.search,b=_.pathname,C=new URL(window.location.href).searchParams,A=C.get("redirect"),localStorage.removeItem("token"),window.location.pathname!=="/user/login"&&!A&&c.history.replace({pathname:"/user/login",search:(0,M.stringify)({redirect:b+e})}));case 6:case"end":return E.stop()}},u)}));return function(D){return y.apply(this,arguments)}}();return(0,s.jsx)(j._z,{header:{title:"\u91CD\u7F6E\u5BC6\u7801"},children:(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(p.A,{onFinish:function(u){f(u)},children:[(0,s.jsx)(m.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],width:300,name:"oldPassword",label:"\u539F\u5BC6\u7801",placeholder:"\u539F\u5BC6\u7801"}),(0,s.jsx)(m.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],width:300,name:"newPassword",label:"\u65B0\u5BC6\u7801",placeholder:"\u65B0\u5BC6\u7801"}),(0,s.jsx)(m.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}],width:300,name:"passwordSure",label:"\u786E\u8BA4\u5BC6\u7801",placeholder:"\u786E\u8BA4\u5BC6\u7801"})]})})})}},86695:function(v,P,r){r.d(P,{DZ:function(){return y},J$:function(){return D},RF:function(){return j},pf:function(){return m},tL:function(){return g}});var O=r(90228),a=r.n(O),T=r(87999),i=r.n(T),o=r(7485);function g(n){return l.apply(this,arguments)}function l(){return l=i()(a()().mark(function n(t){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.request)("/api/sys/user/page",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t}));case 1:case"end":return e.stop()}},n)})),l.apply(this,arguments)}function j(n){return p.apply(this,arguments)}function p(){return p=i()(a()().mark(function n(t){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.request)("/api/sys/user/add",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t}));case 1:case"end":return e.stop()}},n)})),p.apply(this,arguments)}function m(n){return c.apply(this,arguments)}function c(){return c=i()(a()().mark(function n(t){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.request)("/api/sys/user/update",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t}));case 1:case"end":return e.stop()}},n)})),c.apply(this,arguments)}function M(n){return h.apply(this,arguments)}function h(){return h=_asyncToGenerator(_regeneratorRuntime().mark(function n(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/sys/user/getInfo",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t}));case 1:case"end":return e.stop()}},n)})),h.apply(this,arguments)}function s(n){return f.apply(this,arguments)}function f(){return f=_asyncToGenerator(_regeneratorRuntime().mark(function n(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/api/sys/user/resetPwd",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t}));case 1:case"end":return e.stop()}},n)})),f.apply(this,arguments)}function y(n){return u.apply(this,arguments)}function u(){return u=i()(a()().mark(function n(t){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.request)("/api/sys/user/deleteUserBatchByIds",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t}));case 1:case"end":return e.stop()}},n)})),u.apply(this,arguments)}function D(n){return d.apply(this,arguments)}function d(){return d=i()(a()().mark(function n(t){return a()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.request)("/api/sys/user/resetPwd",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},data:t}));case 1:case"end":return e.stop()}},n)})),d.apply(this,arguments)}}}]);
|
||||
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__user__edit.7c4d4056.async.js
vendored
Normal file
1
dist/src__pages__system__user__edit.7c4d4056.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__system__user__index.7ac1a7d9.async.js
vendored
Normal file
1
dist/src__pages__system__user__index.7ac1a7d9.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__user__components__MoneyFormModal.42820054.async.js
vendored
Normal file
1
dist/src__pages__user__user__components__MoneyFormModal.42820054.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__user__components__ShopModal.44c8ce6d.async.js
vendored
Normal file
1
dist/src__pages__user__user__components__ShopModal.44c8ce6d.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__user__components__TradeFormModal.4dbb48b7.async.js
vendored
Normal file
1
dist/src__pages__user__user__components__TradeFormModal.4dbb48b7.async.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8957],{20902:function(h,s,e){var d=e(35361),o=e(56929),m=e(50959),i=e(20734),p=e(11527),a=["fieldProps","proFieldProps"],n=function(r,l){var _=r.fieldProps,t=r.proFieldProps,E=(0,o.Z)(r,a);return(0,p.jsx)(i.Z,(0,d.Z)({ref:l,valueType:"textarea",fieldProps:_,proFieldProps:t},E))};s.Z=m.forwardRef(n)},18328:function(h,s,e){e.r(s);var d=e(90228),o=e.n(d),m=e(87999),i=e.n(m),p=e(5e4),a=e(49547),n=e(19014),O=e(20902),r=e(40676),l=e(50959),_=e(11527);s.default=function(t){var E=t.modalOpenState,M=t.onModalOpenState,B=t.onSubmit,D=(0,l.useRef)();return(0,l.useEffect)(function(){},[]),(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(p.Y,{title:"\u7528\u6237-\u8D26\u53F7\u53D8\u66F4",formRef:D,submitter:{searchConfig:{resetText:"\u91CD\u7F6E"},resetButtonProps:{onClick:function(){var u;(u=D.current)===null||u===void 0||u.resetFields()}}},onFinish:function(){var F=i()(o()().mark(function u(A){var P;return o()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:B(A),(P=D.current)===null||P===void 0||P.resetFields();case 2:case"end":return c.stop()}},u)}));return function(u){return F.apply(this,arguments)}}(),open:E,onOpenChange:M,children:[(0,_.jsx)(r.Z,{children:"\u539F\u6295\u8D44\u4EBA\uFF0C\u7528\u6237\u540D\u3001\u624B\u673A\u53F7"}),(0,_.jsxs)(a.A.Group,{children:[(0,_.jsx)(n.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],width:"md",name:"userNameOld",label:"\u7528\u6237\u540D(\u539F)",placeholder:"\u8BF7\u8F93\u5165"}),(0,_.jsx)(n.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],width:"md",name:"phoneOld",label:"\u624B\u673A\u53F7(\u539F)",placeholder:"\u8BF7\u8F93\u5165"})]}),(0,_.jsx)(r.Z,{children:"\u65B0\u6295\u8D44\u4EBA\uFF0C\u7528\u6237\u540D\u3001\u624B\u673A\u53F7"}),(0,_.jsxs)(a.A.Group,{children:[(0,_.jsx)(n.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],width:"md",name:"userNameNew",label:"\u7528\u6237\u540D(\u65B0)",placeholder:"\u8BF7\u8F93\u5165"}),(0,_.jsx)(n.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],width:"md",name:"phoneNew",label:"\u624B\u673A\u53F7(\u65B0)",placeholder:"\u8BF7\u8F93\u5165"})]}),(0,_.jsx)(O.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],width:"md",name:"remark",label:"\u5907\u6CE8",placeholder:"\u8BF7\u8F93\u5165"})]})})}}}]);
|
||||
1
dist/src__pages__user__user__edit.2b8a7578.async.js
vendored
Normal file
1
dist/src__pages__user__user__edit.2b8a7578.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/src__pages__user__user__index.c8b4aff8.async.js
vendored
Normal file
1
dist/src__pages__user__user__index.c8b4aff8.async.js
vendored
Normal file
File diff suppressed because one or more lines are too long
226
dist/umi.2c941af4.js → dist/umi.924b8a80.js
vendored
226
dist/umi.2c941af4.js → dist/umi.924b8a80.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,5 +1,5 @@
|
||||
import { outLogin } from '@/services/user/index';
|
||||
import { LogoutOutlined, SettingOutlined, UserOutlined } from '@ant-design/icons';
|
||||
import { LogoutOutlined, SettingOutlined, UserOutlined, SecurityScanOutlined } from '@ant-design/icons';
|
||||
import { history, useModel } from '@umijs/max';
|
||||
import { Spin } from 'antd';
|
||||
import { createStyles } from 'antd-style';
|
||||
@@ -72,6 +72,10 @@ export const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({ menu, childre
|
||||
loginOut();
|
||||
return;
|
||||
}
|
||||
if (key === 'uppass') {
|
||||
history.push(`/system/uppass`);
|
||||
return;
|
||||
}
|
||||
history.push(`/account/${key}`);
|
||||
},
|
||||
[setInitialState],
|
||||
@@ -117,11 +121,17 @@ export const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({ menu, childre
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{
|
||||
key: 'uppass',
|
||||
icon: <SecurityScanOutlined />,
|
||||
label: '修改密码',
|
||||
},
|
||||
{
|
||||
key: 'logout',
|
||||
icon: <LogoutOutlined />,
|
||||
label: '退出登录',
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
@@ -103,7 +103,7 @@ const MenuTableList: React.FC = () => {
|
||||
title: '标题',
|
||||
dataIndex: 'title',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
search: true,
|
||||
},
|
||||
{
|
||||
title: '图片',
|
||||
|
||||
@@ -81,12 +81,46 @@ const LogTableList: React.FC = () => {
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
},
|
||||
// {
|
||||
// title: '来源',
|
||||
// dataIndex: 'sourceType',
|
||||
// valueType: 'text',
|
||||
// search: false,
|
||||
// },
|
||||
{
|
||||
title: '来源',
|
||||
dataIndex: 'sourceType',
|
||||
valueType: 'text',
|
||||
search: true,
|
||||
render: (_: any, record: any) => {
|
||||
return record?.sourceType == 1 ? '订单' : record?.sourceType == 2 ? '充电桩服务费' : record?.sourceType == 3 ? '充值' : record?.sourceType == 4 ? '提现' : '-'
|
||||
},
|
||||
renderFormItem: (
|
||||
_,
|
||||
{ type, defaultRender, formItemProps, fieldProps, ...rest },
|
||||
form,
|
||||
) => {
|
||||
return <Select
|
||||
{...fieldProps}
|
||||
allowClear
|
||||
style={{ width: "100%" }}
|
||||
filterOption={false}
|
||||
fieldNames={{
|
||||
label: "name",
|
||||
value: "id"
|
||||
}}
|
||||
options={[
|
||||
{
|
||||
name: '订单',
|
||||
id: 1
|
||||
}, {
|
||||
name: '充电桩服务费',
|
||||
id: 2
|
||||
}, {
|
||||
name: '充值',
|
||||
id: 3
|
||||
}, {
|
||||
name: '提现',
|
||||
id: 4
|
||||
}
|
||||
]}
|
||||
/>
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '记录类型',
|
||||
dataIndex: 'type',
|
||||
@@ -94,7 +128,7 @@ const LogTableList: React.FC = () => {
|
||||
search: true,
|
||||
render: (_: any, record: any) => {
|
||||
let list = moneyType
|
||||
return list.find((val) => val.id == record.sourceType)?.name
|
||||
return list.find((val) => val.id == record.type)?.name
|
||||
},
|
||||
renderFormItem: (
|
||||
_,
|
||||
|
||||
@@ -1,16 +1,29 @@
|
||||
import { integralPage } from '@/services/finance/index';
|
||||
|
||||
|
||||
import React, { useRef, useEffect } from 'react';
|
||||
import React, { useRef, useEffect,useState } from 'react';
|
||||
import { useIntl, useAccess } from '@umijs/max';
|
||||
import { message, Tag } from 'antd';
|
||||
import { message, Tag,Select } from 'antd';
|
||||
import { ActionType, PageContainer, ProTable } from '@ant-design/pro-components';
|
||||
import { usersPage } from '@/services/user/user';
|
||||
|
||||
|
||||
|
||||
|
||||
const LogTableList: React.FC = () => {
|
||||
const actionRef = useRef<ActionType>();
|
||||
const [shopOption, setShopOption] = useState([]);
|
||||
|
||||
|
||||
const searchShop = async (value) => {
|
||||
const { success, data } = await usersPage({
|
||||
userName: value
|
||||
});
|
||||
data.records.map((i) => {
|
||||
i.userName = i.userName + ' ' + i.phone
|
||||
})
|
||||
setShopOption(data.records)
|
||||
}
|
||||
|
||||
const columns = [
|
||||
{
|
||||
@@ -20,10 +33,57 @@ const LogTableList: React.FC = () => {
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '用户ID',
|
||||
title: '用户信息',
|
||||
dataIndex: 'userId',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
render: (_: any, record: any) => {
|
||||
return <div>
|
||||
<div>用户ID:{record?.userId}</div>
|
||||
<div>用户名:{record?.userName}</div>
|
||||
<div>手机号:{record?.phone}</div>
|
||||
</div>
|
||||
},
|
||||
renderFormItem: (
|
||||
_,
|
||||
{ type, defaultRender, formItemProps, fieldProps, ...rest },
|
||||
form,
|
||||
) => {
|
||||
return <Select
|
||||
{...fieldProps}
|
||||
allowClear
|
||||
showSearch
|
||||
placeholder="请输入用户名"
|
||||
style={{ width: "100%" }}
|
||||
filterOption={false}
|
||||
onSearch={
|
||||
(e) => {
|
||||
if (!e) {
|
||||
return;
|
||||
}
|
||||
searchShop(e);
|
||||
}
|
||||
}
|
||||
fieldNames={{
|
||||
label: "userName",
|
||||
value: "id"
|
||||
}}
|
||||
options={shopOption}
|
||||
/>
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '用户名',
|
||||
dataIndex: 'userName',
|
||||
valueType: 'text',
|
||||
search: true,
|
||||
hidden:true
|
||||
},
|
||||
{
|
||||
title: '手机号',
|
||||
dataIndex: 'phone',
|
||||
valueType: 'text',
|
||||
search: true,
|
||||
hidden:true
|
||||
},
|
||||
{
|
||||
title: '钱包',
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { variationPage,recordExtract } from '@/services/finance/index';
|
||||
import { variationPage, recordExtract } from '@/services/finance/index';
|
||||
import { exportData } from '@/utils/func';
|
||||
|
||||
import React, { useRef, useEffect, useState } from 'react';
|
||||
import { useIntl, useAccess } from '@umijs/max';
|
||||
import { message, Tag, Select,Button } from 'antd';
|
||||
import { message, Tag, Select, Button } from 'antd';
|
||||
import { ActionType, PageContainer, ProTable, ProFormSelect } from '@ant-design/pro-components';
|
||||
import moneyType from '@/assets/json/moneyType.json'
|
||||
import { usersPage } from '@/services/user/user';
|
||||
@@ -75,23 +75,57 @@ const LogTableList: React.FC = () => {
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '当前积分余额',
|
||||
title: '当前余额',
|
||||
dataIndex: 'curPoints',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '积分变动',
|
||||
title: '余额变动',
|
||||
dataIndex: 'points',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
},
|
||||
// {
|
||||
// title: '来源',
|
||||
// dataIndex: 'sourceType',
|
||||
// valueType: 'text',
|
||||
// search: false,
|
||||
// },
|
||||
{
|
||||
title: '来源',
|
||||
dataIndex: 'sourceType',
|
||||
valueType: 'text',
|
||||
search: true,
|
||||
render: (_: any, record: any) => {
|
||||
return record?.sourceType == 1 ? '订单' : record?.sourceType == 2 ? '充电桩服务费' : record?.sourceType == 3 ? '充值' : record?.sourceType == 4 ? '提现' : '-'
|
||||
},
|
||||
renderFormItem: (
|
||||
_,
|
||||
{ type, defaultRender, formItemProps, fieldProps, ...rest },
|
||||
form,
|
||||
) => {
|
||||
return <Select
|
||||
{...fieldProps}
|
||||
allowClear
|
||||
style={{ width: "100%" }}
|
||||
filterOption={false}
|
||||
fieldNames={{
|
||||
label: "name",
|
||||
value: "id"
|
||||
}}
|
||||
options={[
|
||||
{
|
||||
name: '订单',
|
||||
id: 1
|
||||
}, {
|
||||
name: '充电桩服务费',
|
||||
id: 2
|
||||
}, {
|
||||
name: '充值',
|
||||
id: 3
|
||||
}, {
|
||||
name: '提现',
|
||||
id: 4
|
||||
}
|
||||
]}
|
||||
/>
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '记录类型',
|
||||
dataIndex: 'type',
|
||||
@@ -99,7 +133,7 @@ const LogTableList: React.FC = () => {
|
||||
search: true,
|
||||
render: (_: any, record: any) => {
|
||||
let list = moneyType
|
||||
return list.find((val) => val.id == record.sourceType)?.name
|
||||
return list.find((val) => val.id == record.type)?.name
|
||||
},
|
||||
renderFormItem: (
|
||||
_,
|
||||
|
||||
@@ -23,7 +23,7 @@ const GoodsTableList: React.FC = () => {
|
||||
title: '商品名称',
|
||||
dataIndex: 'goodsName',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
search: true,
|
||||
},
|
||||
{
|
||||
title: '功率',
|
||||
@@ -136,6 +136,7 @@ const GoodsTableList: React.FC = () => {
|
||||
key="goodsList"
|
||||
search={{
|
||||
labelWidth: 120,
|
||||
defaultCollapsed: false,
|
||||
}}
|
||||
toolBarRender={() => [
|
||||
<Button
|
||||
|
||||
@@ -20,10 +20,10 @@ const GoodsSetMealTableList: React.FC = () => {
|
||||
search: false,
|
||||
},
|
||||
{
|
||||
title: '商品名称',
|
||||
dataIndex: 'goodsName',
|
||||
title: '套餐名称',
|
||||
dataIndex: 'packagesName',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
search: true,
|
||||
},
|
||||
{
|
||||
title: '功率',
|
||||
@@ -143,6 +143,7 @@ const GoodsSetMealTableList: React.FC = () => {
|
||||
key="goodsSetMealList"
|
||||
search={{
|
||||
labelWidth: 120,
|
||||
defaultCollapsed: false,
|
||||
}}
|
||||
toolBarRender={() => [
|
||||
<Button
|
||||
|
||||
@@ -25,7 +25,6 @@ const handleAdd = async (fields) => {
|
||||
return true;
|
||||
} catch (error) {
|
||||
hide();
|
||||
message.error('添加失败请重试!');
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -44,7 +43,6 @@ const handleUpdate = async (fields: API.System.Menu) => {
|
||||
return true;
|
||||
} catch (error) {
|
||||
hide();
|
||||
message.error('修改失败请重试!');
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -60,7 +58,6 @@ const handleRemoveOne = async (selectedRow: API.System.Menu) => {
|
||||
return true;
|
||||
} catch (error) {
|
||||
hide();
|
||||
message.error('删除失败,请重试');
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -101,7 +98,7 @@ const MenuTableList: React.FC = () => {
|
||||
title: '标题',
|
||||
dataIndex: 'title',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
search: true,
|
||||
},
|
||||
{
|
||||
title: '封面图',
|
||||
|
||||
@@ -62,15 +62,21 @@ const LogTableList: React.FC = () => {
|
||||
search: false,
|
||||
render: (_: any, record: any) => {
|
||||
return record.ordersGoodsList ? record.ordersGoodsList.map((i) => {
|
||||
let _Img = i?.goodsSnapshot?.picture ? JSON.parse(i?.goodsSnapshot?.picture)[0] : ''
|
||||
return <div className={'flex'} key={i.id}>
|
||||
let _Img = null
|
||||
if (i?.sourceType == 1){
|
||||
_Img = i?.goodsSnapshot?.picture ? JSON.parse(i?.goodsSnapshot?.picture)[0] : ''
|
||||
}else{
|
||||
_Img = i?.goodsPackagesSnapshot?.picture ? JSON.parse(i?.goodsPackagesSnapshot?.picture)[0] : ''
|
||||
}
|
||||
|
||||
return <div className={'flex items-center'} key={i.id}>
|
||||
<Image width={60} src={_Img} height={60}></Image>
|
||||
<div>
|
||||
<div>
|
||||
商品名称:{i.goodsSnapshot?.goodsName}
|
||||
商品名称:{i?.sourceType == 1 ? i?.goodsSnapshot?.goodsName : i?.goodsPackagesSnapshot.packagesName}
|
||||
</div>
|
||||
<div>
|
||||
商品价格:{i.salePrice}
|
||||
商品价格:{i?.sourceType == 1 ? i?.goodsSnapshot?.salePrice : i?.goodsPackagesSnapshot.salePrice}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -128,7 +134,7 @@ const LogTableList: React.FC = () => {
|
||||
search: true,
|
||||
render: (_: any, record: any) => {
|
||||
let colors = ['gold', 'green', 'volcano', 'red', 'magenta']
|
||||
return <Tag color={colors[record.status]}>{record.status == 0 ? '待支付' : record.status == 1 ? '支付成功' : record.status == -1 ? '取消' : record.status == -2 ? '退款中' : record.status == -3 ? '退款完成' : ''}</Tag>
|
||||
return <Tag color={colors[record.status]}>{record.status == 0 ? '待支付' : record.status == 1 ? '支付成功' : record.status == -1 ? '取消' : record.status == -2 ? '退款' : ''}</Tag>
|
||||
},
|
||||
renderFormItem: (
|
||||
_,
|
||||
@@ -197,6 +203,7 @@ const LogTableList: React.FC = () => {
|
||||
key="logList"
|
||||
search={{
|
||||
labelWidth: 120,
|
||||
defaultCollapsed: false,
|
||||
}}
|
||||
toolBarRender={() => [
|
||||
<Button
|
||||
|
||||
@@ -29,7 +29,7 @@ const LogTableList: React.FC = () => {
|
||||
title: '设备号',
|
||||
dataIndex: 'deviceNo',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
search: true,
|
||||
render: (_: any, record: any) => {
|
||||
return <div className={'flex items-center'}>
|
||||
{record.deviceNo || '-'}
|
||||
@@ -41,16 +41,19 @@ const LogTableList: React.FC = () => {
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '订单号',
|
||||
title: '订单ID',
|
||||
dataIndex: 'orderId',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
search: true,
|
||||
},
|
||||
{
|
||||
title: '设备类型',
|
||||
dataIndex: 'deviceType',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
render: (_: any, record: any) => {
|
||||
return record?.deviceType + 'W'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
@@ -92,6 +95,9 @@ const LogTableList: React.FC = () => {
|
||||
dataIndex: 'deliverDate',
|
||||
valueType: 'text',
|
||||
search: false,
|
||||
render: (_: any, record: any) => {
|
||||
return record?.deliverDate + '天'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '分账有效期',
|
||||
|
||||
@@ -128,11 +128,20 @@ const MenuForm: React.FC<MenuFormProps> = (props) => {
|
||||
/>
|
||||
<ProFormRadio.Group
|
||||
name="menuType"
|
||||
valueEnum={{
|
||||
M: '目录',
|
||||
C: '菜单',
|
||||
F: '按钮',
|
||||
}}
|
||||
options={[
|
||||
{
|
||||
label: '目录',
|
||||
value: 'M',
|
||||
},
|
||||
{
|
||||
label: '菜单',
|
||||
value: 'C',
|
||||
},
|
||||
{
|
||||
label: '按钮',
|
||||
value: 'F',
|
||||
},
|
||||
]}
|
||||
label={'菜单类型'}
|
||||
placeholder="请输入菜单类型"
|
||||
rules={[
|
||||
|
||||
75
src/pages/system/uppass/index.tsx
Normal file
75
src/pages/system/uppass/index.tsx
Normal file
@@ -0,0 +1,75 @@
|
||||
|
||||
import { InputNumber, Space, message, Popconfirm } from 'antd';
|
||||
import {
|
||||
PageContainer,
|
||||
ProForm,
|
||||
ProFormText,
|
||||
} from '@ant-design/pro-components';
|
||||
|
||||
import { history, useModel } from '@umijs/max';
|
||||
import { stringify } from 'querystring';
|
||||
import { resetPwd } from '@/services/system/user';
|
||||
|
||||
export default () => {
|
||||
|
||||
const handleCreate = async (fields) => {
|
||||
let data = JSON.parse(JSON.stringify(fields))
|
||||
const { success } = await resetPwd({ ...data });
|
||||
if (success) {
|
||||
message.success('修改成功,请重新登录')
|
||||
const { search, pathname } = window.location;
|
||||
const urlParams = new URL(window.location.href).searchParams;
|
||||
/** 此方法会跳转到 redirect 参数所在的位置 */
|
||||
const redirect = urlParams.get('redirect');
|
||||
// Note: There may be security issues, please note
|
||||
localStorage.removeItem('token')
|
||||
if (window.location.pathname !== '/user/login' && !redirect) {
|
||||
history.replace({
|
||||
pathname: '/user/login',
|
||||
search: stringify({
|
||||
redirect: pathname + search,
|
||||
}),
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
return (
|
||||
<PageContainer
|
||||
header={{
|
||||
title: '重置密码',
|
||||
}}
|
||||
>
|
||||
<>
|
||||
<ProForm
|
||||
onFinish={(values) => {
|
||||
handleCreate(values)
|
||||
}}
|
||||
>
|
||||
<ProFormText
|
||||
rules={[{ required: true, message: '请输入!' }]}
|
||||
width={300}
|
||||
name="oldPassword"
|
||||
label="原密码"
|
||||
placeholder="原密码"
|
||||
/>
|
||||
<ProFormText
|
||||
rules={[{ required: true, message: '请输入!' }]}
|
||||
width={300}
|
||||
name="newPassword"
|
||||
label="新密码"
|
||||
placeholder="新密码"
|
||||
/>
|
||||
<ProFormText
|
||||
rules={[{ required: true, message: '请输入!' }]}
|
||||
width={300}
|
||||
name="passwordSure"
|
||||
label="确认密码"
|
||||
placeholder="确认密码"
|
||||
/>
|
||||
</ProForm>
|
||||
</>
|
||||
</PageContainer>
|
||||
);
|
||||
};
|
||||
@@ -20,6 +20,9 @@ const UserForm: React.FC = (props: any) => {
|
||||
|
||||
const { values } = props;
|
||||
|
||||
console.log(values, 'valuesvaluesvaluesvalues');
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
form.resetFields();
|
||||
form.setFieldsValue(values);
|
||||
@@ -89,6 +92,7 @@ const UserForm: React.FC = (props: any) => {
|
||||
label={'用户密码'}
|
||||
colProps={{ md: 12, xl: 12 }}
|
||||
placeholder="请输入用户密码"
|
||||
hidden={values?.id}
|
||||
rules={[
|
||||
{
|
||||
required: values?.id ? false : true,
|
||||
@@ -108,20 +112,12 @@ const UserForm: React.FC = (props: any) => {
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</ProForm.Group>
|
||||
<ProForm.Group>
|
||||
<ProFormText
|
||||
name="email"
|
||||
label={'邮箱'}
|
||||
colProps={{ md: 12, xl: 12 }}
|
||||
placeholder="请输入邮箱"
|
||||
/>
|
||||
{/* <ProFormText
|
||||
name="loginIp"
|
||||
label={'登录IP'}
|
||||
colProps={{ md: 12, xl: 12 }}
|
||||
placeholder="登录IP"
|
||||
/> */}
|
||||
</ProForm.Group>
|
||||
<ProForm.Group>
|
||||
<ProFormSelect
|
||||
@@ -141,12 +137,6 @@ const UserForm: React.FC = (props: any) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
rules={[
|
||||
{
|
||||
required: true,
|
||||
message: <FormattedMessage id="请选择角色!" defaultMessage="请选择角色!" />,
|
||||
},
|
||||
]}
|
||||
request={async () => {
|
||||
let { data } = await findAllSysRole()
|
||||
return data
|
||||
@@ -158,29 +148,33 @@ const UserForm: React.FC = (props: any) => {
|
||||
|
||||
<ProFormRadio.Group
|
||||
name="userType"
|
||||
valueEnum={{
|
||||
0: '系统用户',
|
||||
}}
|
||||
initialValue="1"
|
||||
options={[
|
||||
{
|
||||
label: '系统用户',
|
||||
value: 0,
|
||||
},
|
||||
]}
|
||||
label={'用户类型'}
|
||||
colProps={{ md: 12, xl: 12 }}
|
||||
fieldProps={{
|
||||
defaultValue: 0
|
||||
}}
|
||||
/>
|
||||
<ProFormRadio.Group
|
||||
name="sex"
|
||||
valueEnum={{
|
||||
0: '男',
|
||||
1: '女',
|
||||
2: '未知',
|
||||
}}
|
||||
initialValue="1"
|
||||
options={[
|
||||
{
|
||||
label: '男',
|
||||
value: 0,
|
||||
},
|
||||
{
|
||||
label: '女',
|
||||
value: 1,
|
||||
},
|
||||
{
|
||||
label: '未知',
|
||||
value: 2,
|
||||
},
|
||||
]}
|
||||
label={'性别'}
|
||||
colProps={{ md: 12, xl: 12 }}
|
||||
fieldProps={{
|
||||
defaultValue: 0
|
||||
}}
|
||||
/>
|
||||
</ProForm>
|
||||
</Modal>
|
||||
|
||||
@@ -3,7 +3,7 @@ import { userPage, userUpPwd, userInfo, userUpdate, userAdd, userDelete } from '
|
||||
|
||||
import React, { useState, useRef, useEffect } from 'react';
|
||||
import { useIntl, FormattedMessage, useAccess } from '@umijs/max';
|
||||
import { Button, message, Modal, Tag,Image } from 'antd';
|
||||
import { Button, message, Modal, Tag, Image } from 'antd';
|
||||
import { ActionType, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components';
|
||||
import { PlusOutlined } from '@ant-design/icons';
|
||||
import UpdateForm from './edit';
|
||||
@@ -223,6 +223,16 @@ const UserTableList: React.FC = () => {
|
||||
}}
|
||||
>
|
||||
<PlusOutlined /> 新增
|
||||
</Button>,
|
||||
<Button
|
||||
type="primary"
|
||||
key="add"
|
||||
onClick={async () => {
|
||||
setCurrentRow(undefined);
|
||||
setModalVisible(true);
|
||||
}}
|
||||
>
|
||||
修改密码
|
||||
</Button>
|
||||
]}
|
||||
request={async (params, sorter, filter) => {
|
||||
|
||||
85
src/pages/user/user/components/TradeFormModal.tsx
Normal file
85
src/pages/user/user/components/TradeFormModal.tsx
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* @Note:
|
||||
* @Author: 2058827620@qq.com
|
||||
* @Date: 2022-04-03 17:02:15
|
||||
*/
|
||||
|
||||
import { ProForm, ModalForm, ProFormSelect, ProFormText, ProFormTextArea, ProFormInstance } from '@ant-design/pro-components';
|
||||
import { Divider } from 'antd';
|
||||
import { useEffect, useRef } from 'react';
|
||||
import FilesManager from '@/components/FilesManage/index';
|
||||
|
||||
export default ({ modalOpenState, onModalOpenState, onSubmit }) => {
|
||||
const restFormRef = useRef<ProFormInstance>();
|
||||
|
||||
useEffect(() => {
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
<ModalForm
|
||||
title="用户-账号变更"
|
||||
formRef={restFormRef}
|
||||
submitter={{
|
||||
searchConfig: {
|
||||
resetText: '重置',
|
||||
},
|
||||
resetButtonProps: {
|
||||
onClick: () => {
|
||||
restFormRef.current?.resetFields();
|
||||
},
|
||||
},
|
||||
}}
|
||||
onFinish={async(e)=>{
|
||||
onSubmit(e)
|
||||
restFormRef.current?.resetFields();
|
||||
}}
|
||||
open={modalOpenState}
|
||||
onOpenChange={onModalOpenState}
|
||||
>
|
||||
<Divider>原投资人,用户名、手机号</Divider>
|
||||
<ProForm.Group>
|
||||
<ProFormText
|
||||
rules={[{ required: true, message: '请输入' }]}
|
||||
width="md"
|
||||
name="userNameOld"
|
||||
label="用户名(原)"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
<ProFormText
|
||||
rules={[{ required: true, message: '请输入' }]}
|
||||
width="md"
|
||||
name="phoneOld"
|
||||
label="手机号(原)"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
<Divider>新投资人,用户名、手机号</Divider>
|
||||
<ProForm.Group>
|
||||
<ProFormText
|
||||
rules={[{ required: true, message: '请输入' }]}
|
||||
width="md"
|
||||
name="userNameNew"
|
||||
label="用户名(新)"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
<ProFormText
|
||||
rules={[{ required: true, message: '请输入' }]}
|
||||
width="md"
|
||||
name="phoneNew"
|
||||
label="手机号(新)"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</ProForm.Group>
|
||||
<ProFormTextArea
|
||||
rules={[{ required: true, message: '请输入' }]}
|
||||
width="md"
|
||||
name="remark"
|
||||
label="备注"
|
||||
placeholder="请输入"
|
||||
/>
|
||||
</ModalForm>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { usersPage, usersAdd, usersDelete, usersUpdate, updateUserLevel, userTransferHanging, exportUser, userRecharge } from '@/services/user/user';
|
||||
import { usersPage, usersAdd, usersDelete, usersUpdate, updateUserLevel, userTransferHanging, exportUser, userRecharge,accountChange } from '@/services/user/user';
|
||||
|
||||
|
||||
import React, { useRef, useEffect, useState } from 'react';
|
||||
@@ -12,7 +12,7 @@ import LevelFormModal from './components/LevelFormModal';
|
||||
import TempFormModal from './components/TempFormModal';
|
||||
import ShopModal from './components/ShopModal';
|
||||
import MoneyFormModal from './components/MoneyFormModal';
|
||||
|
||||
import TradeFormModal from './components/TradeFormModal';
|
||||
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ const handleAdd = async (fields) => {
|
||||
return true;
|
||||
} catch (error) {
|
||||
hide();
|
||||
message.error('添加失败请重试!');
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -50,7 +49,6 @@ const handleUpdate = async (fields: API.System.Menu) => {
|
||||
return true;
|
||||
} catch (error) {
|
||||
hide();
|
||||
message.error('修改失败请重试!');
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -66,7 +64,6 @@ const handleRemoveOne = async (selectedRow) => {
|
||||
return true;
|
||||
} catch (error) {
|
||||
hide();
|
||||
message.error('删除失败,请重试');
|
||||
return false;
|
||||
}
|
||||
};
|
||||
@@ -85,7 +82,7 @@ const LogTableList: React.FC = () => {
|
||||
const [shopModal, setBonusFormModal] = useState(false);
|
||||
const [row, setRow] = useState();
|
||||
const [moneyFormModal, setMoneyFormModal] = useState(false);
|
||||
|
||||
const [tradeFormModal, setTradeFormModal] = useState(false);
|
||||
|
||||
|
||||
// 更改等级
|
||||
@@ -249,9 +246,27 @@ const LogTableList: React.FC = () => {
|
||||
// },
|
||||
];
|
||||
|
||||
const handleTrade = async (fields) => {
|
||||
|
||||
const { success } = await accountChange(fields);
|
||||
if (success) {
|
||||
actionRef.current?.reload();
|
||||
setTradeFormModal(false);
|
||||
message.success('变更成功');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<PageContainer>
|
||||
<div style={{ width: '100%', float: 'right' }}>
|
||||
<TradeFormModal
|
||||
modalOpenState={tradeFormModal}
|
||||
onModalOpenState={setTradeFormModal}
|
||||
onSubmit={handleTrade}
|
||||
/>
|
||||
|
||||
<ShopModal
|
||||
values={row}
|
||||
modalOpenState={shopModal}
|
||||
|
||||
@@ -129,7 +129,9 @@ export const errorConfig: RequestConfig = {
|
||||
const headers = { Authorization };
|
||||
// let url = config.url;
|
||||
// const url = config?.url;
|
||||
let url = `https://iadminapi.zhongshuai2023.com` + config.url;
|
||||
console.log(process.env.API_BASEURL);
|
||||
|
||||
let url = `${process.env.API_BASEURL ? process.env.API_BASEURL : ''}` + config.url;
|
||||
if (config.url.includes('https://')) {
|
||||
url = config.url;
|
||||
}
|
||||
|
||||
@@ -68,4 +68,15 @@ export async function userDelete(params: any) {
|
||||
}
|
||||
|
||||
|
||||
// 重置绵绵
|
||||
|
||||
export async function resetPwd(params: any) {
|
||||
return request('/api/sys/user/resetPwd', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json;charset=UTF-8',
|
||||
},
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -101,3 +101,13 @@ export async function smsCode() {
|
||||
});
|
||||
}
|
||||
|
||||
export async function accountChange(body) {
|
||||
return request(`/api/users/accountChange`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json;charset=UTF-8',
|
||||
},
|
||||
data: body || {},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user