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
20 KiB

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[903],{40110:function(J,F,e){var f=e(1413),m=e(67294),T=e(509),c=e(91146),W=function(P,s){return m.createElement(c.Z,(0,f.Z)((0,f.Z)({},P),{},{ref:s,icon:T.Z}))},x=m.forwardRef(W);F.Z=x},42767:function(J,F,e){e.d(F,{Z:function(){return r}});var f=e(5574),m=e.n(f),T=e(55241),c=e(2487),W=e(71230),x=e(7134),E=e(67294),P=e(52043),s=e(58125),D=e(15009),O=e.n(D),K=e(97857),S=e.n(K),j=e(99289),I=e.n(j),y=e(40110),p=e(67539),h=e(55102),B=e(42075),U=e(14726),Q=e(17788),Y=e(4575),l=e(85893),Z=function(t){var i=(0,E.useState)(),C=m()(i,2),n=C[0],d=C[1],_=(0,E.useState)(),a=m()(_,2),u=a[0],G=a[1],L=[{title:"\u5E94\u7528\u540D",dataIndex:"appName",ellipsis:!0,hideInSearch:!0,filterDropdown:function(g){var v=g.setSelectedKeys,z=g.selectedKeys,A=g.confirm,V=g.clearFilters;return(0,l.jsxs)("div",{style:{padding:8},children:[(0,l.jsx)(h.Z,{placeholder:"\u641C\u7D22\u5E94\u7528",value:z[0],onChange:function(b){return v(b.target.value?[b.target.value]:[])},onPressEnter:function(){return A()},style:{marginBottom:8,display:"block"}}),(0,l.jsxs)(B.Z,{children:[(0,l.jsx)(U.ZP,{onClick:function(){return A()},type:"primary",children:"\u641C\u7D22"}),(0,l.jsx)(U.ZP,{onClick:function(){return V&&V()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(g,v){return typeof g=="string"&&typeof(v==null?void 0:v.appName)=="string"?v.appName.includes(g):!1},filterIcon:function(g){return(0,l.jsx)(y.Z,{style:{color:g?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}},{title:"\u5E94\u7528\u5305\u540D",dataIndex:"packageName",hideInSearch:!0,ellipsis:!0,filterDropdown:function(g){var v=g.setSelectedKeys,z=g.selectedKeys,A=g.confirm,V=g.clearFilters;return(0,l.jsxs)("div",{style:{padding:8},children:[(0,l.jsx)(h.Z,{placeholder:"\u641C\u7D22\u5305\u540D",value:z[0],onChange:function(b){return v(b.target.value?[b.target.value]:[])},onPressEnter:function(){return A()},style:{marginBottom:8,display:"block"}}),(0,l.jsxs)(B.Z,{children:[(0,l.jsx)(U.ZP,{onClick:function(){return A()},type:"primary",children:"\u641C\u7D22"}),(0,l.jsx)(U.ZP,{onClick:function(){return V&&V()},type:"link",children:"\u6E05\u9664"})]})]})},onFilter:function(g,v){return typeof g=="string"&&typeof(v==null?void 0:v.packageName)=="string"?v.packageName.includes(g):!1},filterIcon:function(g){return(0,l.jsx)(y.Z,{style:{color:g?"#1890ff":void 0},onPointerOverCapture:void 0,onPointerMoveCapture:void 0})}}],R=function(){var M=I()(O()().mark(function g(){var v,z,A,V;return O()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,Y.ai)();case 2:v=b.sent,v.data&&(A=[],V=[],(z=t.data.localAppList)===null||z===void 0||z.forEach(function(H){var k;(k=v.data)!==null&&k!==void 0&&k.some(function(ne){return ne.packageName===H.packageName})?A.push(S()(S()({},H),{},{evil:!0})):V.push(S()(S()({},H),{},{evil:!1}))}),d([].concat(A,V)),G([].concat(A,V)));case 4:case"end":return b.stop()}},g)}));return function(){return M.apply(this,arguments)}}();return(0,E.useEffect)(function(){R()},[]),(0,l.jsx)(Q.Z,{style:{width:600},onCancel:t.onClose,visible:!0,footer:[],children:(0,l.jsx)(p.Z,{onRow:function(g){return{style:{backgroundColor:g.evil?"red":"transparent"}}},search:!1,onReset:function(){G(n)},columns:L,dataSource:u})})},$=Z,N=function(t){var i=(0,E.useState)(!1),C=m()(i,2),n=C[0],d=C[1],_=(0,P.E7)(t.data.env);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(T.Z,{content:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("p",{children:[(0,l.jsx)("label",{children:"\u603B\u6536\u5165\uFF1A"}),(0,s.P)(t.data.income),"\u5143"]}),(0,l.jsxs)("p",{children:[(0,l.jsx)("label",{children:"\u5DF2\u63D0\u73B0\uFF1A"}),(0,s.D)(t.data.realMoney),"\u5143"]}),t.data.localAppList&&t.data.localAppList.length>0&&(0,l.jsxs)("p",{children:[(0,l.jsx)("label",{children:"\u5DF2\u5B89\u88C5\u5E94\u7528\uFF1A"}),t.data.localAppList.length,"\u4E2A",(0,l.jsx)("a",{onClick:function(){d(!0)},style:{marginLeft:20},children:"\u67E5\u770B"})]}),_.length>0&&(0,l.jsx)(c.Z,{size:"small",header:(0,l.jsx)("di