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.
2 lines
13 KiB
2 lines
13 KiB
5 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{95795:function(ye,_,t){t.r(_),t.d(_,{default:function(){return ge}});var m=t(15009),O=t.n(m),k=t(99289),U=t.n(k),ee=t(5574),p=t.n(ee),z=t(48357),ve=t(35312),g=t(8232),X=t(66309),ne=t(71230),H=t(15746),re=t(14726),G=t(13169),w=t(72051),D=t(17788),E=t(55102),I=t(34041),te=t(37804),ae=t(16250),Z=t(67294),fe=t(72269),n=t(85893),me=function(Q){var A=function(){Q.onSubmit()},B=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u89D2\u8272",dataIndex:"role",render:function(s){var c="";switch(s){case 1:c="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:c="\u7BA1\u7406\u5458";break;case 3:c="\u6E38\u620F\u4E3B";break;case 4:c="\u8BBE\u5907\u4E3B";break;default:c=""}return c}},{title:"\u9690\u85CF",render:function(s){return(0,n.jsx)(fe.Z,{defaultValue:s.hide!==0,onClick:function(a){s.id&&(0,z.tQ)({adminId:s.id,hide:a?1:0})}},s.id)}}];return(0,n.jsx)(D.Z,{title:"\u6279\u91CF\u7F16\u8F91",visible:!0,footer:[],onCancel:A,children:(0,n.jsx)(w.Z,{columns:B,dataSource:Q.data})})},he=me,V=function(){var Q=(0,Z.useState)([]),A=p()(Q,2),B=A[0],e=A[1],s=(0,Z.useState)(!1),c=p()(s,2),a=c[0],i=c[1],C=(0,Z.useState)(!1),u=p()(C,2),$=u[0],b=u[1],N=(0,Z.useState)(!1),x=p()(N,2),T=x[0],y=x[1],J=(0,Z.useState)(0),R=p()(J,2),S=R[0],P=R[1],L=g.Z.useForm(),pe=p()(L,1),M=pe[0],le=(0,Z.useState)([]),W=p()(le,2),oe=W[0],h=W[1],be=(0,ve.useModel)("@@initialState"),K=be.initialState,v=K==null?void 0:K.currentUser,Y=function(o){return o?parseFloat((o/1e5).toFixed(2)):0},q=function(o){var r=oe.find(function(f){return f.id===o});return r?r.name:""},se=function(o){M.setFieldsValue(o),i(!0),y(!0),P(o.role?o.role:0)},ie=[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u5E94\u7528IDs",dataIndex:"appIds",render:function(o){return(0,n.jsx)("div",{children:o==null?void 0:o.map(function(r){return(0,n.jsx)(X.Z,{color:"blue",children:q(r)},r)})})}},{title:"\u89D2\u8272",dataIndex:"role",render:function(o){var r="";switch(o){case 1:r="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:r="\u7BA1\u7406\u5458";break;case 3:r="\u6E38\u620F\u4E3B";break;case 4:r="\u8BBE\u5907\u4E3B";break;default:r=""}return r}},{title:"\u64CD\u4F5C",render:function(o){return[(0,n.jsx)("a",{onClick:function(){return se(o)},children:"\u7F16\u8F91"},"edit")]}}],ce=[{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5E94\u7528IDs",dataIndex:"appIds",render:function(o){return(0,n.jsx)("div",{children:o==null?void 0:o.map(function(r){return(0,n.jsx)(X.Z,{color:"blue",children:q(r)},r)})})}},{title:"\u89D2\u8272",dataIndex:"role",render:function(o){var r="";switch(o){case 1:r="\u8D85\u7EA7\u7BA1\u7406\u5458";break;case 2:r="\u7BA1\u7406\u5458";break;case 3:r="\u6E38\u620F\u4E3B";break;case 4:r="\u8BBE\u5907\u4E3B";break;default:r=""}return r}},{title:"\u672C\u6708\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeThisMonth",render:function(o,r){var f;return Y((f=r.overview)===null||f===void 0?void 0:f.thisMonthIncome)}},{title:"\u4E0A\u6708\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeLastMonth",render:function(o,r){var f;return Y((f=r.overview)===null||f===void 0?void 0:f.lastMonthIncome)}},{title:"\u7D2F\u8BA1\u6536\u5165\uFF08\u5143\uFF09",dataIndex:"incomeTotal",render:function(o,r){var f;return Y((f=r.overview)===null||f===void 0?void 0:f.totalIncome)}},{title:"\u5F53\u524D\u5206\u6210\u6BD4\u4F8B",dataIndex:"incomeRate"},{title:"\u64CD\u4F5C",render:function(o){return[(0,n.jsx)("a",{onClick:function(){return se(o)},children:"\u7F16\u8F91"},"edit")]}}],xe=function(){M.submit()},de=function(){i(!1)},j=function(){var l=U()(O()().mark(function o(){var r;return O()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,z.N0)();case 2:r=d.sent,r.data&&e(r.data);case 4:case"end":return d.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),Se=function(){var l=U()(O()().mark(function o(){var r;return O()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,z.ln)();case 2:r=d.sent,r.data&&h(r.data);case 4:case"end":return d.stop()}},o)
|