1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-552f820f"],{"35c4":function(e,t,i){"use strict";var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"step"},[i("ModuleTitle",{staticStyle:{float:"left"},attrs:{titleNum:e.titleNum,titleText:"训练题推送规则"}}),"3"==e.subjectId&&"4"==e.edition&&3==e.productType?i("span",{staticClass:"tips"},[e._v("**基础宝不推送变式题,推送基础知识和训练题")]):e._e(),"12"===e.subjectId&&1!==e.productType&&1==e.targetType?i("div",{staticClass:"topic-group-switch"},[i("el-switch",{attrs:{"active-color":"#16ae68","inactive-color":"#ddd"},on:{change:e.sendSwitch},model:{value:e.topicGroupMod,callback:function(t){e.topicGroupMod=t},expression:"topicGroupMod"}}),i("span",[e._v("题组推题")])],1):e._e(),i("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:e.trainList,"header-cell-style":{background:"#f2f2f2",color:"#606266"}}},[e.noLevel?i("el-table-column",{attrs:{prop:"level",label:"学生层次",width:"150"}}):e._e(),"4"!==e.edition&&"12"!==e.subjectId||3!=e.productType?e._e():i("el-table-column",{attrs:{prop:"versionType",label:"产品",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(1==t.row.versionType?"学习宝":2==t.row.versionType?"基础宝":"能力宝")+" ")]}}],null,!1,1159942169)}),i("el-table-column",{attrs:{label:"推送数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[2!==t.row.versionType?i("div",{staticClass:"push-rules"},[e._l(e.trainTopicMap,(function(s,a){return i("div",{directives:[{name:"show",rawName:"v-show",value:!e.topicGroupMod,expression:"!topicGroupMod"}],key:a,staticClass:"push-select"},[i("span",[e._v(e._s(s))]),i("SelectOption",{attrs:{value:t.row.pushNumber[a],options:e.numOptions,index:t.$index,selectType:a},on:{change:e.sendChange}})],1)})),"12"===e.subjectId&&e.topicGroupMod?i("div",{staticClass:"push-select"},[i("span",[e._v("题组")]),i("SelectOption",{attrs:{value:t.row.topicGroupPushTopic.topicGroup,options:e.numOptions,index:t.$index,selectType:"topicGroup"},on:{change:e.sendChange}})],1):e._e()],2):i("div",{staticClass:"push-rules"},[i("div",{staticClass:"push-select"},[i("span",[e._v("基础知识")]),i("SelectOption",{attrs:{value:t.row.basics.knowledge,options:e.knowledgeNum,index:t.$index,selectType:"knowledge"},on:{change:e.sendChange}})],1),"3"===e.subjectId?i("div",{staticClass:"push-select"},[i("span",[e._v("基础巩固训练")]),i("SelectOption",{attrs:{value:t.row.basics.consolidate,options:e.consolidateNum,index:t.$index,selectType:"consolidate"},on:{change:e.sendChange}})],1):i("div",{staticClass:"push-select"},[i("span",[e._v("基础知识推题")]),i("SelectOption",{attrs:{value:t.row.basics.knowledgePushTopic,options:e.knowledgeTopicNum,index:t.$index,selectType:"knowledgePushTopic"},on:{change:e.sendChange}})],1)])]}}])}),i("el-table-column",{attrs:{label:"推送难度"},scopedSlots:e._u([{key:"default",fn:function(t){return 2!==t.row.versionType?[i("div",{staticClass:"push-rules push-difficulty"},[e.topicGroupMod?e._e():e._l(e.nums[t.$index],(function(s,a){return i("div",{key:a,staticClass:"push-select"},[i("span",[e._v("第"+e._s(s)+"题")]),i("SelectOption",{attrs:{value:t.row.pushDifficulty[e.keys[t.$index]][s-1],options:e.difficulty,index:t.$index,itemIndex:a,selectType:"difficulty"},on:{change:e.sendChange}})],1)})),"12"===e.subjectId&&e.topicGroupMod?e._l(t.row.topicGroupPushTopic.topicGroup,(function(s,a){return i("div",{key:s,staticClass:"push-select"},[i("span",[e._v("第"+e._s(s)+"题")]),i("SelectOption",{attrs:{value:t.row.topicGroupPushTopic.pushDifficulty[e.keys[t.$index]][s-1],options:e.difficulty,index:t.$index,itemIndex:a,selectType:"topicGroupDifficulty"},on:{change:e.sendChange}})],1)})):e._e()],2)]:void 0}}],null,!0)})],1)],1)},a=[],l=(i("4160"),i("a9e3"),i("b64b"),i("d3b7"),i("07ac"),i("159b"),i("ddb0"),{name:"TrainTopicPush",props:{titleNum:String,pushTopicType:{type:Boolean},trainList:{type:Array,default:function(){return[]}},trainTopicMap:{type:Object,default:function(){return{}}},noLevel:{type:Number,default:1}},data:function(){return{subjectId:sessionStorage.getItem("subject_id"),edition:sessionStorage.getItem("edition"),productType:this.$route.query.product_type,targetType:this.$route.query.target_type,difficulty:[{value:0,label:"与错题难度相同"},{value:1,label:"降低一级难度"},{value:3,label:"增加一级难度"}],nums:[],keys:[],knowledgeNum:[{value:1,label:"1个"},{value:2,label:"2个"},{value:3,label:"3个"},{value:4,label:"4个"}],consolidateNum:[{value:1,label:"1个"},{value:2,label:"2个"},{value:3,label:"3个"},{value:4,label:"4个"},{value:5,label:"5个"}],knowledgeTopicNum:[{value:1,label:"1道"},{value:2,label:"2道"},{value:3,label:"3道"}],topicGroupMod:!1}},computed:{numOptions:function(){var e=[{value:1,label:"1配1"},{value:2,label:"1配2"},{value:3,label:"1配3"}],t=[{value:1,label:"1配1"},{value:2,label:"1配2"}],i=[{value:0,label:"不推"},{value:1,label:"1配1"},{value:2,label:"1配2"},{value:3,label:"1配3"}];return 12==this.subjectId?t:3==this.subjectId&&"3"===this.productType?i:e}},watch:{pushTopicType:function(e){this.topicGroupMod=e,this.showPushDifficulty(this.trainList)},trainList:{deep:!0,handler:function(e){e.length&&this.showPushDifficulty(e)}}},created:function(){},methods:{showPushDifficulty:function(e){var t=this;e.forEach((function(e,i){if(t.topicGroupMod){var s=Object.keys(e.topicGroupPushTopic.pushDifficulty)[0];t.$set(t.keys,i,s)}else{var a=Math.max.apply(null,Object.values(e.pushNumber)),l=Object.keys(e.pushDifficulty)[0];t.$set(t.nums,i,a),t.$set(t.keys,i,l)}}))},sendSwitch:function(e){this.$emit("trainPushSwitch",e)},sendChange:function(e,t,i,s){this.$emit("trainChange",e,t,i,s,this.keys[i])}}}),n=l,o=(i("8cb8"),i("2877")),u=Object(o["a"])(n,s,a,!1,null,"a8e14256",null);t["a"]=u.exports},"8cb8":function(e,t,i){"use strict";var s=i("8ffa"),a=i.n(s);a.a},"8ffa":function(e,t,i){},ae53:function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"set-template"},[i("ErrorTopicPush",{attrs:{noLevel:0,titleNum:"1",errTopicMap:e.errTopicMap,errorTopicList:e.errorTopicList},on:{module:e.handleData}}),i("TrainTopicPush",{attrs:{noLevel:0,titleNum:"2",trainList:e.trainList,trainTopicMap:e.trainTopicMap},on:{trainChange:e.handleTrainChange}}),i("TypeSet",{attrs:{titleNum:"3",titleText:"3"===e.subjectId&&1==e.isAccurate?"精准学习方案排版":"个性化学习方案排板",typeSetList:e.typeSetList,typeSetMap:e.typeSetMap,type:"1"},on:{switch:e.handleSwitch}}),3==e.subjectId&&"3"===e.edition?i("TypeSet",{attrs:{titleNum:"4",titleText:"培优版设置",typeSetList:e.pushErrList,typeSetMap:e.pushMap,type:"2"},on:{switch:e.handleSwitch}}):e._e(),i("div",{staticClass:"save-btn"},[i("el-button",{attrs:{id:"saveSetting"},on:{click:e.handleSetting}},[e._v(" 保存设置 ")])],1)],1)},a=[],l=i("35c4"),n=i("494c"),o=i("8830"),u=i("8f79"),c={name:"IndividuationStudent",components:{TrainTopicPush:l["a"],ErrorTopicPush:n["a"],TypeSet:o["a"]},mixins:[u["a"],u["b"]]},p=c,r=i("2877"),d=Object(r["a"])(p,s,a,!1,null,null,null);t["default"]=d.exports}}]);
|