forked from jasder/forgeplus
84 lines
34 KiB
JavaScript
84 lines
34 KiB
JavaScript
|
webpackJsonp([219],{
|
||
|
|
||
|
/***/ 1358:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
||
|
|
||
|
// load the styles
|
||
|
var content = __webpack_require__(1435);
|
||
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
||
|
// Prepare cssTransformation
|
||
|
var transform;
|
||
|
|
||
|
var options = {"hmr":false}
|
||
|
options.transform = transform
|
||
|
// add the styles to the DOM
|
||
|
var update = __webpack_require__(300)(content, options);
|
||
|
if(content.locals) module.exports = content.locals;
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 1435:
|
||
|
/***/ (function(module, exports, __webpack_require__) {
|
||
|
|
||
|
exports = module.exports = __webpack_require__(299)(true);
|
||
|
// imports
|
||
|
|
||
|
|
||
|
// module
|
||
|
exports.push([module.i, ".ant-form{color:#05101a}.ant-checkbox-disabled+span,.ant-radio-disabled+span{color:#666!important;cursor:default}.ant-radio-wrapper{color:#666!important}.ant-checkbox-wrapper+.ant-checkbox-wrapper{margin-left:0!important}.ant-select-selection,.ant-select-selection-selected-value{min-height:40px;min-line-height:40px}.ml61{margin-left:61px}.w64{width:64px}.w55{width:55px!important}.max1010{width:1010px!important;max-width:1010px!important}.yw18{min-width:18px}.chooseAnswer{display:inline-block;width:68px;text-align:center;height:24px;line-height:24px;background:#ededed;color:#666;margin-left:10px;border-radius:12px}.problemShow{padding:30px;border-bottom:1px solid #eee}.problemShow:last-child{border-bottom:none}.invite-tipysls{position:absolute;top:-8px;right:140px;color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;width:170px;text-align:center;border-radius:2px;background-color:rgba(5,16,26,.6)}.yslinvitetip{display:block;right:-16px}.right-black-trangle,.yslinvitetip{border-width:8px;position:absolute;top:10px;border-style:dashed solid dashed dashed;border-color:transparent transparent transparent rgba(5,16,26,.6);font-size:0;line-height:0}.right-black-trangle{left:-16px}.right-black-trangles{top:10px;left:-16px;border-color:transparent rgba(5,16,26,.6) transparent transparent}.right-black-trangles,.top-black-trangle{border-width:8px;position:absolute;border-style:dashed solid dashed dashed;font-size:0;line-height:0}.top-black-trangle{top:-16px;right:4px;border-color:transparent transparent rgba(5,16,26,.6)}.invite-tipysl{color:#999;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;border-radius:2px;font-size:14px}.edu-position-hideysl li a:hover{background:#f1f1f1;color:#05101a}.to-back-left{width:0;height:0;margin-top:27px;border-right:15px solid #fafafa;border-top:10px solid transparent;border-bottom:10px solid transparent}.unlimit{height:24px;line-height:24px;padding:0 10px;border-radius:12px;cursor:pointer;border:1px solid #cdcdcd;color:#666}.unlimit.active{background-color:#4cacff;border:1px solid #4cacff;color:#fff}.edu-table tbody tr:last-child td,.edu-table thead th{border-bottom:none!important}.edu-table tbody tr:hover td{background-color:#fff!important}.countList p.countHeader{background-color:#f8f8f8;color:#666;height:38px;font-size:16px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;display:-webkit-flex}.countList p.countHeader ul{width:100%;padding:0 30px}.countList div.countBody span,.countList p.countHeader span{float:left}.countList div.countBody{margin:0 30px;border-bottom:1px solid #ebebeb;padding:12px 0}.countList div.countBody:last-child{border-bottom:none}.countList div.countBody span:first-child,.countList p.countHeader span:first-child{width:50%;text-align:left}.countList div.countBody span:nth-child(2),.countList p.countHeader span:nth-child(2){width:15%;text-align:center}.countList div.countBody span:nth-child(3),.countList p.countHeader span:nth-child(3){width:35%;text-align:left}.percentForm{width:330px;background:#f5f5f5;position:relative;margin-top:7px}.percentForm,.percentValue{height:11px;border-radius:6px}.percentValue{position:absolute;top:0;left:0;background:#29bd8b}.answerTxt{max-height:500px;background-color:#f2f9ff;width:100%;margin-top:10px;padding:10px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#4c4c4c}.otherTxt{border:none!important;border-bottom:1px solid #eee!important;background:transparent!important;-ms-flex:1 1;flex:1 1;height:20px!important;line-height:20px!important}.otherTxt.ant-input:focus,.otherTxt.ant-input:hover{border:none!important;border-bottom:1px solid #eee!important;background:#f8f8f8!important}.mustAnswer{padding:0 10px;border-radius:15px;height:22px;line-height:22px;background:#eaeaea;color:#999;font-size:14px}.previewList{border-bottom:1px solid #ebebeb}.previewList:last-child{border-bottom:none}.textLine{-ms-flex:1 1;flex:1 1;height:22px;border-bottom:1px solid #ebebeb}.answerList{margin-bottom:20px}.answerList,.answerList li{-webkit-box-sizing:borde
|
||
|
|
||
|
// exports
|
||
|
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 3305:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_checkbox_style_css__ = __webpack_require__(308);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_checkbox_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_checkbox_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox__ = __webpack_require__(305);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_radio_style_css__ = __webpack_require__(178);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_radio_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_radio_style_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_radio__ = __webpack_require__(176);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_radio___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_radio__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__coursesPublic_NoneData__ = __webpack_require__(313);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__css_members_css__ = __webpack_require__(314);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__css_members_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__css_members_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__css_busyWork_css__ = __webpack_require__(1078);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__css_busyWork_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__css_busyWork_css__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pollStyle_css__ = __webpack_require__(1358);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pollStyle_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8__pollStyle_css__);
|
||
|
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var map={1:"单选题",2:"多选题",3:"主观题",4:"主观题"};var PollDetailTabThirdInfo=function(_Component){_inherits(PollDetailTabThirdInfo,_Component);function PollDetailTabThirdInfo(props){_classCallCheck(this,PollDetailTabThirdInfo);return _possibleConstructorReturn(this,(PollDetailTabThirdInfo.__proto__||Object.getPrototypeOf(PollDetailTabThirdInfo)).call(this,props));}_createClass(PollDetailTabThirdInfo,[{key:"render",value:function render(){var pollDetail=this.props.pollDetail;console.log("pollDetailpollDetail");console.log(pollDetail);return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",null,pollDetail!==undefined?__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"edu-back-white"},pollDetail!==pollDetail.poll.polls_description&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{style:{whiteSpace:"pre-wrap"},className:"color-grey-3 padding20-30"},pollDetail.poll.polls_description),pollDetail&&pollDetail.questions&&pollDetail.questions.length>0&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{className:"padding20-30 clearfix edu-txt-left",style:{background:"#fafafa"}},!pollDetail||!pollDetail.question_types||pollDetail.question_types.q_counts===0?"":__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"color-grey-3"},pollDetail&&pollDetail.question_types&&pollDetail.question_types.q_counts>0&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",null,"\u5408\u8BA1",pollDetail.question_types&&pollDetail.question_types.q_counts,"\u9898\uFF1A"),pollDetail&&pollDetail.question_types.q_singles>0&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"mr15 color-grey-9"},"\u5355\u9009\u9898",pollDetail.question_types.q_singles,"\u9898"),pollDetail&&pollDetail.question_types.q_doubles>0&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"mr15 color-grey-9"},"\u591A\u9009\u9898",pollDetail.question_types.q_doubles,"\u9898"),pollDetail&&pollDetail.question_types.q_mains>0&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"color-grey-9"},"\u4E3B\u89C2\u9898",pollDetail.question_types.q_mains,"\u9898"))),pollDetail&&pollDetail.questions&&pollDetail.questions.length>0&&pollDetail.questions.map(function(item,key){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"previewList"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{className:"pl30 pr30 pt30 pb15 font-16 clearfix"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"color-blue mr8 fl"},item.question.question_number,"\u3001",map[item.question.question_type]),item.question.is_necessary==1?__WEBPAC
|
||
|
item.question.question_type==1&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_radio___default.a.Group,{className:"answerList",disabled:true},item.question.answers.map(function(index,k){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("li",{className:"df"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_radio___default.a,{className:"fl",value:index.answer_id}),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:index.answer_text=="其他"?"break-word":"break-word flex1"},index.answer_text),index.answer_text=="其他"?__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{className:"textLine"}):"");})),// 多选题
|
||
|
item.question.question_type==2&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox___default.a.Group,{className:"answerList",disabled:true},item.question.answers.map(function(index,k){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("li",{className:"df",key:k},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_checkbox___default.a,{className:"fl mr8",value:index.answer_id,key:index.answer_id}),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:index.answer_text=="其他"?"break-word":"break-word flex1"},index.answer_text),index.answer_text=="其他"?__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{className:"textLine"}):"");})),// 主观题
|
||
|
item.question.question_type==3&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"pl30 pr30 pb20"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("textarea",{placeholder:"\u5728\u6B64\u586B\u5165\u7B54\u6848",readOnly:true,className:"winput-100-130"})));}),pollDetail&&pollDetail.questions&&pollDetail.questions.length==0&&__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__coursesPublic_NoneData__["a" /* default */],null)):"");}}]);return PollDetailTabThirdInfo;}(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (PollDetailTabThirdInfo);
|
||
|
|
||
|
/***/ }),
|
||
|
|
||
|
/***/ 4835:
|
||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||
|
|
||
|
"use strict";
|
||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(8);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__);
|
||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__courses_poll_PollDetailTabThirdInfo__ = __webpack_require__(3305);
|
||
|
var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var PollBanksContent=function(_Component){_inherits(PollBanksContent,_Component);function PollBanksContent(props){_classCallCheck(this,PollBanksContent);var _this=_possibleConstructorReturn(this,(PollBanksContent.__proto__||Object.getPrototypeOf(PollBanksContent)).call(this,props));_this.componentDidMount=function(){console.log("PollBanksContent");console.log(_this.props);var bankId=_this.props.match.params.bankId;var url='/exercise_banks/'+bankId+'.json';__WEBPACK_IMPORTED_MODULE_1_axios___default.a.get(url).then(function(result){if(result){if(result.status==200){var pollDetail={poll:{id:result.data.poll&&result.data.poll.id,polls_description:result.data.poll&&result.data.poll.description,polls_name:result.data.poll&&result.data.poll.name,is_public:result.data.poll&&result.data.poll.is_public},question_types:result.data.question_types,questions:result.data.questions};var crumbData={title:result.data.poll&&result.data.poll.name,is_public:result.data.poll&&result.data.poll.is_public,crumbArray:[{content:'详情'}]};var menuData={tab:'0',//tab选中的index
|
||
|
menuArray:[//tab以及tab路由
|
||
|
{to:'/banks/poll/'+bankId+'/'+_this.props.match.params.type,content:'内容详情'}],category:'poll',//毕设选题
|
||
|
tos:'/banks/poll/'+bankId+'/edit/'+_this.props.match.params.type,id:bankId,is_public:result.data.poll&&result.data.poll.is_public,type:_this.props.match.params.type,authorize:result&&result.data&&result.data.authorize};_this.props.initPublic(crumbData,menuData,result.data);if(result.data.status===401){//未登入
|
||
|
_this.setState({pollDetail:undefined});return;}_this.setState({pollDetail:pollDetail});}}}).catch(function(error){console.log(error);});};_this.state={pollDetail:undefined};return _this;}_createClass(PollBanksContent,[{key:'render',value:function render(){var pollDetail=this.state.pollDetail;return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div',null,__WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__courses_poll_PollDetailTabThirdInfo__["a" /* default */],Object.assign({},this.props,this.state,{pollDetail:pollDetail})));}}]);return PollBanksContent;}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);/* harmony default export */ __webpack_exports__["default"] = (PollBanksContent);
|
||
|
|
||
|
/***/ })
|
||
|
|
||
|
});
|