1"use strict";(self.webpackChunksolar_react=self.webpackChunksolar_react||[]).push([[59],{39968:function(e,t,n){n.d(t,{CP:function(){return h},Ik:function(){return l},TJ:function(){return p},UI:function(){return m},Yv:function(){return a},cT:function(){return y},eE:function(){return o},gL:function(){return j},pp:function(){return c},qp:function(){return f},r6:function(){return x},ru:function(){return g},si:function(){return v},tR:function(){return u},vo:function(){return d}});var r=n(13233),i=n(74776),s=n.n(i),a=function(e){return(0,r.j0)("/sys/faq/listFAQ",s().stringify(e))},l=function(e){return(0,r.j0)("/sys/information/listInformation",s().stringify(e))},c=function(e){return(0,r.j0)("/sys/consult/listConsultPersonal",s().stringify(e))},o=function(e){return(0,r.j0)("/sys/consult/sendConsult",s().stringify(e))},u=function(e){return(0,r.j0)("/sys/consult/deleteConsult",s().stringify(e))},d=function(e){return(0,r.j0)("/sys/discuss/listDiscuss",s().stringify(e))},f=function(e){return(0,r.j0)("/sys/feedback/listFeedback",s().stringify(e))},m=function(e){return(0,r.A_)("/sys/post/listPostByType",e)},p=function(e){return(0,r.j0)("/sys/post/sendPost",s().stringify(e))},x=function(e){return(0,r.j0)("/sys/post/deletePost",s().stringify(e))},h=function(e){return(0,r.j0)("/sys/post/updatePost",s().stringify(e))},v=function(e){return(0,r.j0)("/sys/post/findPost",s().stringify(e))},g=function(e){return(0,r.j0)("/sys/post/listPostByMain",s().stringify(e))},j=function(e){return(0,r.j0)("/sys/post/listPostSelf",s().stringify(e))},y=function(e){return(0,r.iK)("/file/uploadFile",e)}},86962:function(e,t,n){n.d(t,{Az:function(){return v},Gx:function(){return m},J2:function(){return o},VR:function(){return f},hM:function(){return d},o:function(){return p},u:function(){return u},v0:function(){return x}});var r=n(13233),i=n(17493),s=n(31881),a=n.n(s),l=n(74776),c=n.n(l);function o(e){return(0,r.A_)("/material/".concat(e))}function u(e){return(0,r.A_)("/material/admin/".concat(e))}function d(e){return(0,r.Q8)("/material/admin",e)}function f(e){return(0,r.GH)("/material/admin",e)}function m(e){return(0,r.Jl)("/material/".concat(e))}function p(e,t){return(0,r.GH)("/material/admin/".concat(e,"/active?active=").concat(t))}function x(e){return(0,r.A_)("/material/admin/list",e)}function h(e,t){var n="https://solardesign.cn/calc";"undefined"!==typeof window&&void 0!==window.hostaddr&&(n="http://"+window.hostaddr+":9040");var r=function(e){var t={};return Object.keys(e).forEach((function(n){void 0!==e[n]&&null!==e[n]&&""!==e[n]&&(t[n]=e[n])})),t}(t),s=c().stringify(r);return a()({method:"POST",url:"".concat(n).concat(e),data:s,headers:{"Content-Type":"application/x-www-form-urlencoded",tick:(0,i.bA)(),uid:(0,i.Kr)()}})}function v(e){return h("/material/list",e)}},64059:function(e,t,n){n.r(t);var r=n(93433),i=n(4942),s=n(74165),a=n(1413),l=n(15861),c=n(29439),o=n(47313),u=n(74294),d=n(70685),f=n(73323),m=n(83999),p=n(15881),x=n(55291),h=n(22741),v=n(68197),g=n(59624),j=n(6289),y=n(28080),Z=n(14925),b=n(59491),I=n(72652),C=n(45705),A=n(46155),E=n(22231),w=n(82224),D=n(82138),B=n(60020),k=n(52917),P=n(12019),G=n(58467),M=n(39968),F=n(86962),S=(n(71730),n(46417)),R=(u.Z.Option,d.Z.TextArea,f.Z.Title),T=f.Z.Text;m.Z.Step;if("undefined"!==typeof window){var q=document.createElement("style");q.innerHTML="\n .param-sections-grid {\n display: grid;\n grid-template-columns: repeat(4, minmax(300px, 1fr));\n gap: 16px;\n }\n @media (max-width: 1500px) {\n .param-sections-grid {\n grid-template-columns: repeat(2, minmax(300px, 1fr));\n }\n }\n @media (max-width: 700px) {\n .param-sections-grid {\n grid-template-columns: 1fr;\n }\n }\n .param-section-item { min-width: 0; }\n ",document.head.appendChild(q)}t.default=function(){var e=p.Z.useForm(),t=(0,c.Z)(e,1)[0],n=(0,o.useState)(0),f=(0,c.Z)(n,2),m=(f[0],f[1],(0,o.useState)(!1)),q=(0,c.Z)(m,2),z=q[0],_=q[1],U=(0,o.useState)(!0),L=(0,c.Z)(U,2),W=L[0],N=L[1],V=(0,o.useState)(!1),H=(0,c.Z)(V,2),O=H[0],K=H[1],J=(0,o.useState)({struct3d:null,refractiveIndex:null,bandDiagram:null,statesDensity:null,absorptivity:null,referenceRefractiveFile:null}),Q=(0,c.Z)(J,2),Y=Q[0],$=Q[1],X=(0,o.useState)({bandGap:"",dielectricConstant:"",electronEffectiveMass:"",holeEffectiveMass:"",electronAffinity:""}),ee=(0,c.Z)(X,2),te=ee[0],ne=ee[1],re=(0,o.useState)([]),ie=(0,c.Z)(re,2),se=ie[0],ae=ie[1],le=(0,G.s0)(),ce=(0,G.UO)().uuid,oe=[{value:"absorber",label:"\u5438\u5149\u5c42\u6750\u6599",children:[{value:"organic",label:"\u6709\u673a\u6750\u6599"},{value:"tetrahedral",label:"\u56db\u9762\u4f53\u6750\u6599"},{value:"perovskite",label:"\u9499\u949b\u77ff\u6750\u6599",children:[{value:"lead_perovskite",label:"\u542b\u94c5\u9499\u949b\u77ff"}
1,{value:"lead_free_perovskite",label:"\u4e0d\u542b\u94c5\u9499\u949b\u77ff"}]}]},{value:"electron_transport",label:"\u7535\u5b50\u4f20\u8f93\u5c42\u6750\u6599"},{value:"hole_transport",label:"\u7a7a\u7a74\u4f20\u8f93\u5c42\u6750\u6599"},{value:"electrode",label:"\u7535\u6781\u6750\u6599",children:[{value:"positive",label:"\u6b63\u6781"},{value:"negative",label:"\u8d1f\u6781"}]}],ue=[{value:"GGA-PBE",label:"GGA-PBE"},{value:"GGA-PW91",label:"GGA-PW91"},{value:"LDA",label:"LDA"},{value:"HSE06",label:"HSE06"},{value:"PBE0",label:"PBE0"}],de=function(){var e=(0,l.Z)((0,s.Z)().mark((function e(n){var r,i,l,o,u,d;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),e.prev=1,e.next=4,(0,F.u)(n);case 4:if((r=e.sent).data&&("200"===r.data.code||"1000"===r.data.code)){e.next=7;break}throw new Error((null===(i=r.data)||void 0===i?void 0:i.msg)||"\u83b7\u53d6\u6750\u6599\u8be6\u60c5\u5931\u8d25");case 7:return l=r.data.data,o={name:l.name||"",fullname:l.fullname||"",element:l.element||"",category:l.cata&&l.key?function(){var e={1:"absorber",2:"electron_transport",3:"hole_transport",4:"electrode"}[l.cata];return e?1===l.cata&&"lead_perovskite"===l.key?["absorber","perovskite","lead_perovskite"]:1===l.cata&&"lead_free_perovskite"===l.key?["absorber","perovskite","lead_free_perovskite"]:[e,l.key]:[]}():[],chemicalFormula:l.chemicalFormula||"",structA:l.structA,structB:l.structB,structC:l.structC,structAlpha:l.structAlpha,structBeta:l.structBeta,structGamma:l.structGamma,structVolume:l.structVolume,functional:l.functional||"",energyCriterion:l.energyCriterion||"",kDensity:l.kDensity||"",forceCriterion:l.forceCriterion||"",bandGap:l.bandGap,dielectricConstant:l.dielectricConstant,eEffectiveMass:l.eEffectiveMass,hEffectiveMass:l.hEffectiveMass,electronAffinity:l.electronAffinity,atomicNumber:l.atomicNumber},setTimeout((function(){t.resetFields(),t.setFieldsValue(o),t.validateFields().catch((function(){}));t.getFieldsValue()}),100),u={},l.struct3d&&(u.struct3d={name:l.struct3d.split("/").pop()||"crystal.cif",url:l.struct3d,uid:"cif-"+n,status:"done"}),l.refractiveIndex&&"string"===typeof l.refractiveIndex&&(u.refractiveIndex={name:l.refractiveIndex.split("/").pop()||"refractive.txt",url:l.refractiveIndex,uid:"ref-"+n,status:"done"}),l.bandDiagram&&(u.bandDiagram={name:l.bandDiagram.split("/").pop()||"band_structure.jpg",url:l.bandDiagram,uid:"band-"+n,status:"done"}),l.statesDensity&&(u.statesDensity={name:l.statesDensity.split("/").pop()||"dos.jpg",url:l.statesDensity,uid:"dos-"+n,status:"done"}),l.absorptivity&&(u.absorptivity={name:l.absorptivity.split("/").pop()||"absorption.jpg",url:l.absorptivity,uid:"abs-"+n,status:"done"}),$(u),l&&(ne({bandGap:l.refBandGap||"",dielectricConstant:l.refDielectricConstant||"",electronEffectiveMass:l.refEEffectiveMass||"",holeEffectiveMass:l.refHEffectiveMass||"",electronAffinity:l.refElectronAffinity||""}),l.refRefractiveIndex&&$((function(e){return(0,a.Z)((0,a.Z)({},e),{},{referenceRefractiveFile:{name:"\u53c2\u8003\u6298\u5c04\u7387\u6587\u4ef6.txt",url:l.refRefractiveIndex,uid:"ref-refractive-"+n,status:"done"}})})),l.refs&&(d=l.refs.split("\n").filter((function(e){return e.trim()})).map((function(e,t){var n=e.split("|||"),r=(0,c.Z)(n,2),i=r[0],s=r[1];return{id:Date.now()+t,title:i||"",url:s||""}})),ae(d))),e.abrupt("return",l);case 21:e.prev=21,e.t0=e.catch(1),console.error("\u83b7\u53d6\u6750\u6599\u6570\u636e\u5931\u8d25:",e.t0),x.ZP.error(e.t0.message||"\u83b7\u53d6\u6750\u6599\u8be6\u60c5\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5"),$({struct3d:null,refractiveIndex:null,bandDiagram:null,statesDensity:null,absorptivity:null});case 26:return e.prev=26,N(!1),e.finish(26);case 29:case"end":return e.stop()}}),e,null,[[1,21,26,29]])})));return function(t){return e.apply(this,arguments)}}();(0,o.useEffect)((function(){ce?de(ce):(x.ZP.error("\u6750\u6599UUID\u4e0d\u5b58\u5728"),le("/plat/manage/material"))}),[ce,le]);var fe=function(){var e=(0,l.Z)((0,s.Z)().mark((function e(t){var n,r,i,l,c,o,u,d,f,m,p,h,v,g,j,y,Z,b;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(_(!0),e.prev=1,Y.struct3d&&"done"===Y.struct3d.status){e.next=6;break}return x.ZP.error("\u8bf7\u4e0a\u4f20\u6676\u4f53\u7ed3\u6784CIF\u6587\u4ef6"),_(!1),e.abrupt("return");case 6:return h=(0,a.Z)((0,a.Z)({},t),{},{crystalTxtUrl:null===(n=Y.crystalTxt)||void 0===n?void 0:n.url,refractiveFileUrl:null===(r=Y.refractiveFile)||void 0===r?void 0:r.url,bandImageUrl:null===(i=Y.bandImage)||void 0===i?void 0:i.url,dosImageUrl:null===(l=Y.dosImage)||void 0===l?void 0:l.url,absImageUrl:null===(c=Y.absImage)||void 0===c?void 0:c.url}),v={},h.name&&(v.name=h.name),h.fullname&&(v.fullname=h.fullname),h.element&&(v.element=h.element),g={absorber:1,electron_transport:2,hole_transport:3,electrode:4}
1,h.category&&(Array.isArray(h.category)?(j=h.category,v.cata=g[j[0]]||null,v.key=j[j.length-1]):"string"===typeof h.category&&(v.key=h.category)),void 0!==h.structA&&null!==h.structA&&(v.structA=h.structA),void 0!==h.structAlpha&&null!==h.structAlpha&&(v.structAlpha=h.structAlpha),void 0!==h.structB&&null!==h.structB&&(v.structB=h.structB),void 0!==h.structBeta&&null!==h.structBeta&&(v.structBeta=h.structBeta),void 0!==h.structC&&null!==h.structC&&(v.structC=h.structC),void 0!==h.structGamma&&null!==h.structGamma&&(v.structGamma=h.structGamma),void 0!==h.structVolume&&null!==h.structVolume&&(v.structVolume=h.structVolume),h.functional&&(v.functional=h.functional),h.energyCriterion&&(v.energyCriterion=h.energyCriterion),h.kDensity&&(v.kDensity=h.kDensity),h.forceCriterion&&(v.forceCriterion=h.forceCriterion),h.chemicalFormula&&(v.chemicalFormula=h.chemicalFormula),void 0!==h.eEffectiveMass&&null!==h.eEffectiveMass&&(v.eEffectiveMass=h.eEffectiveMass),void 0!==h.atomicNumber&&null!==h.atomicNumber&&(v.atomicNumber=h.atomicNumber),void 0!==h.hEffectiveMass&&null!==h.hEffectiveMass&&(v.hEffectiveMass=h.hEffectiveMass),void 0!==h.bandGap&&null!==h.bandGap&&(v.bandGap=h.bandGap),void 0!==h.electronAffinity&&null!==h.electronAffinity&&(v.electronAffinity=h.electronAffinity),void 0!==h.dielectricConstant&&null!==h.dielectricConstant&&(v.dielectricConstant=h.dielectricConstant),null!==(o=Y.struct3d)&&void 0!==o&&o.url&&(v.struct3d=Y.struct3d.url),null!==(u=Y.refractiveIndex)&&void 0!==u&&u.url&&(v.refractiveIndex=Y.refractiveIndex.url),null!==(d=Y.bandDiagram)&&void 0!==d&&d.url&&(v.bandDiagram=Y.bandDiagram.url),null!==(f=Y.statesDensity)&&void 0!==f&&f.url&&(v.statesDensity=Y.statesDensity.url),null!==(m=Y.absorptivity)&&void 0!==m&&m.url&&(v.absorptivity=Y.absorptivity.url),te.bandGap&&(v.refBandGap=te.bandGap),te.dielectricConstant&&(v.refDielectricConstant=te.dielectricConstant),te.electronEffectiveMass&&(v.refEEffectiveMass=te.electronEffectiveMass),te.holeEffectiveMass&&(v.refHEffectiveMass=te.holeEffectiveMass),te.electronAffinity&&(v.refElectronAffinity=te.electronAffinity),null!==(p=Y.referenceRefractiveFile)&&void 0!==p&&p.url&&(v.refRefractiveIndex=Y.referenceRefractiveFile.url),se.length>0&&(y=se.filter((function(e){return e.title.trim()||e.url.trim()})).map((function(e){return"".concat(e.title.trim(),"|||").concat(e.url.trim())})).join("\n"),v.refs=y),e.next=45,(0,F.VR)((0,a.Z)({uuid:ce},v));case 45:!(Z=e.sent).data||"200"!==Z.data.code&&"1000"!==Z.data.code?x.ZP.error((null===(b=Z.data)||void 0===b?void 0:b.msg)||"\u66f4\u65b0\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5"):(x.ZP.success("\u6750\u6599\u66f4\u65b0\u6210\u529f\uff01"),le("/plat/manage/material")),e.next=52;break;case 49:e.prev=49,e.t0=e.catch(1),x.ZP.error("\u66f4\u65b0\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5");case 52:return e.prev=52,_(!1),e.finish(52);case 55:case"end":return e.stop()}}),e,null,[[1,49,52,55]])})));return function(t){return e.apply(this,arguments)}}(),me=function(e,t){$((function(n){return(0,a.Z)((0,a.Z)({},n),{},(0,i.Z)({},e,{name:t.name,uid:t.uid,status:"uploading"}))})),K(!0),x.ZP.loading("".concat(t.name," \u6b63\u5728\u4e0a\u4f20..."),0),(0,M.cT)({file:t,type:"material"}).then((function(n){n.data&&"1000"===n.data.code?($((function(r){return(0,a.Z)((0,a.Z)({},r),{},(0,i.Z)({},e,{name:t.name,url:n.data.msg,uid:t.uid,status:"done"}))})),x.ZP.destroy(),x.ZP.success("".concat(t.name," \u4e0a\u4f20\u6210\u529f"))):($((function(t){return(0,a.Z)((0,a.Z)({},t),{},(0,i.Z)({},e,null))})),x.ZP.destroy(),x.ZP.error("\u4e0a\u4f20\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5"))})).catch((function(t){console.error("\u4e0a\u4f20\u9519\u8bef:",t),$((function(t){return(0,a.Z)((0,a.Z)({},t),{},(0,i.Z)({},e,null))})),x.ZP.destroy(),x.ZP.error("\u4e0a\u4f20\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5")})).finally((function(){K(!1)}))},pe=function(e){$((function(t){return(0,a.Z)((0,a.Z)({},t),{},(0,i.Z)({},e,null))}))},xe=function(e){var t=Y[e];return t?"done"===t.status?"\u2713 \u5df2\u4e0a\u4f20":"uploading"===t.status?"\u23f3 \u4e0a\u4f20\u4e2d...":"":""},he=function(e){var t=Y[e];
1if(!t)return[];var n=t.url?"/res/".concat(t.url):"";return[(0,a.Z)({uid:t.uid,name:t.name,status:t.status,url:n},n&&n.match(/\.(jpg|jpeg|png|gif|bmp|webp)$/i)&&{thumbUrl:n})]},ve=function(){var e={id:Date.now(),title:"",url:""};ae([].concat((0,r.Z)(se),[e]))},ge=function(e,t,n){ae(se.map((function(r){return r.id===e?(0,a.Z)((0,a.Z)({},r),{},(0,i.Z)({},t,n)):r})))},je={marginBottom:16,borderRadius:10,boxShadow:"0 1px 4px rgba(0,0,0,0.04)",border:"1px solid #e0e0e0",overflow:"hidden"},ye={background:"linear-gradient(90deg, #158f8f 0%, #1e6fa7 100%)",color:"#fff",fontWeight:600,fontSize:16,padding:"12px 0 10px 10px",borderRadius:"10px 10px 0 0",borderBottom:"none",marginBottom:0,lineHeight:1.2};return W?(0,S.jsxs)("div",{style:{textAlign:"center",padding:"50px"},children:[(0,S.jsx)(I.Z,{size:"large"}),(0,S.jsx)("div",{style:{marginTop:"16px"},children:"\u6b63\u5728\u83b7\u53d6\u6750\u6599\u8be6\u60c5..."})]}):(0,S.jsxs)("div",{className:"material-edit-container",children:[(0,S.jsxs)("div",{className:"page-header",children:[(0,S.jsxs)(C.Z,{children:[(0,S.jsx)(b.Z,{icon:(0,S.jsx)(k.Z,{}),onClick:function(){le("/plat/manage/material")},type:"text",children:"\u8fd4\u56de"}),(0,S.jsx)(R,{level:2,style:{margin:0},children:"\u7f16\u8f91\u6750\u6599"})]}),(0,S.jsx)(T,{type:"secondary",children:"\u7f16\u8f91\u6750\u6599\u4fe1\u606f\uff0c\u8bf7\u6309\u7167\u6b65\u9aa4\u8fdb\u884c\u4fee\u6539"})]}),(0,S.jsx)(y.Z,{style:{borderRadius:"8px"},children:(0,S.jsxs)(p.Z,{form:t,layout:"vertical",onFinish:fe,validateTrigger:["onChange","onBlur"],scrollToFirstError:!0,children:[(0,S.jsx)("div",{className:"param-sections-grid",children:[1,2,3,4].map((function(e){var t,n;return 1===e?(t="1. \u6750\u6599\u57fa\u672c\u4fe1\u606f",n=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(p.Z.Item,{name:"name",label:"\u6750\u6599\u7b80\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6750\u6599\u7b80\u79f0",validator:function(e,t){return t&&""!==t.trim()?Promise.resolve():Promise.reject(new Error("\u8bf7\u8f93\u5165\u6750\u6599\u7b80\u79f0"))}}],children:(0,S.jsx)(d.Z,{placeholder:"\u8bf7\u8f93\u5165\u6750\u6599\u7b80\u79f0"})}),(0,S.jsx)(p.Z.Item,{name:"fullname",label:"\u6750\u6599\u5168\u79f0",rules:[{required:!1,message:"\u8bf7\u8f93\u5165\u6750\u6599\u5168\u79f0"}],children:(0,S.jsx)(d.Z,{placeholder:"\u8bf7\u8f93\u5165\u6750\u6599\u5168\u79f0"})}),(0,S.jsx)(p.Z.Item,{name:"element",label:"\u5143\u7d20",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5143\u7d20",validator:function(e,t){return t&&""!==t.trim()?Promise.resolve():Promise.reject(new Error("\u8bf7\u8f93\u5165\u5143\u7d20"))}}],children:(0,S.jsx)(d.Z,{placeholder:"\u5982\uff1aSn, O"})}),(0,S.jsx)(p.Z.Item,{name:"category",label:"\u6750\u6599\u5206\u7c7b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6750\u6599\u5206\u7c7b",validator:function(e,t){return t&&0!==t.length?Promise.resolve():Promise.reject(new Error("\u8bf7\u9009\u62e9\u6750\u6599\u5206\u7c7b"))}}],children:(0,S.jsx)(h.Z,{options:oe,placeholder:"\u8bf7\u9009\u62e9\u6750\u6599\u5206\u7c7b",expandTrigger:"hover",showSearch:!0})})]})):2===e?(t="2. \u6676\u683c\u53c2\u6570",n=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(v.Z,{gutter:[16,0],children:[(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"structA",label:"a (\xc5)",rules:[{required:!0,message:"\u8bf7\u8f93\u5165a"}],children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:3})})}),(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"structAlpha",label:"\u03b1 (\xb0)",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u03b1"}],children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:2})})})]}),(0,S.jsxs)(v.Z,{gutter:[16,0],children:[(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"structB",label:"b (\xc5)",rules:[{required:!0,message:"\u8bf7\u8f93\u5165b"}],children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:3})})}),(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"structBeta",label:"\u03b2 (\xb0)",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u03b2"}],children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:2})})})]}),(0,S.jsxs)(v.Z,{gutter:[16,0],children:[(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"structC",label:"c (\xc5)",rules:[{required:!0,message:"\u8bf7\u8f93\u5165c"}],children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:3})})}),(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"structGamma",label:"\u03b3 (\xb0)",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u03b3"}],children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:2})})})]}),(0,S.jsx)(v.Z,{gutter:[16,0],children:(0,S.jsx)(g.Z,{span:24,children:(0,S.jsx)(p.Z.Item,{name:"structVolume",label:"volume (\xc5\xb3)",children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:3})})})})]})):3===e?(t="3. \u7b2c\u4e00\u6027\u539f\u7406\u53c2\u6570",n=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(v.Z,{gutter:[16,0],children:[(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"functional",label:"\u6cdb\u51fd\u7c7b\u578b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6cdb\u51fd\u7c7b\u578b"}],children:(0,S.jsx)(u.Z,{options:ue,placeholder:"\u8bf7\u9009\u62e9"})})}),(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"energyCriterion",label:"\u80fd\u91cf\u6536\u655b\u5224\u636e",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u80fd\u91cf\u6536\u655b\u5224\u636e"}],children:(0,S.jsx)(d.Z,{})})})]}),(0,S.jsxs)(v.Z,{gutter:[16,0],children:[(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"kDensity",label:"K\u70b9\u5bc6\u5ea6",rules:[{required:!0,message:"\u8bf7\u8f93\u5165K\u70b9\u5bc6\u5ea6"}],children:(0,S.jsx)(d.Z,{})})}),(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"forceCriterion",label:"\u529b\u7684\u6536\u655b\u5224\u636e",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u529b\u7684\u6536\u655b\u5224\u636e"}],children:(0,S.jsx)(d.Z,{})})})]})]})):4===e&&(t="4. \u8ba1\u7b97\u6a21\u62df\u7269\u6027\u53c2\u6570",n=(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(v.Z,{gutter:[16,0],children:[(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"chemicalFormula",label:"\u5316\u5b66\u5f0f",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5316\u5b66\u5f0f"}],children:(0,S.jsx)(d.Z,{})})}),(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"eEffectiveMass",label:"\u7535\u5b50\u6709\u6548\u8d28\u91cf",children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:2})})})]}),(0,S.jsxs)(v.Z,{gutter:[16,0],children:[(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"atomicNumber",label:"\u539f\u5b50\u6570",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u539f\u5b50\u6570"}],children:(0,S.jsx)(j.Z,{style:{width:"100%"}})})}),(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"hEffectiveMass",label:"\u7a7a\u7a74\u6709\u6548\u8d28\u91cf",children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:2})})})]}),(0,S.jsxs)(v.Z,{gutter:[16,0],children:[(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"bandGap",label:"\u5e26\u9699",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5e26\u9699"}],children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:2})})}),(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"electronAffinity",label:"\u7535\u5b50\u4eb2\u5408\u80fd",children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:2})})})]}),(0,S.jsxs)(v.Z,{gutter:[16,0],children:[(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"dielectricConstant",label:"\u4ecb\u7535\u5e38\u6570",children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:2})})}),(0,S.jsx)(g.Z,{span:12,children:(0,S.jsx)(p.Z.Item,{name:"refractiveIndex",label:"\u6298\u5c04\u7387",children:(0,S.jsx)(j.Z,{style:{width:"100%"},precision:1})})})]})]})),(0,S.jsx)("div",{className:"param-section-item",style:{minWidth:300,boxSizing:"border-box",display:"flex",flexDirection:"column"},children:(0,S.jsxs)(y.Z,{style:je,bodyStyle:{padding:"0 0 16px 0",paddingTop:0},bordered:!1,children:[(0,S.jsx)("div",{style:ye,children:t}),(0,S.jsx)("div",{style:{padding:8},children:n})]})},e)}))}),(0,S.jsxs)(y.Z,{style:je,bodyStyle:{padding:"0 0px 8px 0px",paddingTop:0},bordered:!1,children:[(0,S.jsx)("div",{style:ye,children:"5. \u6676\u4f53\u7ed3\u6784\u3001\u6027\u80fd\u56fe\u7247\u4e0a\u4f20"}),(0,S.jsxs)(v.Z,{gutter:[8,0],style:{padding:"10px"},children:[(0,S.jsx)(g.Z,{span:4,children:(0,S.jsx)(p.Z.Item,{name:"struct3d",label:(0,S.jsxs)("span",{children:["\u6676\u4f53\u7ed3\u6784 (cif)",xe("struct3d")&&(0,S.jsx)("span",{style:{color:"#52c41a",marginLeft:8,fontSize:"12px"},children:xe("struct3d")})]}),rules:[{required:!0,validator:function(e,t){return Y.struct3d&&"done"===Y.struct3d.status||t&&t.length>0?Promise.resolve():Promise.reject(new Error("\u8bf7\u4e0a\u4f20\u6676\u4f53\u7ed3\u6784CIF\u6587\u4ef6"))}}],children:(0,S.jsx)(Z.Z,{name:"struct3d",accept:".cif,.txt",beforeUpload:function(){return!0},maxCount:1,fileList:he("struct3d"),onRemove:function(){return pe("struct3d")},customRequest:function(e){var t=e.file;return me("struct3d",t)},maxSize:void 0,onChange:function(e){e.file.status},children:(0,S.jsx)(b.Z,{icon:(0,S.jsx)(E.Z,{}),loading:O,children:"\u91cd\u65b0\u4e0a\u4f20cif\u6587\u4ef6"})})})}),(0,S.jsx)(g.Z,{span:4,children:(0,S.jsx)(p.Z.Item,{name:"refractiveIndex",label:(0,S.jsxs)("span",{children:["\u6298\u5c04\u7387\u6587\u4ef6 (txt)",xe("refractiveIndex")&&(0,S.jsx)("span",{style:{color:"#52c41a",marginLeft:8,fontSize:"12px"},children:xe("refractiveIndex")})]}),children:(0,S.jsx)(Z.Z,{name:"refractiveIndex",accept:".txt",beforeUpload:function(){return!0},maxCount:1,fileList:he("refractiveIndex"),onRemove:function(){return pe("refractiveIndex")},customRequest:function(e){var t=e.file;return me("refractiveIndex",t)},maxSize:void 0,children:(0,S.jsx)(b.Z,{icon:(0,S.jsx)(E.Z,{}),loading:O,children:"\u91cd\u65b0\u4e0a\u4f20\u6298\u5c04\u7387\u6587\u4ef6"})})})}),(0,S.jsx)(g.Z,{span:4,children:(0,S.jsx)(p.Z.Item,{name:"bandDiagram",label:(0,S.jsxs)("span",{children:["\u80fd\u5e26\u56fe",xe("bandDiagram")&&(0,S.jsx)("span",{style:{color:"#52c41a",marginLeft:8,fontSize:"12px"},children:xe("bandDiagram")})]}),rules:[],children:(0,S.jsx)(Z.Z,{name:"bandDiagram",accept:"image/*",beforeUpload:function(){return!0},maxCount:1,listType:"picture-card",fileList:he("bandDiagram"),onRemove:function(){return pe("bandDiagram")},customRequest:function(e){var t=e.file;return me("bandDiagram",t)},maxSize:void 0,children:(0,S.jsxs)("div",{children:[(0,S.jsx)(w.Z,{}),(0,S.jsx)("div",{style:{marginTop:8},children:"\u91cd\u65b0\u4e0a\u4f20\u80fd\u5e26\u56fe"})]})})})}),(0,S.jsx)(g.Z,{span:4,children:(0,S.jsx)(p.Z.Item,{name:"statesDensity",label:(0,S.jsxs)("span",{children:["\u6001\u5bc6\u5ea6\u56fe",xe("statesDensity")&&(0,S.jsx)("span",{style:{color:"#52c41a",marginLeft:8,fontSize:"12px"},children:xe("statesDensity")})]}),rules:[],children:(0,S.jsx)(Z.Z,{name:"statesDensity",accept:"image/*",beforeUpload:function(){return!0},maxCount:1,listType:"picture-card",fileList:he("statesDensity"),onRemove:function(){return pe("statesDensity")},customRequest:function(e){var t=e.file;return me("statesDensity",t)},maxSize:void 0,children:(0,S.jsxs)("div",{children:[(0,S.jsx)(w.Z,{}),(0,S.jsx)("div",{style:{marginTop:8},children:"\u91cd\u65b0\u4e0a\u4f20\u6001\u5bc6\u5ea6\u56fe"})]})})})}),(0,S.jsx)(g.Z,{span:4,children:(0,S.jsx)(p.Z.Item,{name:"absorptivity",label:(0,S.jsxs)("span",{children:["\u5438\u6536\u8c31",xe("absorptivity")&&(0,S.jsx)("span",{style:{color:"#52c41a",marginLeft:8,fontSize:"12px"},children:xe("absorptivity")})]}),rules:[],children:(0,S.jsx)(Z.Z,{name:"absorptivity",accept:"image/*",beforeUpload:function(){return!0},maxCount:1,listType:"picture-card",fileList:he("absorptivity"),onRemove:function(){return pe("absorptivity")},customRequest:function(e){var t=e.file;return me("absorptivity",t)},maxSize:void 0,children:(0,S.jsxs)("div",{children:[(0,S.jsx)(w.Z,{}),(0,S.jsx)("div",{style:{marginTop:8},children:"\u91cd\u65b0\u4e0a\u4f20\u5438\u6536\u8c31"})]})})})})]})]}),(0,S.jsxs)(y.Z,{style:je,bodyStyle:{padding:"0 0px 8px 0px",paddingTop:0},bordered:!1,children:[(0,S.jsx)("div",{style:ye,children:"6. \u53c2\u8003\u7269\u6027\u53c2\u6570"}),(0,S.jsxs)("div",{style:{padding:"10px"},children:[(0,S.jsx)("div",{style:{marginBottom:"20px"},children:(0,S.jsxs)(v.Z,{gutter:[8,0],children:[(0,S.jsx)(g.Z,{span:4,children:(0,S.jsxs)("div",{style:{marginBottom:"8px"},children:[(0,S.jsx)("div",{style:{fontWeight:"bold",marginBottom:"5px",textAlign:"left"},children:"\u5e26\u9699\u53c2\u8003\u503c:"}),(0,S.jsx)(d.Z,{value:te.bandGap,onChange:function(e){return ne((0,a.Z)((0,a.Z)({},te),{},{bandGap:e.target.value}))},placeholder:"\u8bf7\u8f93\u5165\u5e26\u9699\u53c2\u8003\u503c",size:"small"})]})}),(0,S.jsx)(g.Z,{span:4,children:(0,S.jsxs)("div",{style:{marginBottom:"8px"},children:[(0,S.jsx)("div",{style:{fontWeight:"bold",marginBottom:"5px",textAlign:"left"},children:"\u4ecb\u7535\u5e38\u6570\u53c2\u8003\u503c:"}),(0,S.jsx)(d.Z,{value:te.dielectricConstant,onChange:function(e){return ne((0,a.Z)((0,a.Z)({},te),{},{dielectricConstant:e.target.value}))},placeholder:"\u8bf7\u8f93\u5165\u4ecb\u7535\u5e38\u6570\u53c2\u8003\u503c",size:"small"})]})}),(0,S.jsx)(g.Z,{span:4,children:(0,S.jsxs)("div",{style:{marginBottom:"8px"},children:[(0,S.jsx)("div",{style:{fontWeight:"bold",marginBottom:"5px",textAlign:"left"},children:"\u7535\u5b50\u6709\u6548\u8d28\u91cf\u53c2\u8003\u503c:"}),(0,S.jsx)(d.Z,{value:te.electronEffectiveMass,onChange:function(e){return ne((0,a.Z)((0,a.Z)({},te),{},{electronEffectiveMass:e.target.value}))},placeholder:"\u8bf7\u8f93\u5165\u7535\u5b50\u6709\u6548\u8d28\u91cf\u53c2\u8003\u503c",size:"small"})]})}),(0,S.jsx)(g.Z,{span:4,children:(0,S.jsxs)("div",{style:{marginBottom:"8px"},children:[(0,S.jsx)("div",{style:{fontWeight:"bold",marginBottom:"5px",textAlign:"left"},children:"\u7a7a\u7a74\u6709\u6548\u8d28\u91cf\u53c2\u8003\u503c:"}),(0,S.jsx)(d.Z,{value:te.holeEffectiveMass,onChange:function(e){return ne((0,a.Z)((0,a.Z)({},te),{},{holeEffectiveMass:e.target.value}))},placeholder:"\u8bf7\u8f93\u5165\u7a7a\u7a74\u6709\u6548\u8d28\u91cf\u53c2\u8003\u503c",size:"small"})]})}),(0,S.jsx)(g.Z,{span:4,children:(0,S.jsxs)("div",{style:{marginBottom:"8px"},children:[(0,S.jsx)("div",{style:{fontWeight:"bold",marginBottom:"5px",textAlign:"left"},children:"\u7535\u5b50\u4eb2\u548c\u80fd\u53c2\u8003\u503c:"}),(0,S.jsx)(d.Z,{value:te.electronAffinity,onChange:function(e){return ne((0,a.Z)((0,a.Z)({},te),{},{electronAffinity:e.target.value}))},placeholder:"\u8bf7\u8f93\u5165\u7535\u5b50\u4eb2\u548c\u80fd\u53c2\u8003\u503c",size:"small"})]})}),(0,S.jsx)(g.Z,{span:4,children:(0,S.jsxs)("div",{style:{marginBottom:"8px"},children:[(0,S.jsx)("div",{style:{fontWeight:"bold",marginBottom:"5px",textAlign:"left"},children:"\u6298\u5c04\u7387\u53c2\u8003\u503c:"}),(0,S.jsx)(Z.Z,{name:"refRrefractiveIndex",accept:".txt",beforeUpload:function(){return!0},maxCount:1,fileList:he("referenceRefractiveFile"),onRemove:function(){return pe("referenceRefractiveFile")},customRequest:function(e){var t=e.file;return me("referenceRefractiveFile",t)},maxSize:void 0,children:(0,S.jsx)(b.Z,{icon:(0,S.jsx)(E.Z,{}),loading:O,size:"small",style:{width:"100%"},children:xe("referenceRefractiveFile")?"\u5df2\u4e0a\u4f20":"\u4e0a\u4f20\u6587\u4ef6"})})]})})]})}),(0,S.jsxs)("div",{children:[(0,S.jsxs)("div",{style:{fontWeight:"bold",color:"#1d3994",marginBottom:"10px",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,S.jsx)("span",{children:"\u53c2\u8003\u6765\u6e90:"}),(0,S.jsx)(b.Z,{type:"primary",size:"small",icon:(0,S.jsx)(D.Z,{}),onClick:ve,children:"\u6dfb\u52a0\u53c2\u8003\u6765\u6e90"})]}),se.map((function(e,t){return(0,S.jsxs)("div",{style:{marginBottom:"8px",padding:"8px",display:"flex",alignItems:"center",gap:"10px"},children:[(0,S.jsxs)("span",{style:{fontWeight:"bold",color:"#1d3994",minWidth:"30px",fontSize:"14px"},children:["[",t+1,"]"]}),(0,S.jsx)(d.Z,{placeholder:"\u53c2\u8003\u6765\u6e90\u6807\u9898",value:e.title,onChange:function(t){return ge(e.id,"title",t.target.value)},style:{flex:1},size:"small"}),(0,S.jsx)(d.Z,{placeholder:"\u53c2\u8003\u6765\u6e90URL",value:e.url,onChange:function(t){return ge(e.id,"url",t.target.value)},style:{flex:1},size:"small"}),(0,S.jsx)(b.Z,{type:"text",danger:!0,size:"small",icon:(0,S.jsx)(B.Z,{}),onClick:function(){return t=e.id,void ae(se.filter((function(e){return e.id!==t})));var t},style:{minWidth:"auto"}})]},e.id)}))]})]})
1]}),(0,S.jsx)(A.Z,{}),(0,S.jsx)("div",{style:{textAlign:"center"},children:(0,S.jsx)(b.Z,{type:"primary",htmlType:"submit",loading:z,icon:(0,S.jsx)(P.Z,{}),children:"\u66f4\u65b0\u6750\u6599"})})]})})]})}},71730:function(){}}]);
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.