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