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

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