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.
educoder/public/react/dist/static/js/132.9f8ee3ea.chunk.js

2 lines
94 KiB

5 years ago
/*! For license information please see 132.9f8ee3ea.chunk.js.LICENSE.txt */
(this.webpackJsonph5=this.webpackJsonph5||[]).push([[132,9,158],{1049:function(t,n,e){},1967:function(t,n,e){"use strict";e.r(n),e(498);var r=e(499),a=(e(104),e(60)),u=(e(260),e(92)),i=(e(513),e(507)),o=e(8),c=e(7),l=e(10),f=e(9),s=e(11),p=e(0),h=e.n(p),v=e(830),d=e(768),_=e(28),g=e(171),m=e(93),y=e(6),b=e.n(y),w=e(769),x=e.n(w),E=(e(259),e(167)),k=e(550),j={0:"\u5f85\u9009\u4e2d",1:"\u5f85\u786e\u8ba4",2:"\u5df2\u786e\u8ba4"},N=function(t){function n(t){var e;return Object(o.a)(this,n),(e=Object(l.a)(this,Object(f.a)(n).call(this,t))).editTopic=function(t){var n=e.props.match.params.coursesId;e.props.history.push("/courses/".concat(n,"/graduation_topics/").concat(t,"/edit"))},e.toDetailPage=function(t){if(!1!==e.props.checkIfLogin()){var n=e.props.match.params.coursesId;e.props.history.push("/courses/".concat(n,"/graduation_topics/").concat(t,"/detail"))}else e.props.showLoginDialog()},e}return Object(s.a)(n,t),Object(c.a)(n,[{key:"render",value:function(){var t=this,n=this.props,e=n.checkBox,r=n.discussMessage,a=n.index,u=n.chooseTopic,i=n.data,o=(n.courseId,this.props.isAdmin()),c=this.props.isStudent(),l=this.props.isNotMember();return r&&r.author?h.a.createElement("div",null,h.a.createElement("style",null,"\n .boardsList:hover {\n box-shadow: 0px 2px 6px rgba(51,51,51,0.09);\n opacity: 1;\n border-radius: 2px;\n }\n .graduateTopicList .ant-checkbox-wrapper {\n margin-top: -44px;\n }\n "),h.a.createElement("div",{className:"graduateTopicList boardsList mb20",style:{cursor:o?"pointer":"default"},onClick:function(){return window.$(".topicItem".concat(a," input")).click()}},h.a.createElement("style",null,"\n \n .graduateTopicList .ant-checkbox-input {s\n margin-right: 15px;\n }\n .ant-checkbox-group > div .boardsList {\n\n padding: 17px 30px 20px!important;\n }\n "),o?h.a.createElement("span",{className:"topicItem".concat(a," fl"),style:{height:"64px"}},e):"",h.a.createElement("div",{className:"clearfix ds pr flex1"},h.a.createElement("style",null,"\n .maxwidth580{\n max-width: 580px;\n overflow:hidden;\n text-overflow:ellipsis;\n white-space:nowrap\n }\n a:hover{\n color: #4cacff;\n }\n "),h.a.createElement("h6",null,l?!0===r.private_icon?h.a.createElement("span",{className:"fl mt3 font-16 font-bd color-dark maxwidth580 pointer",title:!0===r.private_icon?"\u79c1\u6709\u5c5e\u6027\uff0c\u975e\u8bfe\u5802\u6210\u5458\u4e0d\u80fd\u8bbf\u95ee":r.name},r.name):h.a.createElement("a",{className:"fl mt3 font-16 font-bd color-dark maxwidth580 pointer",title:r.name},r.name):"",c?h.a.createElement("a",{onClick:function(){return t.toDetailPage("".concat(r.id))},className:"fl mt3 font-16 font-bd color-dark maxwidth580",title:r.name},r.name):"",o?h.a.createElement("a",{onClick:function(){return t.toDetailPage("".concat(r.id))},className:"fl mt3 font-16 font-bd color-dark maxwidth580",title:r.name},r.name):"",!0===r.private_icon?h.a.createElement(E.a,{title:"\u79c1\u6709\u5c5e\u6027\uff0c\u975e\u8bfe\u5802\u6210\u5458\u4e0d\u80fd\u8bbf\u95ee",placement:"bottom"},h.a.createElement("i",{className:"iconfont icon-guansuo color-grey-c ml10 font-16 fl mt4"})):"",h.a.createElement(k.a,{typelist:[j["".concat(r.status)]],typesylename:""})),h.a.createElement("div",{className:"cl"}),h.a.createElement("p",{className:"color-grey mt20 clearfix"},h.a.createElement("span",{className:"fl mr40 mt1"},h.a.createElement(E.a,{title:"\u6307\u5bfc\u8001\u5e08",placement:"bottom"},h.a.createElement("span",{className:"color-grey3"},r.author))),h.a.createElement("span",{className:"fl mr20 color-grey-9 mt1"},r.selected_count," \u5df2\u9009"),h.a.createElement("span",{className:"fl color-grey-9 mt1"},r.confirmation_count," \u5df2\u786e\u8ba4"),h.a.createElement("span",{className:"fr"},c?h.a.createElement(_.A,{style:"blue",onClick:function(){re