🐛 修复前端部分问题

pull/9/MERGE
smallbun 2023-02-14 14:39:28 +08:00
parent 6e26e221dd
commit 773ae30f97
77 changed files with 891 additions and 890 deletions

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

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

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

View File

@ -15,4 +15,4 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[4097],{34097:function(e,n,t){t.r(n),t.d(n,{default:function(){return s}});var c=t(79685),u=t(59787),o=t(63342);function s(){var E=(0,u.useOutletContext)();return(0,o.jsx)(u.Outlet,{context:E})}}}]);
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[4097],{34097:function(e,n,t){t.r(n),t.d(n,{default:function(){return s}});var c=t(79685),u=t(22590),o=t(63342);function s(){var E=(0,u.useOutletContext)();return(0,o.jsx)(u.Outlet,{context:E})}}}]);

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

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

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[9696],{79696:function(ve,G,p){p.d(G,{Z:function(){return be}});var W=p(68591),m=p.n(W),o=p(79685),b=p(56865),y=p(8779),x=e=>{const{prefixCls:t,className:n,style:l,size:a,shape:i}=e,c=m()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),r=m()({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=o.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return o.createElement("span",{className:m()(t,c,r,n),style:Object.assign(Object.assign({},s),l)})},X=p(25646),F=p(83396),q=p(42006);const V=new X.E4("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),j=e=>({height:e,lineHeight:`${e}px`}),f=e=>Object.assign({width:e},j(e)),J=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:V,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),w=e=>Object.assign({width:e*5,minWidth:e*5},j(e)),K=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},f(l)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},f(a)),[`${t}${t}-sm`]:Object.assign({},f(i))}},Q=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return{[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},w(t)),[`${l}-lg`]:Object.assign({},w(a)),[`${l}-sm`]:Object.assign({},w(i))}},A=e=>Object.assign({width:e},j(e)),U=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:l,borderRadiusSM:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:l,borderRadius:a},A(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},A(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},P=(e,t,n)=>{const{skeletonButtonCls:l}=e;return{[`${n}${l}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${l}-round`]:{borderRadius:t}}},I=e=>Object.assign({width:e*2,minWidth:e*2},j(e)),Y=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:l*2,minWidth:l*2},I(l))},P(e,l,n)),{[`${n}-lg`]:Object.assign({},I(a))}),P(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},I(i))}),P(e,i,`${n}-sm`))},_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:l,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:c,skeletonImageCls:r,controlHeight:s,controlHeightLG:g,controlHeightSM:d,color:u,padding:$,marginSM:R,borderRadius:h,skeletonTitleHeight:z,skeletonBlockRadius:E,skeletonParagraphLineHeight:k,controlHeightXS:S,skeletonParagraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},f(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},f(g)),[`${n}-sm`]:Object.assign({},f(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${l}`]:{width:"100%",height:z,background:u,borderRadius:E,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:"100%",height:k,listStyle:"none",background:u,borderRadius:E,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${l}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${l}`]:{marginBlockStart:R,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Y(e)),K(e)),Q(e)),U(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[869],{869:function(ve,G,p){p.d(G,{Z:function(){return be}});var W=p(68591),m=p.n(W),o=p(79685),b=p(86787),y=p(8779),x=e=>{const{prefixCls:t,className:n,style:l,size:a,shape:i}=e,c=m()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),r=m()({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=o.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return o.createElement("span",{className:m()(t,c,r,n),style:Object.assign(Object.assign({},s),l)})},X=p(25646),F=p(83763),q=p(92232);const V=new X.E4("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),j=e=>({height:e,lineHeight:`${e}px`}),f=e=>Object.assign({width:e},j(e)),J=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:V,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),w=e=>Object.assign({width:e*5,minWidth:e*5},j(e)),K=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},f(l)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},f(a)),[`${t}${t}-sm`]:Object.assign({},f(i))}},Q=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return{[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},w(t)),[`${l}-lg`]:Object.assign({},w(a)),[`${l}-sm`]:Object.assign({},w(i))}},A=e=>Object.assign({width:e},j(e)),U=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:l,borderRadiusSM:a}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:l,borderRadius:a},A(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},A(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},P=(e,t,n)=>{const{skeletonButtonCls:l}=e;return{[`${n}${l}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${l}-round`]:{borderRadius:t}}},I=e=>Object.assign({width:e*2,minWidth:e*2},j(e)),Y=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:l,controlHeightLG:a,controlHeightSM:i,color:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:l*2,minWidth:l*2},I(l))},P(e,l,n)),{[`${n}-lg`]:Object.assign({},I(a))}),P(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},I(i))}),P(e,i,`${n}-sm`))},_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:l,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:c,skeletonImageCls:r,controlHeight:s,controlHeightLG:g,controlHeightSM:d,color:u,padding:$,marginSM:R,borderRadius:h,skeletonTitleHeight:z,skeletonBlockRadius:E,skeletonParagraphLineHeight:k,controlHeightXS:S,skeletonParagraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:$,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},f(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},f(g)),[`${n}-sm`]:Object.assign({},f(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${l}`]:{width:"100%",height:z,background:u,borderRadius:E,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:"100%",height:k,listStyle:"none",background:u,borderRadius:E,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${l}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[`${l}`]:{marginBlockStart:R,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Y(e)),K(e)),Q(e)),U(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
${l},
${a} > li,
${n},

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

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

View File

@ -28,6 +28,6 @@
</head>
<body>
<div id="root"></div>
<script src="/umi.ec322d93.js"></script>
<script src="/umi.252b8ffb.js"></script>
</body></html>

View File

@ -15,4 +15,4 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[2571],{98546:function(i,n,t){t.r(n);var s=t(73838),a=t(8821),u=t(59787),o=t(63342),e=function(){return(0,o.jsx)(s.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,o.jsx)(a.ZP,{type:"primary",onClick:function(){return u.history.push("/")},children:"Back Home"})})};n.default=e}}]);
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[2571],{98546:function(i,n,t){t.r(n);var s=t(38916),a=t(9101),u=t(22590),o=t(63342),e=function(){return(0,o.jsx)(s.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,o.jsx)(a.ZP,{type:"primary",onClick:function(){return u.history.push("/")},children:"Back Home"})})};n.default=e}}]);

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

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

File diff suppressed because one or more lines are too long

View File

@ -15,5 +15,5 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[4815],{3723:function(K,y,r){var T=r(5543),u=r(66105),W=r(79685),f=r(57231),j=r(63342),h=["fieldProps","proFieldProps"],O=["fieldProps","proFieldProps"],p="text",v=function(o){var U=o.fieldProps,B=o.proFieldProps,S=(0,u.Z)(o,h);return(0,j.jsx)(f.Z,(0,T.Z)({valueType:p,fieldProps:U,filedConfig:{valueType:p},proFieldProps:B},S))},R=function(o){var U=o.fieldProps,B=o.proFieldProps,S=(0,u.Z)(o,O);return(0,j.jsx)(f.Z,(0,T.Z)({valueType:"password",fieldProps:U,proFieldProps:B,filedConfig:{valueType:p}},S))},F=v;F.Password=R,F.displayName="ProFormComponent",y.Z=F},90233:function(K,y,r){var T=r(5543),u=r(66105),W=r(79685),f=r(57231),j=r(63342),h=["fieldProps","proFieldProps"],O=function(v,R){var F=v.fieldProps,M=v.proFieldProps,o=(0,u.Z)(v,h);return(0,j.jsx)(f.Z,(0,T.Z)({ref:R,valueType:"textarea",fieldProps:F,proFieldProps:M},o))};y.Z=W.forwardRef(O)},39068:function(K,y,r){r.r(y),r.d(y,{default:function(){return or}});var T=r(84019),u=r.n(T),W=r(32061),f=r.n(W),j=r(76091),h=r.n(j),O=r(7863),p=r.n(O),v=r(9715),R=r(75109),F=r(43637),M=r(80591),o=r(82925),U=r(62119),B=r(76815),S=r(8821),$=r(18477),b=r(86977),V=r(18054),G=r(90914),L=r(79685),Q=r(7206),X=r(24766),z=r(3723),Y=r(90233),H=r(54363),J=r(55998),e=r(63342),k={labelCol:{span:4},wrapperCol:{span:19}},w=function(i){var E=(0,J.Z)(),l=p()(E,1),A=l[0],m=i.visible,s=i.onFinish,I=i.onCancel,d=(0,L.useState)(!1),t=p()(d,2),a=t[0],c=t[1];return(0,L.useEffect)(function(){m&&A.setFieldsValue({code:(0,Q.MX)(9)})}),(0,e.jsx)(X.Y,h()(h()({title:"\u65B0\u5EFA\u7528\u6237\u7EC4",form:A,scrollToFirstError:!0},k),{},{layout:"horizontal",labelAlign:"right",preserve:!1,width:"500px",open:m,modalProps:{maskClosable:!0,destroyOnClose:!0,onCancel:I},onFinish:function(){var g=f()(u()().mark(function P(D){var n;return u()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return c(!0),Z.next=3,s(D);case 3:return n=Z.sent,c(!1),Z.abrupt("return",!!n);case 6:case"end":return Z.stop()}},P)}));return function(P){return g.apply(this,arguments)}}(),children:(0,e.jsxs)(H.Z,{spinning:a,children:[(0,e.jsx)(z.Z,{name:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7EC4\u540D\u79F0",rules:[{required:!0,message:"\u7528\u6237\u7EC4\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}),(0,e.jsx)(z.Z,{name:"code",label:"\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7EC4\u7F16\u7801",rules:[{required:!0,message:"\u7528\u6237\u7EC4\u7F16\u7801\u4E3A\u5FC5\u586B\u9879"}]}),(0,e.jsx)(Y.Z,{name:"remark",fieldProps:{rows:2,maxLength:20,showCount:!0},placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F",label:"\u5907\u6CE8"})]})}))},q=r(39620),x=r.n(q),_=r(47918),rr=r(84904),er=_.ZP.ConfigContext;function ar(){var i=(0,L.useContext)(er),E=i.getPrefixCls,l=".".concat(E()),A=(0,rr.l)(function(m){var s,I=m.token;return s={},x()(s,".user-group-remark",{boxSizing:"border-box",width:"100%",margin:"0 !important",color:"#00000073",fontSize:"14px"}),x()(s,"".concat(l,"-pro-card-title"),{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",alignItems:"center",display:"inline-flex"}),x()(s,"".concat(l,"-pro-card-extra"),{flex:"none"}),x()(s,"".concat(l,"-pro-card-actions"),x()({},`> li,
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[4815],{70695:function(K,y,r){var T=r(5543),u=r(66105),W=r(79685),f=r(44709),j=r(63342),h=["fieldProps","proFieldProps"],O=["fieldProps","proFieldProps"],p="text",v=function(o){var U=o.fieldProps,B=o.proFieldProps,S=(0,u.Z)(o,h);return(0,j.jsx)(f.Z,(0,T.Z)({valueType:p,fieldProps:U,filedConfig:{valueType:p},proFieldProps:B},S))},R=function(o){var U=o.fieldProps,B=o.proFieldProps,S=(0,u.Z)(o,O);return(0,j.jsx)(f.Z,(0,T.Z)({valueType:"password",fieldProps:U,proFieldProps:B,filedConfig:{valueType:p}},S))},F=v;F.Password=R,F.displayName="ProFormComponent",y.Z=F},4647:function(K,y,r){var T=r(5543),u=r(66105),W=r(79685),f=r(44709),j=r(63342),h=["fieldProps","proFieldProps"],O=function(v,R){var F=v.fieldProps,M=v.proFieldProps,o=(0,u.Z)(v,h);return(0,j.jsx)(f.Z,(0,T.Z)({ref:R,valueType:"textarea",fieldProps:F,proFieldProps:M},o))};y.Z=W.forwardRef(O)},39068:function(K,y,r){r.r(y),r.d(y,{default:function(){return or}});var T=r(84019),u=r.n(T),W=r(32061),f=r.n(W),j=r(76091),h=r.n(j),O=r(7863),p=r.n(O),v=r(9715),R=r(75109),F=r(43637),M=r(80591),o=r(55222),U=r(21722),B=r(95926),S=r(9101),$=r(41653),b=r(44659),V=r(98346),G=r(46673),L=r(79685),Q=r(7206),X=r(69072),z=r(70695),Y=r(4647),H=r(82769),J=r(98815),e=r(63342),k={labelCol:{span:4},wrapperCol:{span:19}},w=function(i){var E=(0,J.Z)(),l=p()(E,1),A=l[0],m=i.visible,s=i.onFinish,I=i.onCancel,d=(0,L.useState)(!1),t=p()(d,2),a=t[0],c=t[1];return(0,L.useEffect)(function(){m&&A.setFieldsValue({code:(0,Q.MX)(9)})}),(0,e.jsx)(X.Y,h()(h()({title:"\u65B0\u5EFA\u7528\u6237\u7EC4",form:A,scrollToFirstError:!0},k),{},{layout:"horizontal",labelAlign:"right",preserve:!1,width:"500px",open:m,modalProps:{maskClosable:!0,destroyOnClose:!0,onCancel:I},onFinish:function(){var g=f()(u()().mark(function P(D){var n;return u()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return c(!0),Z.next=3,s(D);case 3:return n=Z.sent,c(!1),Z.abrupt("return",!!n);case 6:case"end":return Z.stop()}},P)}));return function(P){return g.apply(this,arguments)}}(),children:(0,e.jsxs)(H.Z,{spinning:a,children:[(0,e.jsx)(z.Z,{name:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7EC4\u540D\u79F0",rules:[{required:!0,message:"\u7528\u6237\u7EC4\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}),(0,e.jsx)(z.Z,{name:"code",label:"\u7F16\u7801",placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7EC4\u7F16\u7801",rules:[{required:!0,message:"\u7528\u6237\u7EC4\u7F16\u7801\u4E3A\u5FC5\u586B\u9879"}]}),(0,e.jsx)(Y.Z,{name:"remark",fieldProps:{rows:2,maxLength:20,showCount:!0},placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u4FE1\u606F",label:"\u5907\u6CE8"})]})}))},q=r(39620),x=r.n(q),_=r(69567),rr=r(53010),er=_.ZP.ConfigContext;function ar(){var i=(0,L.useContext)(er),E=i.getPrefixCls,l=".".concat(E()),A=(0,rr.l)(function(m){var s,I=m.token;return s={},x()(s,".user-group-remark",{boxSizing:"border-box",width:"100%",margin:"0 !important",color:"#00000073",fontSize:"14px"}),x()(s,"".concat(l,"-pro-card-title"),{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",alignItems:"center",display:"inline-flex"}),x()(s,"".concat(l,"-pro-card-extra"),{flex:"none"}),x()(s,"".concat(l,"-pro-card-actions"),x()({},`> li,
`.concat(l,"-space-item"),{margin:"5px 0"})),x()(s,"".concat(l,"-avatar"),{width:"32px !important",height:"32px !important",marginRight:"10px"}),x()(s,"".concat(l,"-avatar-circle"),{verticalAlign:"middle",backgroundColor:I.colorPrimary}),s});return{className:A}}var nr=r(68591),tr=r.n(nr),sr=B.Z.Paragraph,N=function(E){R.m.push("/account/user-group/detail?id=".concat(E,"&tab=member"))},ur=function(){var i=(0,L.useRef)(),E=(0,L.useState)(!1),l=p()(E,2),A=l[0],m=l[1],s=ar(),I=s.className;return(0,e.jsx)("div",{className:tr()(I),children:(0,e.jsxs)(o._z,{content:"\u7528\u6237\u7EC4\u662F\u7528\u6237\u7684\u96C6\u5408\uFF0C\u5C06\u5177\u6709\u76F8\u540C\u804C\u80FD\u7684\u7528\u6237\u6DFB\u52A0\u5230\u4E00\u8D77\uFF0C\u5373\u5F62\u6210\u7528\u6237\u7EC4\u3002\u5C06\u6743\u9650\u6388\u6743\u5230\u7528\u6237\u7EC4\u540E\uFF0C\u7528\u6237\u7EC4\u5185\u7684\u7528\u6237\u90FD\u5C06\u7EE7\u627F\u8BE5\u6743\u9650\uFF0C\u56E0\u6B64\uFF0C\u7528\u6237\u7EC4\u5341\u5206\u9002\u5408\u7528\u4E8E\u6279\u91CF\u6388\u6743\u3002",children:[(0,e.jsx)(U.Rs,{actionRef:i,showActions:"always",search:{},pagination:{size:"small",defaultPageSize:10,showSizeChanger:!1},rowKey:"id",toolBarRender:function(){return[(0,e.jsxs)(S.ZP,{type:"primary",onClick:function(){m(!0)},children:[(0,e.jsx)(F.Z,{}),"\u65B0\u589E\u7528\u6237\u7EC4"]},"add")]},grid:{gutter:8,xs:1,sm:1,md:3,lg:3,xl:4,xxl:5},headerTitle:"\u7528\u6237\u7EC4\u5217\u8868",form:{syncToUrl:function(t,a){return a==="get"?h()({},t):t}},metas:{title:{dataIndex:"name",title:"\u7528\u6237\u7EC4\u540D\u79F0",render:function(t,a){return(0,e.jsx)($.Z,{placement:"topLeft",title:a.name,children:(0,e.jsx)("a",{onClick:function(){N(a.id)},children:t})})}},avatar:{search:!1,render:function(t,a){return(0,e.jsx)(b.C,{children:a.name.substring(0,1).toLocaleUpperCase()})}},content:{search:!1,dataIndex:"remark",render:function(t,a){return(0,e.jsx)(sr,{className:"user-group-remark",ellipsis:{tooltip:a.remark},title:a.remark,children:a.remark?a.remark:(0,e.jsx)(e.Fragment,{children:"\xA0"})})}},actions:{cardActionProps:"actions",render:function(t,a){return[(0,e.jsx)("a",{onClick:function(){N(a.id)},children:"\u8BE6\u60C5"},"member"),(0,e.jsx)(V.Z,{title:"\u60A8\u786E\u5B9A\u8981\u5220\u9664\u7528\u6237\u7EC4\u5417\uFF1F",placement:"bottomRight",icon:(0,e.jsx)(M.Z,{style:{color:"red"}}),onConfirm:f()(u()().mark(function c(){var g,P,D;return u()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,(0,v.AG)(a.id);case 2:if(g=C.sent,P=g.success,!P){C.next=8;break}return G.ZP.success("\u64CD\u4F5C\u6210\u529F"),(D=i.current)===null||D===void 0||D.reload(),C.abrupt("return");case 8:case"end":return C.stop()}},c)})),okText:"\u662F",cancelText:"\u5426",children:(0,e.jsx)("a",{target:"_blank",style:{color:"red"},children:"\u5220\u9664"},"remove")},"delete")]}}},request:v.S4}),(0,e.jsx)(w,{visible:A,onFinish:function(){var d=f()(u()().mark(function t(a){var c,g,P;return u()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,v.wZ)(a);case 3:if(g=n.sent,P=g.success,(c=i.current)===null||c===void 0||c.reload(),!P){n.next=10;break}return G.ZP.success("\u64CD\u4F5C\u6210\u529F"),m(!1),n.abrupt("return",!0);case 10:return n.abrupt("return",!1);case 13:return n.prev=13,n.t0=n.catch(0),n.abrupt("return",!1);case 16:case"end":return n.stop()}},t,null,[[0,13]])}));return function(t){return d.apply(this,arguments)}}(),onCancel:function(){m(!1)}})]})})},or=ur}}]);

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

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

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

File diff suppressed because one or more lines are too long

View File

@ -15,4 +15,4 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[8648],{27755:function(C,o,t){t.r(o),t.d(o,{default:function(){return O}});var u=t(84019),r=t.n(u),n=t(76091),a=t.n(n),s=t(32061),f=t.n(s),e=t(7206),d=t(75109),E=t(59787),m=t(78035),v=t(60240),p=t(30708),c=t(63342),x=function(){var i=(0,E.useModel)("@@initialState"),R=i.initialState,S=i.setInitialState,F=(0,E.useLocation)();return(0,m.Z)(f()(r()().mark(function T(){return r()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:v.Z.warning({title:"\u4F1A\u8BDD\u8FC7\u671F",content:"\u60A8\u7684\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",okText:"\u786E\u8BA4",okType:"danger",centered:!1,maskClosable:!1,okCancel:!1,onOk:function(){var j=f()(r()().mark(function Z(){var h,P,l,I,g,D;return r()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,S(a()(a()({},R),{},{currentUser:void 0}));case 2:h=p.Z.parse(F.search),P=h,l=P.redirect_uri,I={pathname:e.wm},g=l&&l.split("/"),l&&l!==g[0]+"//"+g[2]+"/"&&(I=a()(a()({},I),{},{search:p.Z.stringify({redirect_uri:l})})),D=d.m.createHref(I),window.location.replace(D);case 9:case"end":return M.stop()}},Z)}));function U(){return j.apply(this,arguments)}return U}()});case 1:case"end":return y.stop()}},T)}))),(0,c.jsx)(c.Fragment,{})},O=function(){return(0,c.jsx)(x,{})}},78035:function(C,o,t){var u=t(79685),r=t(43865),n=t(15035);const a=s=>{n.Z&&((0,r.mf)(s)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof s}".`)),(0,u.useEffect)(()=>{s==null||s()},[])};o.Z=a},43865:function(C,o,t){t.d(o,{mf:function(){return r}});const u=e=>e!==null&&typeof e=="object",r=e=>typeof e=="function",n=e=>typeof e=="string",a=e=>typeof e=="boolean",s=e=>typeof e=="number",f=e=>typeof e=="undefined"},15035:function(C,o){o.Z=!1},96249:function(C,o,t){t.d(o,{RV:function(){return f},Rk:function(){return e},Ux:function(){return E},aM:function(){return d},q3:function(){return a},qI:function(){return s}});var u=t(59067),r=t(8779),n=t(79685);const a=n.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),s=n.createContext(null),f=m=>{const v=(0,r.Z)(m,["prefixCls"]);return n.createElement(u.RV,Object.assign({},v))},e=n.createContext({prefixCls:""}),d=n.createContext({}),E=m=>{let{children:v,status:p,override:c}=m;const x=(0,n.useContext)(d),O=(0,n.useMemo)(()=>{const i=Object.assign({},x);return c&&delete i.isFormItemInput,p&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[p,c,x]);return n.createElement(d.Provider,{value:O},v)}}}]);
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[8648],{27755:function(C,o,t){t.r(o),t.d(o,{default:function(){return O}});var u=t(84019),r=t.n(u),n=t(76091),a=t.n(n),s=t(32061),f=t.n(s),e=t(7206),d=t(75109),E=t(22590),m=t(78035),v=t(51391),p=t(30708),c=t(63342),x=function(){var i=(0,E.useModel)("@@initialState"),R=i.initialState,S=i.setInitialState,F=(0,E.useLocation)();return(0,m.Z)(f()(r()().mark(function T(){return r()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:v.Z.warning({title:"\u4F1A\u8BDD\u8FC7\u671F",content:"\u60A8\u7684\u767B\u5F55\u4FE1\u606F\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55\u3002",okText:"\u786E\u8BA4",okType:"danger",centered:!1,maskClosable:!1,okCancel:!1,onOk:function(){var j=f()(r()().mark(function Z(){var h,P,l,I,g,D;return r()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,S(a()(a()({},R),{},{currentUser:void 0}));case 2:h=p.Z.parse(F.search),P=h,l=P.redirect_uri,I={pathname:e.wm},g=l&&l.split("/"),l&&l!==g[0]+"//"+g[2]+"/"&&(I=a()(a()({},I),{},{search:p.Z.stringify({redirect_uri:l})})),D=d.m.createHref(I),window.location.replace(D);case 9:case"end":return M.stop()}},Z)}));function U(){return j.apply(this,arguments)}return U}()});case 1:case"end":return y.stop()}},T)}))),(0,c.jsx)(c.Fragment,{})},O=function(){return(0,c.jsx)(x,{})}},78035:function(C,o,t){var u=t(79685),r=t(43865),n=t(15035);const a=s=>{n.Z&&((0,r.mf)(s)||console.error(`useMount: parameter \`fn\` expected to be a function, but got "${typeof s}".`)),(0,u.useEffect)(()=>{s==null||s()},[])};o.Z=a},43865:function(C,o,t){t.d(o,{mf:function(){return r}});const u=e=>e!==null&&typeof e=="object",r=e=>typeof e=="function",n=e=>typeof e=="string",a=e=>typeof e=="boolean",s=e=>typeof e=="number",f=e=>typeof e=="undefined"},15035:function(C,o){o.Z=!1},19498:function(C,o,t){t.d(o,{RV:function(){return f},Rk:function(){return e},Ux:function(){return E},aM:function(){return d},q3:function(){return a},qI:function(){return s}});var u=t(59067),r=t(8779),n=t(79685);const a=n.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),s=n.createContext(null),f=m=>{const v=(0,r.Z)(m,["prefixCls"]);return n.createElement(u.RV,Object.assign({},v))},e=n.createContext({prefixCls:""}),d=n.createContext({}),E=m=>{let{children:v,status:p,override:c}=m;const x=(0,n.useContext)(d),O=(0,n.useMemo)(()=>{const i=Object.assign({},x);return c&&delete i.isFormItemInput,p&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[p,c,x]);return n.createElement(d.Provider,{value:O},v)}}}]);