1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-680199ce"],{"03f3":function(t,e,a){"use strict";var n=a("a2ac"),s=a.n(n);s.a},1097:function(t,e,a){},"1c05":function(t,e,a){},"1d94":function(t,e,a){},"40c4":function(t,e,a){"use strict";var n=a("aae9"),s=a.n(n);s.a},"4ef4":function(t,e,a){"use strict";var n=a("1097"),s=a.n(n);s.a},"520f":function(t,e,a){"use strict";a.d(e,"g",(function(){return i})),a.d(e,"b",(function(){return o})),a.d(e,"z",(function(){return l})),a.d(e,"m",(function(){return u})),a.d(e,"f",(function(){return r})),a.d(e,"w",(function(){return c})),a.d(e,"u",(function(){return d})),a.d(e,"v",(function(){return h})),a.d(e,"k",(function(){return p})),a.d(e,"t",(function(){return v})),a.d(e,"e",(function(){return f})),a.d(e,"n",(function(){return m})),a.d(e,"p",(function(){return x})),a.d(e,"r",(function(){return g})),a.d(e,"o",(function(){return b})),a.d(e,"i",(function(){return w})),a.d(e,"q",(function(){return L})),a.d(e,"s",(function(){return _})),a.d(e,"c",(function(){return y})),a.d(e,"l",(function(){return D})),a.d(e,"d",(function(){return k})),a.d(e,"a",(function(){return j})),a.d(e,"h",(function(){return C})),a.d(e,"j",(function(){return O})),a.d(e,"A",(function(){return S})),a.d(e,"x",(function(){return N})),a.d(e,"y",(function(){return T}));var n=a("1e04"),s="";function i(t){return n["a"].post("productset/getProductEdition".concat(s),t)}function o(t){return n["a"].post("/productset/changeSubject".concat(s),t)}function l(t){return n["a"].post("/productset/switchEdition".concat(s),t)}function u(t){return n["a"].post("productset/initProductSetting".concat(s),t)}s="";var r=function(t){return n["a"].post("/productset/copyTemplate".concat(s),t)},c=function(t){return n["a"].post("/productset/reNameTemplate".concat(s),t)},d=function(t){return n["a"].post("/productset/beforeDelTemplate".concat(s),t)},h=function(t){return n["a"].post("/productset/delTemplate".concat(s),t)},p=function(t){return n["a"].post("/productset/ajaxGetTemplateById".concat(s),t)},v=function(t){return n["a"].post("/productset/saveTemplate".concat(s),t)};function f(t){return n["a"].post("/productset/getClassByGrade".concat(s),t)}function m(t){return n["a"].post("/productset/productClassSet".concat(s),t)}function x(t){return n["a"].post("/productset/resetClassSet".concat(s),t)}var g=function(t){return n["a"].post("/productset/saveClassSet".concat(s),t)};function b(t){return n["a"].post("/productset/productStudentSet".concat(s),t)}var w=function(t){return n["a"].post("/studentinfo/getStudent".concat(s),t)};function L(t){return n["a"].post("/productset/resetStudentSet".concat(s),t)}var _=function(t){return n["a"].post("/productset/saveStudentSet".concat(s),t)};function y(t){return n["a"].post("/productset/customProductStudentSet".concat(s),t)}function D(t){return n["a"].post("/productset/getTemplateByType".concat(s),t)}function k(t){return n["a"].post("/productset/delStudentOptionalCard".concat(s),t)}function j(t){return n["a"].post("/productset/SaveOptionalCard".concat(s),t)}function C(){return n["a"].get("/productset/getSemester".concat(s))}function O(t){return n["a"].get("/productset/getStyleType".concat(s),t)}function S(t){return n["a"].post("/productset/switchStyle".concat(s),t)}function N(){return n["a"].post("/subjectProductSetting/index".concat(s))}function T(t){return n["a"].post("/subjectProductSetting/update".concat(s),t)}},"5ea2":function(t,e,a){"use strict";var n=a("cd7e"),s=a.n(n);s.a},"5f0a":function(t,e,a){"use strict";var n=a("8041"),s=a.n(n);s.a},"642e":function(t,e,a){"use strict";var n=a("8c47"),s=a.n(n);s.a},6831:function(t,e,a){},8041:function(t,e,a){},"8c47":function(t,e,a){},a15b:function(t,e,a){"use strict";var n=a("23e7"),s=a("44ad"),i=a("fc6a"),o=a("a640"),l=[].join,u=s!=Object,r=o("join",",");n({target:"Array",proto:!0,forced:u||!r},{join:function(t){return l.call(i(this),void 0===t?",":t)}})},a2ac:function(t,e,a){},aae9:function(t,e,a){},bf07:function(t,e,a){"use strict";var n=a("1c05"),s=a.n(n);s.a},c193:function(t,e,a){"use strict";var n=a("1d94"),s=a.n(n);s.a},c2b8:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"optional-card"},[a("div",{staticClass:"option-modular"},[a("div",{staticClass:"class-option"},[a("div",{staticClass:"drop-down-menu"},[a("span",{staticClass:"c-name"},[t._v(" 年级: ")]),a("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 a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),a("div",{staticClass:"drop-down-menu"},[a("span",{staticClass:"c-name"},[t._v(" 班级: ")]),a("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 a("el-option",{key:t.class_id,attrs:{label:t.class_name,value:t.class_id}})})),1)],1),a("div",{staticClass:"search-block"},[a("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"}}),a("el-row",[a("el-button",{attrs:{id:"searchBtn",size:"mini"},on:{click:function(e){return t.search()}}},[t._v(" 搜索 ")])],1)],1)]),a("div",{staticClass:"custom"},[a("div",{staticClass:"btn-block"},[a("el-row",[a("el-button",{attrs:{id:"downloadOptionalCard",size:"mini"},on:{click:t.download}},[t._v("下载自选卡")]),a("el-button",{attrs:{id:"scanOptionalCard",size:"mini"},on:{click:t.scanning}},[t._v("扫描自选卡")])],1)],1)])]),a("set-table",{attrs:{tableData:t.tableData,tableOption:t.tableOption},on:{handle:t.handle}}),a("el-pagination",{attrs:{background:"",layout:"pager, total",total:t.total},on:{"current-change":function(e){return t.handleCurrentChange(e)}}}),a("check-optional-card",{directives:[{name:"show",rawName:"v-show",value:t.check,expression:"check"}],attrs:{customList:t.tableData,customData:t.customData,optIndex:t.optIndex},on:{back:t.handleSel}}),a("modify-optional-card",{directives:[{name:"show",rawName:"v-show",value:t.modify,expression:"modify"}],attrs:{customList:t.tableData,customData:t.customData,optIndex:t.optIndex},on:{back:t.handleModify}}),a("new-modify-optional-card",{directives:[{name:"show",rawName:"v-show",value:t.newModify,expression:"newModify"}],attrs:{customList:t.tableData,customData:t.customData,optIndex:t.optIndex},on:{back:t.handleModify}})],1)},s=[],i=(a("a9e3"),a("b64b"),a("dc84")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"check-optional-card"},[a("check-selector",t._g({attrs:{customList:t.customList,customData:t.customData,selIndex:t.index}},t.$listeners)),a("div",{staticClass:"picture-box",attrs:{id:"pictureBox"}},[a("img",{attrs:{src:t.turnList[t.index]&&t.turnList[t.index].custom_config_img,alt:""}})])],1)},l=[],u=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"check-selector"},[a("div",{staticClass:"head-info"},[a("div",{staticClass:"student-info"},[a("span",[t._v("姓名:"+t._s(t.turnList[t.index]&&t.turnList[t.index].student_name))]),a("span",[t._v("系统准考证号:"+t._s(t.turnList[t.index]&&t.turnList[t.index].student_card))]),a("span",[t._v("年级:"+t._s(t.turnList[t.index]&&"1"===t.turnList[t.index].grade?"高一":t.turnList[t.index]&&"2"===t.turnList[t.index].grade?"高二":t.turnList[t.index]&&"3"==t.turnList[t.index].grade?"高三":""))]),a("span",[t._v("班级:"+t._s(t.turnList[t.index]&&t.turnList[t.index].class_name))])]),a("div",{staticClass:"option-list"},[a("span",{on:{click:t.back}},[t._v("返回")]),a("span",{on:{click:t.prev}},[t._v("上一个")]),a("span",{on:{click:t.next}},[t._v("下一个")])])])])},r=[],c=a("520f"),d=a("7660"),h={name:"CheckSelector",inheritAttrs:!1,components:{},filters:{},props:{customList:{type:Array},customData:{type:Object},selIndex:{type:Number}},data:function(){return{index:0,turnList:[]}},computed:{},watch:{customList:{handler:function(t){t.length&&(this.turnList=t,this.changeShow())}},selIndex:{handler:function(t){this.index=t,this.changeShow()}}},created:function(){},mounted:function(){},updated:function(){},methods:{back:function(){this.$emit("back"),this.$router.push({query:{}})},changeShow:function(){this.$emit("changeShow",this.index)},next:function(){var t=this;if(this.index<this.turnList.length-1)this.index++;else{if(this.customData.pages.nowPage==this.customData.pages.totalPage)return void this.$message("已经是最后一条了");if(this.customData.pages.nowPage<this.customData.pages.totalPage){this.customData.pages.nowPage++;var e=this.customData.pages.nowPage,a={page:e},n=Object(d["c"])(a);Object(c["c"])(n).then((function(e){t.turnList=e.data.list,t.index=0}))}}this.changeShow()},prev:function(){var t=this;if(this.index>0)this.index--;else{if(1==this.customData.pages.nowPage)return void this.$message("已经是第一条了");if(this.customData.pages.nowPage>1){this.customData.pages.nowPage--;var e=this.customData.pages.nowPage,a={page:e},n=Object(d["c"])(a);Object(c["c"])(n).then((function(e){t.turnList=e.data.list,t.index=t.turnList.length-1}))}}this.changeShow()}}},p=h,v=(a("03f3"),a("5f0a"),a("2877")),f=Object(v["a"])(p,u,r,!1,null,"3699c338",null),m=f.exports,x={name:"CheckOptionalCard",inheritAttrs:!1,components:{CheckSelector:m},filters:{},props:{customList:{type:Array},customData:{type:Object},optIndex:{type:Number}},data:function(){return{index:0,turnList:[]}},computed:{},watch:{customList:{handler:function(t){this.turnList=t}},optIndex:{handler:function(t){this.index=t}}},created:function(){},mounted:function(){},updated:function(){},methods:{}},g=x,b=(a("c193"),Object(v["a"])(g,o,l,!1,null,"5a71e899",null)),w=b.exports,L=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modify-optional-card"},[a("check-selector",t._g({attrs:{customList:t.customList,customData:t.customData,selIndex:t.index},on:{changeShow:t.changeShow}},t.$listeners)),a("div",{staticClass:"modify-card-content"},[a("div",{staticClass:"part"},[a("h3",[t._v("第一部分:个性化排版")]),a("ul",t._l(t.dataList,(function(e,n){return a("li",{key:n},[a("span",{staticClass:"keyword"},[t._v(t._s(n+1+"、"+e.title))]),a("el-radio-group",{on:{change:function(a){return t.partOne(e,n)}},model:{value:t.selected[e.name],callback:function(a){t.$set(t.selected,e.name,a)},expression:"selected[item.name]"}},t._l(e.options,(function(e,n){return a("el-radio",{key:n,attrs:{label:e.value}},[t._v(t._s(e.text))])})),1)],1)})),0)]),a("div",{staticClass:"part"},[a("h3",[t._v("第二部分:错题原题推送")]),a("ul",t._l(t.dataList2,(function(e,n){return a("li",{key:n},[a("span",{staticClass:"keyword"},[t._v(t._s(t.dataList.length+n+1+"、"+e.title))]),"按难度推错题(多选)"!==e.title?a("el-radio-group",{on:{change:function(a){return t.partTwo(e,n)}},model:{value:t.selected2[n],callback:function(e){t.$set(t.selected2,n,e)},expression:"selected2[index]"}},t._l(e.options,(function(e,n){return a("el-radio",{key:n,attrs:{label:e.value}},[t._v(t._s(e.text)+" ")])})),1):a("el-checkbox-group",{on:{change:function(a){return t.partTwo(e,n)}},model:{value:t.difficultyList,callback:function(e){t.difficultyList=e},expression:"difficultyList"}},t._l(e.options,(function(e,n){return a("el-checkbox",{key:n,attrs:{label:e.value}},[t._v(t._s(e.text))])})),1)],1)})),0)]),a("div",{staticClass:"part"},[a("h3",[t._v("第三部分:变式训练题")]),a("ul",t._l(t.dataList3,(function(e,n){return a("li",{key:n},[a("span",{staticClass:"keyword"},[t._v(t._s(t.dataList.length+t.dataList2.length+n+1+"、"+e.title))]),a("el-radio-group",{on:{change:function(a){return t.partThree(e,n)}},model:{value:t.selected3[n],callback:function(e){t.$set(t.selected3,n,e)},expression:"selected3[index]"}},t._l(e.options,(function(e,n){return a("el-radio",{key:n,attrs:{label:e.value}},[t._v(t._s(e.text)+" ")])})),1)],1)})),0)]),a("div",{staticClass:"part"},[a("h3",[t._v("第四部分:培优")]),a("ul",[a("li",[a("span",{staticClass:"keyword"},[t._v(t._s(t.dataList.length+t.dataList2.length+t.dataList3.length+1+"、推送题升级"))]),a("el-radio-group",{on:{change:t.partFour},model:{value:t.upgrade,callback:function(e){t.upgrade=e},expression:"upgrade"}},[a("el-radio",{attrs:{label:!0}},[t._v("是")]),a("el-radio",{attrs:{label:!1}},[t._v("否")])],1)],1)])]),a("div",{staticClass:"saveBtn"},[a("el-button",{on:{click:t.saveCard}},[t._v("保存设置")])],1)])],1)},_=[],y=(a("99af"),a("4160"),a("a15b"),a("d81d"),a("b0c0"),a("159b"),a("2909")),D={name:"ModifyOptionalCard",inheritAttrs:!1,components:{CheckSelector:m},filters:{},props:{customList:{type:Array},customData:{type:Object},optIndex:{type:Number}},data:function(){return{index:this.optIndex,turnList:[],selected:{},selected2:[],selected3:[],dataList:[{title:"激励话语",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"hasEncourage"},{title:"排名变化图",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"hasRankingChange"},{title:"成绩变化图",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"hasAchievementChange"},{title:"得分前五知识点",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"hasGoodKnowledge"},{title:"失分前五知识点",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"hasLoseKnowledge"},{title:"得分明细",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"hasScoreDetail"},{title:"考试难度小贴士",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"examinationDifficulty"},{title:"考点视频二维码",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"testVideo"},{title:"考点高考分值表",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"scoreOfCollege"},{title:"同学优解",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"classmateOptimization"},{title:"呈现错题原笔迹",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"hasErrorOriginNote"},{title:"错题与变式训练题",options:[{value:!0,text:"在一起"},{value:!1,text:"不在一起"}],name:"hasTrainTypesetting"},{title:"题目与答案",options:[{value:!0,text:"在一起"},{value:!1,text:"不在一起"}],name:"hasDividePage"},{title:"不需要错题答案解析",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"hasWrongAnswer"},{title:"错题答案解析显示在最后",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"isWrongAnswerEnd"},{title:"共性问题",options:[{value:!0,text:"是"},{value:!1,text:"否"}],name:"commonProblems"}],dataList2:[{title:"选择题",options:[{value:"pushLose",text:"扣了分就推"},{value:"pushZero",text:"只推得0分得"},{value:"pushNone",text:"不推"}]},{title:"填空题",options:[{value:"pushLose",text:"扣了分就推"},{value:"pushZero",text:"只推得0分得"},{value:"pushNone",text:"不推"}]},{title:"解答题",options:[{value:"pushLose",text:"扣了分就推"},{value:"pushThree",text:"扣3分以上分才推"},{value:"pushHalf",text:"扣一半以上分才推"},{value:"pushNone",text:"不推"}]},{title:"选做题",options:[{value:"pushLose",text:"扣了分就推"},{value:"pushThree",text:"扣3分以上分才推"},{value:"pushHalf",text:"扣一半以上分才推"},{value:"pushNone",text:"不推"}]},{title:"按难度推错题(多选)",options:[{value:"1",text:"推基础题"},{value:"2",text:"推中档题"},{value:"3",text:"推培优题"},{value:"0",text:"都推"}]}],difficultyList:[],dataList3:[{title:"推送难度",options:[{value:"0",text:"跟错题难度一样"},{value:"1",text:"降低一级难度"},{value:"3",text:"增加一级难度"}]},{title:"错题是选择题",options:[{value:"1",text:"推1个变式训练"},{value:"2",text:"推2个变式训练"},{value:"3",text:"推3个变式训练"}]},{title:"错题是填空题",options:[{value:"1",text:"推1个变式训练"},{value:"2",text:"推2个变式训练"},{value:"3",text:"推3个变式训练"}]},{title:"错题是解答题",options:[{value:"1",text:"推1个变式训练"},{value:"2",text:"推2个变式训练"},{value:"3",text:"推3个变式训练"}]},{title:"错题是选做题",options:[{value:"1",text:"推1个变式训练"},{value:"2",text:"推2个变式训练"},{value:"3",text:"推3个变式训练"}]}],upgrade:[],newUpgrade:[],total_list:[],curObj:{page:1,class_id:"",grade_id:""}}},computed:{},watch:{customList:{handler:function(t){t&&t.length&&(this.turnList=t,this.changeShow())}},optIndex:{handler:function(t){this.changeShow(t)}}},mounted:function(){},methods:{back:function(){this.$emit("back")},refCustomData:function(){var t=this;this.curObj.page=this.customData.pages.nowPage;var e=Object(d["c"])(this.curObj);Object(c["c"])(e).then((function(e){t.turnList=e.data.list}))},changeShow:function(t){var e=this;if(void 0!=t){this.index=t;var a=JSON.parse(this.turnList[this.index].custom_config_json),n=a.errorTypeSetting;this.dataList.forEach((function(t,a){e.$set(e.selected,e.dataList[a].name)})),Object.keys(this.selected).forEach((function(t){void 0==n[t]?e.selected[t]=!0:e.selected[t]=n[t]}));var s=a.studentLevelDivide.levelDetails[0].errorPushDetail.select,i=a.studentLevelDivide.levelDetails[0].errorPushDetail.fillInBlank,o=a.studentLevelDivide.levelDetails[0].errorPushDetail.answer,l=a.studentLevelDivide.levelDetails[0].errorPushDetail.chooseAnswer;this.difficultyList=a.studentLevelDivide.levelDetails[0].errorPushDetail.difficulty,this.selected2=[].concat(Object(y["a"])(s),Object(y["a"])(i),Object(y["a"])(o),Object(y["a"])(l),[this.difficultyList]);var u=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushDifficulty.select[0],r=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushNumber.select,c=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushNumber.fillInBlank,d=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushNumber.answer,h=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushNumber.chooseAnswer;this.selected3=[].concat(Object(y["a"])(u),Object(y["a"])(r),Object(y["a"])(c),Object(y["a"])(d),Object(y["a"])(h)),this.upgrade=a.errorTypeSetting.pushQuestionUpgrade}},partOne:function(t,e){this.dataList[e]["questionNum"]=e+1,this.dataList[e]["answer"]=this.selected[t.name],this.dataList.forEach((function(t){!0===t.answer?t.answer="A":!1===t.answer&&(t.answer="B")}))},partTwo:function(t,e){this.dataList2[e]["questionNum"]=this.dataList.length+e+1,this.dataList2[e]["answer"]=this.selected2[e],this.dataList2.forEach((function(e){"pushLose"===e.answer&&(e.answer="A"),("pushZero"===e.answer&&3==t.options.length||"pushThree"===e.answer&&4==t.options.length)&&(e.answer="B"),"pushNone"===e.answer&&3==t.options.length?e.answer="C":"pushNone"===e.answer&&4==t.options.length&&(e.answer="D"),"pushHalf"===e.answer&&4==t.options.length&&(e.answer="C")}));for(var a=this.difficultyList.concat(),n=[],s=0;s<a.length;s++)"1"===a[s]?n[s]="A":"2"===a[s]?n[s]="B":"3"===a[s]?n[s]="C":"0"===a[s]&&(n[s]="D");"按难度推错题(多选)"===t.title&&(t.answer=n.join(","))},partThree:function(t,e){this.dataList3[e]["questionNum"]=this.dataList.length+this.dataList2.length+e+1,this.dataList3[e]["answer"]=this.selected3[e],this.dataList3.forEach((function(e){"0"===e.answer&&"推送难度"===t.title&&(e.answer="A"),"1"===e.answer&&"推送难度"===t.title?e.answer="B":"1"===e.answer&&(e.answer="A"),"2"===e.answer&&(e.answer="B"),("3"===e.answer&&"推送难度"===t.title||"3"===e.answer)&&(e.answer="C")}))},partFour:function(){var t={questionNum:this.dataList.length+this.dataList2.length+this.dataList3.length+1,answer:!0===this.upgrade?"A":"B"};this.newUpgrade=t},saveCard:function(){var t=this;this.dataList.forEach((function(e,a){t.partOne(e,a)})),this.dataList2.forEach((function(e,a){t.partTwo(e,a)})),this.dataList3.forEach((function(e,a){t.partThree(e,a)})),this.partFour(),this.total_list=[].concat(Object(y["a"])(this.dataList),Object(y["a"])(this.dataList2),Object(y["a"])(this.dataList3),[this.newUpgrade]);var e=this.total_list.map((function(t){return{answer:t.answer,questionNum:t.questionNum}})),a=JSON.stringify(e),n={studentId:this.turnList[this.index].student_id,json:a,subject_id:Object(d["d"])()},s=Object(d["c"])(n);Object(c["a"])(s).then((function(e){1==e.status&&(t.$message({message:e.msg,type:"success"}),t.refCustomData(),t.back())}))}}},k=D,j=(a("bf07"),a("4ef4"),Object(v["a"])(k,L,_,!1,null,null,null)),C=j.exports,O=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modify-optional-card"},[a("check-selector",t._g({attrs:{customList:t.customList,customData:t.customData,selIndex:t.index},on:{changeShow:t.changeShow}},t.$listeners)),a("div",{staticClass:"modify-card-content"},[a("div",{staticClass:"part"},[a("h3",[t._v("第一部分:个性化排版")]),a("ul",t._l(t.dataList,(function(e,n){return a("li",{key:n},[a("span",{staticClass:"keyword"},[t._v(t._s(n+1+"、"+e.title))]),a("el-radio-group",{on:{change:function(a){return t.partOne(e,n)}},model:{value:t.selected[e.name],callback:function(a){t.$set(t.selected,e.name,a)},expression:"selected[item.name]"}},t._l(e.options,(function(e,n){return a("el-radio",{key:n,attrs:{label:e.value}},[t._v(t._s(e.text))])})),1)],1)})),0)]),a("div",{staticClass:"part"},[a("h3",[t._v("第二部分:错题原题推送")]),a("ul",t._l(t.dataList2,(function(e,n){return a("li",{key:n},[a("span",{staticClass:"keyword"},[t._v(t._s(t.dataList.length+n+1+"、"+e.title))]),"按难度推错题(多选)"!==e.title?a("el-radio-group",{on:{change:function(a){return t.partTwo(e,n)}},model:{value:t.selected2[n],callback:function(e){t.$set(t.selected2,n,e)},expression:"selected2[index]"}},t._l(e.options,(function(e,n){return a("el-radio",{key:n,attrs:{label:e.value}},[t._v(t._s(e.text)+" ")])})),1):a("el-checkbox-group",{on:{change:function(a){return t.partTwo(e,n)}},model:{value:t.difficultyList,callback:function(e){t.difficultyList=e},expression:"difficultyList"}},t._l(e.options,(function(e,n){return a("el-checkbox",{key:n,attrs:{label:e.value}},[t._v(t._s(e.text))])})),1)],1)})),0)]),a("div",{staticClass:"part"},[a("h3",[t._v("第三部分:变式训练题")]),a("ul",t._l(t.dataList3,(function(e,n){return a("li",{key:n},[a("span",{staticClass:"keyword"},[t._v(t._s(t.dataList.length+t.dataList2.length+n+1+"、"+e.title))]),a("el-radio-group",{on:{change:function(a){return t.partThree(e,n)}},model:{value:t.selected3[n],callback:function(e){t.$set(t.selected3,n,e)},expression:"selected3[index]"}},t._l(e.options,(function(e,n){return a("el-radio",{key:n,attrs:{label:e.value}},[t._v(t._s(e.text)+" ")])})),1)],1)})),0)]),a("div",{staticClass:"part"},[a("h3",[t._v("第四部分:培优")]),a("ul",[a("li",[a("span",{staticClass:"keyword"},[t._v(t._s(t.dataList.length+t.dataList2.length+t.dataList3.length+1+"、推送题升级"))]),a("el-radio-group",{on:{change:t.partFour},model:{value:t.upgrade,callback:function(e){t.upgrade=e},expression:"upgrade"}},[a("el-radio",{attrs:{label:!0}},[t._v("要")]),a("el-radio",{attrs:{label:!1}},[t._v("不要")])],1)],1)])]),a("div",{staticClass:"saveBtn"},[a("el-button",{on:{click:t.saveCard}},[t._v("保存设置")])],1)])],1)},S=[],N={name:"newModifyOptionalCard",components:{CheckSelector:m},filters:{},props:{customList:{type:Array},customData:{type:Object},optIndex:{type:Number}},data:function(){return{index:this.optIndex,turnList:[],selected:{},selected2:[],selected3:[],dataList:[{title:"激励话语",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"hasEncourage"},{title:"得分明细",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"hasScoreDetail"},{title:"提升指导",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"hasPromoteGuide"},{title:"排名变化图",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"hasRankingChange"},{title:"成绩变化图",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"hasAchievementChange"},{title:"数学情境",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"hasMathSituation"},{title:"学史典藏",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"historyCollection"},{title:"呈现错题原笔迹",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"hasErrorOriginNote"},{title:"错题与变式训练题",options:[{value:!0,text:"在一起"},{value:!1,text:"不在一起"}],name:"hasTrainTypesetting"},{title:"考点视频二维码",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"testVideo"},{title:"考点高考分值表",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"scoreOfCollege"},{title:"同学优解",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"classmateOptimization"},{title:"共性问题",options:[{value:!0,text:"要"},{value:!1,text:"不要"}],name:"commonProblems"},{title:"题目与答案",options:[{value:!0,text:"在一起"},{value:!1,text:"不在一起"}],name:"titleAnswerMerge"},{title:"不需要错题答案解析",options:[{value:!0,text:"是"},{value:!1,text:"不是"}],name:"hasWrongAnswer"}],dataList2:[{title:"选择题",options:[{value:"pushLose",text:"扣了分就推"},{value:"pushZero",text:"只推得0分得"},{value:"pushNone",text:"不推"}]},{title:"填空题",options:[{value:"pushLose",text:"扣了分就推"},{value:"pushZero",text:"只推得0分得"},{value:"pushNone",text:"不推"}]},{title:"解答题",options:[{value:"pushLose",text:"扣了分就推"},{value:"pushThree",text:"扣3分以上分才推"},{value:"pushHalf",text:"扣一半以上分才推"},{value:"pushNone",text:"不推"}]},{title:"选做题",options:[{value:"pushLose",text:"扣了分就推"},{value:"pushThree",text:"扣3分以上分才推"},{value:"pushHalf",text:"扣一半以上分才推"},{value:"pushNone",text:"不推"}]},{title:"按难度推错题(多选)",options:[{value:"1",text:"推基础题"},{value:"2",text:"推中档题"},{value:"3",text:"推培优题"},{value:"0",text:"都推"}]}],difficultyList:[],dataList3:[{title:"推送难度",options:[{value:"0",text:"跟错题难度一样"},{value:"1",text:"降低一级难度"},{value:"3",text:"增加一级难度"}]},{title:"错题是选择题",options:[{value:"0",text:"不推"},{value:"1",text:"推1个变式训练"},{value:"2",text:"推2个变式训练"},{value:"3",text:"推3个变式训练"}]},{title:"错题是填空题",options:[{value:"0",text:"不推"},{value:"1",text:"推1个变式训练"},{value:"2",text:"推2个变式训练"},{value:"3",text:"推3个变式训练"}]},{title:"错题是解答题",options:[{value:"0",text:"不推"},{value:"1",text:"推1个变式训练"},{value:"2",text:"推2个变式训练"},{value:"3",text:"推3个变式训练"}]},{title:"错题是选做题",options:[{value:"0",text:"不推"},{value:"1",text:"推1个变式训练"},{value:"2",text:"推2个变式训练"},{value:"3",text:"推3个变式训练"}]}],upgrade:[],newUpgrade:[],total_list:[],curObj:{page:1,class_id:"",grade_id:""}}},computed:{},watch:{customList:{handler:function(t){t.length&&(this.turnList=t,this.changeShow())}},optIndex:{handler:function(t){this.changeShow(t)}}},created:function(){},mounted:function(){},methods:{back:function(){this.$emit("back")},refCustomData:function(){var t=this;this.curObj.page=this.customData.pages.nowPage;var e=Object(d["c"])(this.curObj);Object(c["c"])(e).then((function(e){t.turnList=e.data.list}))},changeShow:function(t){var e=this;if(void 0!=t){this.index=t;var a=JSON.parse(this.turnList[this.index].custom_config_json),n=a.errorTypeSetting;this.dataList.forEach((function(t,a){e.$set(e.selected,e.dataList[a].name)})),Object.keys(this.selected).forEach((function(t){void 0==n[t]?e.selected[t]=!0:e.selected[t]=n[t]}));var s=a.studentLevelDivide.levelDetails[0].errorPushDetail.select,i=a.studentLevelDivide.levelDetails[0].errorPushDetail.fillInBlank,o=a.studentLevelDivide.levelDetails[0].errorPushDetail.answer,l=a.studentLevelDivide.levelDetails[0].errorPushDetail.chooseAnswer;this.difficultyList=a.studentLevelDivide.levelDetails[0].errorPushDetail.difficulty,this.selected2=[].concat(Object(y["a"])(s),Object(y["a"])(i),Object(y["a"])(o),Object(y["a"])(l),[this.difficultyList]);var u=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushDifficulty.select[0],r=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushNumber.select,c=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushNumber.fillInBlank,d=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushNumber.answer,h=a.studentLevelDivide.levelDetails[0].trainPushDetail.pushNumber.chooseAnswer;this.selected3=[].concat(Object(y["a"])(u),Object(y["a"])(r),Object(y["a"])(c),Object(y["a"])(d),Object(y["a"])(h)),this.upgrade=a.errorTypeSetting.pushQuestionUpgrade}},partOne:function(t,e){this.dataList[e]["questionNum"]=e+1,this.dataList[e]["answer"]=this.selected[t.name],this.dataList.forEach((function(t){!0===t.answer?t.answer="A":!1===t.answer&&(t.answer="B")}))},partTwo:function(t,e){this.dataList2[e]["questionNum"]=this.dataList.length+e+1,this.dataList2[e]["answer"]=this.selected2[e],this.dataList2.forEach((function(e){"pushLose"===e.answer&&(e.answer="A"),("pushZero"===e.answer&&3==t.options.length||"pushThree"===e.answer&&4==t.options.length)&&(e.answer="B"),"pushNone"===e.answer&&3==t.options.length?e.answer="C":"pushNone"===e.answer&&4==t.options.length&&(e.answer="D"),"pushHalf"===e.answer&&4==t.options.length&&(e.answer="C")}));for(var a=this.difficultyList.concat(),n=[],s=0;s<a.length;s++)"1"===a[s]?n[s]="A":"2"===a[s]?n[s]="B":"3"===a[s]?n[s]="C":"0"===a[s]&&(n[s]="D");"按难度推错题(多选)"===t.title&&(t.answer=n.join(","))},partThree:function(t,e){this.dataList3[e]["questionNum"]=this.dataList.length+this.dataList2.length+e+1,this.dataList3[e]["answer"]=this.selected3[e],this.dataList3.forEach((function(e){"0"===e.answer&&"推送难度"===t.title&&(e.answer="A"),"1"===e.answer&&"推送难度"===t.title&&(e.answer="B"),"3"===e.answer&&"推送难度"===t.title&&(e.answer="C"),"0"!==e.answer||"错题是选择题"!==t.title&&"错题是填空题"!==t.title&&"错题是解答题"!==t.title&&"错题是选做题"!==t.title||(e.answer="A"),"1"!==e.answer||"错题是选择题"!==t.title&&"错题是填空题"!==t.title&&"错题是解答题"!==t.title&&"错题是选做题"!==t.title||(e.answer="B"),"2"!==e.answer||"错题是选择题"!==t.title&&"错题是填空题"!==t.title&&"错题是解答题"!==t.title&&"错题是选做题"!==t.title||(e.answer="C"),"3"!==e.answer||"错题是选择题"!==t.title&&"错题是填空题"!==t.title&&"错题是解答题"!==t.title&&"错题是选做题"!==t.title||(e.answer="D")}))},partFour:function(){var t={questionNum:this.dataList.length+this.dataList2.length+this.dataList3.length+1,answer:!0===this.upgrade?"A":"B"};this.newUpgrade=t},saveCard:function(){var t=this;this.dataList.forEach((function(e,a){t.partOne(e,a)})),this.dataList2.forEach((function(e,a){t.partTwo(e,a)})),this.dataList3.forEach((function(e,a){t.partThree(e,a)})),this.partFour(),this.total_list=[].concat(Object(y["a"])(this.dataList),Object(y["a"])(this.dataList2),Object(y["a"])(this.dataList3),[this.newUpgrade]);var e=this.total_list.map((function(t){return{answer:t.answer,questionNum:t.questionNum}})),a=JSON.stringify(e),n={studentId:this.turnList[this.index].student_id,json:a,subject_id:Object(d["d"])()},s=Object(d["c"])(n);Object(c["a"])(s).then((function(e){1==e.status&&(t.$message({message:e.msg,type:"success"}),t.refCustomData(),t.back())}))}}},T=N,P=(a("5ea2"),a("642e"),Object(v["a"])(T,O,S,!1,null,null,null)),$=P.exports,A={name:"OptionalCard",components:{SetTable:i["a"],CheckOptionalCard:w,ModifyOptionalCard:C,newModifyOptionalCard:$},props:{},data:function(){return{gradeData:[{value:1,label:"高一"},{value:2,label:"高二"},{value:3,label:"高三"}],classData:[],tableData:[],customData:{},tableOption:[{prop:"student_name",label:"学生姓名"},{prop:"student_card",label:"系统准考证号"},{prop:"grade",label:"年级",formatter:"gradeFilter"},{prop:"class_name",label:"班级"},{label:"操作",class:"option-block",type:"buttons",button:[{text:"查看",function:"handleSel"},{text:"修改",function:"handleModify"},{text:"删除",function:"handleDel"}]}],obj:{page:1,class_id:"",grade_id:"",student_name:""},total:0,check:!1,modify:!1,newModify:!1,optIndex:0,edition:Object(d["b"])()}},computed:{},watch:{},created:function(){this.getCustomData(),this.getGradeClass()},mounted:function(){},methods:{getCustomData:function(){var t=this,e=Object(d["c"])(this.obj);Object(c["c"])(e).then((function(e){t.tableData=e.data.list,t.customData=e.data;var a=0;a=Object.keys(e.data.pages).length?Number(e.data.pages.total):e.data.list.length,t.total=a}))},getGradeClass:function(t){var e=this;Object(c["e"])(t).then((function(t){e.classData=t.result}))},selClass:function(t){this.obj.class_id="";var e={grade_id:t},a=Object(d["c"])(e);this.getGradeClass(a)},handleCurrentChange:function(t){this.obj.page=t;var e=Object(d["c"])(this.obj);this.getCustomData(e)},search:function(){this.obj.page=1;var t=Object(d["c"])(this.obj);this.getCustomData(t)},download:function(){location.href="/productset/downPdf"},scanning:function(){"4"==this.edition?evaluationClient.loadTifenbao("3.3"):evaluationClient.loadTifenbao()},handle:function(t,e,a){"handleSel"===t.function?this.handleSel(e,a):"handleModify"===t.function?this.handleModify(e,a):"handleDel"===t.function&&this.handleDel(a)},handleSel:function(t,e){this.optIndex=t,this.$router.push({query:{handle:"check"}}),this.check=!this.check,this.$route.meta.nav=!this.$route.meta.nav},handleModify:function(t,e){this.optIndex=t,this.$router.push({query:{handle:"modify"}}),"4"==this.edition?this.newModify=!this.newModify:this.modify=!this.modify,this.$route.meta.nav=!this.$route.meta.nav},handleDel:function(t){var e=this;this.$confirm("确认要删除该学生的自选卡配置吗?删除后可重新上传自选卡或者使用在线设置","信息",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={student_id:t.student_id},n=Object(d["c"])(a);Object(c["d"])(n).then((function(t){if(1==t.status)if(e.$message({type:"success",message:t.msg}),e.tableData.length-1==0){e.obj.page--;var a=Object(d["c"])(e.obj);e.getCustomData(a)}else e.getCustomData();else e.$message({type:"error",message:t.msg})}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))}}},E=A,I=(a("f95e"),a("40c4"),Object(v["a"])(E,n,s,!1,null,"41781b4c",null));e["default"]=I.exports},cd7e:function(t,e,a){},d81d:function(t,e,a){"use strict";var n=a("23e7"),s=a("b727").map,i=a("1dde"),o=a("ae40"),l=i("map"),u=o("map");n({target:"Array",proto:!0,forced:!l||!u},{map:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},dc84:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"set-table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"","header-cell-style":{background:"#f2f2f2",color:"#606266"}}},[t._l(t.tableOption,(function(e,n){return[e.type?t._e():a("el-table-column",{key:n,attrs:{prop:e.prop,label:e.label,width:e.width},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t._f("dataFormat")(a.row[e.prop],e.formatter))+" ")]}}],null,!0)}),"buttons"==e.type?a("el-table-column",{key:n,attrs:{prop:e.prop,label:e.label,width:e.width},scopedSlots:t._u([{key:"default",fn:function(n){return[a("div",{class:e.class},t._l(e.button,(function(e,s){return a("el-button",{key:s,on:{click:function(a){return t.handle(e,n.$index,n.row)}}},[t._v(t._s(e.text))])})),1)]}}],null,!0)}):t._e()]}))],2)],1)},s=[],i={name:"SetTable",props:{tableData:{type:Array},tableOption:{type:Array}},data:function(){return{}},computed:{},watch:{},created:function(){},mounted:function(){},methods:{handle:function(t,e,a){this.$emit("handle",t,e,a)}},filters:{}},o=i,l=a("2877"),u=Object(l["a"])(o,n,s,!1,null,null,null);e["a"]=u.exports},f95e:function(t,e,a){"use strict";var n=a("6831"),s=a.n(n);s.a}}]);
|