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

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