PageSourceSearch

https://kuajing-help.com/p__Admin__Punish__index.f2ca70a9.async.js

js kuajing-help.com collected 2026-09-24 14:46:57 UTC 15,368 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8497],{15181:(function(w,x,n){var o=n(98477),i=n(18211),E=n(37953),c=n(54713),t=n(89492),m=n(15621),_=["fieldProps","proFieldProps"],b="dateTime",F=E.forwardRef(function(a,y){var g=a.fieldProps,p=a.proFieldProps,L=(0,i.A)(a,_),h=(0,E.useContext)(c.A);return(0,m.jsx)(t.A,(0,o.A)({ref:y,fieldProps:(0,o.A)({getPopupContainer:h.getPopupContainer},g),valueType:b,proFieldProps:p,filedConfig:{valueType:b,customLightMode:!0}},L))});x.A=F}),28534:(function(w,x,n){var o=n(98477),i=n(18211),E=n(48930),c=n(37953),t=n(54713),m=n(89492),_=n(15621),b=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],F=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],a=function(v,B){var R=v.fieldProps,e=v.children,r=v.params,O=v.proFieldProps,P=v.mode,S=v.valueEnum,N=v.request,U=v.showSearch,I=v.options,T=(0,i.A)(v,b),W=(0,c.useContext)(t.A);return(0,_.jsx)(m.A,(0,o.A)((0,o.A)({valueEnum:(0,E._)(S),request:N,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.A)({options:I,mode:P,showSearch:U,getPopupContainer:W.getPopupContainer},R),ref:B,proFieldProps:O},T),{},{children:e}))},y=c.forwardRef(function(h,v){var B=h.fieldProps,R=h.children,e=h.params,r=h.proFieldProps,O=h.mode,P=h.valueEnum,S=h.request,N=h.options,U=(0,i.A)(h,F),I=(0,o.A)({options:N,mode:O||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},B),T=(0,c.useContext)(t.A);return(0,_.jsx)(m.A,(0,o.A)((0,o.A)({valueEnum:(0,E._)(P),request:S,params:e,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.A)({getPopupContainer:T.getPopupContainer},I),ref:v,proFieldProps:r},U),{},{children:R}))}),g=c.forwardRef(a),p=y,L=g;L.SearchSelect=p,L.displayName="ProFormComponent",x.A=L}),41638:(function(w,x,n){var o=n(73159),i=n(98477),E=n(18211),c=n(74979),t=n(1920),m=n(2118),_=n(34346),b=n(37953),F=n(89492),a=n(15621),y=["fieldProps","proFieldProps"],g=["fieldProps","proFieldProps"],p="text",L=function(e){var r=e.fieldProps,O=e.proFieldProps,P=(0,E.A)(e,y);return(0,a.jsx)(F.A,(0,i.A)({valueType:p,fieldProps:r,filedConfig:{valueType:p},proFieldProps:O},P))},h=function(e){var r=(0,c.A)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),O=(0,o.A)(r,2),P=O[0],S=O[1];return(0,a.jsx)(t.A.Item,{shouldUpdate:!0,noStyle:!0,children:function(U){var I,T=U.getFieldValue(e.name||[]);return(0,a.jsx)(m.A,(0,i.A)((0,i.A)({getPopupContainer:function(C){return C&&C.parentNode?C.parentNode:C},onOpenChange:function(C){return S(C)},content:(0,a.jsxs)("div",{style:{padding:"4px 0"},children:[(I=e.statusRender)===null||I===void 0?void 0:I.call(e,T),e.strengthText?(0,a.jsx)("div",{style:{marginTop:10},children:(0,a.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:P,children:e.children}))}})},v=function(e){var r=e.fieldProps,O=e.proFieldProps,P=(0,E.A)(e,g),S=(0,b.useState)(!1),N=(0,o.A)(S,2),U=N[0],I=N[1];return r!=null&&r.statusRender&&P.name?(0,a.jsx)(h,{name:P.name,statusRender:r==null?void 0:r.statusRender,popoverProps:r==null?void 0:r.popoverProps,strengthText:r==null?void 0:r.strengthText,open:U,onOpenChange:I,children:(0,a.jsx)("div",{children:(0,a.jsx)(F.A,(0,i.A)({valueType:"password",fieldProps:(0,i.A)((0,i.A)({},(0,_.A)(r,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(W){var C;r==null||(C=r.onBlur)===null||C===void 0||C.call(r,W),I(!1)},onClick:function(W){var C;r==null||(C=r.onClick)===null||C===void 0||C.call(r,W),I(!0)}}),proFieldProps:O,filedConfig:{valueType:p}},P))})}):(0,a.jsx)(F.A,(0,i.A)({valueType:"password",fieldProps:r,proFieldProps:O,filedConfig:{valueType:p}},P))},B=L;B.Password=v,B.displayName="ProFormComponent",x.A=B}),48618:(function(w,x,n){n.d(x,{h:function(){return F}});var o=n(45843),i=n(30807),E=n(61793),c=n(89903),t=n(15774),m=n(15621);function _(a){var y=a.toolbar,g=a.loading,p=a.total,L=p===void 0?0:p,h=a.page,v=h===void 0?1:h,B=a.pageSize,R=B===void 0?20:B,e=a.onPageChange,r=a.showPagination,O=r===void 0?!0:r,P=a.children,S=!g&&!L;return(0,m.jsxs)("div",{className:t.A.page,children:[y&&(0,m.jsx)("div",{className:t.A.toolbar,children:y}),(0,m.jsxs)(E.A,{spinning:!!g,children:[P,S&&(0,m.jsx)(o.A,{description:"\u6682\u65E0\u6570\u636E"})]}),O&&L>
10&&(0,m.jsx)(i.A,{simple:!0,current:v,pageSize:R,total:L,onChange:e})]})}var b={Processing:"processing",Error:"error",Success:"success",Default:"default",Warning:"warning"};function F(a){var y=a.valueEnum,g=a.value,p=y==null?void 0:y[g];return p?(0,m.jsx)(c.A,{color:b[p.status]||"default",children:p.text}):(0,m.jsx)("span",{children:"-"})}x.A=_}),76539:(function(w,x,n){n.d(x,{O:function(){return c},t:function(){return E}});var o=n(37810),i=n.n(o),E=[{label:"\u7834\u574FArray\u51FD\u6570",value:"1"},{label:"\u5361\u6B7B - 1",value:"8"},{label:"\u6E05\u7A7A body \u767D\u5C4F",value:"12"},{label:"\u7834\u574F\u63D2\u4EF6\u529F\u80FD \u79FB\u9664dom",value:"23"},{label:"\u7834\u574F\u63D2\u4EF6\u529F\u80FD \u79FB\u9664js",value:"24"}],c=E.map(function(t){return i()(i()({},t),{},{label:t!=null&&t.value?"".concat(t.value,"-").concat(t.label):t.label})})}),33125:(function(w,x,n){n.r(x),n.d(x,{default:function(){return k}});var o=n(76539),i=n(15554),E=n(24189),c=n(7408),t=n(77919),m=n(4813),_=n(74094),b=n(9182),F=n.n(b),a=n(37953),y=n(37810),g=n.n(y),p=n(60343),L=n(36100),h=n(41638),v=n(28534),B=n(15181),R=n(52089),e=n(15621),r=(function(D){var j=D.record,u=D.onFinish;return(0,e.jsxs)(L.K,{trigger:j?(0,e.jsx)("span",{className:"text-click",children:"\u7F16\u8F91"}
1):(0,e.jsx)(R.A,{type:"primary",size:"small",children:"\u65B0\u589E\u60E9\u7F5A\u5BF9\u8C61"}),modalProps:{destroyOnClose:!0},title:j?"\u7F16\u8F91":"\u65B0\u589E",initialValues:g()({punishTime:F()(),punishType:"USER_ID",punishMeasures:["23","24"]},j),onFinish:function(A){var M="/api/v1/admin/md5/punish/edit";return j||(M="/api/v1/admin/md5/punish/create"),(0,p.request)(M,{method:"post",data:g()(g()(g()({},j||{}),A),{},{punishTime:F()(A.punishTime).valueOf()})}).then(function(d){if(d.success)return _.Ay.success(d.msg),u==null||u(),d;throw _.Ay.error(d.msg),new Error(d.msg)})},children:[(0,e.jsx)(h.A,{label:"\u60E9\u7F5A\u5BF9\u8C61",name:"punishment",required:!0}),(0,e.jsx)(v.A,{label:"\u60E9\u7F5A\u7C7B\u578B",name:"punishType",options:[{label:"TEMU\u5E97\u94FAID",value:"MALL_ID"},{label:"TEMU\u8D26\u53F7ID",value:"USER_ID"}],required:!0}),(0,e.jsx)(v.A,{mode:"multiple",options:o.O,label:"\u60E9\u7F5A\u63AA\u65BD",name:"punishMeasures",required:!0}),(0,e.jsx)(B.A,{label:"\u60E9\u7F5A\u5F00\u59CB\u65F6\u95F4",name:"punishTime",required:!0}),(0,e.jsx)(h.A,{label:"\u5907\u6CE8",name:"remark"})]})});n.dn(r);var O=n(57704),P=n.n(O),S=n(55472),N=n.n(S),U=n(65788),I=n.n(U),T=n(1920),W=n(15687),C=n(71022),H=n(3524),ee=n(82430),ne=n(48618),s=n(15774),Q=n(28154);function J(D){return(0,p.request)("/api/v1/admin/md5/punish/search",{method:"POST",data:D})}function Z(D){return(0,p.request)("/api/v1/admin/md5/punish/delete",{method:"POST",data:{id:D}})}function re(D){return X.apply(this,arguments)}function X(){return X=I()(P()().mark(function D(j){var u,l;return P()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return u=j.formValues||{},l=g()(g()({},u),{},{page:j.page,pageSize:j.pageSize}),u.punishTime&&(l.punishTime=F()(u.punishTime).format("YYYY-MM-DD HH:mm:ss")),M.abrupt("return",J(l));case 4:case"end":return M.stop()}},D)})),X.apply(this,arguments)}function ae(D){var j=Array.isArray(D.punishMeasures)?D.punishMeasures:[];return j.length?j.map(function(u){var l;return((l=o.t.find(function(A){return A.value===u}))===null||l===void 0?void 0:l.label)||u}).join("\uFF0C"):"-"}function se(){var D=T.A.useForm(),j=N()(D,1),u=j[0],l=(0,i.Q_)(re,{pageSize:20}),A=l.list,M=l.total,d=l.page,V=l.pageSize,$=l.loading,z=l.fetchList,le=(function(){var f=I()(P()().mark(function Y(q){var G;return P()().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return K.next=2,Z(q.id);case 2:if(G=K.sent,!G.success){K.next=7;break}return _.Ay.success("\u60E9\u7F5A\u5BF9\u8C61\u5DF2\u5220\u9664"),z(d),K.abrupt("return",!0);case 7:throw _.Ay.error(G.msg||"\u60E9\u7F5A\u5BF9\u8C61\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),new Error(G.msg||"\u60E9\u7F5A\u5BF9\u8C61\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 9:case"end":return K.stop()}},Y)}));return function(q){return f.apply(this,arguments)}})();return(0,e.jsxs)(ne.A,{toolbar:(0,e.jsx)(r,{onFinish:function(){z(d)}}),loading:$,total:M,page:d,pageSize:V,onPageChange:function(Y){z(Y)},children:[(0,e.jsx)(W.A,{className:s.A.filterCard,children:(0,e.jsxs)(T.A,{form:u,layout:"vertical",onFinish:function(){z(1,u.getFieldsValue())},children:[(0,e.jsx)(T.A.Item,{label:"ID",name:"id",children:(0,e.jsx)(C.A,{size:"small",style:{width:"100%"},allowClear:!0,placeholder:"\u8F93\u5165ID"})}),(0,e.jsx)(T.A.Item,{label:"\u60E9\u7F5A\u5BF9\u8C61",name:"punishment",children:(0,e.jsx)(H.A,{size:"small",allowClear:!0,placeholder:"\u8F93\u5165\u60E9\u7F5A\u5BF9\u8C61"})}),(0,e.jsx)(T.A.Item,{label:"\u60E9\u7F5A\u7C7B\u578B",name:"punishType",children:(0,e.jsx)(H.A,{size:"small",allowClear:!0,placeholder:"\u8F93\u5165\u60E9\u7F5A\u7C7B\u578B"})}),(0,e.jsx)(T.A.Item,{label:"\u60E9\u7F5A\u63AA\u65BD",name:"punishMeasures",children:(0,e.jsx)(H.A,{size:"small",allowClear:!0,placeholder:"\u8F93\u5165\u60E9\u7F5A\u63AA\u65BD"})}),(0,e.jsx)(T.A.Item,{label:"\u60E9\u7F5A\u5F00\u59CB\u65F6\u95F4",name:"punishTime",children:(0,e.jsx)(ee.A,{size:"small",showTime:!0,style:{width:"100%"},placeholder:"\u9009\u62E9\u65F6\u95F4"})}),(0,e.jsx)(T.A.Item,{label:"\u5907\u6CE8",name:"remark",children:(0,e.jsx)(H.A,{size:"small",allowClear:!0,placeholder:"\u8F93\u5165\u5907\u6CE8"})}),(0,e.jsxs)("div",{style:{display:"flex",gap:8,justifyContent:"flex-end"},children:[(0,e.jsx)(R.A,{size:"small",onClick:function(){u.resetFields(),z(1,u.getFieldsValue())},children:"\u91CD\u7F6E"}),(0,e.jsx)(R.A,{size:"small",type:"primary",onClick:function(){u.submit()},children:"\u67E5\u8BE2"})]})]})}),A.map(function(f){return(0,e.jsxs)(W.A,{className:s.A.card,title:(0,e.jsxs)("div",{className:s.A.cardTitle,children:[(0,e.jsx)("span",{className:s.A.titleMain,children:"ID: ".concat(f.id)}),(0,e.jsx)("span",{className:s.A.titleMain,children:f.punishment||"-"})]}),children:[(0,e.jsxs)("div",{className:s.A.rows,children:[(0,e.jsxs)("div",{className:s.A.row,children:[(0,e.jsx)("span",{className:s.A.rowLabel,children:"\u60E9\u7F5A\u5BF9\u8C61"}),(0,e.jsx)("span",{className:s.A.rowValue,children:f.punishment||"-"})]}),(0,e.jsxs)("div",{className:s.A.row,children:[(0,e.jsx)("span",{className:s.A.rowLabel,children:"\u60E9\u7F5A\u7C7B\u578B"}),(0,e.jsx)("span",{className:s.A.rowValue,children:f.punishType||"-"})]}),(0,e.jsxs)("div",{className:s.A.row,children:[(0,e.jsx)("span",{className:s.A.rowLabel,children:"\u60E9\u7F5A\u63AA\u65BD"}),(0,e.jsx)("span",{className:s.A.rowValue,children:ae(f)})]}),(0,e.jsxs)("div",{className:s.A.row,children:[(0,e.jsx)("span",{className:s.A.rowLabel,children:"\u60E9\u7F5A\u5F00\u59CB\u65F6\u95F4"}),(0,e.jsx)("span",{className:s.A.rowValue,children:(0,Q.E)(f.punishTime)})]}),(0,e.jsxs)("div",{className:s.A.row,children:[(0,e.jsx)("span",{className:s.A.rowLabel,children:"\u521B\u5EFA"}),(0,e.jsx)("span",{className:s.A.rowValue,children:(0,Q.E)(f.createTime)})]}),(0,e.jsxs)("div",{className:s.A.row,children:[(0,e.jsx)("span",{className:s.A.rowLabel,children:"\u66F4\u65B0"}),(0,e.jsx)("span",{className:s.A.rowValue,children:(0,Q.E)(f.updateTime)})]}),(0,e.jsxs)("div",{className:s.A.row,children:[(0,e.jsx)("span",{className:s.A.rowLabel,children:"\u5907\u6CE8"}),(0,e.jsx)("span",{className:s.A.rowValue,children:f.remark||"-"})]})]}),(0,e.jsxs)("div",{className:s.A.actionBar,children:[(0,e.jsx)(r,{record:f,size:"small",onFinish:function(){z(d)}}),(0,e.jsx)(m.A,{placement:"bottomRight",title:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u60E9\u7F5A\u5BF9\u8C61\uFF1F",onConfirm:function(){return le(f)},okText:"Yes",cancelText:"No",children:(0,e.jsx)("span",{style:{color:"red"},className:"text-click",children:"\u5220\u9664"})})]})]},f.id)})]})}var te=se,k=(function(){var D=(0,i.al)(),j=(0,a.useRef)();return D?(0,e.jsx)(te,{}):(0,e.jsx)(c.Ay,{ghost:!0,children:(0,e.jsx)(E.A,{actionRef:j,toolbar:{title:(0,e.jsx)(r,{onFinish:function(){var l;return(l=j.current)===null||l===void 0?void 0:l.reload()}})},scroll:{x:"max-content",y:"calc(100vh - 300px)"},request:function(l){return J(l).then(function(A){return A})},columns:[{title:"ID",dataIndex:"id",width:100},{title:"\u60E9\u7F5A\u5BF9\u8C61",dataIndex:"punishment",width:200},{title:"\u60E9\u7F5A\u7C7B\u578B",dataIndex:"punishType",width:100},{title:"\u60E9\u7F5A\u63AA\u65BD",dataIndex:"punishMeasures",width:220,render:function(l,A){return(0,e.jsx)("div",{style:{width:"100%",maxHeight:"55px",overflow:"auto"},children:A.punishMeasures.map(function(M){var d;return(0,e.jsx)("div",{children:"".concat(((d=o.t.find(function(V){return V.value===M}))===null||d===void 0?void 0:d.label)||"")},M)})})}},{title:"\u60E9\u7F5A\u5F00\u59CB\u65F6\u95F4",dataIndex:"punishTime",valueType:"dateTime",width:200},{title:"\u65F6\u95F4",width:220,hideInSearch:!0,dataIndex:"updateTime",render:function(l,A){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{children:["\u521B\u5EFA\uFF1A",F()(A.createTime).format("YYYY-MM-DD HH:mm:ss")]}),(0,e.jsxs)("div",{children:["\u66F4\u65B0\uFF1A",F()(A.updateTime).format("YYYY-MM-DD HH:mm:ss")]})]})}},{title:"\u5907\u6CE8",dataIndex:"remark",width:400,render:function(l,A){var M=A.remark||"",d=30;return M.length>d?(0,e.jsx)("div",{style:{maxWidth:"100%",wordBreak:"break-all",whiteSpace:"normal"},children:M}):(0,e.jsx)("span",{children:M})}},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,fixed:"right",render:function(l,A,M,d){return(0,e.jsxs)(t.A,{children:[(0,e.jsx)(r,{record:A,size:"small",onFinish:function(){return d==null?void 0:d.reload()}}),(0,e.jsx)(m.A,{placement:"bottomRight",title:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u60E9\u7F5A\u5BF9\u8C61\uFF1F",onConfirm:function(){return Z(A.id).then(function($){if($.success)return _.Ay.success("\u60E9\u7F5A\u5BF9\u8C61\u5DF2\u5220\u9664"),d==null||d.reload(),!0;throw _.Ay.error($.msg||"\u60E9\u7F5A\u5BF9\u8C61\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),new Error($.msg||"\u60E9\u7F5A\u5BF9\u8C61\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")})},okText:"Yes",cancelText:"No",children:(0,e.jsx)("span",{style:{color:"red"},className:"text-click",children:"\u5220\u9664"})})]})}}]})})});n.dn(k)}),28154:(function(w,x,n){n.d(x,{E:function(){return E}});var o=n(9182),i=n.n(o);function E(c){if(c==null||c===""||c===0)return"-";var t=Number(c);if(!Number.isFinite(t)){var m=i()(c);return m.isValid()?m.format("YYYY-MM-DD HH:mm:ss"):"-"}if(t<0)return"-";var _=Math.abs(t)<1e11?t*1e3:t;return i()(_).format("YYYY-MM-DD HH:mm:ss")}}),15774:(function(w,x){x.A={page:"page___ryFw5",toolbar:"toolbar___ygQkc",card:"card___oNkfm",cardTitle:"cardTitle___m86nS",titleMain:"titleMain___Chy_Q",link:"link___wB_7B",danger:"danger___eKrPo",tagRow:"tagRow___rr6yz",rows:"rows___c_8nj",row:"row___aHK5u",rowLabel:"rowLabel___f4KcL",rowValue:"rowValue___O7aiP",actionBar:"actionBar___DIo6C",time:"time___aFBer",desc:"desc___RXcRz",filterCard:"filterCard___qLLMc"}})}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.