1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a88713a"],{3192:function(t,e,n){"use strict";var a=n("6080"),s=n.n(a);s.a},"520f":function(t,e,n){"use strict";n.d(e,"g",(function(){return c})),n.d(e,"b",(function(){return o})),n.d(e,"z",(function(){return i})),n.d(e,"m",(function(){return r})),n.d(e,"f",(function(){return u})),n.d(e,"w",(function(){return p})),n.d(e,"u",(function(){return l})),n.d(e,"v",(function(){return d})),n.d(e,"k",(function(){return m})),n.d(e,"t",(function(){return f})),n.d(e,"e",(function(){return g})),n.d(e,"n",(function(){return h})),n.d(e,"p",(function(){return T})),n.d(e,"r",(function(){return _})),n.d(e,"o",(function(){return y})),n.d(e,"i",(function(){return v})),n.d(e,"q",(function(){return S})),n.d(e,"s",(function(){return C})),n.d(e,"c",(function(){return x})),n.d(e,"l",(function(){return b})),n.d(e,"d",(function(){return L})),n.d(e,"a",(function(){return w})),n.d(e,"h",(function(){return j})),n.d(e,"j",(function(){return I})),n.d(e,"A",(function(){return k})),n.d(e,"x",(function(){return O})),n.d(e,"y",(function(){return N}));var a=n("1e04"),s="";function c(t){return a["a"].post("productset/getProductEdition".concat(s),t)}function o(t){return a["a"].post("/productset/changeSubject".concat(s),t)}function i(t){return a["a"].post("/productset/switchEdition".concat(s),t)}function r(t){return a["a"].post("productset/initProductSetting".concat(s),t)}s="";var u=function(t){return a["a"].post("/productset/copyTemplate".concat(s),t)},p=function(t){return a["a"].post("/productset/reNameTemplate".concat(s),t)},l=function(t){return a["a"].post("/productset/beforeDelTemplate".concat(s),t)},d=function(t){return a["a"].post("/productset/delTemplate".concat(s),t)},m=function(t){return a["a"].post("/productset/ajaxGetTemplateById".concat(s),t)},f=function(t){return a["a"].post("/productset/saveTemplate".concat(s),t)};function g(t){return a["a"].post("/productset/getClassByGrade".concat(s),t)}function h(t){return a["a"].post("/productset/productClassSet".concat(s),t)}function T(t){return a["a"].post("/productset/resetClassSet".concat(s),t)}var _=function(t){return a["a"].post("/productset/saveClassSet".concat(s),t)};function y(t){return a["a"].post("/productset/productStudentSet".concat(s),t)}var v=function(t){return a["a"].post("/studentinfo/getStudent".concat(s),t)};function S(t){return a["a"].post("/productset/resetStudentSet".concat(s),t)}var C=function(t){return a["a"].post("/productset/saveStudentSet".concat(s),t)};function x(t){return a["a"].post("/productset/customProductStudentSet".concat(s),t)}function b(t){return a["a"].post("/productset/getTemplateByType".concat(s),t)}function L(t){return a["a"].post("/productset/delStudentOptionalCard".concat(s),t)}function w(t){return a["a"].post("/productset/SaveOptionalCard".concat(s),t)}function j(){return a["a"].get("/productset/getSemester".concat(s))}function I(t){return a["a"].get("/productset/getStyleType".concat(s),t)}function k(t){return a["a"].post("/productset/switchStyle".concat(s),t)}function O(){return a["a"].post("/subjectProductSetting/index".concat(s))}function N(t){return a["a"].post("/subjectProductSetting/update".concat(s),t)}},6080:function(t,e,n){},7275:function(t,e,n){t.exports=n.p+"img/pic_errorTpl.b9560117.jpg"},"811b":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:"template-center"},[n("div",{staticClass:"template-type"},[t.wrongList.length?n("TemplateItem",{attrs:{templateTitle:"错题本模版",templateTyle:"1",templateList:t.wrongList,templateImgSrc:t.wrongImg},on:{copy:t.handleCopyClick,deLeTe:t.handleDelClick,reName:t.handReNameClick,changeText:t.handleTextBlur}}):t._e()],1),n("div",{staticClass:"template-type"},[t.step2List.length?n("TemplateItem",{attrs:{templateTitle:"3"===t.s_id&&1==t.isAccurate?"精准学习方案模版":"个性化学习方案模版",templateTyle:"2",templateList:t.step2List,templateImgSrc:t.step2Img},on:{copy:t.handleCopyClick,deLeTe:t.handleDelClick,reName:t.handReNameClick,changeText:t.handleTextBlur}}):t._e()],1),n("div",{staticClass:"template-type"},[t.step3List.length?n("TemplateItem",{attrs:{templateTitle:"3"===t.s_id&&1==t.isAccurate?"精准学习宝模版":"个性化学习宝模版",templateTyle:"3",templateList:t.step3List,templateImgSrc:t.step3Img},on:{copy:t.handleCopyClick,deLeTe:t.handleDelClick,reName:t.handReNameClick,changeText:t.handleTextBlur}}):t._e()],1),n("DiaLog",{attrs:{dialogVisble:t.dialogVisble,delId:t.delId,delText:t.delText,delStatus:t.delStatus,typeNum:t.typeNum},on:{close:t.handleDiaClose,delete:t.handleDelTemplate}})],1)},s=[],c=(n("99af"),n("4160"),n("159b"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"module-title"},[t._v(t._s(t.templateTitle))]),n("div",{staticClass:"template-content"},[n("div",{staticClass:"template-list"},t._l(t.templateList,(function(e,a){return n("div",{key:e.template_id,staticClass:"template-item"},[n("div",{staticClass:"item-block"},[n("div",{staticClass:"pic"},[n("img",{attrs:{src:t.templateImgSrc,alt:""}}),1==e.target_type?n("span",[t._v("班级模板")]):n("span",[t._v("学生模板")])]),n("div",{staticClass:"text"},[e.showText?n("p",{staticClass:"template-name-output template-name"},[t._v(" "+t._s(e.template_name)+" ")]):n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.template_name,expression:"item.template_name"},{name:"focus",rawName:"v-focus",value:!e.showText,expression:"!item.showText"}],staticClass:"template-name-input template-name",attrs:{maxlength:"15"},domProps:{value:e.template_name},on:{blur:function(n){return t.sendTextChange(e,a,t.templateTyle)},input:function(n){n.target.composing||t.$set(e,"template_name",n.target.value)}}})])]),n("div",{staticClass:"set-block"},[n("span",{staticClass:"copy",on:{click:function(n){return t.sendCopy(e,t.templateTyle)}}},[t._v("复制")]),n("span",{staticClass:"change",on:{click:function(n){return t.sendReName(e,a,t.templateTyle)}}},[t._v("改名")]),n("span",{staticClass:"del",on:{click:function(n){return t.sendDel(e,t.templateTyle)}}},[t._v("删除")]),n("span",{staticClass:"set",on:{click:function(n){return t.sendToPath(e)}}},[t._v("设置")])])])})),0)])])}),o=[],i=n("7660"),r={name:"TemplateItem",props:{templateTitle:{type:String,default:""},templateTyle:{type:String,default:""},templateImgSrc:{type:String,default:""},templateList:{type:Array,default:function(){return[]}}},data:function(){return{}},created:function(){},methods:{sendCopy:function(t,e){this.$emit("copy",t,e)},sendReName:function(t,e,n){this.$emit("reName",t,e,n)},sendDel:function(t,e){this.$emit("deLeTe",t,e)},sendTextChange:function(t,e,n){""!=t.template_name?this.$emit("changeText",t,e,n):this.$message.error("模板名称不可为空!")},sendToPath:function(t){this.$router.push(t.toPath)}},directives:{focus:{inserted:function(t,e){var n=e.value;n&&t.focus()}}}},u=r,p=(n("d814"),n("2877")),l=Object(p["a"])(u,c,o,!1,null,"acec5880",null),d=l.exports,m=n("520f"),f=n("5c96"),g={name:"TemplateCenter",components:{TemplateItem:d},data:function(){return{wrongList:[],step2List:[],step3List:[],wrongImg:n("7275"),step2Img:n("9cca"),step3Img:n("8455"),dialogVisble:!1,delId:"",delText:"",delStatus:0,typeNum:0,s_id:Object(i["d"])(),isAccurate:sessionStorage.getItem("isAccurate")}},created:function(){this._getWrongTemplate(),this._getStep2Template(),this._getStep3Template()},mounted:function(){},methods:{handleDelTemplate:function(t){var e=this,n={id:this.delId},a=Object(i["c"])(n);Object(m["v"])(a).then((function(n){1===n.status&&(1===t?e._getWrongTemplate():2===t?e._getStep2Template():e._getStep3Template(),f["Message"].success(n.msg),e.dialogVisble=!1)}))},handleDelClick:function(t,e){var n=this,a={id:t.template_id},s=Object(i["c"])(a);this.typeNum=+e,Object(m["u"])(s).then((function(e){1===e.status?(n.dialogVisble=!0,n.delId=t.template_id,n.delText="确认删除该模版吗?",n.delStatus=e.status):-1===e.status?(n.dialogVisble=!0,n.delText="默认模版不可删除!",n.delStatus=e.status):-2===e.status&&(n.dialogVisble=!0,n.delId=t.template_id,n.delText="模版使用中,删除模版,则使用该模版的学生将重置为默认模版!",n.delStatus=e.status)}))},handReNameClick:function(t,e,n){1==n?this.wrongList[e].showText=!1:2==n?this.step2List[e].showText=!1:this.step3List[e].showText=!1},handleTextBlur:function(t,e,n){var a=this,s={id:t.template_id,name:t.template_name},c=Object(i["c"])(s);Object(m["w"])(c).then((function(t){1===t.status?(1==n?(a.wrongList[e].showText=!0,a._getWrongTemplate()):2==n?(a.step2List[e].showText=!0,a._getStep2Template()):(a.step3List[e].showText=!0,a._getStep3Template()),f["Message"].success(t.msg)):(1==n?(a.wrongList[e].showText=!0,a._getWrongTemplate()):2==n?(a.step2List[e].showText=!0,a._getStep2Template()):(a.step3List[e].showText=!0,a._getStep3Template()),f["Message"].error(t.msg))}))},handleCopyClick:function(t,e){var n=this,a={id:t.template_id},s=Object(i["c"])(a);Object(m["f"])(s).then((function(t){t&&(1==e?n._getWrongTemplate():2==e?n._getStep2Template():n._getStep3Template())}))},handleDiaClose:function(){this.dialogVisble=!1},_getWrongTemplate:function(){var t=this,e={type:1,subject_id:this.s_id},n=Object(i["c"])(e),a="";Object(m["l"])(n).then((function(e){t.wrongList=e.data,t.wrongList.forEach((function(n,s){a=1==n.target_type?"WrongTopicClass":"WrongTopicStudent",t.$set(t.wrongList[s],"showText",!0),t.$set(t.wrongList[s],"toPath","".concat(a,"?product_type=1&target_type=").concat(e.data[s].target_type,"&id=").concat(e.data[s].template_id))}))}))},_getStep2Template:function(){var t=this,e={type:2,subject_id:this.s_id},n=Object(i["c"])(e),a="";Object(m["l"])(n).then((function(e){t.step2List=e.data,t.step2List.forEach((function(n,s){a=1==n.target_type?"IndividuationClass":"IndividuationStudent",t.$set(t.step2List[s],"showText",!0),t.$set(t.step2List[s],"toPath","".concat(a,"?product_type=2&target_type=").concat(e.data[s].target_type,"&id=").concat(e.data[s].template_id))}))}))},_getStep3Template:function(){var t=this,e={type:3,subject_id:this.s_id},n=Object(i["c"])(e),a="";Object(m["l"])(n).then((function(e){t.step3List=e.data,t.step3List.forEach((function(n,s){a=1==n.target_type?"PromoteClass":"PromoteStudent",t.$set(t.step3List[s],"showText",!0),t.$set(t.step3List[s],"toPath","".concat(a,"?product_type=3&target_type=").concat(e.data[s].target_type,"&id=").concat(e.data[s].template_id))}))}))}}},h=g,T=(n("3192"),Object(p["a"])(h,a,s,!1,null,"4818f3e5",null));e["default"]=T.exports},8455:function(t,e,n){t.exports=n.p+"img/pic_addpoint3.79e6a50e.jpg"},"9cca":function(t,e,n){t.exports=n.p+"img/pic_addpoint.7007fa3c.jpg"},c97d:function(t,e,n){},d814:function(t,e,n){"use strict";var a=n("c97d"),s=n.n(a);s.a}}]);
|