1 |
- {"version":3,"sources":["webpack:///src/views/product-set/method-set/components/set-table/SetTable.vue","webpack:///./src/views/junior-product-set/components/set-table/SetTable.vue?49ed","webpack:///./src/api/product/product-set.js","webpack:///./src/views/junior-product-set/components/set-table/SetTable.vue","webpack:///./src/views/junior-product-set/components/set-table/SetTable.vue?a735","webpack:///./src/views/junior-product-set/components/set-table/SetTable.vue?f58a"],"names":["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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;AAvBA;AA1BA,G;;;;;;;;;;;;AC9CA;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;CAEA;;AACO,SAASA,iBAAT,CAA2BC,IAA3B,EAAiC;AACtC,SAAOC,6CAAI,CAACC,IAAL,CAAU,8BAAV,EAA0CF,IAA1C,CAAP;AACD,C,CAED;;AACO,SAASG,aAAT,CAAuBH,IAAvB,EAA6B;AAClC,SAAOC,6CAAI,CAACC,IAAL,CAAU,2BAAV,EAAuCF,IAAvC,CAAP;AACD,C,CAED;;AACO,SAASI,aAAT,CAAuBJ,IAAvB,EAA6B;AAClC,SAAOC,6CAAI,CAACC,IAAL,CAAU,2BAAV,EAAuCF,IAAvC,CAAP;AACD,C,CAED;;AACO,SAASK,kBAAT,CAA4BL,IAA5B,EAAkC;AACvC,SAAOC,6CAAI,CAACC,IAAL,CAAU,+BAAV,EAA2CF,IAA3C,CAAP;AACD,C,CAED;;AACO,IAAMM,eAAe,GAAG,SAAlBA,eAAkB,CAACN,IAAD,EAAU;AACvC,SAAOC,6CAAI,CAACC,IA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I,CAACyB,GAAL,CAAS,yBAAT,CAAP;AACD,C,CAED;;AACO,SAASC,YAAT,CAAsB3B,IAAtB,EAA4B;AACjC,SAAOC,6CAAI,CAACyB,GAAL,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;AAAuF;AAC3B;AACL;;;AAGvD;AACmG;AACnG,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,wCAAyT,CAAgB,yUAAG,EAAC,C;;;;;;;;;;;;ACA7U;AAAA;AAAA;AAAA;AAAA;AAAA","file":"js/8.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>","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 }","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 \"./SetTable.vue?vue&type=template&id=fbf54a48&\"\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('fbf54a48')) {\n api.createRecord('fbf54a48', component.options)\n } else {\n api.reload('fbf54a48', component.options)\n }\n module.hot.accept(\"./SetTable.vue?vue&type=template&id=fbf54a48&\", function () {\n api.rerender('fbf54a48', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"src/views/junior-product-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=fbf54a48&\""],"sourceRoot":""}
|