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.
NewEduCoderBuild/p__Classrooms__Lists__Gradu...

1 line
7.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1482],{53070:function(e,t,n){var i=n(82242),s=n.n(i),l=(n(59301),n(19779)),r=n(3113),a=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,i=void 0===n?{}:n,c=e.styles,o=void 0===c?{}:c,d=e.customText,u=e.ButtonText,p=e.ButtonClick,x=e.Buttonclass,h=e.ButtonTwo,m=e.imgStyles,_=e.loading,f=void 0!==_&&_;return(0,a.jsxs)("section",{className:"tc animated fadeIn",style:s()(s()({},{color:"#999",margin:"100px auto",visibility:f?"hidden":"visible"}),o),children:[(0,a.jsx)("img",{src:t||l,style:s()({width:288,height:200},m)}),(0,a.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,a.jsx)(r.ZP,s()(s()({className:x,onClick:p},i),{},{children:u})),h&&h]})}},77742:function(e,t,n){n.r(t),n.d(t,{default:function(){return T}});var i=n(7557),s=n.n(i),l=n(82242),r=n.n(l),a=n(41498),c=n.n(a),o=n(79800),d=n.n(o),u=n(39647),p=n.n(u),x=n(59301),h=n(10302),m=n(33936),_=n(20834),f=n(44e3),j=n(78241),g=n(8591),v=n(66104),y=n(95237),b=n(43604),Z=n(57809),I=n(24650),w=n(28103),k=n(19842),N=n(3113),z=n(71203),L={flex_box_center:"flex_box_center___oUI48",flex_space_between:"flex_space_between___ygvRP",flex_box_vertical_center:"flex_box_vertical_center___eHXbG",flex_box_center_end:"flex_box_center_end___VqFf6",flex_box_column:"flex_box_column___VdaxG",bg:"bg___AuzLD",title:"title___ig1Ym",titleLeft:"titleLeft___HQ0Kv",titleRight:"titleRight___gvlMr",btns:"btns___vjaR0"},P=n(37712),S=["graduation","globalSetting","loading","user","dispatch"],T=(_.Z.SubMenu,f.Z.Content,f.Z.Sider,(0,m.connect)((function(e){var t=e.graduation,n=e.loading,i=e.user;return{graduation:t,globalSetting:e.globalSetting,user:i,loading:n.effects}}))((function(e){var t,n,i,l,a,o,u,_,f=e.graduation,T=(e.globalSetting,e.loading,e.user),C=e.dispatch,F=(p()(e,S),(0,m.useParams)()),O=((0,m.useLocation)(),T.userInfo),V=j.Z.useForm(),q=d()(V,1)[0],B=f.editTopicData,D=function(){var e=c()(s()().mark((function e(){var t,n,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=q.getFieldsValue(),(n=r()({},t)).city&&(n.province=n.city[0],n.city=n.city[1]),e.next=5,C({type:"graduation/editTopic",payload:{categoryId:F.categoryId,coursesId:F.coursesId,attachment_ids:[],graduation_topic:n}});case 5:(i=e.sent).status?g.ZP.error(i.message):m.history.push("/classrooms/".concat(F.coursesId,"/graduation_topics/").concat(B.left_banner_id));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,x.useEffect)((function(){function e(){return(e=c()(s()().mark((function e(){var t,n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C({type:"graduation/editTopicDefaultData",payload:r()({},F)});case 2:t=e.sent,(n=r()({},t.selected_data)).city=[n.province,n.city],q.setFieldsValue(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[F.coursesId]),(0,P.jsxs)("section",{className:"edu-container",children:[(0,P.jsxs)("section",{className:"animated fadeIn",children:[(0,P.jsx)("aside",{className:"mt10",children:O&&(0,P.jsxs)(v.Z,{separator:">",children:[(0,P.jsx)(v.Z.Item,{children:(0,P.jsx)(m.Link,{to:"".concat(O.first_category_url),children:null==O||null===(t=O.course)||void 0===t?void 0:t.course_name})}),(0,P.jsx)(v.Z.Item,{children:(0,P.jsx)(m.Link,{to:"/classrooms/".concat(F.coursesId,"/graduation_topics/").concat(B.left_banner_id),children:"毕设选题"})}),(0,P.jsx)(v.Z.Item,{children:"编辑"})]})}),(0,P.jsx)("aside",{className:[L.title,"mt20"].join(" "),children:(0,P.jsxs)(y.Z,{style:{width:"100%"},children:[(0,P.jsx)(b.Z,{flex:"1",children:(0,P.jsx)("strong",{className:"font20 ml5",children:"编辑毕设选题"})}),(0,P.jsx)(b.Z,{children:(0,P.jsx)(m.Link,{className:"font16 c-light-black",to:"/classrooms/".concat(F.coursesId,"/graduation_topics/").concat(B.left_banner_id),children:"返回"})})]})})]}),(0,P.jsx)("section",{className:[L.bg,"pt30","pl30","pr30","pb30","mt20"].join(" "),children:(0,P.jsxs)(j.Z,{layout:"vertical",form:q,scrollToFirstError:!0,initialValues:null==B?void 0:B.selected_data,onFinish:function(){var e=c()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:D();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,P.jsx)(j.Z.Item,{name:"tea_id",label:"指导老师:",rules:[{required:!0,message:"请选择指导老师"}],children:(0,P.jsx)(Z.default,{size:"middle",placeholder:"请选择指导老师",style:{width:200},children:null===(n=B.teacher_list)||void 0===n?void 0:n.map((function(e,t){return(0,P.jsx)(Z.default.Option,{value:e.id,children:e.name},t)}))})}),(0,P.jsx)(j.Z.Item,{name:"name",label:"选题名称:",rules:[{required:!0,message:"请填写试卷标题"}],children:(0,P.jsx)(I.Z,{maxLength:60,size:"middle",placeholder:"试卷标题最大限制60个字符"})}),(0,P.jsx)(w.Z,{}),(0,P.jsx)(j.Z.Item,{label:"选题简介",name:"description",rules:[{required:!0,message:"请输入内容"}],children:(0,P.jsx)(h.Z,{watch:!0,defaultValue:null===(i=B.selected_data)||void 0===i?void 0:i.description,placeholder:"请简要说明选题内容最大限制5000个字符"})}),(0,P.jsxs)(y.Z,{gutter:[20,0],children:[(0,P.jsx)(b.Z,{flex:"1",children:(0,P.jsx)(j.Z.Item,{name:"topic_type",children:(0,P.jsx)(Z.default,{size:"middle",placeholder:"请选择选题类型",children:null===(l=B.topic_type)||void 0===l?void 0:l.map((function(e,t){return(0,P.jsx)(Z.default.Option,{value:e.id,children:e.name},t)}))})})}),(0,P.jsx)(b.Z,{flex:"1",children:(0,P.jsx)(j.Z.Item,{name:"topic_source",children:(0,P.jsx)(Z.default,{size:"middle",placeholder:"请选择选题来源",children:null===(a=B.topic_source)||void 0===a?void 0:a.map((function(e,t){return(0,P.jsx)(Z.default.Option,{value:e.id,children:e.name},t)}))})})}),(0,P.jsx)(b.Z,{flex:"1",children:(0,P.jsx)(j.Z.Item,{name:"topic_property_first",children:(0,P.jsx)(Z.default,{size:"middle",placeholder:"请选择选题性质1",children:null===(o=B.topic_property_first)||void 0===o?void 0:o.map((function(e,t){return(0,P.jsx)(Z.default.Option,{value:e.id,children:e.name},t)}))})})}),(0,P.jsx)(b.Z,{flex:"1",children:(0,P.jsx)(j.Z.Item,{name:"topic_property_second",children:(0,P.jsx)(Z.default,{size:"middle",placeholder:"请选择选题性质2",children:null===(u=B.topic_property_second)||void 0===u?void 0:u.map((function(e,t){return(0,P.jsx)(Z.default.Option,{value:e.id,children:e.name},t)}))})})}),(0,P.jsx)(b.Z,{flex:"150px"})]}),(0,P.jsx)(w.Z,{}),(0,P.jsx)(j.Z.Item,{name:"source_unit",label:"选题来源单位:",children:(0,P.jsx)(I.Z,{width:"200",size:"middle",style:{width:200},placeholder:"请填写来源单位"})}),(0,P.jsx)(j.Z.Item,{name:"topic_repeat",label:"选题重复情况:",children:(0,P.jsx)(Z.default,{size:"middle",placeholder:"请选择重复情况",style:{width:200},children:null===(_=B.topic_repeat)||void 0===_?void 0:_.map((function(e,t){return(0,P.jsx)(Z.default.Option,{value:e.id,children:e.name},t)}))})}),(0,P.jsx)(j.Z.Item,{name:"city",label:"调研或实习地点:",children:(0,P.jsx)(k.Z,{size:"middle",style:{width:200},options:z.P,placeholder:"请选择所在地"})})]})}),(0,P.jsxs)("aside",{className:L.btns,children:[(0,P.jsx)(N.ZP,{type:"primary",onClick:function(){q.submit()},children:"保存"}),(0,P.jsx)(m.Link,{to:"/classrooms/".concat(F.coursesId,"/graduation_topics/").concat(F.categoryId),children:"取消"})]})]})})))}}]);