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