1 |
- {"version":3,"sources":["webpack:///src/views/product-set/method-set/page/student-setting/student-custom/StudentCustom.vue","webpack:///./src/views/product-set/method-set/page/student-setting/student-custom/StudentCustom.vue?79f0","webpack:///./src/views/product-set/method-set/page/student-setting/student-custom/StudentCustom.vue?63a0","webpack:///./src/views/product-set/method-set/page/student-setting/student-custom/StudentCustom.vue?a305","webpack:///./src/api/product/method.api.js","webpack:///./src/assets/img/method/template-cover.png","webpack:///./src/views/product-set/method-set/page/student-setting/student-custom/StudentCustom.vue","webpack:///./src/views/product-set/method-set/page/student-setting/student-custom/StudentCustom.vue?5389","webpack:///./src/views/product-set/method-set/page/student-setting/student-custom/StudentCustom.vue?bb3d","webpack:///./src/views/product-set/method-set/page/student-setting/student-custom/StudentCustom.vue?99da"],"names":["getTemplateByType","data","http","post","getCopyTemplate","setReName","setBeforeDel","setDelTemplate","getTemplateById","saveTemplate","getClassByGrade","productClassSet","resetClassSet","saveClassSet","productStudentSet","resetStudentSet","getStudent","saveStudentSet"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGA;AAMA;AACA;AACA,qBADA;AAEA,MAFA,kBAEA;AACA;AACA,gBADA;AAEA;AACA,gBACA;AACA,gBADA;AAEA;AAFA,OADA,EAKA;AACA,gBADA;AAEA;AAFA,OALA,EASA;AACA,gBADA;AAEA;AAFA,OATA,CAHA;AAiBA,oBAjBA;AAmBA,iBAnBA;AAoBA,oBApBA;AAsBA;AACA;AACA,sBADA;AAEA;AAFA,OAvBA;AA4BA,sBA5BA;AA8BA;AACA,gBA/BA;AAgCA,mBAhCA;AAiCA;AAjCA;AAmCA,GAtCA;AAuCA,SAvCA,qBAuCA;AACA;AACA,GAzCA;AA0CA;AACA;AACA,gBADA;AAEA,aAFA,mBAEA,GAFA,EAEA;AACA;AACA;AAJA;AADA,GA1CA;AAkDA;AACA,YADA,oBACA,KADA,EACA,IADA,EACA;AACA;AACA;AACA,KAJA;AAKA,eALA,yBAKA;AAAA;;AACA;AACA;AACA;AACA;AACA;AACA,OAFA;AAGA,KAZA;AAcA;AACA,qBAfA,6BAeA,GAfA,EAeA;AAAA;;AACA;AACA;AADA;;AAGA;AACA;AACA;AACA;AACA;AACA,SAJA;AAKA,OANA,MAMA;AACA;AACA;;AACA;AACA;AACA,KA9BA;AAgCA;AACA,qBAjCA,6BAiCA,GAjCA,EAiCA;AAAA;;AACA;AACA;AADA;AAGA;AACA;AACA;AACA;AACA,OAJA;AAKA;AACA,KA3CA;AA4CA;AACA,wBA7CA,kCA6CA;AAAA;;AACA;AACA;AACA;AACA;AACA;AACA,SAFA;AAGA;AACA,OALA;AAMA;AACA,KAvDA;AAyDA;AACA,eA1DA,yBA0DA;AAAA;;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA,qCADA;AAEA;AACA;AACA;AAJA;AAMA,WAPA,MAOA;AACA;AACA;AACA,SAXA;AAYA,OAxBA,MAwBA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AA1FA;AAlDA,G;;;;;;;;;;;;AC5GA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,oBAAoB,gCAAgC;AACpD,eAAe,+BAA+B;AAC9C;AACA;AACA;AACA,SAAS,sBAAsB;AAC/B;AACA;AACA;AACA;AACA,sBAAsB,oCAAoC;AAC1D,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,+BAA+B;AAC9C;AACA,iBAAiB,8BAA8B;AAC/C;AACA;AACA,WAAW,+BAA+B;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,8BAA8B;AACtD;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,2BAA2B,sBAAsB;AACjD;AACA;AACA,qBAAqB,oDAAoD;AACzE;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA,eAAe,+BAA+B;AAC9C;AACA;AACA;AACA,SAAS,8BAA8B;AACvC;AACA;AACA;AACA;AACA,sBAAsB,oDAAoD;AAC1E,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,wBAAwB;AACxB,eAAe;AACf,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,sBAAsB,oDAAoD;AAC1E,mBAAmB,gCAAgC;AACnD;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,wBAAwB;AACxB,eAAe;AACf,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA,aAAa;AACb,iBAAiB,mCAAmC;AACpD;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,yBAAyB;AAChC;AACA;AACA;AACA,WAAW,SAAS,oBAAoB,OAAO,yBAAyB,EAAE;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,6BAA6B;AACnD;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,sBAAsB,8BAA8B;AACpD;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,sBAAsB,qBAAqB;AAC3C;AACA;AACA,eAAe,mBAAO,CAAC,0GAAwD;AAC/E;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,sBAAsB,8BAA8B;AACpD;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACxLA;AACA,kCAAkC,mBAAO,CAAC,uHAAkE;AAC5G;AACA;AACA,cAAc,QAAS,qCAAqC,sBAAsB,GAAG,mDAAmD,kBAAkB,iBAAiB,sBAAsB,wBA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,IAA1C,CAAP;AACH,C,CAED;;AACO,IAAMY,YAAY,GAAG,SAAfA,YAAe,CAACZ,IAAD,EAAU;AAClC,SAAOC,6CAAI,CAACC,IAAL,CAAU,6BAAV,EAAyCF,IAAzC,CAAP;AACH,CAFM,C,CAGP;;AACO,SAASa,iBAAT,CAA2Bb,IAA3B,EAAiC;AACpC,SAAOC,6CAAI,CAACC,IAAL,CAAU,kCAAV,EAA8CF,IAA9C,CAAP;AACH,C,CACD;;AACO,SAASc,eAAT,CAAyBd,IAAzB,EAA+B;AAClC,SAAOC,6CAAI,CAACC,IAAL,CAAU,gCAAV,EAA4CF,IAA5C,CAAP;AACH,C,CACD;;AACO,IAAMe,UAAU,GAAG,SAAbA,UAAa,CAACf,IAAD,EAAU;AAChC,SAAOC,6CAAI,CAACC,IAAL,CAAU,yBAAV,EAAqCF,IAArC,CAAP;AACH,CAFM,C,CAGP;;AACO,IAAMgB,cAAc,GAAG,SAAjBA,cAAiB,CAAChB,IAAD,EAAU;AACpC,SAAOC,6CAAI,CAACC,IAAL,CAAU,+BAAV,EAA2CF,IAA3C,CAAP;AACH,CAFM,C;;;;;;;;;;;AC9DP,iBAAiB,qBAAuB,qC;;;;;;;;;;;;ACAxC;AAAA;AAAA;AAAA;AAAA;AAAwG;AACvC;AACL;AACsC;;;AAGlG;AACyG;AACzG,gBAAgB,2GAAU;AAC1B,EAAE,mFAAM;AACR,EAAE,oGAAM;AACR,EAAE,6GAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;ACvCf;AAAA;AAAA,wCAAsV,CAAgB,8UAAG,EAAC,C;;;;;;;;;;;;ACA1W;AAAA;AAAA;AAAA;AAA0nB,CAAgB,4iBAAG,EAAC,C;;;;;;;;;;;;ACA9oB;AAAA;AAAA;AAAA;AAAA;AAAA","file":"js/34.js","sourcesContent":["<template>\r\n <!-- 学生批量定制组件 -->\r\n <div class=\"student-custom\">\r\n <div class=\"custom-header\">\r\n <div class=\"custom-info\">\r\n <h1>学生定制</h1>\r\n </div>\r\n <div class=\"back\">\r\n <el-link href=\"javascript:history.back(-1);\" :underline=\"false\"\r\n >返回</el-link\r\n >\r\n </div>\r\n </div>\r\n <div class=\"custom-module\">\r\n <div class=\"module-title\">\r\n <i>1</i>\r\n <span>选模版</span>\r\n </div>\r\n <div class=\"sel-template\">\r\n <div class=\"template-list\">\r\n <!-- 定制页面模板块 -->\r\n <div\r\n class=\"template-item\"\r\n :data-id=\"list.template_id\"\r\n :class=\"[index === current ? 'current' : '']\"\r\n v-for=\"(list, index) in templateList\"\r\n :key=\"list.template_id\"\r\n @click=\"selClass(index, list)\"\r\n >\r\n <div class=\"pic\">\r\n <img\r\n src=\"../../../../../../assets/img/method/template-cover.png\"\r\n alt=\"\"\r\n />\r\n <span>学生模板</span>\r\n </div>\r\n <div class=\"text\">\r\n <p class=\"template-name-output template-name\">\r\n {{ list.template_name }}\r\n </p>\r\n </div>\r\n </div>\r\n <!-- -->\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"custom-module\">\r\n <div class=\"module-title\">\r\n <i>2</i>\r\n <span>选学生</span>\r\n </div>\r\n <div class=\"filterModule\">\r\n <el-select\r\n clearable\r\n v-model=\"gradeValue\"\r\n placeholder=\"请选择年级\"\r\n size=\"mini\"\r\n @change=\"handleGradeChange\"\r\n >\r\n <el-option\r\n v-for=\"item in options\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n >\r\n </el-option>\r\n </el-select>\r\n <el-select\r\n clearable\r\n v-model=\"classValue\"\r\n placeholder=\"请选择班级\"\r\n size=\"mini\"\r\n @change=\"handleClassChange\"\r\n >\r\n <el-option\r\n v-for=\"item in classes\"\r\n :key=\"item.class_id\"\r\n :label=\"item.class_name\"\r\n :value=\"item.class_id\"\r\n >\r\n </el-option>\r\n </el-select>\r\n <el-transfer\r\n v-model=\"tValue\"\r\n :data=\"transData\"\r\n :props=\"{\r\n key: 'student_id',\r\n label: 'realname',\r\n }\"\r\n :titles=\"['学生', '已选学生']\"\r\n @change=\"handleTransferChange\"\r\n ></el-transfer>\r\n </div>\r\n </div>\r\n <div class=\"saveBtn\">\r\n <el-button id=\"saveSetting\" @click=\"saveSetting\"> 保存设置 </el-button>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport {\r\n getTemplateByType,\r\n getClassByGrade,\r\n getStudent,\r\n saveStudentSet,\r\n} from \"../../../../../../api/product/method.api\";\r\nimport { getFormData } from \"../../../../../../lib/productset/many.js\";\r\nexport default {\r\n name: \"ClassCustom\",\r\n data() {\r\n return {\r\n current: 0,\r\n // 下拉框\r\n options: [\r\n {\r\n value: 1,\r\n label: \"高一\",\r\n },\r\n {\r\n value: 2,\r\n label: \"高二\",\r\n },\r\n {\r\n value: 3,\r\n label: \"高三\",\r\n },\r\n ],\r\n gradeValue: \"\",\r\n\r\n classes: [],\r\n classValue: \"\",\r\n\r\n // 默认参数\r\n params: {\r\n target_type: 2,\r\n template_id: \"\",\r\n },\r\n\r\n templateList: [],\r\n\r\n // 穿梭框数据\r\n tValue: [],\r\n transData: [],\r\n selData: [],\r\n };\r\n },\r\n created() {\r\n this.getTemplate();\r\n },\r\n watch: {\r\n templateList: {\r\n deep: true,\r\n handler(val) {\r\n this.params.template_id = val[0].template_id;\r\n },\r\n },\r\n },\r\n methods: {\r\n selClass(index, list) {\r\n this.current = index;\r\n this.params.template_id = list.template_id;\r\n },\r\n getTemplate() {\r\n let obj = {};\r\n obj.target_type = this.params.target_type;\r\n let data = getFormData(obj);\r\n getTemplateByType(data).then((res) => {\r\n this.templateList = res.data;\r\n });\r\n },\r\n\r\n // 选择年级\r\n handleGradeChange(val) {\r\n let req = {\r\n grade_id: val,\r\n };\r\n if (val) {\r\n getClassByGrade(getFormData(req)).then((res) => {\r\n if (res.status === 1) {\r\n this.classes = res.result;\r\n }\r\n });\r\n } else {\r\n this.classes = [];\r\n }\r\n this.classValue = \"\";\r\n this.transData = [];\r\n },\r\n\r\n // 选择班级\r\n handleClassChange(val) {\r\n let ret = {\r\n cid: val,\r\n };\r\n getStudent(getFormData(ret)).then((res) => {\r\n if (res.flag === true) {\r\n this.transData = res.resArray;\r\n }\r\n });\r\n this.transData = [];\r\n },\r\n // 穿梭框事件\r\n handleTransferChange() {\r\n let changeData = [];\r\n let tData;\r\n this.tValue.forEach((item) => {\r\n tData = this.transData.find((list) => {\r\n return item == list.student_id;\r\n });\r\n changeData.push(tData);\r\n });\r\n this.selData = changeData;\r\n },\r\n\r\n // 保存设置\r\n saveSetting() {\r\n if (!this.gradeValue == \"\" && !this.tValue.length == 0) {\r\n let str = \"\";\r\n let obj = {};\r\n obj.template_id = this.params.template_id;\r\n for (let i = 0; i < this.selData.length; i++) {\r\n this.selData[i][\"class_id\"] = this.classValue;\r\n this.selData[i][\"grade_id\"] = this.gradeValue;\r\n for (let k in this.selData[i]) {\r\n str = \"students\" + \"[\" + i + \"]\" + \"[\" + k + \"]\";\r\n obj[str] = this.selData[i][k];\r\n }\r\n }\r\n saveStudentSet(getFormData(obj)).then((res) => {\r\n if (res.status === 1) {\r\n this.$alert(\"更新成功!\", \"信息\", {\r\n confirmButtonText: \"确定\",\r\n callback: () => {\r\n this.$router.go(-1);\r\n },\r\n });\r\n } else if (res.status === 0) {\r\n this.$message(res.msg);\r\n }\r\n });\r\n } else if (this.gradeValue == \"\") {\r\n this.$message(\"请选择学生\");\r\n } else if (this.classValue == \"\") {\r\n this.$message(\"请选择班级\");\r\n } else {\r\n this.$message(\"请选择学生\");\r\n }\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"less\" scoped>\r\n.student-custom {\r\n min-width: 1100px;\r\n\r\n .custom-header {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n height: 60px;\r\n line-height: 60px;\r\n margin-bottom: 20px;\r\n border-bottom: 1px solid #ccc;\r\n -webkit-box-pack: justify;\r\n -ms-flex-pack: justify;\r\n justify-content: space-between;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\r\n .custom-info {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\r\n h1 {\r\n font-size: 36px;\r\n }\r\n span {\r\n margin-left: 20px;\r\n }\r\n }\r\n .back {\r\n a {\r\n font-size: 16px;\r\n }\r\n }\r\n }\r\n\r\n .custom-module {\r\n margin-bottom: 20px;\r\n .module-title {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n margin-bottom: 10px;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\r\n font-size: 16px;\r\n margin-bottom: 20px;\r\n i {\r\n width: 30px;\r\n height: 30px;\r\n text-align: center;\r\n line-height: 30px;\r\n border-radius: 50%;\r\n background: #16ae68;\r\n color: #fff;\r\n }\r\n span {\r\n margin-left: 15px;\r\n }\r\n }\r\n .sel-template {\r\n .template-list {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -ms-flex-wrap: wrap;\r\n flex-wrap: wrap;\r\n\r\n .template-item {\r\n position: relative;\r\n width: 120px;\r\n padding: 10px;\r\n margin-right: 20px;\r\n margin-bottom: 20px;\r\n border: 2px solid #ccc;\r\n cursor: pointer;\r\n .pic {\r\n position: relative;\r\n width: 95px;\r\n height: 75px;\r\n\r\n img {\r\n display: block;\r\n width: 95px;\r\n height: 75px;\r\n }\r\n span {\r\n position: absolute;\r\n width: 100%;\r\n height: 25px;\r\n text-align: center;\r\n line-height: 25px;\r\n color: #fff;\r\n background: rgba(0, 0, 0, 0.3);\r\n bottom: 0;\r\n left: 0;\r\n z-index: 10;\r\n font-size: 12px;\r\n }\r\n }\r\n .text {\r\n font-size: 14px;\r\n text-align: center;\r\n text-overflow: -o-ellipsis-lastline;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n display: -webkit-box;\r\n -webkit-line-clamp: 2;\r\n -webkit-box-orient: vertical;\r\n\r\n .template-name {\r\n width: 100%;\r\n resize: none;\r\n }\r\n .template-name.template-name-output {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n display: -webkit-box;\r\n -webkit-line-clamp: 2;\r\n -webkit-box-orient: vertical;\r\n margin-top: 3px;\r\n }\r\n }\r\n }\r\n\r\n .template-item.current {\r\n border-color: #16ae68;\r\n }\r\n }\r\n }\r\n }\r\n .el-select {\r\n margin-right: 30px;\r\n }\r\n}\r\n</style>","var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"student-custom\" }, [\n _c(\"div\", { staticClass: \"custom-header\" }, [\n _vm._m(0),\n _c(\n \"div\",\n { staticClass: \"back\" },\n [\n _c(\n \"el-link\",\n {\n attrs: { href: \"javascript:history.back(-1);\", underline: false }\n },\n [_vm._v(\"返回\")]\n )\n ],\n 1\n )\n ]),\n _c(\"div\", { staticClass: \"custom-module\" }, [\n _vm._m(1),\n _c(\"div\", { staticClass: \"sel-template\" }, [\n _c(\n \"div\",\n { staticClass: \"template-list\" },\n _vm._l(_vm.templateList, function(list, index) {\n return _c(\n \"div\",\n {\n key: list.template_id,\n staticClass: \"template-item\",\n class: [index === _vm.current ? \"current\" : \"\"],\n attrs: { \"data-id\": list.template_id },\n on: {\n click: function($event) {\n return _vm.selClass(index, list)\n }\n }\n },\n [\n _vm._m(2, true),\n _c(\"div\", { staticClass: \"text\" }, [\n _c(\n \"p\",\n { staticClass: \"template-name-output template-name\" },\n [_vm._v(\" \" + _vm._s(list.template_name) + \" \")]\n )\n ])\n ]\n )\n }),\n 0\n )\n ])\n ]),\n _c(\"div\", { staticClass: \"custom-module\" }, [\n _vm._m(3),\n _c(\n \"div\",\n { staticClass: \"filterModule\" },\n [\n _c(\n \"el-select\",\n {\n attrs: { clearable: \"\", placeholder: \"请选择年级\", size: \"mini\" },\n on: { change: _vm.handleGradeChange },\n model: {\n value: _vm.gradeValue,\n callback: function($$v) {\n _vm.gradeValue = $$v\n },\n expression: \"gradeValue\"\n }\n },\n _vm._l(_vm.options, function(item) {\n return _c(\"el-option\", {\n key: item.value,\n attrs: { label: item.label, value: item.value }\n })\n }),\n 1\n ),\n _c(\n \"el-select\",\n {\n attrs: { clearable: \"\", placeholder: \"请选择班级\", size: \"mini\" },\n on: { change: _vm.handleClassChange },\n model: {\n value: _vm.classValue,\n callback: function($$v) {\n _vm.classValue = $$v\n },\n expression: \"classValue\"\n }\n },\n _vm._l(_vm.classes, function(item) {\n return _c(\"el-option\", {\n key: item.class_id,\n attrs: { label: item.class_name, value: item.class_id }\n })\n }),\n 1\n ),\n _c(\"el-transfer\", {\n attrs: {\n data: _vm.transData,\n props: {\n key: \"student_id\",\n label: \"realname\"\n },\n titles: [\"学生\", \"已选学生\"]\n },\n on: { change: _vm.handleTransferChange },\n model: {\n value: _vm.tValue,\n callback: function($$v) {\n _vm.tValue = $$v\n },\n expression: \"tValue\"\n }\n })\n ],\n 1\n )\n ]),\n _c(\n \"div\",\n { staticClass: \"saveBtn\" },\n [\n _c(\n \"el-button\",\n { attrs: { id: \"saveSetting\" }, on: { click: _vm.saveSetting } },\n [_vm._v(\" 保存设置 \")]\n )\n ],\n 1\n )\n ])\n}\nvar staticRenderFns = [\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"custom-info\" }, [\n _c(\"h1\", [_vm._v(\"学生定制\")])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"module-title\" }, [\n _c(\"i\", [_vm._v(\"1\")]),\n _c(\"span\", [_vm._v(\"选模版\")])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"pic\" }, [\n _c(\"img\", {\n attrs: {\n src: require(\"../../../../../../assets/img/method/template-cover.png\"),\n alt: \"\"\n }\n }),\n _c(\"span\", [_vm._v(\"学生模板\")])\n ])\n },\n function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"div\", { staticClass: \"module-title\" }, [\n _c(\"i\", [_vm._v(\"2\")]),\n _c(\"span\", [_vm._v(\"选学生\")])\n ])\n }\n]\nrender._withStripped = true\n\nexport { render, staticRenderFns }","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".student-custom[data-v-0bc546bd] {\\n min-width: 1100px;\\n}\\n.student-custom .custom-header[data-v-0bc546bd] {\\n display: flex;\\n height: 60px;\\n line-height: 60px;\\n margin-bottom: 20px;\\n border-bottom: 1px solid #ccc;\\n justify-content: space-between;\\n align-items: center;\\n}\\n.student-custom .custom-header .custom-info[data-v-0bc546bd] {\\n display: flex;\\n align-items: center;\\n}\\n.student-custom .custom-header .custom-info h1[data-v-0bc546bd] {\\n font-size: 36px;\\n}\\n.student-custom .custom-header .custom-info span[data-v-0bc546bd] {\\n margin-left: 20px;\\n}\\n.student-custom .custom-header .back a[data-v-0bc546bd] {\\n font-size: 16px;\\n}\\n.student-custom .custom-module[data-v-0bc546bd] {\\n margin-bottom: 20px;\\n}\\n.student-custom .custom-module .module-title[data-v-0bc546bd] {\\n display: flex;\\n margin-bottom: 10px;\\n align-items: center;\\n font-size: 16px;\\n margin-bottom: 20px;\\n}\\n.student-custom .custom-module .module-title i[data-v-0bc546bd] {\\n width: 30px;\\n height: 30px;\\n text-align: center;\\n line-height: 30px;\\n border-radius: 50%;\\n background: #16ae68;\\n color: #fff;\\n}\\n.student-custom .custom-module .module-title span[data-v-0bc546bd] {\\n margin-left: 15px;\\n}\\n.student-custom .custom-module .sel-template .template-list[data-v-0bc546bd] {\\n display: flex;\\n flex-wrap: wrap;\\n}\\n.student-custom .custom-module .sel-template .template-list .template-item[data-v-0bc546bd] {\\n position: relative;\\n width: 120px;\\n padding: 10px;\\n margin-right: 20px;\\n margin-bottom: 20px;\\n border: 2px solid #ccc;\\n cursor: pointer;\\n}\\n.student-custom .custom-module .sel-template .template-list .template-item .pic[data-v-0bc546bd] {\\n position: relative;\\n width: 95px;\\n height: 75px;\\n}\\n.student-custom .custom-module .sel-template .template-list .template-item .pic img[data-v-0bc546bd] {\\n display: block;\\n width: 95px;\\n height: 75px;\\n}\\n.student-custom .custom-module .sel-template .template-list .template-item .pic span[data-v-0bc546bd] {\\n position: absolute;\\n width: 100%;\\n height: 25px;\\n text-align: center;\\n line-height: 25px;\\n color: #fff;\\n background: rgba(0, 0, 0, 0.3);\\n bottom: 0;\\n left: 0;\\n z-index: 10;\\n font-size: 12px;\\n}\\n.student-custom .custom-module .sel-template .template-list .template-item .text[data-v-0bc546bd] {\\n font-size: 14px;\\n text-align: center;\\n text-overflow: -o-ellipsis-lastline;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n display: -webkit-box;\\n -webkit-line-clamp: 2;\\n -webkit-box-orient: vertical;\\n}\\n.student-custom .custom-module .sel-template .template-list .template-item .text .template-name[data-v-0bc546bd] {\\n width: 100%;\\n resize: none;\\n}\\n.student-custom .custom-module .sel-template .template-list .template-item .text .template-name.template-name-output[data-v-0bc546bd] {\\n overflow: hidden;\\n text-overflow: ellipsis;\\n display: -webkit-box;\\n -webkit-line-clamp: 2;\\n -webkit-box-orient: vertical;\\n margin-top: 3px;\\n}\\n.student-custom .custom-module .sel-template .template-list .template-item.current[data-v-0bc546bd] {\\n border-color: #16ae68;\\n}\\n.student-custom .el-select[data-v-0bc546bd] {\\n margin-right: 30px;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudentCustom.vue?vue&type=style&index=0&id=0bc546bd&lang=less&scoped=true&\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"62e9269d\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(module.hot) {\n // When the styles change, update the <style> tags\n if(!content.locals) {\n module.hot.accept(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudentCustom.vue?vue&type=style&index=0&id=0bc546bd&lang=less&scoped=true&\", function() {\n var newContent = require(\"!!../../../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudentCustom.vue?vue&type=style&index=0&id=0bc546bd&lang=less&scoped=true&\");\n if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n update(newContent);\n });\n }\n // When the module is disposed, remove the <style> tags\n module.hot.dispose(function() { update(); });\n}","import http from '../http'\r\n\r\n// 获取模板\r\nexport function getTemplateByType(data) {\r\n return http.post(\"/productMethod/getTemplateByType\", data)\r\n}\r\n// 复制模板\r\nexport const getCopyTemplate = (data) => {\r\n return http.post(\"/productMethod/copyTemplate\", data)\r\n}\r\n// 模板改名\r\nexport const setReName = (data) => {\r\n return http.post(\"/productMethod/reNameTemplate\", data)\r\n}\r\n// 删除模板前检验\r\nexport const setBeforeDel = (data) => {\r\n return http.post(\"/productMethod/beforeDelTemplate\", data)\r\n}\r\n// 删除模板\r\nexport const setDelTemplate = (data) => {\r\n return http.post(\"/productMethod/delTemplate\", data)\r\n}\r\n\r\n// 获取模板数据\r\nexport const getTemplateById = (data) => {\r\n return http.post(\"/productMethod/ajaxGetTemplateById\", data);\r\n}\r\n// 保存模板设置\r\nexport const saveTemplate = (data) => {\r\n return http.post(\"/productMethod/saveTemplate\", data);\r\n}\r\n\r\n// 根据年级获取班级数据\r\nexport function getClassByGrade(data) {\r\n return http.post(\"/productMethod/getClassByGrade\", data)\r\n}\r\n// 班级定制列表\r\nexport function productClassSet(data) {\r\n return http.post(\"/productMethod/productClassSet\", data)\r\n}\r\n// 班级恢复默认设置\r\nexport function resetClassSet(data) {\r\n return http.post(\"/productMethod/resetClassSet\", data)\r\n}\r\n\r\n// 班级定制保存\r\nexport const saveClassSet = (data) => {\r\n return http.post(\"/productMethod/saveClassSet\", data)\r\n}\r\n// 学生定制列表\r\nexport function productStudentSet(data) {\r\n return http.post(\"/productMethod/productStudentSet\", data)\r\n}\r\n// 学生恢复默认设置\r\nexport function resetStudentSet(data) {\r\n return http.post(\"/productMethod/resetStudentSet\", data)\r\n}\r\n// 选择学生定制班级\r\nexport const getStudent = (data) => {\r\n return http.post(\"/studentinfo/getStudent\", data)\r\n}\r\n// 学生定制保存\r\nexport const saveStudentSet = (data) => {\r\n return http.post(\"/productMethod/saveStudentSet\", data)\r\n}","module.exports = __webpack_public_path__ + \"img/template-cover.120e30de.png\";","import { render, staticRenderFns } from \"./StudentCustom.vue?vue&type=template&id=0bc546bd&scoped=true&\"\nimport script from \"./StudentCustom.vue?vue&type=script&lang=js&\"\nexport * from \"./StudentCustom.vue?vue&type=script&lang=js&\"\nimport style0 from \"./StudentCustom.vue?vue&type=style&index=0&id=0bc546bd&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0bc546bd\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"F:\\\\zcg-project\\\\git-code\\\\zsy-as2-web-nx\\\\node_modules\\\\vue-hot-reload-api\\\\dist\\\\index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('0bc546bd')) {\n api.createRecord('0bc546bd', component.options)\n } else {\n api.reload('0bc546bd', component.options)\n }\n module.hot.accept(\"./StudentCustom.vue?vue&type=template&id=0bc546bd&scoped=true&\", function () {\n api.rerender('0bc546bd', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/product-set/method-set/page/student-setting/student-custom/StudentCustom.vue\"\nexport default component.exports","import mod from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudentCustom.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudentCustom.vue?vue&type=script&lang=js&\"","import mod from \"-!../../../../../../../node_modules/vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudentCustom.vue?vue&type=style&index=0&id=0bc546bd&lang=less&scoped=true&\"; export default mod; export * from \"-!../../../../../../../node_modules/vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudentCustom.vue?vue&type=style&index=0&id=0bc546bd&lang=less&scoped=true&\"","export * from \"-!../../../../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"305c61fc-vue-loader-template\\\"}!../../../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./StudentCustom.vue?vue&type=template&id=0bc546bd&scoped=true&\""],"sourceRoot":""}
|