chunk-7318c465.c38850ed.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7318c465"],{"230a":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"class-template"},[a("div",{staticClass:"template-set"},[a("div",{staticClass:"step"},[a("module-title",{attrs:{titleNum:"1",titleText:"学生层次划分规则"}}),a("div",{staticClass:"top-select"},[a("div",{staticClass:"drop-down-menu"},[a("span",{staticClass:"c-name"},[e._v(" 学生层次: ")]),a("Select-option",{attrs:{selectType:"1",value:e.selectOption.studentLevel,options:e.selectOption.studentLevels},on:{"update:value":function(t){return e.$set(e.selectOption,"studentLevel",t)},selectChange:e.changeSelect}})],1),a("div",{staticClass:"drop-down-menu"},[a("span",{staticClass:"c-name"},[e._v(" 划分依据: ")]),a("SelectOption",{attrs:{selectType:"2",value:e.selectOption.rankBase,options:e.selectOption.rankBases},on:{"update:value":function(t){return e.$set(e.selectOption,"rankBase",t)},selectChange:e.changeSelect}})],1),a("div",{staticClass:"drop-down-menu"},[a("span",{staticClass:"c-name"},[e._v(" 统计方式: ")]),a("SelectOption",{attrs:{selectType:"3",value:e.selectOption.statisticalMethod,options:e.selectOption.statistics},on:{"update:value":function(t){return e.$set(e.selectOption,"statisticalMethod",t)},selectChange:e.changeSelect}})],1)]),a("div",{staticClass:"division-rules"},[a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:e.levelRuleList,"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.selectOption.rankBase,expression:"selectOption.rankBase === 'score'"}],staticClass:"divide"},[a("span",{staticClass:"c-name"},[e._v("得分率")]),a("el-input",{attrs:{size:"mini",onkeyup:"value=value.replace(/[^\\d]/g,'')",disabled:t.$index==e.levelRuleList.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.selectOption.rankBase,expression:"selectOption.rankBase === 'grade'"}],staticClass:"divide"},[a("span",{staticClass:"c-name"},[e._v("班级排名")]),a("el-input",{attrs:{size:"mini",onkeyup:"value=value.replace(/[^\\d]/g,'')",disabled:t.$index==e.levelRuleList.length-1},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",[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.grade,callback:function(a){e.$set(t.row.valueEnd,"grade",e._n(a))},expression:"scope.row.valueEnd.grade"}}),a("span",[e._v("%")])],1)]}}])})],1)],1)],1),a("div",{staticClass:"step"},[a("module-title",{attrs:{titleNum:"2",titleText:"个性和共性问题方法规则"}}),a("div",{staticClass:"question-method"},[a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:e.methodRuleList,"header-cell-style":{background:"#f2f2f2",color:"#606266"}}},[a("el-table-column",{attrs:{prop:"type",label:"类型",width:"150"}}),a("el-table-column",{attrs:{label:"划分规则"},scopedSlots:e._u([{key:"default",fn:function(t){return[void 0!==t.row.valueStart?a("div",{staticClass:"divide"},[a("span",{staticClass:"c-name"},[e._v("方法对应题目得分率")]),a("el-input",{attrs:{size:"mini",onkeyup:"value=value.replace(/[^\\d]/g,'')"},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,'')"},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",{staticClass:"divide"},[a("span",{staticClass:"c-name"},[e._v("除共性之外的问题")])])]}}])})],1)],1)],1),a("div",{staticClass:"step"},[a("module-title",{attrs:{titleNum:"3",titleText:"题型方法推送规则"}}),a("div",{staticClass:"type-method"},[a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:e.pushRuleList,"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",{staticClass:"push-rules"},e._l(e.trainTopicMap,(function(l,s){return a("div",{key:s,staticClass:"push-select"},[a("span",[e._v(e._s(l))]),a("SelectOption",{attrs:{value:t.row.pushNumber[s],options:e.endOptions,index:t.$index,selectType:s},on:{change:e.sendChange}})],1)})),0)]}}])}),a("el-table-column",{attrs:{label:"推送难度"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"push-rules push-difficulty"},e._l(e.nums[t.$index],(function(l,s){return a("div",{key:s,staticClass:"push-select"},[a("span",[e._v("第"+e._s(l)+"题")]),a("SelectOption",{attrs:{value:t.row.pushDifficulty[e.keys[t.$index]][l-1],options:e.difficulty,selectType:"difficulty",index:t.$index,diffIndex:s},on:{change:e.sendChange}})],1)})),0)]}}])})],1)],1)],1),a("div",{staticClass:"step"},[a("module-title",{attrs:{titleNum:"4",titleText:"个性化学习宝排版"}}),a("div",{staticClass:"type-set"},[a("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:e.typesetList,"header-cell-style":{background:"#f2f2f2",color:"#606266"}}},[a("el-table-column",{attrs:{prop:"title",label:"一级栏目"}}),a("el-table-column",{attrs:{label:"二级栏目"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.cellItem,(function(t,l){return a("div",{key:l,staticClass:"show-text"},[e._v(" "+e._s(t.text)+" ")])}))}}])}),a("el-table-column",{attrs:{label:"设置"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.cellItem,(function(t,l){return a("div",{key:l,staticClass:"switch-block"},["hasTrainTypesetting"!==t.name?a("el-switch",{attrs:{"active-color":"#16ae68","inactive-color":"#ddd"},model:{value:e.typesetValue[t.name],callback:function(a){e.$set(e.typesetValue,t.name,a)},expression:"typesetValue[item.name]"}}):"hasTrainTypesetting"===t.name?a("el-select",{attrs:{size:"mini"},model:{value:e.typesetValue[t.name],callback:function(a){e.$set(e.typesetValue,t.name,a)},expression:"typesetValue[item.name]"}},e._l(e.typeModeOption,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1):e._e()],1)}))}}])})],1)],1)],1),a("div",{staticClass:"save-btn"},[a("el-button",{attrs:{id:"saveSetting"},on:{click:e.SaveSetting}},[e._v(" 保存设置 ")])],1)])])},s=[],n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"module-title"},[a("i",[e._v(e._s(e.titleNum))]),a("span",[e._v(e._s(e.titleText))])])},i=[],o={name:"ModuleTitle",props:{titleNum:String,titleText:String}},c=o,r=(a("4353"),a("2877")),u=Object(r["a"])(c,n,i,!1,null,"cde9922c",null),d=u.exports,v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-select",{attrs:{size:"mini"},on:{change:e.selectChange},model:{value:e.newValue,callback:function(t){e.newValue=t},expression:"newValue"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)},p=[],m=(a("a9e3"),{name:"SelectOption",props:{value:{type:[String,Number]},selectType:{type:String},options:{type:Array,default:function(){return[]}},index:{type:Number},diffIndex:{type:Number}},data:function(){return{}},computed:{newValue:{set:function(e){this.$emit("update:value",e)},get:function(){return this.value}}},methods:{selectChange:function(e){this.$emit("selectChange",e,this.selectType,this.index)}}}),h=m,f=Object(r["a"])(h,v,p,!1,null,null,null),b=f.exports,g={name:"ClassTemplate",components:{ModuleTitle:d,SelectOption:b},filters:{},props:{},data:function(){return{dsb:"abc",dsb2:"efg",selectOption:{studentLevel:3,rankBase:"score",statisticalMethod:"currentAchieve",studentLevels:[{value:3,label:"分为ABC三层"},{value:1,label:"不分层"},{value:2,label:"分为AB两层"}],rankBases:[{value:"score",label:"按得分率"},{value:"grade",label:"按班级排名"}],statistics:[{value:"currentAchieve",label:"本次考试成绩"},{value:"latelyThreeAchieve",label:"最近3场考试平均成绩"},{value:"latelyFiveAchieve",label:"最近5场考试平均成绩"}]},levelRuleList:[{level:"A",valueStart:{score:80,grade:0},valueEnd:{score:100,grade:20}},{level:"B",valueStart:{score:60,grade:20},valueEnd:{score:80,grade:60}},{level:"C",valueStart:{score:20,grade:60},valueEnd:{score:60,grade:100}}],methodRuleList:[{type:"共性问题方法",valueStart:{score:20},valueEnd:{score:65}},{type:"个性问题方法"}],pushRuleList:[],typesetList:[{title:"学情诊断",cellItem:[{text:"显示【得分明细】",name:"hasScoreDetail"},{text:"显示【题型分析】",name:"hasEncourage"},{text:"显示【知识点掌握情况】",name:"hasAchievementChange"},{text:"显示【知识地图】",name:"hasRankingChange"},{text:"显示【小贴士】",name:"examinationDifficulty"}]},{title:"错题整理",cellItem:[{text:"显示【错题整理】整个模块",name:"hasGoodKnowledge"},{text:"显示【自我订正】",name:"hasLoseKnowledge"}]},{title:"方法讲解",cellItem:[{text:"显示【精确诊断】",name:"commonProblems"},{text:"显示【个性训练】",name:"hasErrorOriginNote"},{text:"显示【共性训练】",name:"hasDividePage"}]},{title:"方法专练排版方式",cellItem:[{text:"个性问题方法和共性问题方法显示顺序",name:"hasTrainTypesetting"}]}],typesetValue:{hasScoreDetail:!0,hasEncourage:!0,hasAchievementChange:!0,hasRankingChange:!0,examinationDifficulty:!0,hasGoodKnowledge:!0,hasLoseKnowledge:!0,commonProblems:!0,hasErrorOriginNote:!0,hasDividePage:!0,hasTrainTypesetting:!0},typeModeOption:[{value:!0,label:"共性问题在前"},{value:!1,label:"个性问题在前"}]}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{changeSelect:function(e,t){console.log(e),this.levelRuleList=this.toLevelList(e).levelList},toLevelList:function(e){for(var t={levelList:[]},a=0;a<e;a++){var l={};l.level=String.fromCharCode(65+a),l.valueStart={score:0,grade:0},l.valueEnd={score:0,grade:0},t.levelList.push(l),t.levelList[0].valueEnd.score=100}return t},SaveSetting:function(){}}},y=g,w=(a("70ca"),Object(r["a"])(y,l,s,!1,null,"9eafe7a8",null));t["default"]=w.exports},4353:function(e,t,a){"use strict";var l=a("f1b6"),s=a.n(l);s.a},"70ca":function(e,t,a){"use strict";var l=a("c54d"),s=a.n(l);s.a},c54d:function(e,t,a){},f1b6:function(e,t,a){}}]);