(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dfcca712"],{"520f":function(t,n,e){"use strict";e.d(n,"g",(function(){return r})),e.d(n,"b",(function(){return c})),e.d(n,"z",(function(){return o})),e.d(n,"m",(function(){return i})),e.d(n,"f",(function(){return u})),e.d(n,"w",(function(){return a})),e.d(n,"u",(function(){return d})),e.d(n,"v",(function(){return f})),e.d(n,"k",(function(){return l})),e.d(n,"t",(function(){return p})),e.d(n,"e",(function(){return v})),e.d(n,"n",(function(){return _})),e.d(n,"p",(function(){return m})),e.d(n,"r",(function(){return g})),e.d(n,"o",(function(){return b})),e.d(n,"i",(function(){return h})),e.d(n,"q",(function(){return w})),e.d(n,"s",(function(){return S})),e.d(n,"c",(function(){return x})),e.d(n,"l",(function(){return j})),e.d(n,"d",(function(){return C})),e.d(n,"a",(function(){return k})),e.d(n,"h",(function(){return y})),e.d(n,"j",(function(){return T})),e.d(n,"A",(function(){return $})),e.d(n,"x",(function(){return E})),e.d(n,"y",(function(){return O}));var s=e("c1fb");function r(t){return s["a"].post("productset/getProductEdition",t)}function c(t){return s["a"].post("/productset/changeSubject",t)}function o(t){return s["a"].post("/productset/switchEdition",t)}function i(t){return s["a"].post("productset/initProductSetting",t)}var u=function(t){return s["a"].post("/productset/copyTemplate",t)},a=function(t){return s["a"].post("/productset/reNameTemplate",t)},d=function(t){return s["a"].post("/productset/beforeDelTemplate",t)},f=function(t){return s["a"].post("/productset/delTemplate",t)},l=function(t){return s["a"].post("/productset/ajaxGetTemplateById",t)},p=function(t){return s["a"].post("/productset/saveTemplate",t)};function v(t){return s["a"].post("/productset/getClassByGrade",t)}function _(t){return s["a"].post("/productset/productClassSet",t)}function m(t){return s["a"].post("/productset/resetClassSet",t)}var g=function(t){return s["a"].post("/productset/saveClassSet",t)};function b(t){return s["a"].post("/productset/productStudentSet",t)}var h=function(t){return s["a"].post("/studentinfo/getStudent",t)};function w(t){return s["a"].post("/productset/resetStudentSet",t)}var S=function(t){return s["a"].post("/productset/saveStudentSet",t)};function x(t){return s["a"].post("/productset/customProductStudentSet",t)}function j(t){return s["a"].post("/productset/getTemplateByType",t)}function C(t){return s["a"].post("/productset/delStudentOptionalCard",t)}function k(t){return s["a"].post("/productset/SaveOptionalCard",t)}function y(){return s["a"].get("/productset/getSemester")}function T(t){return s["a"].get("/productset/getStyleType",t)}function $(t){return s["a"].post("/productset/switchStyle",t)}function E(){return s["a"].post("/subjectProductSetting/index")}function O(t){return s["a"].post("/subjectProductSetting/update",t)}},"6bb1":function(t,n,e){t.exports=e.p+"img/math-img.20d9094a.jpg"},9849:function(t,n,e){"use strict";var s=e("e968"),r=e.n(s);r.a},a196:function(t,n,e){"use strict";e.r(n);var s=function(){var t=this,n=t.$createElement,s=t._self._c||n;return s("div",{staticClass:"font-size-setting"},[t._m(0),s("div",{staticClass:"size-setting-content"},[s("div",{staticClass:"subject"},[t._m(1),t._l(t.subjects,(function(n,e){return s("div",{key:n.subject_id,staticClass:"subject-name",class:t.iscolor===e?"active":"",on:{click:function(n){return t.toggle(e)}}},[t._v(t._s(n.name))])}))],2),s("div",{staticClass:"content"},[t._m(2),t._l(t.subjects,(function(n){return s("div",{directives:[{name:"show",rawName:"v-show",value:t.iscolor==n.idx,expression:"iscolor==item2.idx"}],key:n.subject_id},[s("div",{staticClass:"setup"},[s("span",{staticClass:"text"},[t._v("新版字号"),s("i",{staticClass:"el-icon-warning-outline",on:{click:function(n){t.newfont=!t.newfont,t.blank=!1}}})]),s("el-switch",{attrs:{"active-color":"#169bd5","inactive-color":"#8c8c8c"},model:{value:n.config_text.new_version_size,callback:function(e){t.$set(n.config_text,"new_version_size",e)},expression:"item2.config_text.new_version_size"}})],1),s("div",{directives:[{name:"show",rawName:"v-show",value:2!=t.iscolor,expression:"iscolor!=2"}],staticClass:"setup"},[s("span",{staticClass:"text"},[t._v("自动截去空白答题区域"),s("i",{staticClass:"el-icon-warning-outline",on:{click:function(n){t.blank=!t.blank,t.newfont=!1}}})]),s("el-switch",{attrs:{"active-color":"#169bd5","inactive-color":"#8c8c8c"},model:{value:n.config_text.cut_blank_answer_area,callback:function(e){t.$set(n.config_text,"cut_blank_answer_area",e)},expression:"item2.config_text.cut_blank_answer_area"}})],1),s("el-button",{attrs:{type:"success"},on:{click:function(e){return t.fontSave(n)}}},[t._v("保存")])],1)}))],2),s("div",{staticClass:"imgs"},[t._m(3),s("div",{staticClass:"open"},[s("img",{directives:[{name:"show",rawName:"v-show",value:t.newfont,expression:"newfont"}],attrs:{src:e("a210"),alt:""}}),s("img",{directives:[{name:"show",rawName:"v-show",value:t.blank,expression:"blank"}],attrs:{src:e("6bb1"),alt:""}})])])])])},r=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"head"},[e("p",[t._v("学科产品设置")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"cont-head"},[e("h2",[t._v("选择学科")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"cont-head"},[e("h2",[t._v("选择内容")]),e("p",[t._v("系统会根据您的设置生成产品,此处设置将应用与该学科所有产品")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"cont-head"},[e("h2",[t._v("示意图")])])}],c=(e("4160"),e("159b"),e("520f")),o=e("7660"),i={name:"FontSizeSetting",data:function(){return{iscolor:0,newfont:!1,blank:!1,subjects:[]}},methods:{toggle:function(t){this.iscolor=t,this.getSubjectList()},getSubjectList:function(){var t=this;Object(c["x"])().then((function(n,e){t.subjects=n.data.lists,t.subjects.forEach((function(n,e){n.config_text=JSON.parse(n.config_text),t.$set(n,"idx",e)}))}))},fontSave:function(t){var n=this;console.log(t);var e={config_text:JSON.stringify(t.config_text),sps_id:t.sps_id},s=Object(o["c"])(e);Object(c["y"])(s).then((function(t){1===t.status?n.$alert("操作成功!","信息",{confirmButtonText:"确定"}):n.$message.error(t.msg)}))}},mounted:function(){this.getSubjectList()}},u=i,a=(e("9849"),e("2877")),d=Object(a["a"])(u,s,r,!1,null,null,null);n["default"]=d.exports},a210:function(t,n,e){t.exports=e.p+"img/physics-img.7687a58f.jpg"},e968:function(t,n,e){}}]);