chunk-2e13ec19.c8893bde.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2e13ec19"],{"25cd":function(e,t,s){},"35c4":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"step"},[s("ModuleTitle",{staticStyle:{float:"left"},attrs:{titleNum:e.titleNum,titleText:"训练题推送规则"}}),"3"==e.subjectId&&"4"==e.edition&&3==e.productType?s("span",{staticClass:"tips"},[e._v("**基础宝不推送变式题,推送基础知识和训练题")]):e._e(),"12"===e.subjectId&&1!==e.productType&&1==e.targetType?s("div",{staticClass:"topic-group-switch"},[s("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"}}),s("span",[e._v("题组推题")])],1):e._e(),s("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:e.trainList,"header-cell-style":{background:"#f2f2f2",color:"#606266"}}},[e.noLevel?s("el-table-column",{attrs:{prop:"level",label:"学生层次",width:"150"}}):e._e(),"4"!==e.edition&&"12"!==e.subjectId||3!=e.productType?e._e():s("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)}),s("el-table-column",{attrs:{label:"推送数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[2!==t.row.versionType?s("div",{staticClass:"push-rules"},[e._l(e.trainTopicMap,(function(a,i){return s("div",{directives:[{name:"show",rawName:"v-show",value:!e.topicGroupMod,expression:"!topicGroupMod"}],key:i,staticClass:"push-select"},[s("span",[e._v(e._s(a))]),s("SelectOption",{attrs:{value:t.row.pushNumber[i],options:e.numOptions,index:t.$index,selectType:i},on:{change:e.sendChange}})],1)})),"12"===e.subjectId&&e.topicGroupMod?s("div",{staticClass:"push-select"},[s("span",[e._v("题组")]),s("SelectOption",{attrs:{value:t.row.topicGroupPushTopic.topicGroup,options:e.numOptions,index:t.$index,selectType:"topicGroup"},on:{change:e.sendChange}})],1):e._e()],2):s("div",{staticClass:"push-rules"},[s("div",{staticClass:"push-select"},[s("span",[e._v("基础知识")]),s("SelectOption",{attrs:{value:t.row.basics.knowledge,options:e.knowledgeNum,index:t.$index,selectType:"knowledge"},on:{change:e.sendChange}})],1),"3"===e.subjectId?s("div",{staticClass:"push-select"},[s("span",[e._v("基础巩固训练")]),s("SelectOption",{attrs:{value:t.row.basics.consolidate,options:e.consolidateNum,index:t.$index,selectType:"consolidate"},on:{change:e.sendChange}})],1):s("div",{staticClass:"push-select"},[s("span",[e._v("基础知识推题")]),s("SelectOption",{attrs:{value:t.row.basics.knowledgePushTopic,options:e.knowledgeTopicNum,index:t.$index,selectType:"knowledgePushTopic"},on:{change:e.sendChange}})],1)])]}}])}),s("el-table-column",{attrs:{label:"推送难度"},scopedSlots:e._u([{key:"default",fn:function(t){return 2!==t.row.versionType?[s("div",{staticClass:"push-rules push-difficulty"},[e.topicGroupMod?e._e():e._l(e.nums[t.$index],(function(a,i){return s("div",{key:i,staticClass:"push-select"},[s("span",[e._v("第"+e._s(a)+"题")]),s("SelectOption",{attrs:{value:t.row.pushDifficulty[e.keys[t.$index]][a-1],options:e.difficulty,index:t.$index,itemIndex:i,selectType:"difficulty"},on:{change:e.sendChange}})],1)})),"12"===e.subjectId&&e.topicGroupMod?e._l(t.row.topicGroupPushTopic.topicGroup,(function(a,i){return s("div",{key:a,staticClass:"push-select"},[s("span",[e._v("第"+e._s(a)+"题")]),s("SelectOption",{attrs:{value:t.row.topicGroupPushTopic.pushDifficulty[e.keys[t.$index]][a-1],options:e.difficulty,index:t.$index,itemIndex:i,selectType:"topicGroupDifficulty"},on:{change:e.sendChange}})],1)})):e._e()],2)]:void 0}}],null,!0)})],1)],1)},i=[],n=(s("4160"),s("a9e3"),s("b64b"),s("d3b7"),s("07ac"),s("159b"),s("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"}],s=[{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?s: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,s){if(t.topicGroupMod){var a=Object.keys(e.topicGroupPushTopic.pushDifficulty)[0];t.$set(t.keys,s,a)}else{var i=Math.max.apply(null,Object.values(e.pushNumber)),n=Object.keys(e.pushDifficulty)[0];t.$set(t.nums,s,i),t.$set(t.keys,s,n)}}))},sendSwitch:function(e){this.$emit("trainPushSwitch",e)},sendChange:function(e,t,s,a){this.$emit("trainChange",e,t,s,a,this.keys[s])}}}),l=n,o=(s("8cb8"),s("2877")),r=Object(o["a"])(l,a,i,!1,null,"a8e14256",null);t["a"]=r.exports},"4c3d":function(e,t,s){"use strict";var a=s("fe17"),i=s.n(a);i.a},"8cb8":function(e,t,s){"use strict";var a=s("8ffa"),i=s.n(a);i.a},"8ffa":function(e,t,s){},b953:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"step"},[s("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:e.levelList,"header-cell-style":{background:"#f2f2f2",color:"#606266"}}},[s("el-table-column",{attrs:{prop:"level",label:"学生层次",width:"150"}}),s("el-table-column",{attrs:{label:"划分规则"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",{directives:[{name:"show",rawName:"v-show",value:"score"===e.rankBase,expression:"rankBase === 'score'"}],staticClass:"division-rules"},[s("span",{staticClass:"c-name"},[e._v("得分率:")]),s("el-input",{attrs:{size:"mini",onkeyup:"value=value.replace(/[^\\d]/g,'')",disabled:t.$index==e.levelList.length-1},model:{value:t.row.valueStart.score,callback:function(s){e.$set(t.row.valueStart,"score",e._n(s))},expression:"scope.row.valueStart.score"}}),s("span",[e._v("%")]),s("span",{staticClass:"to"},[e._v("~")]),s("el-input",{attrs:{size:"mini",onkeyup:"value=value.replace(/[^\\d]/g,'')",disabled:0==t.$index},model:{value:t.row.valueEnd.score,callback:function(s){e.$set(t.row.valueEnd,"score",e._n(s))},expression:"scope.row.valueEnd.score"}}),s("span",[e._v("%")])],1),s("div",{directives:[{name:"show",rawName:"v-show",value:"grade"===e.rankBase,expression:"rankBase === 'grade'"}],staticClass:"division-rules"},[s("span",{staticClass:"c-name"},[e._v("班级排名:")]),s("el-input",{attrs:{size:"mini",onkeyup:"value=value.replace(/[^\\d]/g,'')"},model:{value:t.row.valueStart.grade,callback:function(s){e.$set(t.row.valueStart,"grade",e._n(s))},expression:"scope.row.valueStart.grade"}}),s("span",{staticClass:"to"},[e._v("~")]),s("el-input",{attrs:{size:"mini",onkeyup:"value=value.replace(/[^\\d]/g,'')"},model:{value:t.row.valueEnd.grade,callback:function(s){e.$set(t.row.valueEnd,"grade",e._n(s))},expression:"scope.row.valueEnd.grade"}}),s("span",[e._v("名")])],1)]}}])}),"4"!==e.edition&&"12"!==e.subjectId||3!=e.productType||e.isSameTrain?e._e():s("el-table-column",{attrs:{label:"使用版本"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-select",{attrs:{size:"mini"},on:{change:function(s){return e.selectProLevel(s,t.$index,t.row)}},model:{value:t.row.versionType,callback:function(s){e.$set(t.row,"versionType",s)},expression:"scope.row.versionType"}},e._l(e.proType,(function(e){return s("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)]}}],null,!1,2702081417)})],1)],1)},i=[],n={name:"LevelDivide",props:{levelList:{type:Array,default:function(){return[]}},rankBase:String,isSameTrain:{type:Boolean}},data:function(){return{subjectId:sessionStorage.getItem("subject_id"),edition:sessionStorage.getItem("edition"),productType:this.$route.query.product_type,proType:[{value:1,label:"学习宝"},{value:2,label:"基础宝"},{value:3,label:"能力宝"}]}},methods:{selectProLevel:function(e,t,s){this.$emit("selectProLevel",e,t,s)}}},l=n,o=(s("fe70"),s("2877")),r=Object(o["a"])(l,a,i,!1,null,"5ee56feb",null);t["a"]=r.exports},e6f5:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"set-template"},[s("div",{staticClass:"set-select-info"},[s("div",{staticClass:"info-text"},[s("h3",[e._v(e._s("3"===e.subjectId&&1==e.isAccurate?"精准":"个性化")+"学习方案产品版本选择")]),s("el-tooltip",{attrs:{effect:"light",placement:"right-start"}},[s("div",{staticStyle:{width:"300px"},attrs:{slot:"content"},slot:"content"},[e._v(" 说明:"),s("br"),e._v("个性版,对不同层次学生推送基础宝、学习宝、能力宝,目的是实现分层个性化推送。"),s("br"),e._v("共性版,全班所有学生错题推送相同变式题。 ")]),s("div",{staticClass:"explain-icon"},[e._v("?")])])],1),s("el-radio-group",{staticClass:"select-radio-group",on:{change:e.pushSameTrain},model:{value:e.isSameTrain,callback:function(t){e.isSameTrain=t},expression:"isSameTrain"}},[s("el-radio",{attrs:{label:!1}},[e._v("个性版")]),s("el-radio",{attrs:{label:!0}},[e._v("共性版")])],1)],1),s("TopSelect",{attrs:{titleNum:"1",studentLevel:e.studentLevel,rankBase:e.rankBase,statisticsMethods:e.statisticsMethods,studentLevels:e.studentLevels,rankBases:e.rankBases,statistics:e.statistics},on:{change:e.handleChange}}),s("LevelDivide",{attrs:{rankBase:e.rankBase,levelList:e.levelList}}),s("ErrorTopicPush",{attrs:{titleNum:"2",errTopicMap:e.errTopicMap,errorTopicList:e.errorTopicList,isSameTrain:e.isSameTrain},on:{module:e.handleData}}),s("TrainTopicPush",{directives:[{name:"show",rawName:"v-show",value:!e.isSameTrain,expression:"!isSameTrain"}],attrs:{titleNum:"3",pushTopicType:e.pushTopicType,trainList:e.trainList,trainTopicMap:e.trainTopicMap},on:{trainPushSwitch:e.topicGroupSwitch,trainChange:e.handleTrainChange}}),s("TypeSet",{attrs:{titleNum:e.isSameTrain?"3":"4",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?s("TypeSet",{attrs:{titleNum:e.isSameTrain?"4":"5",titleText:"培优版设置",typeSetList:e.pushErrList,typeSetMap:e.pushMap,type:"2"},on:{switch:e.handleSwitch}}):e._e(),s("div",{staticClass:"save-btn"},[s("el-button",{attrs:{id:"saveSetting"},on:{click:e.handleSetting}},[e._v(" 保存设置 ")])],1)],1)},i=[],n=s("ef3f"),l=s("b953"),o=s("494c"),r=s("35c4"),c=s("8830"),u=s("8f79"),p={name:"IndividuationClass",components:{TopSelect:n["a"],LevelDivide:l["a"],ErrorTopicPush:o["a"],TrainTopicPush:r["a"],TypeSet:c["a"]},mixins:[u["a"],u["b"]]},d=p,v=s("2877"),h=Object(v["a"])(d,a,i,!1,null,null,null);t["default"]=h.exports},ef3f:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"step"},[s("ModuleTitle",{attrs:{titleNum:e.titleNum,titleText:"学生层次划分规则"}}),s("div",{staticClass:"option-modular"},[s("div",{staticClass:"drop-down-menu"},[s("span",{staticClass:"c-name"},[e._v(" 学生层次: ")]),s("SelectOption",{attrs:{selectType:"1",value:e.studentLevel,options:e.studentLevels},on:{change:e.sendChange}})],1),s("div",{staticClass:"drop-down-menu"},[s("span",{staticClass:"c-name"},[e._v(" 划分依据: ")]),s("SelectOption",{attrs:{selectType:"2",value:e.rankBase,options:e.rankBases},on:{change:e.sendChange}})],1),s("div",{staticClass:"drop-down-menu"},[s("span",{staticClass:"c-name"},[e._v(" 统计方式: ")]),s("SelectOption",{attrs:{selectType:"3",value:e.statisticsMethods,options:e.statistics},on:{change:e.sendChange}})],1)])],1)},i=[],n=(s("a9e3"),{name:"TopSelect",props:{titleNum:String,studentLevel:Number,rankBase:String,statisticsMethods:String,studentLevels:{type:Array,default:function(){return[]}},rankBases:{type:Array,default:function(){return[]}},statistics:{type:Array,default:function(){return[]}}},methods:{sendChange:function(e,t){this.$emit("change",e,t)}}}),l=n,o=(s("4c3d"),s("2877")),r=Object(o["a"])(l,a,i,!1,null,"71d77978",null);t["a"]=r.exports},fe17:function(e,t,s){},fe70:function(e,t,s){"use strict";var a=s("25cd"),i=s.n(a);i.a}}]);