"use strict";(self.webpackChunkboluo_admin=self.webpackChunkboluo_admin||[]).push([[935],{66268:function(Y,g,e){e.r(g),e.d(g,{default:function(){return J}});var N=e(90228),O=e.n(N),Z=e(87999),A=e.n(Z),$=e(48305),C=e.n($),L=e(93218),U=e(19191),E=e(90103),B=e(49973),H=e(67929),c=e(4481),M=e(16483),R=e.n(M),m=e(75271),j=e(45973),b=e(13033),a=e(52676),D=(0,b.kc)(function(){return{container:{width:330,display:"flex",flexDirection:"row",flexWrap:"wrap",marginLeft:"-10px",marginBottom:"-10px"},imageContainer:{marginLeft:"10px",marginBottom:"10px"}}}),G=function(y){var v=y.videos,x=v===void 0?[]:v,f=D(),T=f.styles,p=function(I,h){var s=x[h.current];return!s||s.type==="image"?I:(0,a.jsx)("video",{controls:!0,autoPlay:!0,width:"400px",src:s.url})};return(0,a.jsx)("div",{className:T.container,children:(0,a.jsx)(j.Z.PreviewGroup,{preview:{imageRender:p,toolbarRender:function(){return null},destroyOnClose:!0},children:x.map(function(d){return(0,a.jsx)(j.Z,{width:100,src:d.coverUrl,wrapperClassName:T.imageContainer},d.coverUrl)})})})},W=G,F=e(11039),w=e(55603),P=e(29078),o=[{label:"\u5F00\u653E",value:!0},{label:"\u5C01\u7981",value:!1}],z=function(){var y=(0,m.useState)(!1),v=C()(y,2),x=v[0],f=v[1],T=(0,m.useState)(),p=C()(T,2),d=p[0],I=p[1],h=(0,m.useRef)(),s=(0,m.useRef)(),V=[{title:"\u89C6\u9891",dataIndex:"userId",valueType:"textarea",copyable:!0,search:!1,render:function(t,r){return(0,a.jsx)(W,{videos:r.materialVideoInfoList})}},{title:"\u4E3B\u64ADID",dataIndex:"userId",valueType:"textarea",copyable:!0},{title:"\u6A21\u5361\u6635\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u4E3B\u64AD\u6635\u79F0",dataIndex:"nickname",valueType:"textarea",search:!1},{title:"\u81EA\u8EAB\u4F18\u52BF",dataIndex:"advantages",valueType:"textarea",search:!1,width:200},{title:"\u6A21\u5361\u72B6\u6001",dataIndex:"isOpen",valueType:"textarea",renderText:function(t){var r;return(r=o.find(function(n){return n.value===t}))===null||r===void 0?void 0:r.label},renderFormItem:function(){return(0,a.jsx)(c.Z,{showSearch:!0,allowClear:!0,options:o})},search:!1},{title:"\u4E3B\u64AD\u6A21\u5361\u72B6\u6001",dataIndex:"userOpen",valueType:"textarea",renderText:function(t){var r;return(r=o.find(function(n){return n.value===t}))===null||r===void 0?void 0:r.label},renderFormItem:function(){return(0,a.jsx)(c.Z,{showSearch:!0,allowClear:!0,options:o})}},{title:"\u540E\u53F0\u6A21\u5361\u72B6\u6001",dataIndex:"adminOpen",valueType:"textarea",renderText:function(t){var r;return(r=o.find(function(n){return n.value===t}))===null||r===void 0?void 0:r.label},renderFormItem:function(){return(0,a.jsx)(c.Z,{showSearch:!0,allowClear:!0,options:o})}},{title:"\u610F\u5411\u57CE\u5E02",dataIndex:"cityCode",valueType:"textarea",renderText:function(t){return F.JO.get(t)},renderFormItem:function(){return(0,a.jsx)(c.Z,{showSearch:!0,allowClear:!0,options:F.ZD,filterOption:function(r,n){var i;return((i=n==null?void 0:n.label)!==null&&i!==void 0?i:"").toLowerCase().includes(r.toLowerCase())}})}},{title:"\u64AD\u8FC7\u7684\u54C1\u7C7B",dataIndex:"workedSecCategoryStr",valueType:"textarea",search:!1,width:200},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created",valueType:"dateTime",renderText:function(t){return R()(Number(t)).format(w.T)},search:!1,sorter:!0},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updated",valueType:"dateTime",renderText:function(t){return R()(Number(t)).format(w.T)},search:!1,sorter:!0},{title:"\u64CD\u4F5C",valueType:"option",fixed:"right",width:100,align:"center",render:function(t,r){return(0,a.jsx)("a",{onClick:function(){f(!0),I(r)},children:"\u4FEE\u6539"},"config")}}];return(0,a.jsxs)(L._z,{children:[(0,a.jsx)(U.Z,{headerTitle:"\u67E5\u8BE2\u8868\u683C",actionRef:h,rowKey:"key",search:{labelWidth:120,collapsed:!1,collapseRender:!1},request:P._h,columns:V,scroll:{x:"max-content"}}),(0,a.jsx)(E.Y,{title:"\u66F4\u65B0\u6A21\u5361\u4FE1\u606F",width:"400px",formRef:s,open:x,onOpenChange:f,onFinish:function(){var l=A()(O()().mark(function t(r){var n,i,S;return O()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return n={id:d.id,adminOpen:Number(r.adminOpen)},console.log("update confirm",r,n),u.prev=2,u.next=5,(0,P.MP)(n);case 5:(i=h.current)===null||i===void 0||i.reload(),(S=s.current)===null||S===void 0||S.resetFields(),u.next=11;break;case 9:u.prev=9,u.t0=u.catch(2);case 11:f(!1);case 12:case"end":return u.stop()}},t,null,[[2,9]])}));return function(t){return l.apply(this,arguments)}}(),children:(0,a.jsx)(B.Z,{name:"adminOpen",label:"\u540E\u53F0\u6A21\u5361\u72B6\u6001",options:o,rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]})})]})},J=z}}]);
