(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ef20c97"],{"146e":function(t,e,n){"use strict";var a=n("8abf"),c=n.n(a);c.a},"520f":function(t,e,n){"use strict";n.d(e,"g",(function(){return o})),n.d(e,"b",(function(){return r})),n.d(e,"z",(function(){return s})),n.d(e,"m",(function(){return u})),n.d(e,"f",(function(){return i})),n.d(e,"w",(function(){return l})),n.d(e,"u",(function(){return d})),n.d(e,"v",(function(){return p})),n.d(e,"k",(function(){return f})),n.d(e,"t",(function(){return b})),n.d(e,"e",(function(){return h})),n.d(e,"n",(function(){return m})),n.d(e,"p",(function(){return g})),n.d(e,"r",(function(){return v})),n.d(e,"o",(function(){return _})),n.d(e,"i",(function(){return C})),n.d(e,"q",(function(){return j})),n.d(e,"s",(function(){return y})),n.d(e,"c",(function(){return S})),n.d(e,"l",(function(){return w})),n.d(e,"d",(function(){return k})),n.d(e,"a",(function(){return O})),n.d(e,"h",(function(){return D})),n.d(e,"j",(function(){return T})),n.d(e,"A",(function(){return x})),n.d(e,"x",(function(){return $})),n.d(e,"y",(function(){return G}));var a=n("1e04"),c="";function o(t){return a["a"].post("productset/getProductEdition".concat(c),t)}function r(t){return a["a"].post("/productset/changeSubject".concat(c),t)}function s(t){return a["a"].post("/productset/switchEdition".concat(c),t)}function u(t){return a["a"].post("productset/initProductSetting".concat(c),t)}c="";var i=function(t){return a["a"].post("/productset/copyTemplate".concat(c),t)},l=function(t){return a["a"].post("/productset/reNameTemplate".concat(c),t)},d=function(t){return a["a"].post("/productset/beforeDelTemplate".concat(c),t)},p=function(t){return a["a"].post("/productset/delTemplate".concat(c),t)},f=function(t){return a["a"].post("/productset/ajaxGetTemplateById".concat(c),t)},b=function(t){return a["a"].post("/productset/saveTemplate".concat(c),t)};function h(t){return a["a"].post("/productset/getClassByGrade".concat(c),t)}function m(t){return a["a"].post("/productset/productClassSet".concat(c),t)}function g(t){return a["a"].post("/productset/resetClassSet".concat(c),t)}var v=function(t){return a["a"].post("/productset/saveClassSet".concat(c),t)};function _(t){return a["a"].post("/productset/productStudentSet".concat(c),t)}var C=function(t){return a["a"].post("/studentinfo/getStudent".concat(c),t)};function j(t){return a["a"].post("/productset/resetStudentSet".concat(c),t)}var y=function(t){return a["a"].post("/productset/saveStudentSet".concat(c),t)};function S(t){return a["a"].post("/productset/customProductStudentSet".concat(c),t)}function w(t){return a["a"].post("/productset/getTemplateByType".concat(c),t)}function k(t){return a["a"].post("/productset/delStudentOptionalCard".concat(c),t)}function O(t){return a["a"].post("/productset/SaveOptionalCard".concat(c),t)}function D(){return a["a"].get("/productset/getSemester".concat(c))}function T(t){return a["a"].get("/productset/getStyleType".concat(c),t)}function x(t){return a["a"].post("/productset/switchStyle".concat(c),t)}function $(){return a["a"].post("/subjectProductSetting/index".concat(c))}function G(t){return a["a"].post("/subjectProductSetting/update".concat(c),t)}},"8abf":function(t,e,n){},c12e:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"class-setting"},[n("div",{staticClass:"option-modular"},[n("div",{staticClass:"class-option"},[n("div",{staticClass:"drop-down-menu"},[n("span",{staticClass:"c-name"},[t._v(" 年级: ")]),n("el-select",{attrs:{clearable:"",placeholder:"请选择年级",size:"mini"},on:{change:function(e){return t.selGrade(e)}},model:{value:t.obj.grade_id,callback:function(e){t.$set(t.obj,"grade_id",e)},expression:"obj.grade_id"}},t._l(t.gradeData,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),n("div",{staticClass:"drop-down-menu"},[n("span",{staticClass:"c-name"},[t._v(" 班级: ")]),n("el-select",{attrs:{clearable:"",placeholder:"请选择班级",size:"mini"},model:{value:t.obj.class_id,callback:function(e){t.$set(t.obj,"class_id",e)},expression:"obj.class_id"}},t._l(t.classData,(function(t){return n("el-option",{key:t.class_id,attrs:{label:t.class_name,value:t.class_id}})})),1)],1),n("div",{staticClass:"search-block"},[n("el-button",{attrs:{id:"searchBtn",size:"mini"},on:{click:function(e){return t.search()}}},[t._v(" 搜索 ")])],1)]),n("div",{staticClass:"custom"},[n("div",{staticClass:"notice"},[t._v("班级定制:以班级为单位,设置各班级的产品模版")]),n("div",{staticClass:"btn-block"},[n("el-row",[n("el-button",{attrs:{id:"toCustomPage",size:"mini"},on:{click:t.toCustom}},[t._v(" 班级定制 ")]),n("el-button",{attrs:{id:"resetDefault",size:"mini"},on:{click:t.recovery}},[t._v("恢复默认")])],1)],1)])]),n("set-table",{attrs:{tableData:t.tableData,tableOption:t.tableOption}}),n("el-pagination",{attrs:{background:"",layout:"pager, total",total:t.total},on:{"current-change":function(e){return t.handleCurrentChange(e)}}})],1)},c=[],o=(n("4160"),n("c975"),n("a9e3"),n("b64b"),n("ac1f"),n("5319"),n("159b"),n("dc84")),r=n("520f"),s=n("7660"),u={name:"ClassSetting",components:{SetTable:o["a"]},filters:{},props:{},data:function(){return{isAccurate:sessionStorage.getItem("isAccurate"),gradeData:[{value:1,label:"高一"},{value:2,label:"高二"},{value:3,label:"高三"}],classData:[],tableData:[],tableOption:[{prop:"grade",label:"年级",width:"150",formatter:"gradeFilter"},{prop:"class_name",label:"班级",width:"150"},{prop:"level",label:"班级层次",width:"150",formatter:"levelFilter"},{prop:"error_book_name",label:"错题本模板"},{prop:"step2_name",label:"个性化学习方案模板"},{prop:"step3_name",label:"个性化学习宝模板"}],total:0,obj:{page:1,class_id:"",grade_id:"",subject_id:Object(s["d"])()}}},computed:{},watch:{},created:function(){this.getClassData(),this.getGradeClass()},mounted:function(){"3"===Object(s["d"])()&&1==this.isAccurate&&this.tableOption.forEach((function(t){-1!=t.label.indexOf("个性化")&&(t.label=t.label.replace("个性化","精准"))}))},methods:{getClassData:function(){var t=this,e=Object(s["c"])(this.obj);Object(r["n"])(e).then((function(e){t.tableData=e.data.list;var n=0;n=Object.keys(e.data.pages).length?Number(e.data.pages.total):e.data.list.length,t.total=n}))},getGradeClass:function(t){var e=this;Object(r["e"])(t).then((function(t){e.classData=t.result}))},selGrade:function(t){this.obj.class_id="";var e={grade_id:t},n=Object(s["c"])(e);this.getGradeClass(n)},handleCurrentChange:function(t){this.obj.page=t;var e=Object(s["c"])(this.obj);this.getClassData(e)},search:function(){this.obj.page=1;var t=Object(s["c"])(this.obj);this.getClassData(t)},toCustom:function(){this.$router.push({path:"/ProductSet/ClassCustom"})},recovery:function(){var t=this;this.$confirm("将所有班级的模版全部恢复为默认模版,确认要恢复默认吗?","信息",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var e={subject_id:Object(s["d"])()},n=Object(s["c"])(e);Object(r["p"])(n).then((function(e){1==e.status?(t.$message({type:"success",message:e.msg}),t.getClassData()):t.$message({type:"error",message:e.msg})}))})).catch((function(){t.$message({type:"info",message:"已取消操作"})}))}}},i=u,l=(n("146e"),n("2877")),d=Object(l["a"])(i,a,c,!1,null,"2f316261",null);e["default"]=d.exports},dc84:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"set-table"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"","header-cell-style":{background:"#f2f2f2",color:"#606266"}}},[t._l(t.tableOption,(function(e,a){return[e.type?t._e():n("el-table-column",{key:a,attrs:{prop:e.prop,label:e.label,width:e.width},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v(" "+t._s(t._f("dataFormat")(n.row[e.prop],e.formatter))+" ")]}}],null,!0)}),"buttons"==e.type?n("el-table-column",{key:a,attrs:{prop:e.prop,label:e.label,width:e.width},scopedSlots:t._u([{key:"default",fn:function(a){return[n("div",{class:e.class},t._l(e.button,(function(e,c){return n("el-button",{key:c,on:{click:function(n){return t.handle(e,a.$index,a.row)}}},[t._v(t._s(e.text))])})),1)]}}],null,!0)}):t._e()]}))],2)],1)},c=[],o={name:"SetTable",props:{tableData:{type:Array},tableOption:{type:Array}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{handle:function(t,e,n){this.$emit("handle",t,e,n)}},filters:{}},r=o,s=n("2877"),u=Object(s["a"])(r,a,c,!1,null,null,null);e["a"]=u.exports}}]);