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.
1 line
29 KiB
1 line
29 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[98,5],{"1vsH":function(e,n,t){"use strict";t.d(n,"i",(function(){return u})),t.d(n,"k",(function(){return l})),t.d(n,"e",(function(){return d})),t.d(n,"h",(function(){return p})),t.d(n,"c",(function(){return _})),t.d(n,"f",(function(){return m})),t.d(n,"g",(function(){return g})),t.d(n,"a",(function(){return w})),t.d(n,"C",(function(){return f})),t.d(n,"B",(function(){return b})),t.d(n,"D",(function(){return h})),t.d(n,"E",(function(){return y})),t.d(n,"s",(function(){return v})),t.d(n,"r",(function(){return k})),t.d(n,"p",(function(){return S})),t.d(n,"o",(function(){return A})),t.d(n,"A",(function(){return E})),t.d(n,"j",(function(){return D})),t.d(n,"z",(function(){return O})),t.d(n,"u",(function(){return C})),t.d(n,"l",(function(){return M})),t.d(n,"x",(function(){return T})),t.d(n,"n",(function(){return P})),t.d(n,"d",(function(){return I})),t.d(n,"b",(function(){return N})),t.d(n,"t",(function(){return W})),t.d(n,"y",(function(){return q})),t.d(n,"w",(function(){return J})),t.d(n,"m",(function(){return H})),t.d(n,"v",(function(){return L})),t.d(n,"q",(function(){return z}));var o=t("zjzt"),r=t("ZZRV"),a=t.n(r),i=t("xKgJ"),c=t("vcnW"),s=t.n(c),u=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],l=function(e){var n,t=(n={},Object(o["a"])(n,-1,"\u91cd\u505a\u4e2d"),Object(o["a"])(n,0,"\u672a\u5f00\u542f"),Object(o["a"])(n,1,"\u672a\u901a\u5173"),Object(o["a"])(n,2,"\u6309\u65f6\u901a\u5173"),n);return t[e]||"\u8fdf\u4ea4\u901a\u5173"},d=function(e){var n,t,r,i=(n={},Object(o["a"])(n,-1,{name:"\u91cd\u505a\u4e2d",class:"c-orange"}),Object(o["a"])(n,0,{name:"\u672a\u5f00\u542f",class:"c-black"}),Object(o["a"])(n,1,{name:"\u672a\u901a\u5173",class:"c-red"}),Object(o["a"])(n,2,{name:"\u6309\u65f6\u901a\u5173",class:"c-green"}),Object(o["a"])(n,3,{name:"\u8fdf\u4ea4\u901a\u5173",class:"c-orange"}),n);return a.a.createElement("span",{className:null===i||void 0===i||null===(t=i[e.status])||void 0===t?void 0:t["class"]},null===i||void 0===i||null===(r=i[e.status])||void 0===r?void 0:r["name"])},p=function(e){var n=e.status,t={0:{class:"tag-style bg-blue ml10",name:"\u5f85\u9009\u4e2d"},1:{class:"tag-style bg-blue ml10",name:"\u5f85\u786e\u8ba4"},2:{class:"tag-style bg-pink ml10",name:"\u5df2\u786e\u8ba4"}};try{return a.a.createElement("span",{className:t[n]["class"]},t[n]["name"])}catch(o){console.log("utils.StatusGraduationProjectTags",e.status)}},_={1:"\u672a\u53d1\u5e03",2:"\u8003\u8bd5\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},m={1:"\u672a\u53d1\u5e03",2:"\u63d0\u4ea4\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},g=function(e){var n={"\u5df2\u5f00\u542f\u9632\u4f5c\u5f0a":{class:"tag-style-fzb ml10 iconfont icon-fangzuobi"},"\u516c\u5f00":{class:"tag-style bg-blue ml10"},"\u5df2\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-green ml10"},"\u672a\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-pink ml10"},"\u672a\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u533f\u540d\u4f5c\u54c1":{class:"tag-style bg-cyan ml10"},"\u5df2\u9009\u62e9":{class:"tag-style bg-grey-ede ml10"},"\u5df2\u7ed3\u675f":{class:"tag-style bg-grey-ede ml10"},"\u63d0\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u533f\u8bc4\u4e2d":{class:"tag-style bg-blue ml10"},"\u7533\u8bc9\u4e2d":{class:"tag-style bg-blue ml10"},"\u8003\u8bd5\u4e2d":{class:"tag-style bg-light-blue ml10"},"\u8865\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u8bc4\u9605\u4e2d":{class:"tag-style bg-blue ml10"},"\u5f85\u9009\u4e2d":{class:"tag-style bg-blue ml10"},"\u4ea4\u53c9\u8bc4\u9605\u4e2d":{class:"tag-style bg-light-orange ml10"},"\u5df2\u5f00\u542f\u4ea4\u53c9\u8bc4\u9605":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u786e\u8ba4":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u5904\u7406":{class:"tag-style bg-lightblue-purple ml10"},"\u79c1\u6709":{class:"tag-style bg-lightblue-purple ml10"},"\u672a\u63d0\u4ea4":{class:"tag-style bg-lightblue-purple ml10"},"\u5df2\u786e\u8ba4":{class:"tag-style bg-light-pink ml10"},"\u5df2\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u5df2\u622a\u6b62":{class:"tag-style bg-light-pink ml10"},"\u5f00\u53d1\u8bfe\u7a0b":{class:"tag-style bg-orange ml10"},"\u5df2\u5f00\u64ad":{class:"tag-style-border border-green c-green ml10"},"\u672a\u5f00\u64ad":{class:"tag-style-border border-light-black ml10"},"\u6309\u65f6\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u8fdf\u4ea4\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u5f00\u542f":{class:"tag-style-border border-light-black ml10"}},t=[];e.is_random&&t.push(a.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968f\u673a"));try{e.status&&e.status.map((function(e,o){t.push(a.a.createElement("span",{key:o,className:n[e]&&n[e]["class"]},e))}))}catch(o){console.log("utils.status.tag:",o,e.status)}return t},w=function(e){var n,t,o={0:{name:"\u672a\u63d0\u4ea4",class:"c-black"},1:{name:"\u6309\u65f6\u63d0\u4ea4",class:"c-green"},2:{name:"\u5ef6\u65f6\u63d0\u4ea4",class:"c-red"}};return a.a.createElement("span",{className:null===(n=o[e.status])||void 0===n?void 0:n["class"]},null===(t=o[e.status])||void 0===t?void 0:t["name"])},f=function(e){e=new Date(e).getTime();var n=6e4,t=60*n,o=24*t,r="",a=(new Date).getTime(),i=a-e;if(i<0)return console.log("\u65f6\u95f4\u4e0d\u5bf9\u52b2,\u670d\u52a1\u5668\u521b\u5efa\u65f6\u95f4\u4e0e\u5f53\u524d\u65f6\u95f4\u4e0d\u540c\u6b65"),"\u521a\u521a";var c=parseInt(i/o,10),s=parseInt(i/t,10),u=parseInt(i/n,10);return r=c>30?""+b(e,"yyyy-MM-dd"):c>1?c+"\u5929\u524d":1==c?"\u6628\u5929":s>=1?s+"\u5c0f\u65f6\u524d":u>=5?u+"\u5206\u949f\u524d":"\u521a\u521a",r},b=function(e,n){"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var t={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},o=[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]];for(var r in/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(n)&&(n=n.replace(RegExp.$1,o[RegExp.$1.length-1][e.getDay()])),t)new RegExp("("+r+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return n},h=function(e){if(!e||e<0)return"0\u79d2";console.log("time:",e);var n=60,t=60*n,o=24*t,r=e/o,a=e/t,i=e/n;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(a%24)+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":a>1?parseInt(a.toString())+"\u65f6"+Math.floor(i%60)+"\u5206"+Math.floor(e%60)+"\u79d2":i>=1?parseInt(i.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":Math.ceil(e)+"\u79d2"},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,t=0;if(e){t=e.length;for(var o=0;o<t;o++){var r=e.charCodeAt(o);r>=55296&&r<=56319&&(t--,o++)}}return t<=n},v=function(e,n,t){if(n){var o=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&*\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,a=r.test(n),i=o.test(n);(!0===a||!0===i||n.length<2||n.length>=21)&&t("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}t()},k=function(e,n,t){if(n){var o=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,a=r.test(n),i=o.test(n);(!0===a||!0===i||n.length<2||n.length>=11)&&t("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}t()},S=function(e){if(!e)return"";for(var n=e.length-1,t="",o=0;o<n;o++)t+="*";var r=e.substr(0,1)+t;return r},A=function(e,n){var t=new FileReader;t.addEventListener("load",(function(){return n(t.result)})),t.readAsDataURL(e)};function E(e){var n="79e33abd4b6588941ab7622aed1e67e8";return s()(n+e)}var x=function(e){var n,t=RegExp("(^| )"+e+"=([^;]+)(;|$)");return(n=document.cookie.match(t))?decodeURIComponent(n[2]):null};var j=function(e){document.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;"};function D(e,n){return new Promise((function(e,t){var o,r=n,a=document.createElement("iframe");console.log("downloadFileUrl",r),document.body.appendChild(a),a.src=r,a.style.display="none",o=setInterval((function(){x("fileDownload")&&(j("fileDownload"),clearInterval(o),e())}),1e3)}))}var O=function(e){var n=e.url,t=e.query;return n?(t&&function(){var e=[],o=function(n){t.hasOwnProperty(n)&&!L(t[n])&&("object"===typeof t[n]?t[n].map((function(t){e.push("".concat(n,"[]=").concat(t))})):e.push("".concat(n,"=").concat(t[n])))};for(var r in t)o(r);n=-1!==n.indexOf("?")?"".concat(n,"&").concat(e.join("&")):"".concat(n,"?").concat(e.join("&")),console.log("url1111",n)}(),n):""};function C(){for(var e=navigator.userAgent,n=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],t=!0,o=0;o<n.length;o++)if(e.indexOf(n[o])>0){t=!1;break}return t}var F,M=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===n||void 0===n||null===(e=n.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},T=function(e){var n=document.createElement("a");n.target="_blank",document.body.appendChild(n),n.href=e;var t=document.createEvent("MouseEvents");t.initEvent("click",!1,!1),n.dispatchEvent(t),document.body.removeChild(n)},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.length<=6?e:"".concat(e.substring(0,3),"...").concat(e.substring(e.length-3,e.length))},I=function(){var e=(new Date).getHours(),n=(new Date).getMinutes();return n>=30?(e++,n="00"):n="30",e+":"+n},N=function(){var e=(new Date).getHours(),n=(new Date).getMinutes();return n>=30?(e++,n="00"):n="30",(new Date).toLocaleDateString().replace(/\//g,"-")+" "+e+":"+n};(function(e){e["Number"]="Number",e["String"]="String",e["Boolean"]="Boolean",e["Object"]="Object",e["Array"]="Array",e["Function"]="Function"})(F||(F={}));var R=function(e){var n=Object.prototype.toString.call(e);return n.substring(8,n.length-1)},W=function(e){return R(e)===F.Array?0===e.length:R(e)===F.Object?0===Object.keys(e).length:!e},q=function(e,n){for(var t=[],o=e;o<n;o++)t.push(o);return t},J=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,t=n/2-2,o=n/2+3;return e.length>n?e.substr(0,t)+"..."+e.substr(o,n):e},H=function(e){return e>4.5?5:e>4&&e<=4.5?4.5:e>3.5&&e<=4?4:e>3&&e<=3.5?3.5:e>2.5&&e<=3?3:e>2&&e<=2.5?2.5:e>1.5&&e<=2?2:e>1&&e<=1.5?1.5:e>.5&&e<=1?1:e>0&&e<=.5?.5:0},L=function(e){return void 0===e||null===e};var z=function(e){switch(e.container_type){case"ApplyUserAuthentication":if("Apply"===e.tiding_type){if(1===e.auth_type)return window.open("/admins/identity_authentications");if(2===e.auth_type)return window.open("/admins/professional_authentications")}return"System"===e.tiding_type?window.open("/account/certification"):void 0;case"CancelUserAuthentication":return window.open("/account/certification");case"CancelUserProCertification":return window.open("/account/certification");case"ApplyAddDepartment":return"Apply"===e.tiding_type?window.open("/admins/department_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAddSchools":return"Apply"===e.tiding_type?window.open("/admins/unit_applies"):"System"===e.tiding_type?window.open("/account/profile"):void 0;case"ApplyAction":switch(e.parent_container_type){case"ApplyShixun":if("Apply"===e.tiding_type)return window.open("/admins/shixun_authorizations");if("System"===e.tiding_type)return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"ApplySubject":if("Apply"===e.tiding_type)return window.open("/admins/subject_authorizations");if("System"===e.tiding_type)return window.open("/paths/".concat(e.parent_container_id));case"TrialAuthorization":if("Apply"===e.tiding_type)return window.open("/managements/trial_authorization");if("System"===e.tiding_type)return window.open("/account/profile")}return;case"JoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));case"StudentJoinCourse":if("Apply"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/teachers"));if("System"===e.tiding_type)return window.open("/classrooms/".concat(e.belong_container_id,"/students"));case"DealCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"TeacherJoinCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Course":if("Delete"===e.tiding_type)return;return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"ArchiveCourse":return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/"));case"Shixun":return window.open("/shixuns/".concat(e.identifier,"/challenges"));case"Subject":return window.open("/paths/".concat(e.container_id));case"JournalsForMessage":switch(e.parent_container_type){case"Principal":return"";case"HomeworkCommon":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):"";case"GraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return"normal"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/question")):"group"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/question")):"practice"===e.homework_type?window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=1")):""}case"Memo":return window.open("/forums/".concat(e.parent_container_id));case"Message":return window.open("/forums/");case"Watcher":return window.open("/users/".concat(e.trigger_user.login,"/classrooms"));case"PraiseTread":return"";case"Grade":return"";case"JoinProject":return window.open("/projects/".concat(e.container_id));case"ReporterJoinProject":return window.open("/projects/".concat(e.container_id));case"DealProject":return window.open("/projects/".concat(e.container_id));case"ManagerJoinProject":return window.open("/projects/".concat(e.container_id));case"Poll":switch(e.parent_container_type){case"CommitPoll":return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"));default:return window.open("\t/classrooms/".concat(e.belong_container_id,"/poll/").concat(e.container_id,"/detail"))}case"Exercise":switch(e.parent_container_type){case"CommitExercise":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));case"ExerciseScore":return window.open("\t/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"));default:return window.open("/classrooms/".concat(e.belong_container_id,"/exercise/").concat(e.container_id,"/detail?tab=0"))}case"StudentGraduationTopic":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"DealStudentTopicSelect":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_topics/").concat(e.parent_container_id,"/detail"));case"GraduationTask":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWork":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.container_id));case"GraduationWorkScore":return window.open("/classrooms/".concat(e.belong_container_id,"/graduation_tasks/").concat(e.parent_container_id));case"HomeworkCommon":switch(e.parent_container_type){case"AnonymousCommentFail":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"HomeworkPublish":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));case"AnonymousAppeal":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"));default:if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/detail"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/detail"));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail?tabs=0"))}case"StudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/review/").concat(e.container_id));if("practice"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/shixun_homework/").concat(e.parent_container_id,"/detail"));case"StudentWorksScore":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"StudentWorksScoresAppeal":return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.trigger_user.id,"/review/").concat(e.parent_container_id));case"ChallengeWorkScore":return"";case"SendMessage":return window.open("/managements/mirror_repository");case"Journal":return window.open("/issues/".concat(e.parent_container_id));case"Issue":return window.open("/issues/".concat(e.container_id));case"PullRequest":return window.open("/projects/".concat(e.parent_container_id,"/pull_requests"));case"Department":return window.open("/account/profile");case"Library":if("Apply"===e.tiding_type)return window.open("/admins/library_applies");if("System"===e.tiding_type)return window.open("/moop_cases/".concat(e.container_id));case"ProjectPackage":if("Destroyed"===e.tiding_type)return;return"Destroyed_end"===e.tiding_type?void 0:"Apply"===e.tiding_type?window.open("/admins/project_package_applies"):window.open("/crowdsourcing/".concat(e.container_id));case"Discuss":return"Hack"===e.parent_container_type&&e.extra?window.open("/myproblems/".concat(e.extra,"/comment")):window.open("/shixuns/".concat(e.identifier,"/shixun_discuss"));case"Video":return"Apply"===e.tiding_type?window.open("/admins/video_applies"):"System"===e.tiding_type?window.open("/users/".concat(null===(n=Object(i["t"])())||void 0===n?void 0:n.login,"/videos")):"";var n;case"PublicCourseStart":return window.open("/classrooms/".concat(e.container_id,"/informs"));case"SubjectStartCourse":return window.open("/paths/".concat(e.container_id));case"ResubmitStudentWork":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id,"/").concat(e.container_id,"/appraise"));case"AdjustScore":if("normal"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/common_homework/").concat(e.parent_container_id));if("group"===e.homework_type)return window.open("/classrooms/".concat(e.belong_container_id,"/group_homework/").concat(e.parent_container_id));case"LiveLink":return window.open("/classrooms/".concat(e.belong_container_id,"/course_videos?open=live"));case"Hack":if(e.extra&&"HackDelete"!==e.parent_container_type)return window.open("/problems/".concat(e.extra,"/edit"));default:return}}},QLuO:function(e,n,t){"use strict";t.r(n);t("Rbwl");var o=t("hTF7"),r=(t("uLqt"),t("/vd4")),a=(t("XZgM"),t("TFeq")),i=(t("RXQH"),t("VgM2")),c=t("55MS"),s=t("GZha"),u=t("ZZRV"),l=t.n(u),d=t("1vsH"),p=t("q5+0"),_=t("9kvl"),m=t("uV/z"),g=t("cdMw"),w=t.n(g),f=function(e){var n,t=e.video,g=(e.globalSetting,e.loading),f=e.dispatch,b=Object(u["useState"])(Object(c["a"])({},Object(p["m"])())),h=Object(s["a"])(b,2),y=h[0],v=(h[1],Object(p["l"])()),k=Object(u["useState"])({}),S=Object(s["a"])(k,2),A=S[0],E=S[1],x=Object(u["useState"])(""),j=Object(s["a"])(x,2),D=(j[0],j[1]),O=t.StudentvideoStatistics,C=t.videoStatistics;y["category"]=v.query.category_id,Object(u["useEffect"])((function(){f({type:"video/getStudentVideoStatisticsList",payload:Object(c["a"])({},y)}),f({type:"video/getVideoStatistics",payload:Object(c["a"])({},y)})}),[y.coursesId]);var F=[{title:"\u5e8f\u53f7",dataIndex:"name",render:function(e,n,t){return t+1}},{title:"\u89c6\u9891\u540d\u79f0",dataIndex:"title"},{title:"\u89c2\u770b\u6b21\u6570",dataIndex:"freq"},{title:"\u89c2\u770b\u65f6\u957f",dataIndex:"total_duration",render:function(e){return l.a.createElement("span",null,e||0,"\u79d2")}},{title:"\u53d1\u5e03\u4eba",dataIndex:"user_name"},{title:"\u662f\u5426\u770b\u5b8c",dataInex:"is_finished",render:function(e){return l.a.createElement("span",null,e?"\u662f":"\u5426")}}];return l.a.createElement("section",{className:w.a.bg},l.a.createElement("aside",{className:w.a.statisticsWrp},l.a.createElement(a["a"],{justify:"space-between",className:"mt10 mb20"},l.a.createElement(i["a"],{span:"16"},l.a.createElement(m["a"],{className:"current mr10 font16",onClick:function(){return _["c"].goBack()}}),l.a.createElement("strong",{className:"font16"},"\u89c6\u9891\u7edf\u8ba1\u603b\u89c8")),l.a.createElement(i["a"],{span:"8",className:"c-light-black tr"},"\u64ad\u653e\u6570\u636e\u4ece ",C.begin_at," \u5f00\u59cb\u7edf\u8ba1")),l.a.createElement(a["a"],{justify:"space-between",className:w.a.statistics},l.a.createElement(i["a"],{span:"7"},l.a.createElement("span",null,"\u89c2\u770b\u603b\u6b21\u6570 \uff08\u6b21\uff09"),l.a.createElement("br",null),l.a.createElement("strong",null,C.freq)),l.a.createElement(i["a"],{span:"7"},l.a.createElement("span",null,"\u89c2\u770b\u603b\u4e2a\u6570 \uff08\u4e2a\uff09"),l.a.createElement("br",null),l.a.createElement("strong",null,C.num)),l.a.createElement(i["a"],{span:"7"},l.a.createElement("span",null,"\u603b\u89c2\u770b\u65f6\u5e38 \uff08\u65f6\uff09"),l.a.createElement("br",null),l.a.createElement("strong",null,Object(d["D"])(C.total_duration))))),l.a.createElement("aside",{className:w.a.infoWrp},l.a.createElement("div",null,l.a.createElement("strong",{className:"font16"},"\u7edf\u8ba1\u5217\u8868")),l.a.createElement(r["a"],{className:"mt20",loading:g["video/getStudentVideoStatisticsList"],hideOnSinglePage:!0,pagination:!1,dataSource:null===O||void 0===O?void 0:O.data,columns:F,onChange:function(e,n,t){if(A={},void 0===t.order)switch(A[t.field]="descend",t.field){case"student_id":D("descend"),y["order"]=t.field+"-desc";break}else y["order"]=t.field+"-"+t.order.replace("end",""),A[t.field]=t.order;E(Object(c["a"])({},A)),f({type:"video/getVideoStatisticsList",payload:Object(c["a"])({},y)})}})),l.a.createElement("aside",{className:"tc mb50 mt30"},l.a.createElement(o["a"],{showSizeChanger:!1,onChange:function(){},defaultCurrent:1,current:y.page||1,defaultPageSize:15,hideOnSinglePage:!0,total:null===(n=O.data)||void 0===n?void 0:n.count})))};n["default"]=Object(_["a"])((function(e){var n=e.video,t=e.loading,o=e.globalSetting;return{video:n,globalSetting:o,loading:t.effects}}))(f)},cdMw:function(e,n,t){e.exports={flex_box_center:"flex_box_center___30MKN",flex_space_between:"flex_space_between___1jJvF",flex_box_vertical_center:"flex_box_vertical_center___3J2rX",flex_box_center_end:"flex_box_center_end___2A94X",flex_box_column:"flex_box_column___2P7Lk",title:"title___3I4-b",statisticsWrp:"statisticsWrp___thSt4",statistics:"statistics___eFfMq",infoWrp:"infoWrp___25k2A"}},xKgJ:function(e,n,t){"use strict";t.d(n,"o",(function(){return s})),t.d(n,"b",(function(){return u})),t.d(n,"c",(function(){return l})),t.d(n,"e",(function(){return d})),t.d(n,"f",(function(){return p})),t.d(n,"r",(function(){return _})),t.d(n,"g",(function(){return m})),t.d(n,"s",(function(){return g})),t.d(n,"d",(function(){return w})),t.d(n,"i",(function(){return f})),t.d(n,"j",(function(){return b})),t.d(n,"q",(function(){return h})),t.d(n,"h",(function(){return y})),t.d(n,"p",(function(){return v})),t.d(n,"a",(function(){return k})),t.d(n,"l",(function(){return S})),t.d(n,"m",(function(){return A})),t.d(n,"k",(function(){return E})),t.d(n,"n",(function(){return x})),t.d(n,"t",(function(){return j}));var o,r,a=t("9kvl");(function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["CertifiedTeacher"]=5]="CertifiedTeacher",e[e["TrainingProduction"]=8]="TrainingProduction",e[e["UncertifiedTeacher"]=12]="UncertifiedTeacher",e[e["Student"]=15]="Student"})(o||(o={})),function(e){e[e["SuperAdmin"]=1]="SuperAdmin",e[e["Operation"]=2]="Operation",e[e["Admin"]=5]="Admin",e[e["Teacher"]=8]="Teacher",e[e["Assistant"]=12]="Assistant",e[e["Student"]=15]="Student"}(r||(r={}));var i=function(e){var n=Object(a["b"])()._store.getState(),t=n.user,o=t.userInfo;return e.some((function(e){return e==(null===o||void 0===o?void 0:o.role)}))},c=function(e){var n=Object(a["b"])()._store.getState(),t=n.user,o=t.userInfo;return!!(null===o||void 0===o?void 0:o.own)||e.some((function(e){var n;return e==(null===o||void 0===o||null===(n=o.course)||void 0===n?void 0:n.course_role)}))},s=function(){var e=Object(a["b"])()._store.getState(),n=e.user,t=n.userInfo;return t.main_site},u=function(){var e,n=Object(a["b"])()._store.getState(),t=n.user,o=t.userInfo;return null===o||void 0===o||null===(e=o.course)||void 0===e?void 0:e.course_is_end},l=function(){return c([r.SuperAdmin,r.Operation,r.Admin,r.Teacher,r.Assistant])},d=function(){return c([r.SuperAdmin,r.Teacher,r.Admin,r.Assistant,r.Operation])},p=function(){return c([r.SuperAdmin,r.Teacher,r.Admin])},_=function(){return c([r.SuperAdmin])},m=function(){return c([r.SuperAdmin,r.Operation,r.Admin])},g=function(){return c([r.SuperAdmin,r.Operation])},w=function(){return c([r.SuperAdmin,r.Admin])},f=function(){return c([r.SuperAdmin,r.Operation,r.Admin,r.Teacher])},b=function(){return c([r.Assistant])},h=function(){return c([r.Student])},y=function(){return c([r.SuperAdmin,r.Operation,r.Admin,r.Teacher,r.Assistant,r.Student])},v=function(){var e,n=Object(a["b"])()._store.getState(),t=n.user,o=t.userInfo;return null===(null===o||void 0===o||null===(e=o.course)||void 0===e?void 0:e.course_role)},k=function(){return i([o.SuperAdmin,o.Operation,o.CertifiedTeacher,o.TrainingProduction])},S=function(){return i([o.SuperAdmin])},A=function(){return i([o.SuperAdmin,o.Operation])},E=function(){return i([o.Student])},x=function(){var e,n=Object(a["b"])()._store.getState(),t=n.user;return!!(null===(e=t.userInfo)||void 0===e?void 0:e.login)},j=function(){var e=Object(a["b"])()._store.getState(),n=e.user;return n.userInfo}}}]); |