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