23.js.map 37 KB

1
  1. {"version":3,"sources":["webpack:///src/views/teach-set/components/set-table/SetTable.vue","webpack:///src/views/teach-set/template-manager/type-setting/TypeSetting.vue","webpack:///./src/views/teach-set/components/set-table/SetTable.vue?80bc","webpack:///./src/views/teach-set/template-manager/type-setting/TypeSetting.vue?ab92","webpack:///./node_modules/core-js/modules/es.array.splice.js","webpack:///./src/views/teach-set/template-manager/type-setting/TypeSetting.vue?a860","webpack:///./src/views/teach-set/template-manager/type-setting/TypeSetting.vue?9e80","webpack:///./src/api/teach/teach-set.js","webpack:///./src/views/teach-set/components/set-table/SetTable.vue","webpack:///./src/views/teach-set/components/set-table/SetTable.vue?42d6","webpack:///./src/views/teach-set/components/set-table/SetTable.vue?0bc9","webpack:///./src/views/teach-set/template-manager/type-setting/TypeSetting.vue","webpack:///./src/views/teach-set/template-manager/type-setting/TypeSetting.vue?95e9","webpack:///./src/views/teach-set/template-manager/type-setting/TypeSetting.vue?38b6","webpack:///./src/views/teach-set/template-manager/type-setting/TypeSetting.vue?1363"],"names":["getProductType","data","http","post","teachingList","teachingTemplateList","teachingTemplateCopy","teachingTemplateDel","teachingTemplateChangeName","teachingTemplateDetail","teachingTemplateSave","getClassByGrade","teachingEdit","teachingRestoreClass","teachingSearchTeacher"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA;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,gBADA,wBACA,IADA,EACA,KADA,EACA,KADA,EACA;AACA;AACA,KAHA;AAKA,eALA,uBAKA,IALA,EAKA,GALA,EAKA,KALA,EAKA;AACA;AACA;AAPA,GAjBA;AA0BA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AhDA,2BAgDA;AAAA;;AACA;AACA,iBADA;AAEA,uBAFA;AAGA,gBAHA;AAIA,sBAJA;AAKA,qBALA;AAMA;AANA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SANA;AAOA,OATA;;AAWA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA,mCADA;AAEA;AACA;AACA;AAJA,aADA,CAOA;;AACA,SARA,MAQA;AACA;AACA,yBADA;AAEA;AAFA;AAIA;AACA,OAfA;AAgBA;AAzFA;AA5FA,G;;;;;;;;;;;;ACnBA;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;AACA;AACA,uCAAuC,gCAAgC;AACvE;AACA;AACA,mCAAmC;AACnC;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;AACA;AACA;AACA,iCAAiC,gCAAgC;AACjE;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA,6BAA6B;AAC7B;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,gCAAgC;AACjE;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;;;;;;;;;;;;;;AClLA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,8BAA8B;AACnC;AACA;AACA;AACA,gBAAgB;AAChB,OAAO;AACP;AACA;AACA,SAAS,0BAA0B;AACnC;AACA;AACA;AACA,aAAa,SAAS,oBAAoB,OAAO,2BAA2B,EAAE;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC7Ba;AACb,QAAQ,mBAAO,CAAC,uEAAqB;AACrC,sBAAsB,mBAAO,CAAC,6FAAgC;AAC9D,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,eAAe,mBAAO,CAAC,6EAAwB;AAC/C,yBAAyB,mBAAO,CAAC,mGAAmC;AACpE,qBAAqB,mBAAO,CAAC,yFAA8B;AAC3D,mCAAmC,mBAAO,CAAC,2HAA+C;AAC1F,8BAA8B,mBAAO,CAAC,iHAA0C;;AAEhF;AACA,wDAAwD,8BAA8B;;AAEtF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG,gFAAgF;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,uBAAuB;AACtC;AACA;AACA;AACA;AACA;AACA,2BAA2B,6BAA6B;AACxD;AACA;AACA;AACA;AACA;AACA,mBAAmB,2CAA2C;AAC9D,KAAK;AACL,uCAAuC,iBAAiB;AACxD;AACA;AACA;AACA;AACA;AACA;AACA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ACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;ACvCf;AAAA;AAAA,wCAA4T,CAAgB,4UAAG,EAAC,C;;;;;;;;;;;;ACAhV;AAAA;AAAA;AAAA;AAAsjB,CAAgB,khBAAG,EAAC,C;;;;;;;;;;;;ACA1kB;AAAA;AAAA;AAAA;AAAA;AAAA","file":"js/23.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 <div v-if=\"typeof scope.row[item.prop] == 'string'\">\r\n {{ scope.row[item.prop], item.formatter | dataFormat }}\r\n </div>\r\n <div\r\n v-else\r\n :class=\"item.class\"\r\n v-for=\"(list, index) in scope.row.cellItem\"\r\n :key=\"index\"\r\n >\r\n {{ list.text }}\r\n </div>\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 === 'switch'\"\r\n >\r\n <template slot-scope=\"scope\">\r\n <div\r\n :class=\"item.class\"\r\n v-for=\"(list, index) in scope.row.cellItem\"\r\n :key=\"index\"\r\n >\r\n <el-switch\r\n v-model=\"list.value\"\r\n active-color=\"#16ae68\"\r\n inactive-color=\"#ddd\"\r\n @change=\"handleChange(list.name, list.value, index)\"\r\n ></el-switch>\r\n </div>\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\" :key=\"index\">\r\n <el-button\r\n :key=\"index\"\r\n v-for=\"(btn, index) in item.button\"\r\n @click=\"handleClick(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 handleChange(name, value, index) {\r\n this.$emit(\"handleChange\", name, value, index);\r\n },\r\n\r\n handleClick(list, row, index) {\r\n this.$emit(\"handleClick\", list, row, index);\r\n },\r\n },\r\n filters: {},\r\n};\r\n</script>","<template>\r\n <!-- 排版设置 -->\r\n <div class=\"type-setting\">\r\n <h2>教学宝排版</h2>\r\n <set-table :tableData=\"tableData\" :tableOption=\"tableOption\"></set-table>\r\n <div class=\"save-btn\">\r\n <el-button id=\"saveSetting\" @click=\"handleSetting\"> 保存设置 </el-button>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport SetTable from \"../../components/set-table/SetTable\";\r\nimport {\r\n getProductType,\r\n teachingTemplateDetail,\r\n teachingTemplateSave,\r\n} from \"../../../../api/teach/teach-set\";\r\nimport { getFormData } from \"../../../../lib/util\";\r\nexport default {\r\n name: \"TypeSetting\",\r\n components: {\r\n SetTable,\r\n },\r\n data() {\r\n return {\r\n isAccurate: null,\r\n tableData: [],\r\n TypeSetData: [\r\n {\r\n title: \"共性问题\",\r\n cellItem: [\r\n {\r\n text: \"显示【共性问题】模式\",\r\n name: \"common\",\r\n value: true,\r\n },\r\n {\r\n text: \"显示共性问题的【错题原题】\",\r\n name: \"common_wrong\",\r\n value: true,\r\n },\r\n ],\r\n },\r\n {\r\n title: \"试卷讲评\",\r\n cellItem: [\r\n {\r\n text: \"显示【试卷讲评】\",\r\n name: \"paper\",\r\n value: true,\r\n },\r\n {\r\n text: \"显示试卷讲评的【错题原题】\",\r\n name: \"paper_wrong\",\r\n value: true,\r\n },\r\n ],\r\n },\r\n {\r\n title: \"真题速递\",\r\n cellItem: [\r\n {\r\n text: \"显示【真题速递】\",\r\n name: \"real_topic\",\r\n value: true,\r\n },\r\n ],\r\n },\r\n {\r\n title: \"同学优解\",\r\n cellItem: [\r\n {\r\n text: \"显示【同学优解】\",\r\n name: \"classmateOptimization\",\r\n value: true,\r\n },\r\n ],\r\n },\r\n ],\r\n\r\n tableOption: [\r\n {\r\n label: \"一级栏目\",\r\n prop: \"title\",\r\n },\r\n {\r\n label: \"二级栏目\",\r\n prop: \"cellItem\",\r\n class: \"show-text\",\r\n },\r\n {\r\n label: \"设置\",\r\n class: \"switch-block\",\r\n type: \"switch\",\r\n },\r\n ],\r\n\r\n // Form Data\r\n params: {\r\n template_id: this.$route.query.template_id,\r\n json: \"\",\r\n },\r\n };\r\n },\r\n computed: {},\r\n created() {\r\n this.getProduct();\r\n // this.getTemplateSet();\r\n },\r\n mounted() {},\r\n methods: {\r\n // 获取产品类型\r\n getProduct() {\r\n getProductType().then((res) => {\r\n this.isAccurate = res.isPrecise;\r\n if (this.isAccurate == 1) {\r\n let accurateData = this.TypeSetData;\r\n accurateData.forEach((item, index) => {\r\n if (item.title === \"真题速递\") {\r\n accurateData.splice(index, 1);\r\n }\r\n });\r\n this.tableData = accurateData;\r\n } else {\r\n this.tableData = this.TypeSetData;\r\n }\r\n this.getTemplateSet();\r\n });\r\n },\r\n\r\n // 获取模板设置\r\n getTemplateSet() {\r\n let params = {\r\n template_id: this.params.template_id,\r\n };\r\n let tId = getFormData(params);\r\n let that = this;\r\n teachingTemplateDetail(tId).then((res) => {\r\n let jsonObj = JSON.parse(res.data);\r\n this.tableData.forEach((item) => {\r\n let option = item.cellItem;\r\n option.forEach((list) => {\r\n for (let i in jsonObj) {\r\n if (list.name === i) {\r\n list.value = jsonObj[i] ? true : false;\r\n }\r\n }\r\n });\r\n });\r\n });\r\n },\r\n\r\n // 设置选项\r\n // setSwitch(name, value, index) {\r\n // console.log(name, value, index);\r\n // },\r\n\r\n //保存模板设置\r\n handleSetting() {\r\n let jsonStr = {\r\n common: 1,\r\n common_wrong: 1,\r\n paper: 1,\r\n paper_wrong: 1,\r\n real_topic: 1,\r\n classmateOptimization: 1,\r\n };\r\n this.tableData.forEach((item) => {\r\n let option = item.cellItem;\r\n option.forEach((list) => {\r\n for (let i in jsonStr) {\r\n if (list.name === i) {\r\n jsonStr[i] = list.value ? 1 : 0;\r\n }\r\n }\r\n });\r\n });\r\n\r\n if (this.isAccurate == 1) {\r\n jsonStr.real_topic = 0;\r\n }\r\n this.params.json = JSON.stringify(jsonStr);\r\n let params = getFormData(this.params);\r\n teachingTemplateSave(params).then((res) => {\r\n if (res.status === 1) {\r\n this.$alert(\"保存成功\", \"信息\", {\r\n confirmButtonText: \"确定\",\r\n callback: (action) => {\r\n this.$router.go(-1);\r\n },\r\n });\r\n // this.getTemplateSet();\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 },\r\n};\r\n</script>\r\n\r\n<style lang=\"less\">\r\n.type-setting {\r\n h2 {\r\n font-size: 18px;\r\n margin-bottom: 20px;\r\n }\r\n\r\n .set-table {\r\n .show-text {\r\n margin: 5px 0;\r\n }\r\n .switch-block {\r\n margin: 5px 0;\r\n }\r\n }\r\n\r\n .save-btn {\r\n margin-top: 20px;\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 typeof scope.row[item.prop] == \"string\"\n ? _c(\"div\", [\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 : _vm._l(scope.row.cellItem, function(\n list,\n index\n ) {\n return _c(\n \"div\",\n { key: index, class: item.class },\n [_vm._v(\" \" + _vm._s(list.text) + \" \")]\n )\n })\n ]\n }\n }\n ],\n null,\n true\n )\n })\n : _vm._e(),\n item.type === \"switch\"\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 _vm._l(scope.row.cellItem, function(\n list,\n index\n ) {\n return _c(\n \"div\",\n { key: index, class: item.class },\n [\n _c(\"el-switch\", {\n attrs: {\n \"active-color\": \"#16ae68\",\n \"inactive-color\": \"#ddd\"\n },\n on: {\n change: function($event) {\n return _vm.handleChange(\n list.name,\n list.value,\n index\n )\n }\n },\n model: {\n value: list.value,\n callback: function($$v) {\n _vm.$set(list, \"value\", $$v)\n },\n expression: \"list.value\"\n }\n })\n ],\n 1\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 { key: index, 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.handleClick(\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: \"type-setting\" },\n [\n _c(\"h2\", [_vm._v(\"教学宝排版\")]),\n _c(\"set-table\", {\n attrs: { tableData: _vm.tableData, tableOption: _vm.tableOption }\n }),\n _c(\n \"div\",\n { staticClass: \"save-btn\" },\n [\n _c(\n \"el-button\",\n { attrs: { id: \"saveSetting\" }, on: { click: _vm.handleSetting } },\n [_vm._v(\" 保存设置 \")]\n )\n ],\n 1\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","'use strict';\nvar $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n","// 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, \".type-setting h2 {\\n font-size: 18px;\\n margin-bottom: 20px;\\n}\\n.type-setting .set-table .show-text {\\n margin: 5px 0;\\n}\\n.type-setting .set-table .switch-block {\\n margin: 5px 0;\\n}\\n.type-setting .save-btn {\\n margin-top: 20px;\\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!./TypeSetting.vue?vue&type=style&index=0&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(\"71bcc826\", 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!./TypeSetting.vue?vue&type=style&index=0&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!./TypeSetting.vue?vue&type=style&index=0&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 getProductType(data) {\r\n return http.post(\"productset/getProductEdition\", data)\r\n}\r\n\r\n// 班级列表\r\nexport function teachingList(data) {\r\n return http.post(\"/productset/teachingList\", data)\r\n}\r\n\r\n// 模板列表\r\nexport function teachingTemplateList(data) {\r\n return http.post(\"/productset/teachingTemplateList\", data)\r\n}\r\n\r\n//模板复制\r\nexport function teachingTemplateCopy(data) {\r\n return http.post(\"/productset/teachingTemplateCopy\", data)\r\n}\r\n\r\n//模板删除\r\nexport function teachingTemplateDel(data) {\r\n return http.post(\"/productset/teachingTemplateDel\", data)\r\n}\r\n\r\n//模板改名\r\nexport function teachingTemplateChangeName(data) {\r\n return http.post(\"/productset/teachingTemplateChangeName\", data)\r\n}\r\n\r\n//模板配置\r\nexport function teachingTemplateDetail(data) {\r\n return http.post(\"/productset/teachingTemplateDetail\", data)\r\n}\r\n\r\n//模板保存\r\nexport function teachingTemplateSave(data) {\r\n return http.post(\"/productset/teachingTemplateSave\", data)\r\n}\r\n\r\n// 根据年级获取班级数据\r\nexport function getClassByGrade(data) {\r\n return http.post(\"/productset/getClassByGrade\", data)\r\n}\r\n\r\n// 批量编辑保存\r\nexport function teachingEdit(data) {\r\n return http.post(\"/productset/teachingEdit\", data)\r\n}\r\n\r\n// 恢复默认\r\nexport function teachingRestoreClass(data) {\r\n return http.post(\"/productset/teachingRestoreClass\", data)\r\n}\r\n\r\n//搜索教师\r\nexport function teachingSearchTeacher() {\r\n return http.post(\"/productset/teachingSearchTeacher\")\r\n}","import { render, staticRenderFns } from \"./SetTable.vue?vue&type=template&id=b692927c&\"\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('b692927c')) {\n api.createRecord('b692927c', component.options)\n } else {\n api.reload('b692927c', component.options)\n }\n module.hot.accept(\"./SetTable.vue?vue&type=template&id=b692927c&\", function () {\n api.rerender('b692927c', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/teach-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=b692927c&\"","import { render, staticRenderFns } from \"./TypeSetting.vue?vue&type=template&id=a0db492c&\"\nimport script from \"./TypeSetting.vue?vue&type=script&lang=js&\"\nexport * from \"./TypeSetting.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TypeSetting.vue?vue&type=style&index=0&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 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('a0db492c')) {\n api.createRecord('a0db492c', component.options)\n } else {\n api.reload('a0db492c', component.options)\n }\n module.hot.accept(\"./TypeSetting.vue?vue&type=template&id=a0db492c&\", function () {\n api.rerender('a0db492c', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/teach-set/template-manager/type-setting/TypeSetting.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!./TypeSetting.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!./TypeSetting.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!./TypeSetting.vue?vue&type=style&index=0&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!./TypeSetting.vue?vue&type=style&index=0&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!./TypeSetting.vue?vue&type=template&id=a0db492c&\""],"sourceRoot":""}