1 |
- {"version":3,"sources":["webpack:///src/views/product-set/method-set/components/set-table/SetTable.vue","webpack:///src/views/product-set/method-set/page/student-setting/StudentSetting.vue","webpack:///./src/views/product-set/method-set/components/set-table/SetTable.vue?d522","webpack:///./src/views/product-set/method-set/page/student-setting/StudentSetting.vue?1cda","webpack:///./src/views/product-set/method-set/page/student-setting/StudentSetting.vue?72dc","webpack:///./src/views/product-set/method-set/page/student-setting/StudentSetting.vue?19b1","webpack:///./src/api/product/method.api.js","webpack:///./src/views/product-set/method-set/components/set-table/SetTable.vue","webpack:///./src/views/product-set/method-set/components/set-table/SetTable.vue?848b","webpack:///./src/views/product-set/method-set/components/set-table/SetTable.vue?7e70","webpack:///./src/views/product-set/method-set/page/student-setting/StudentSetting.vue","webpack:///./src/views/product-set/method-set/page/student-setting/StudentSetting.vue?800d","webpack:///./src/views/product-set/method-set/page/student-setting/StudentSetting.vue?469c","webpack:///./src/views/product-set/method-set/page/student-setting/StudentSetting.vue?d1f3"],"names":["getTemplateByType","data","http","post","getCopyTemplate","setReName","setBeforeDel","setDelTemplate","getTemplateById","saveTemplate","getClassByGrade","productClassSet","resetClassSet","saveClassSet","productStudentSet","resetStudentSet","getStudent","saveStudentSet"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA;AACA,kBADA;AAEA;AACA;AACA;AADA,KADA;AAIA;AACA;AADA;AAJA,GAFA;AAUA,MAVA,kBAUA;AACA;AACA,GAZA;AAaA,cAbA;AAcA,WAdA;AAeA,SAfA,qBAeA,EAfA;AAgBA,SAhBA,qBAgBA,EAhBA;AAiBA;AACA,UADA,kBACA,GADA,EACA,GADA,EACA,KADA,EACA;AACA;AACA;AACA;AACA,4CAJA,CAKA;AACA;AAPA,GAjBA;AA0BA,YACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA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A3CA,oBA2CA;AACA;AACA;AACA;AACA,KA/CA;AAgDA,YAhDA,sBAgDA;AACA;AACA;AADA;AAGA,KApDA;AAqDA;AACA,YAtDA,sBAsDA;AAAA;;AACA,oBACA,6BADA,EAEA,IAFA,EAGA;AACA,+BADA;AAEA,8BAFA;AAGA;AAHA,OAHA,EASA,IATA,CASA;AACA;AACA;AACA;AACA,6BADA;AAEA;AAFA;;AAIA;AACA,WANA,MAMA;AACA;AACA,2BADA;AAEA;AAFA;AAIA;AACA,SAbA;AAcA,OAxBA,EAyBA,KAzBA,CAyBA;AACA;AACA,sBADA;AAEA;AAFA;AAIA,OA9BA;AA+BA;AAtFA;AA5EA,G;;;;;;;;;;;;ACtFA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,2BAA2B;AAChC;AACA;AACA;AACA;AACA,wBAAwB,gBAAgB;AACxC;AACA;AACA;AACA,kCAAkC;AAClC;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,oBAAoB;AACrD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC9GA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,iCAAiC;AACtC;AACA,iBAAiB,gCAAgC;AACjD,mBAAmB,8BAA8B;AACjD;AACA;AACA,aAAa,gCAAgC;AAC7C;AACA,0BAA0B,wBAAwB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,4BAA4B;AAC5B,mBAAmB;AACnB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,gCAAgC;AAC7C;AACA,0BAA0B,wBAAwB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,4BAA4B;AAC5B,mBAAmB;AACnB,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,8BAA8B;AAC3C;AACA;AACA,wBAAwB,oCAAoC;AAC5D;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,gCAAgC;AAC9D;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,wBAAwB;AAC3C,qBAAqB,wBAAwB;AAC7C;AACA;AACA;AACA;AACA,aAAa,2BAA2B;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B,mCAAmC;AACjE,2BAA2B;AAC3B,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA,8BAA8B,mCAAmC;AACjE,2BAA2B;AAC3B,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB,OAAO;AACP;AACA,gBAAgB,2DAA2D;AAC3E;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;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U;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;AAAA;AAAA;AAAA;AAAuF;AAC3B;AACL;;;AAGvD;AACsG;AACtG,gBAAgB,2GAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;ACtCf;AAAA;AAAA,wCAAqU,CAAgB,yUAAG,EAAC,C;;;;;;;;;;;;ACAzV;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAyG;AACvC;AACL;AACsC;;;AAGnG;AACsG;AACtG,gBAAgB,2GAAU;AAC1B,EAAE,oFAAM;AACR,EAAE,qGAAM;AACR,EAAE,8GAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;ACvCf;AAAA;AAAA,wCAA2U,CAAgB,+UAAG,EAAC,C;;;;;;;;;;;;ACA/V;AAAA;AAAA;AAAA;AAAsmB,CAAgB,6iBAAG,EAAC,C;;;;;;;;;;;;ACA1nB;AAAA;AAAA;AAAA;AAAA;AAAA","file":"js/25.js","sourcesContent":["<template>\r\n <!-- 表格组件 -->\r\n <div class=\"set-table\">\r\n <el-table\r\n :data=\"tableData\"\r\n border\r\n style=\"width: 100%\"\r\n :header-cell-style=\"{ background: '#f2f2f2', color: '#606266' }\"\r\n >\r\n <template v-for=\"(item, index) in tableOption\">\r\n <el-table-column\r\n :key=\"index\"\r\n :prop=\"item.prop\"\r\n :label=\"item.label\"\r\n :width=\"item.width\"\r\n v-if=\"!item.type\"\r\n >\r\n <template slot-scope=\"scope\">\r\n {{ scope.row[item.prop], item.formatter | dataFormat }}\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column\r\n :key=\"index\"\r\n :prop=\"item.prop\"\r\n :label=\"item.label\"\r\n :width=\"item.width\"\r\n v-if=\"item.type == 'buttons'\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <div :class=\"item.class\">\r\n <el-button\r\n :key=\"index\"\r\n v-for=\"(btn, index) in item.button\"\r\n @click=\"handle(btn, scope.$index, scope.row)\"\r\n >{{ btn.text }}</el-button\r\n >\r\n </div>\r\n </template>\r\n </el-table-column>\r\n </template>\r\n </el-table>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: \"SetTable\",\r\n props: {\r\n tableData: {\r\n type: Array,\r\n },\r\n tableOption: {\r\n type: Array,\r\n },\r\n },\r\n data() {\r\n return {};\r\n },\r\n computed: {},\r\n watch: {},\r\n created() {},\r\n mounted() {},\r\n methods: {\r\n handle(btn, row, index) {\r\n // if (typeof btn.function === \"string\") {\r\n // this.$emit(btn.function, row, index);\r\n // } else {\r\n this.$emit(\"handle\", btn, row, index);\r\n // }\r\n },\r\n },\r\n filters: {\r\n // dataFormat(val, type) {\r\n // if (type === \"gradeFilter\") {\r\n // switch (val) {\r\n // case \"1\":\r\n // return \"高一\";\r\n // case \"2\":\r\n // return \"高二\";\r\n // case \"3\":\r\n // return \"高三\";\r\n // }\r\n // } else if (type === \"levelFilter\") {\r\n // switch (val) {\r\n // case \"1\":\r\n // return \"A\";\r\n // case \"2\":\r\n // return \"B\";\r\n // case \"3\":\r\n // return \"C\";\r\n // }\r\n // } else {\r\n // return val;\r\n // }\r\n // },\r\n },\r\n};\r\n</script>","<template>\r\n <!-- 学生定制组件 -->\r\n <div class=\"student-setting\">\r\n <div class=\"option-modular\">\r\n <div class=\"class-option\">\r\n <div class=\"drop-down-menu\">\r\n <span class=\"c-name\"> 年级: </span>\r\n <el-select\r\n clearable\r\n v-model=\"obj.grade_id\"\r\n placeholder=\"请选择年级\"\r\n size=\"mini\"\r\n @change=\"selClass($event)\"\r\n >\r\n <el-option\r\n v-for=\"item in gradeData\"\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 </div>\r\n <div class=\"drop-down-menu\">\r\n <span class=\"c-name\"> 班级: </span>\r\n <el-select\r\n clearable\r\n v-model=\"obj.class_id\"\r\n placeholder=\"请选择班级\"\r\n size=\"mini\"\r\n >\r\n <el-option\r\n v-for=\"item in classData\"\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 </div>\r\n <div class=\"search-block\">\r\n <el-input\r\n v-model=\"obj.student_name\"\r\n size=\"mini\"\r\n placeholder=\"学生姓名\"\r\n ></el-input>\r\n <el-row>\r\n <el-button id=\"searchBtn\" size=\"mini\" @click=\"search()\">\r\n 搜索\r\n </el-button>\r\n </el-row>\r\n </div>\r\n </div>\r\n <div class=\"custom\">\r\n <div class=\"notice\">学生定制:为学生设置产品模版</div>\r\n <div class=\"btn-block\">\r\n <el-row>\r\n <el-button id=\"toCustomPage\" size=\"mini\" @click=\"toCustom\"\r\n >学生定制</el-button\r\n >\r\n <el-button id=\"resetDefault\" size=\"mini\" @click=\"recovery\"\r\n >恢复默认</el-button\r\n >\r\n </el-row>\r\n </div>\r\n </div>\r\n </div>\r\n <set-table :tableData=\"tableData\" :tableOption=\"tableOption\"></set-table>\r\n <el-pagination\r\n background\r\n layout=\"pager, total\"\r\n @current-change=\"handleCurrentChange($event)\"\r\n :total=\"total\"\r\n >\r\n </el-pagination>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport SetTable from \"../../components/set-table/SetTable\";\r\nimport {\r\n productStudentSet,\r\n getClassByGrade,\r\n resetStudentSet,\r\n} from \"../../../../../api/product/method.api\";\r\nimport { getFormData } from \"../../../../../lib/productset/many\";\r\nexport default {\r\n name: \"StudentSetting\",\r\n components: {\r\n // OptionModular,\r\n SetTable,\r\n },\r\n filters: {},\r\n props: {},\r\n data() {\r\n return {\r\n gradeData: [\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\r\n classData: [],\r\n\r\n tableData: [],\r\n\r\n tableOption: [\r\n {\r\n prop: \"student_name\",\r\n label: \"学生姓名\",\r\n // width: \"200\",\r\n },\r\n {\r\n prop: \"student_card\",\r\n label: \"系统准考证号\",\r\n // width: \"200\",\r\n },\r\n {\r\n prop: \"grade\",\r\n label: \"年级\",\r\n // width: \"200\",\r\n formatter: \"gradeFilter\",\r\n },\r\n {\r\n prop: \"class_name\",\r\n label: \"班级\",\r\n // width: \"200\",\r\n },\r\n {\r\n prop: \"template_name\",\r\n label: \"方法宝模板\",\r\n // width: \"300\",\r\n },\r\n ],\r\n\r\n // Form Data\r\n obj: {\r\n page: 1,\r\n class_id: \"\",\r\n grade_id: \"\",\r\n student_name: \"\",\r\n },\r\n\r\n total: 0,\r\n };\r\n },\r\n computed: {},\r\n watch: {},\r\n created() {\r\n this.getStudentData();\r\n this.getGradeClass();\r\n },\r\n mounted() {},\r\n methods: {\r\n // 获取学生定制数据\r\n getStudentData() {\r\n let from_data = getFormData(this.obj);\r\n productStudentSet(from_data).then((res) => {\r\n this.tableData = res.data.list;\r\n\r\n // 判断页码数\r\n let total = 0;\r\n if (Object.keys(res.data.pages).length) {\r\n total = Number(res.data.pages.total);\r\n } else {\r\n total = res.data.list.length;\r\n }\r\n this.total = total;\r\n });\r\n },\r\n\r\n // 获取年级班级数据\r\n getGradeClass(gradeId) {\r\n getClassByGrade(gradeId).then((res) => {\r\n this.classData = res.result;\r\n });\r\n },\r\n\r\n // 选择年级\r\n selClass(val) {\r\n this.obj.class_id = \"\";\r\n let obj = {\r\n grade_id: val,\r\n };\r\n let gradeId = getFormData(obj);\r\n this.getGradeClass(gradeId);\r\n },\r\n\r\n // 分页\r\n handleCurrentChange(val) {\r\n this.obj.page = val;\r\n let pageNum = getFormData(this.obj);\r\n this.getStudentData(pageNum);\r\n },\r\n\r\n // 搜索\r\n search() {\r\n this.obj.page = 1;\r\n let search_data = getFormData(this.obj);\r\n this.getStudentData(search_data);\r\n },\r\n toCustom() {\r\n this.$router.push({\r\n path: \"StudentCustom\",\r\n });\r\n },\r\n // 恢复默认\r\n recovery() {\r\n this.$confirm(\r\n \"将所有学生的模版全部恢复为默认模版,确认要恢复默认吗?\",\r\n \"信息\",\r\n {\r\n confirmButtonText: \"确定\",\r\n cancelButtonText: \"取消\",\r\n type: \"warning\",\r\n }\r\n )\r\n .then(() => {\r\n resetStudentSet().then((res) => {\r\n if (res.status == 1) {\r\n this.$message({\r\n type: \"success\",\r\n message: res.msg,\r\n });\r\n this.getStudentData();\r\n } else {\r\n this.$message({\r\n type: \"error\",\r\n message: res.msg,\r\n });\r\n }\r\n });\r\n })\r\n .catch(() => {\r\n this.$message({\r\n type: \"info\",\r\n message: \"已取消操作\",\r\n });\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n.student-setting {\r\n min-width: 1100px;\r\n\r\n .option-modular {\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 -webkit-box-pack: justify;\r\n -ms-flex-pack: justify;\r\n justify-content: space-between;\r\n\r\n .class-option {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n }\r\n\r\n .drop-down-menu {\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 font-size: 14px;\r\n margin-right: 10px;\r\n\r\n .c-name {\r\n margin-right: 10px;\r\n }\r\n }\r\n .search-block {\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 }\r\n\r\n .custom {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n\r\n .notice {\r\n color: #f25643;\r\n margin-right: 10px;\r\n line-height: 28px;\r\n }\r\n .btn-block {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n }\r\n }\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(\n \"div\",\n { staticClass: \"set-table\" },\n [\n _c(\n \"el-table\",\n {\n staticStyle: { width: \"100%\" },\n attrs: {\n data: _vm.tableData,\n border: \"\",\n \"header-cell-style\": { background: \"#f2f2f2\", color: \"#606266\" }\n }\n },\n [\n _vm._l(_vm.tableOption, function(item, index) {\n return [\n !item.type\n ? _c(\"el-table-column\", {\n key: index,\n attrs: {\n prop: item.prop,\n label: item.label,\n width: item.width\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _vm._v(\n \" \" +\n _vm._s(\n _vm._f(\"dataFormat\")(\n scope.row[item.prop],\n item.formatter\n )\n ) +\n \" \"\n )\n ]\n }\n }\n ],\n null,\n true\n )\n })\n : _vm._e(),\n item.type == \"buttons\"\n ? _c(\"el-table-column\", {\n key: index,\n attrs: {\n prop: item.prop,\n label: item.label,\n width: item.width\n },\n scopedSlots: _vm._u(\n [\n {\n key: \"default\",\n fn: function(scope) {\n return [\n _c(\n \"div\",\n { class: item.class },\n _vm._l(item.button, function(btn, index) {\n return _c(\n \"el-button\",\n {\n key: index,\n on: {\n click: function($event) {\n return _vm.handle(\n btn,\n scope.$index,\n scope.row\n )\n }\n }\n },\n [_vm._v(_vm._s(btn.text))]\n )\n }),\n 1\n )\n ]\n }\n }\n ],\n null,\n true\n )\n })\n : _vm._e()\n ]\n })\n ],\n 2\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"div\",\n { staticClass: \"student-setting\" },\n [\n _c(\"div\", { staticClass: \"option-modular\" }, [\n _c(\"div\", { staticClass: \"class-option\" }, [\n _c(\n \"div\",\n { staticClass: \"drop-down-menu\" },\n [\n _c(\"span\", { staticClass: \"c-name\" }, [_vm._v(\" 年级: \")]),\n _c(\n \"el-select\",\n {\n attrs: {\n clearable: \"\",\n placeholder: \"请选择年级\",\n size: \"mini\"\n },\n on: {\n change: function($event) {\n return _vm.selClass($event)\n }\n },\n model: {\n value: _vm.obj.grade_id,\n callback: function($$v) {\n _vm.$set(_vm.obj, \"grade_id\", $$v)\n },\n expression: \"obj.grade_id\"\n }\n },\n _vm._l(_vm.gradeData, 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 ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"drop-down-menu\" },\n [\n _c(\"span\", { staticClass: \"c-name\" }, [_vm._v(\" 班级: \")]),\n _c(\n \"el-select\",\n {\n attrs: {\n clearable: \"\",\n placeholder: \"请选择班级\",\n size: \"mini\"\n },\n model: {\n value: _vm.obj.class_id,\n callback: function($$v) {\n _vm.$set(_vm.obj, \"class_id\", $$v)\n },\n expression: \"obj.class_id\"\n }\n },\n _vm._l(_vm.classData, 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 ],\n 1\n ),\n _c(\n \"div\",\n { staticClass: \"search-block\" },\n [\n _c(\"el-input\", {\n attrs: { size: \"mini\", placeholder: \"学生姓名\" },\n model: {\n value: _vm.obj.student_name,\n callback: function($$v) {\n _vm.$set(_vm.obj, \"student_name\", $$v)\n },\n expression: \"obj.student_name\"\n }\n }),\n _c(\n \"el-row\",\n [\n _c(\n \"el-button\",\n {\n attrs: { id: \"searchBtn\", size: \"mini\" },\n on: {\n click: function($event) {\n return _vm.search()\n }\n }\n },\n [_vm._v(\" 搜索 \")]\n )\n ],\n 1\n )\n ],\n 1\n )\n ]),\n _c(\"div\", { staticClass: \"custom\" }, [\n _c(\"div\", { staticClass: \"notice\" }, [\n _vm._v(\"学生定制:为学生设置产品模版\")\n ]),\n _c(\n \"div\",\n { staticClass: \"btn-block\" },\n [\n _c(\n \"el-row\",\n [\n _c(\n \"el-button\",\n {\n attrs: { id: \"toCustomPage\", size: \"mini\" },\n on: { click: _vm.toCustom }\n },\n [_vm._v(\"学生定制\")]\n ),\n _c(\n \"el-button\",\n {\n attrs: { id: \"resetDefault\", size: \"mini\" },\n on: { click: _vm.recovery }\n },\n [_vm._v(\"恢复默认\")]\n )\n ],\n 1\n )\n ],\n 1\n )\n ])\n ]),\n _c(\"set-table\", {\n attrs: { tableData: _vm.tableData, tableOption: _vm.tableOption }\n }),\n _c(\"el-pagination\", {\n attrs: { background: \"\", layout: \"pager, total\", total: _vm.total },\n on: {\n \"current-change\": function($event) {\n return _vm.handleCurrentChange($event)\n }\n }\n })\n ],\n 1\n )\n}\nvar staticRenderFns = []\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-setting[data-v-e12c2ddc] {\\n min-width: 1100px;\\n}\\n.student-setting .option-modular[data-v-e12c2ddc] {\\n display: flex;\\n align-items: center;\\n justify-content: space-between;\\n}\\n.student-setting .option-modular .class-option[data-v-e12c2ddc] {\\n display: flex;\\n}\\n.student-setting .option-modular .drop-down-menu[data-v-e12c2ddc] {\\n display: flex;\\n align-items: center;\\n font-size: 14px;\\n margin-right: 10px;\\n}\\n.student-setting .option-modular .drop-down-menu .c-name[data-v-e12c2ddc] {\\n margin-right: 10px;\\n}\\n.student-setting .option-modular .search-block[data-v-e12c2ddc] {\\n display: flex;\\n align-items: center;\\n}\\n.student-setting .option-modular .custom[data-v-e12c2ddc] {\\n display: flex;\\n}\\n.student-setting .option-modular .custom .notice[data-v-e12c2ddc] {\\n color: #f25643;\\n margin-right: 10px;\\n line-height: 28px;\\n}\\n.student-setting .option-modular .custom .btn-block[data-v-e12c2ddc] {\\n display: flex;\\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!./StudentSetting.vue?vue&type=style&index=0&id=e12c2ddc&scoped=true&lang=less&\");\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(\"2399a79b\", 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!./StudentSetting.vue?vue&type=style&index=0&id=e12c2ddc&scoped=true&lang=less&\", 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!./StudentSetting.vue?vue&type=style&index=0&id=e12c2ddc&scoped=true&lang=less&\");\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}","import { render, staticRenderFns } from \"./SetTable.vue?vue&type=template&id=9eaaafc6&\"\nimport script from \"./SetTable.vue?vue&type=script&lang=js&\"\nexport * from \"./SetTable.vue?vue&type=script&lang=js&\"\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 null,\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('9eaaafc6')) {\n api.createRecord('9eaaafc6', component.options)\n } else {\n api.reload('9eaaafc6', component.options)\n }\n module.hot.accept(\"./SetTable.vue?vue&type=template&id=9eaaafc6&\", function () {\n api.rerender('9eaaafc6', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/product-set/method-set/components/set-table/SetTable.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!./SetTable.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!./SetTable.vue?vue&type=script&lang=js&\"","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!./SetTable.vue?vue&type=template&id=9eaaafc6&\"","import { render, staticRenderFns } from \"./StudentSetting.vue?vue&type=template&id=e12c2ddc&scoped=true&\"\nimport script from \"./StudentSetting.vue?vue&type=script&lang=js&\"\nexport * from \"./StudentSetting.vue?vue&type=script&lang=js&\"\nimport style0 from \"./StudentSetting.vue?vue&type=style&index=0&id=e12c2ddc&scoped=true&lang=less&\"\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 \"e12c2ddc\",\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('e12c2ddc')) {\n api.createRecord('e12c2ddc', component.options)\n } else {\n api.reload('e12c2ddc', component.options)\n }\n module.hot.accept(\"./StudentSetting.vue?vue&type=template&id=e12c2ddc&scoped=true&\", function () {\n api.rerender('e12c2ddc', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/product-set/method-set/page/student-setting/StudentSetting.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!./StudentSetting.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!./StudentSetting.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!./StudentSetting.vue?vue&type=style&index=0&id=e12c2ddc&scoped=true&lang=less&\"; 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!./StudentSetting.vue?vue&type=style&index=0&id=e12c2ddc&scoped=true&lang=less&\"","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!./StudentSetting.vue?vue&type=template&id=e12c2ddc&scoped=true&\""],"sourceRoot":""}
|