(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5871ef98"],{2436:function(t,e,n){},"44f7":function(t,e,n){"use strict";var a=n("2436"),o=n.n(a);o.a},6593:function(t,e,n){"use strict";n.d(e,"e",(function(){return s})),n.d(e,"b",(function(){return c})),n.d(e,"o",(function(){return r})),n.d(e,"m",(function(){return u})),n.d(e,"n",(function(){return l})),n.d(e,"d",(function(){return i})),n.d(e,"l",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"h",(function(){return b})),n.d(e,"j",(function(){return h})),n.d(e,"g",(function(){return m})),n.d(e,"i",(function(){return v})),n.d(e,"c",(function(){return g})),n.d(e,"k",(function(){return _}));var a=n("1e04"),o="";function s(t){return a["a"].post("/productMethod/getTemplateByType".concat(o),t)}o="";var c=function(t){return a["a"].post("/productMethod/copyTemplate".concat(o),t)},r=function(t){return a["a"].post("/productMethod/reNameTemplate".concat(o),t)},u=function(t){return a["a"].post("/productMethod/beforeDelTemplate".concat(o),t)},l=function(t){return a["a"].post("/productMethod/delTemplate".concat(o),t)},i=function(t){return a["a"].post("/productMethod/ajaxGetTemplateById".concat(o),t)},d=function(t){return a["a"].post("/productMethod/saveTemplate".concat(o),t)};function p(t){return a["a"].post("/productMethod/getClassByGrade".concat(o),t)}function f(t){return a["a"].post("/productMethod/productClassSet".concat(o),t)}function b(t){return a["a"].post("/productMethod/resetClassSet".concat(o),t)}var h=function(t){return a["a"].post("/productMethod/saveClassSet".concat(o),t)};function m(t){return a["a"].post("/productMethod/productStudentSet".concat(o),t)}function v(t){return a["a"].post("/productMethod/resetStudentSet".concat(o),t)}var g=function(t){return a["a"].post("/studentinfo/getStudent".concat(o),t)},_=function(t){return a["a"].post("/productMethod/saveStudentSet".concat(o),t)}},dcdc2: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,o){return n("el-button",{key:o,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)},o=[],s={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:{}},c=s,r=n("2877"),u=Object(r["a"])(c,a,o,!1,null,null,null);e["a"]=u.exports},fb73: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:"student-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.selClass(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-input",{attrs:{size:"mini",placeholder:"学生姓名"},model:{value:t.obj.student_name,callback:function(e){t.$set(t.obj,"student_name",e)},expression:"obj.student_name"}}),n("el-row",[n("el-button",{attrs:{id:"searchBtn",size:"mini"},on:{click:function(e){return t.search()}}},[t._v(" 搜索 ")])],1)],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)},o=[],s=(n("a9e3"),n("b64b"),n("dcdc2")),c=n("6593"),r=n("7660"),u={name:"StudentSetting",components:{SetTable:s["a"]},filters:{},props:{},data:function(){return{gradeData:[{value:1,label:"高一"},{value:2,label:"高二"},{value:3,label:"高三"}],classData:[],tableData:[],tableOption:[{prop:"student_name",label:"学生姓名"},{prop:"student_card",label:"系统准考证号"},{prop:"grade",label:"年级",formatter:"gradeFilter"},{prop:"class_name",label:"班级"},{prop:"template_name",label:"方法宝模板"}],obj:{page:1,class_id:"",grade_id:"",student_name:""},total:0}},computed:{},watch:{},created:function(){this.getStudentData(),this.getGradeClass()},mounted:function(){},methods:{getStudentData:function(){var t=this,e=Object(r["c"])(this.obj);Object(c["g"])(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(c["a"])(t).then((function(t){e.classData=t.result}))},selClass:function(t){this.obj.class_id="";var e={grade_id:t},n=Object(r["c"])(e);this.getGradeClass(n)},handleCurrentChange:function(t){this.obj.page=t;var e=Object(r["c"])(this.obj);this.getStudentData(e)},search:function(){this.obj.page=1;var t=Object(r["c"])(this.obj);this.getStudentData(t)},toCustom:function(){this.$router.push({path:"StudentCustom"})},recovery:function(){var t=this;this.$confirm("将所有学生的模版全部恢复为默认模版,确认要恢复默认吗?","信息",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["i"])().then((function(e){1==e.status?(t.$message({type:"success",message:e.msg}),t.getStudentData()):t.$message({type:"error",message:e.msg})}))})).catch((function(){t.$message({type:"info",message:"已取消操作"})}))}}},l=u,i=(n("44f7"),n("2877")),d=Object(i["a"])(l,a,o,!1,null,"a77ee3f4",null);e["default"]=d.exports}}]);