(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fed4eb30"],{"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=[],o=(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)),o=Object.keys(e.pushDifficulty)[0];t.$set(t.nums,i,a),t.$set(t.keys,i,o)}}))},sendSwitch:function(e){this.$emit("trainPushSwitch",e)},sendChange:function(e,t,i,s){this.$emit("trainChange",e,t,i,s,this.keys[i])}}}),l=o,n=(i("8cb8"),i("2877")),u=Object(n["a"])(l,s,a,!1,null,"a8e14256",null);t["a"]=u.exports},"629f":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"},["4"===e.edition||12==e.subjectId?i("div",{staticClass:"set-select-info"},[e._m(0),i("el-radio-group",{staticClass:"select-radio-group",on:{change:e.switchProType},model:{value:e.pro,callback:function(t){e.pro=t},expression:"pro"}},[i("el-radio",{attrs:{label:1}},[e._v("学习宝")]),i("el-radio",{attrs:{label:2}},[e._v("基础宝")]),i("el-radio",{attrs:{label:3}},[e._v("能力宝")])],1)],1):e._e(),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:e.proTypeName,typeSetList:e.typeSetList,typeSetMap:e.typeSetMap,type:"1"},on:{switch:e.handleSwitch}}),3==e.subjectId&&"3"===e.edition?i("TypeSet",{attrs:{titleText:"培优版设置",titleNum:"4",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=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"info-text"},[i("h3",[e._v("产品版本选择")])])}],o=i("35c4"),l=i("494c"),n=i("8830"),u=i("8f79"),c={name:"PromoteStudent",components:{TrainTopicPush:o["a"],ErrorTopicPush:l["a"],TypeSet:n["a"]},mixins:[u["a"],u["c"]],data:function(){return{edition:sessionStorage.getItem("edition"),pro:1,proTypeName:"个性化学习宝排版"}},watch:{pro:{handler:function(e){"3"===this.subjectId&&("3"==this.edition&&(this.proTypeName="个性化学习宝排版"),1==this.isAccurate&&(this.proTypeName="精准学习宝排版")),"4"!=this.edition&&"12"!==this.subjectId||(this.proTypeName=1==e?"学习宝排版":2==e?"基础宝排版":"能力宝排版")},immediate:!0}}},p=c,r=i("2877"),d=Object(r["a"])(p,s,a,!1,null,null,null);t["default"]=d.exports},"8cb8":function(e,t,i){"use strict";var s=i("8ffa"),a=i.n(s);a.a},"8ffa":function(e,t,i){}}]);