1 |
- {"version":3,"sources":["webpack:///./node_modules/@babel/runtime/helpers/esm/objectSpread2.js","webpack:///src/views/product-set/components/switch-navigation/SwitchNavigation.vue","webpack:///./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?17bd","webpack:///./node_modules/core-js/modules/es.object.get-own-property-descriptor.js","webpack:///./node_modules/core-js/modules/es.object.get-own-property-descriptors.js","webpack:///./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?ce44","webpack:///./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?7ba0","webpack:///./src/api/product/product-set.js","webpack:///./src/views/product-set/components/switch-navigation/SwitchNavigation.vue","webpack:///./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?da6a","webpack:///./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?2df1","webpack:///./src/views/product-set/components/switch-navigation/SwitchNavigation.vue?fd43"],"names":["ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread2","target","i","arguments","length","source","forEach","key","defineProperty","getOwnPropertyDescriptors","defineProperties","getProductEdition","data","http","post","changeSubject","switchEdition","initProductSetting","getCopyTemplate","setReName","setBeforeDel","setDelTemplate","getTemplateById","saveTemplate","getSubject","getClassByGrade","productClassSet","resetClassSet","saveClassSet","productStudentSet","getStudent","resetStudentSet","saveStudentSet","customProductStudentSet","getTemplateByType","delStudentOptionalCard","SaveOptionalCard","getSemester","get","getStyleType","switchStyle","subjectList","subjectSave"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA,SAASA,OAAT,CAAiBC,MAAjB,EAAyBC,cAAzB,EAAyC;AACvC,MAAIC,IAAI,GAAGC,MAAM,CAACD,IAAP,CAAYF,MAAZ,CAAX;;AAEA,MAAIG,MAAM,CAACC,qBAAX,EAAkC;AAChC,QAAIC,OAAO,GAAGF,MAAM,CAACC,qBAAP,CAA6BJ,MAA7B,CAAd;AACA,QAAIC,cAAJ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;;;;;;;;;;;;;;;;;ACRD;AACA;AACA;AAKA;AACA,2BADA;AAEA;AACA;AACA;AADA;AADA,GAFA;AAOA,MAPA,kBAOA;AACA;AACA,qBADA;AAEA;AAFA;AAIA,GAZA;AAaA,2JACA;AACA,iBADA,yBACA,KADA,EACA;AACA;AACA;AAAA;AAAA;AACA,OAFA,MAEA;AACA;AACA;AACA;AAPA,IADA,CAbA;AAwBA;AACA;AACA,gBADA;AAEA,qBAFA;AAGA,aAHA,qBAGA;AACA;;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA;AAVA,KADA;AAcA;AACA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA,OAPA;AAQA;AARA;AAdA,GAxBA;AAiDA,SAjDA,qBAiDA;AACA;AACA;AACA,KAFA,MAEA,IACA,wCACA,uBAFA,EAGA;AACA;AACA;AACA,GA1DA;AA2DA;AACA,UADA,kBACA,IADA,EACA;AACA;AACA;AADA;AAGA;AACA;AAEA;AACA;;AACA;AACA;AACA,2CADA;AAEA;AACA;AADA;AAFA;AAMA,OAPA,MAOA;AACA;AACA,wCADA;AAEA;AACA;AADA;AAFA;AAMA,OAPA,MAOA;AACA,2BAIA;AACA;AACA;;AACA;AACA;AACA;AADA;AADA;AAKA,OApCA,CAsCA;;;AACA;AACA;AACA;AADA;AAGA;AACA;AA7CA;AA3DA,G;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,oBAAoB,mCAAmC;AACvD;AACA,eAAe,qCAAqC;AACpD,iBAAiB,8BAA8B;AAC/C;AACA;AACA,iBAAiB,gCAAgC;AACjD,iBAAiB,6BAA6B;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,qCAAqC;AAC3D;AACA;AACA;AACA;AACA;;;;;;;;;;;;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AL,CAAS,0BAAT,EAAqC1B,IAArC,CAAP;AACD,C,CAED;;AACO,SAAS4B,WAAT,CAAqB5B,IAArB,EAA2B;AAChC,SAAOC,6CAAI,CAACC,IAAL,CAAU,yBAAV,EAAqCF,IAArC,CAAP;AACD,C,CACD;;AACO,SAAS6B,WAAT,GAAuB;AAC5B,SAAO5B,6CAAI,CAACC,IAAL,CAAU,8BAAV,CAAP;AACD,C,CAED;;AACO,SAAS4B,WAAT,CAAqB9B,IAArB,EAA2B;AAChC,SAAOC,6CAAI,CAACC,IAAL,CAAU,+BAAV,EAA2CF,IAA3C,CAAP;AACD,C;;;;;;;;;;;;AClID;AAAA;AAAA;AAAA;AAAA;AAA2G;AACvC;AACL;AACsC;;;AAGrG;AACmG;AACnG,gBAAgB,2GAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,uGAAM;AACR,EAAE,gHAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEA;AACA,IAAI,KAAU,EAAE,YAiBf;AACD;AACe,gF;;;;;;;;;;;;ACvCf;AAAA;AAAA,wCAAiU,CAAgB,iVAAG,EAAC,C;;;;;;;;;;;;ACArV;AAAA;AAAA;AAAA;AAAmlB,CAAgB,+iBAAG,EAAC,C;;;;;;;;;;;;ACAvmB;AAAA;AAAA;AAAA;AAAA;AAAA","file":"js/6.js","sourcesContent":["import defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}","<template>\r\n <!-- 学科菜单 -->\r\n <div class=\"switch-navigation\">\r\n <div class=\"product-setting-btn\">\r\n <a>产品设置</a>\r\n </div>\r\n <div class=\"switch-nav clearfix\">\r\n <div class=\"show-subject\">{{ subjectName }}</div>\r\n <div class=\"switch-subject\">切换学科</div>\r\n <div class=\"subject-box\">\r\n <ul>\r\n <li\r\n class=\"subject-list\"\r\n v-for=\"(list, index) in subject_array\"\r\n :key=\"list.val\"\r\n @click=\"select(list, index)\"\r\n >\r\n {{ list.name }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { mapState } from \"vuex\";\r\nimport { changeSubject } from \"../../../../api/product/product-set\";\r\nimport {\r\n getFormData,\r\n getSubjectId,\r\n setSubjectId,\r\n} from \"../../../../lib/productset/many\";\r\nexport default {\r\n name: \"Switch-navigation\",\r\n props: {\r\n proType: {\r\n type: String,\r\n },\r\n },\r\n data() {\r\n return {\r\n subjectName: \"\",\r\n subjectId: getSubjectId(),\r\n };\r\n },\r\n computed: {\r\n ...mapState({\r\n subject_array(state) {\r\n if (this.proType == \"MethodSet\") {\r\n return state.product.subject_array.filter((i) => i.name === \"数学\");\r\n } else {\r\n return state.product.subject_array;\r\n }\r\n },\r\n }),\r\n },\r\n watch: {\r\n subjectName: {\r\n deep: true,\r\n immediate: true,\r\n handler() {\r\n let initId = getSubjectId();\r\n if (initId === \"3\") {\r\n this.subjectName = \"数学\";\r\n } else if (initId === \"12\") {\r\n this.subjectName = \"物理\";\r\n }\r\n },\r\n },\r\n\r\n $route: {\r\n handler: function (val) {\r\n if (val.query.subjectId === \"3\") {\r\n this.subjectName = \"数学\";\r\n } else if (val.query.subjectId === \"12\") {\r\n this.subjectName = \"物理\";\r\n }\r\n },\r\n deep: true,\r\n },\r\n },\r\n created() {\r\n if (this.$route.query.subjectId === \"3\" || this.subjectId === \"3\") {\r\n this.subjectName = \"数学\";\r\n } else if (\r\n this.$route.query.subjectId === \"12\" ||\r\n this.subjectId === \"12\"\r\n ) {\r\n this.subjectName = \"物理\";\r\n }\r\n },\r\n methods: {\r\n select(list) {\r\n let obj = {\r\n subjectId: list.val,\r\n };\r\n let passId = getFormData(obj);\r\n changeSubject(passId).then(() => {});\r\n\r\n this.subjectName = list.name;\r\n setSubjectId(list.val);\r\n if (list.val === 3) {\r\n this.$router.push({\r\n path: \"/ProductSet/VersionSelect\",\r\n query: {\r\n subjectId: list.val,\r\n },\r\n });\r\n } else if (list.val === 12) {\r\n this.$router.push({\r\n path: \"/ProductSet/Customized\",\r\n query: {\r\n subjectId: list.val,\r\n },\r\n });\r\n } else {\r\n if (process.env.NODE_ENV == \"development\") {\r\n location.href =\r\n process.env.projectConfig.apiBaseUrl +\r\n `/index.php/productset/oldSet?subjectId=${list.val}`;\r\n } else {\r\n location.href = `/productset/oldSet?subjectId=${list.val}`;\r\n }\r\n this.$router.push({\r\n query: {\r\n subjectId: list.val,\r\n },\r\n });\r\n }\r\n\r\n // 方法宝\r\n if (this.proType == \"MethodSet\") {\r\n this.$router.push({\r\n path: \"/MethodSet/Introduction\",\r\n });\r\n }\r\n },\r\n },\r\n};\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n.switch-navigation {\r\n position: fixed;\r\n width: 100%;\r\n box-sizing: border-box;\r\n top: 0;\r\n left: 0;\r\n z-index: 1000;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n padding: 10px 10px;\r\n background: #ddd;\r\n\r\n .product-setting-btn {\r\n a {\r\n display: block;\r\n width: 120px;\r\n height: 30px;\r\n background: #01b677;\r\n text-align: center;\r\n line-height: 30px;\r\n color: #fff;\r\n font-size: 16px;\r\n text-decoration: none;\r\n }\r\n }\r\n\r\n .switch-nav {\r\n position: relative;\r\n height: 30px;\r\n width: 200px;\r\n background: #f2f2f2;\r\n border: 1px solid #01b677;\r\n border-radius: 15px;\r\n box-sizing: border-box;\r\n\r\n .show-subject {\r\n background: #01b677;\r\n color: #fff;\r\n width: 50%;\r\n height: 29px;\r\n text-align: center;\r\n line-height: 29px;\r\n border-top-left-radius: 15px;\r\n border-bottom-left-radius: 15px;\r\n float: left;\r\n }\r\n\r\n .switch-subject {\r\n width: 50%;\r\n position: relative;\r\n color: #01b677;\r\n line-height: 30px;\r\n text-indent: 6px;\r\n cursor: pointer;\r\n float: left;\r\n\r\n &:after {\r\n content: \"\";\r\n border-left: 6px solid transparent;\r\n border-right: 6px solid transparent;\r\n border-top: 8px solid #01b677;\r\n position: absolute;\r\n right: 16px;\r\n top: 11px;\r\n }\r\n\r\n &:hover + .subject-box {\r\n display: block;\r\n }\r\n }\r\n\r\n .subject-box {\r\n border: 1px solid #01b677;\r\n background-color: rgb(255, 255, 255);\r\n width: 88px;\r\n position: absolute;\r\n right: 12px;\r\n top: 28px;\r\n display: none;\r\n\r\n &:hover {\r\n display: block;\r\n }\r\n\r\n .subject-list {\r\n padding: 10px 0;\r\n text-align: center;\r\n cursor: pointer;\r\n\r\n &:hover {\r\n background: #01b677;\r\n color: #ffffff;\r\n }\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(\"div\", { staticClass: \"switch-navigation\" }, [\n _vm._m(0),\n _c(\"div\", { staticClass: \"switch-nav clearfix\" }, [\n _c(\"div\", { staticClass: \"show-subject\" }, [\n _vm._v(_vm._s(_vm.subjectName))\n ]),\n _c(\"div\", { staticClass: \"switch-subject\" }, [_vm._v(\"切换学科\")]),\n _c(\"div\", { staticClass: \"subject-box\" }, [\n _c(\n \"ul\",\n _vm._l(_vm.subject_array, function(list, index) {\n return _c(\n \"li\",\n {\n key: list.val,\n staticClass: \"subject-list\",\n on: {\n click: function($event) {\n return _vm.select(list, index)\n }\n }\n },\n [_vm._v(\" \" + _vm._s(list.name) + \" \")]\n )\n }),\n 0\n )\n ])\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: \"product-setting-btn\" }, [\n _c(\"a\", [_vm._v(\"产品设置\")])\n ])\n }\n]\nrender._withStripped = true\n\nexport { render, staticRenderFns }","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });\nvar FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\n$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {\n return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);\n }\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar ownKeys = require('../internals/own-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar createProperty = require('../internals/create-property');\n\n// `Object.getOwnPropertyDescriptors` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors\n$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIndexedObject(object);\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n var keys = ownKeys(O);\n var result = {};\n var index = 0;\n var key, descriptor;\n while (keys.length > index) {\n descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);\n if (descriptor !== undefined) createProperty(result, key, descriptor);\n }\n return result;\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, \".switch-navigation[data-v-1e4648ae] {\\n position: fixed;\\n width: 100%;\\n box-sizing: border-box;\\n top: 0;\\n left: 0;\\n z-index: 1000;\\n display: flex;\\n justify-content: space-between;\\n align-items: center;\\n padding: 10px 10px;\\n background: #ddd;\\n}\\n.switch-navigation .product-setting-btn a[data-v-1e4648ae] {\\n display: block;\\n width: 120px;\\n height: 30px;\\n background: #01b677;\\n text-align: center;\\n line-height: 30px;\\n color: #fff;\\n font-size: 16px;\\n text-decoration: none;\\n}\\n.switch-navigation .switch-nav[data-v-1e4648ae] {\\n position: relative;\\n height: 30px;\\n width: 200px;\\n background: #f2f2f2;\\n border: 1px solid #01b677;\\n border-radius: 15px;\\n box-sizing: border-box;\\n}\\n.switch-navigation .switch-nav .show-subject[data-v-1e4648ae] {\\n background: #01b677;\\n color: #fff;\\n width: 50%;\\n height: 29px;\\n text-align: center;\\n line-height: 29px;\\n border-top-left-radius: 15px;\\n border-bottom-left-radius: 15px;\\n float: left;\\n}\\n.switch-navigation .switch-nav .switch-subject[data-v-1e4648ae] {\\n width: 50%;\\n position: relative;\\n color: #01b677;\\n line-height: 30px;\\n text-indent: 6px;\\n cursor: pointer;\\n float: left;\\n}\\n.switch-navigation .switch-nav .switch-subject[data-v-1e4648ae]:after {\\n content: \\\"\\\";\\n border-left: 6px solid transparent;\\n border-right: 6px solid transparent;\\n border-top: 8px solid #01b677;\\n position: absolute;\\n right: 16px;\\n top: 11px;\\n}\\n.switch-navigation .switch-nav .switch-subject:hover + .subject-box[data-v-1e4648ae] {\\n display: block;\\n}\\n.switch-navigation .switch-nav .subject-box[data-v-1e4648ae] {\\n border: 1px solid #01b677;\\n background-color: #ffffff;\\n width: 88px;\\n position: absolute;\\n right: 12px;\\n top: 28px;\\n display: none;\\n}\\n.switch-navigation .switch-nav .subject-box[data-v-1e4648ae]:hover {\\n display: block;\\n}\\n.switch-navigation .switch-nav .subject-box .subject-list[data-v-1e4648ae] {\\n padding: 10px 0;\\n text-align: center;\\n cursor: pointer;\\n}\\n.switch-navigation .switch-nav .subject-box .subject-list[data-v-1e4648ae]:hover {\\n background: #01b677;\\n color: #ffffff;\\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!./SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&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(\"6978bca2\", 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!./SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&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!./SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&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 getProductEdition(data) {\r\n return http.post(\"productset/getProductEdition\", data)\r\n}\r\n\r\n//切换学科\r\nexport function changeSubject(data) {\r\n return http.post(\"/productset/changeSubject\", data)\r\n}\r\n\r\n// 切换版本\r\nexport function switchEdition(data) {\r\n return http.post(\"/productset/switchEdition\", data)\r\n}\r\n\r\n// 初始化设定\r\nexport function initProductSetting(data) {\r\n return http.post(\"productset/initProductSetting\", data)\r\n}\r\n\r\n// 模板设置接口\r\nexport const getCopyTemplate = (data) => {\r\n return http.post(\"/productset/copyTemplate\", data)\r\n}\r\n\r\nexport const setReName = (data) => {\r\n return http.post(\"/productset/reNameTemplate\", data)\r\n}\r\n\r\nexport const setBeforeDel = (data) => {\r\n return http.post(\"/productset/beforeDelTemplate\", data)\r\n}\r\n\r\nexport const setDelTemplate = (data) => {\r\n return http.post(\"/productset/delTemplate\", data)\r\n}\r\n\r\nexport const getTemplateById = (data) => {\r\n return http.post(\"/productset/ajaxGetTemplateById\", data);\r\n}\r\n\r\nexport const saveTemplate = (data) => {\r\n return http.post(\"/productset/saveTemplate\", data);\r\n}\r\n\r\n// \r\nexport const getSubject = (data) => {\r\n return http.post(\"productset/getSubject\", 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\nexport function productClassSet(data) {\r\n return http.post(\"/productset/productClassSet\", data)\r\n}\r\n\r\n// 班级恢复默认设置\r\nexport function resetClassSet(data) {\r\n return http.post(\"/productset/resetClassSet\", data)\r\n}\r\n// 保存班级定制\r\nexport const saveClassSet = (data) => {\r\n return http.post(\"/productset/saveClassSet\", data)\r\n}\r\n\r\n// 学生定制\r\nexport function productStudentSet(data) {\r\n return http.post(\"/productset/productStudentSet\", data)\r\n}\r\n\r\nexport const getStudent = (data) => {\r\n return http.post(\"/studentinfo/getStudent\", data)\r\n}\r\n\r\n// 学生恢复默认设置\r\nexport function resetStudentSet(data) {\r\n return http.post(\"/productset/resetStudentSet\", data)\r\n}\r\n// 保存学生定制\r\nexport const saveStudentSet = (data) => {\r\n return http.post(\"/productset/saveStudentSet\", data)\r\n}\r\n\r\n// 学生自选卡\r\nexport function customProductStudentSet(data) {\r\n return http.post(\"/productset/customProductStudentSet\", data)\r\n}\r\n\r\n// 定制选模板\r\nexport function getTemplateByType(data) {\r\n return http.post(\"/productset/getTemplateByType\", data)\r\n}\r\n\r\n// 删除学生自定义配置\r\nexport function delStudentOptionalCard(data) {\r\n return http.post(\"/productset/delStudentOptionalCard\", data)\r\n}\r\n\r\n// 保存学生自选卡设置\r\nexport function SaveOptionalCard(data) {\r\n return http.post(\"/productset/SaveOptionalCard\", data)\r\n}\r\n\r\n// 当前学年、学期\r\nexport function getSemester() {\r\n return http.get(\"/productset/getSemester\")\r\n}\r\n\r\n// 获取字号\r\nexport function getStyleType(data) {\r\n return http.get(\"/productset/getStyleType\", data)\r\n}\r\n\r\n// 切换字号\r\nexport function switchStyle(data) {\r\n return http.post(\"/productset/switchStyle\", data)\r\n}\r\n// 学科产品设置列表\r\nexport function subjectList() {\r\n return http.post(\"/subjectProductSetting/index\")\r\n}\r\n\r\n//学科产品设置保存\r\nexport function subjectSave(data) {\r\n return http.post(\"/subjectProductSetting/update\", data)\r\n}","import { render, staticRenderFns } from \"./SwitchNavigation.vue?vue&type=template&id=1e4648ae&scoped=true&\"\nimport script from \"./SwitchNavigation.vue?vue&type=script&lang=js&\"\nexport * from \"./SwitchNavigation.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&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 \"1e4648ae\",\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('1e4648ae')) {\n api.createRecord('1e4648ae', component.options)\n } else {\n api.reload('1e4648ae', component.options)\n }\n module.hot.accept(\"./SwitchNavigation.vue?vue&type=template&id=1e4648ae&scoped=true&\", function () {\n api.rerender('1e4648ae', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/product-set/components/switch-navigation/SwitchNavigation.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!./SwitchNavigation.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!./SwitchNavigation.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!./SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&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!./SwitchNavigation.vue?vue&type=style&index=0&id=1e4648ae&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!./SwitchNavigation.vue?vue&type=template&id=1e4648ae&scoped=true&\""],"sourceRoot":""}
|