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.9 KiB

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