123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455 |
- (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{
- /***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/product-set/components/set-table/SetTable.vue?vue&type=script&lang=js&":
- /*!*********************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/product-set/components/set-table/SetTable.vue?vue&type=script&lang=js& ***!
- \*********************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- /* harmony default export */ __webpack_exports__["default"] = ({
- name: "SetTable",
- props: {
- tableData: {
- type: Array
- },
- tableOption: {
- type: Array
- }
- },
- data: function data() {
- return {};
- },
- computed: {},
- watch: {},
- created: function created() {},
- mounted: function mounted() {},
- methods: {
- handle: function handle(btn, row, index) {
- // if (typeof btn.function === "string") {
- // this.$emit(btn.function, row, index);
- // } else {
- this.$emit("handle", btn, row, index); // }
- }
- },
- filters: {// dataFormat(val, type) {
- // if (type === "gradeFilter") {
- // switch (val) {
- // case "1":
- // return "高一";
- // case "2":
- // return "高二";
- // case "3":
- // return "高三";
- // }
- // } else if (type === "levelFilter") {
- // switch (val) {
- // case "1":
- // return "A";
- // case "2":
- // return "B";
- // case "3":
- // return "C";
- // }
- // } else {
- // return val;
- // }
- // },
- }
- });
- /***/ }),
- /***/ "./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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/product-set/components/set-table/SetTable.vue?vue&type=template&id=5ba5383c&":
- /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./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??vue-loader-options!./src/views/product-set/components/set-table/SetTable.vue?vue&type=template&id=5ba5383c& ***!
- \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
- var render = function() {
- var _vm = this
- var _h = _vm.$createElement
- var _c = _vm._self._c || _h
- return _c(
- "div",
- { staticClass: "set-table" },
- [
- _c(
- "el-table",
- {
- staticStyle: { width: "100%" },
- attrs: {
- data: _vm.tableData,
- border: "",
- "header-cell-style": { background: "#f2f2f2", color: "#606266" }
- }
- },
- [
- _vm._l(_vm.tableOption, function(item, index) {
- return [
- !item.type
- ? _c("el-table-column", {
- key: index,
- attrs: {
- prop: item.prop,
- label: item.label,
- width: item.width
- },
- scopedSlots: _vm._u(
- [
- {
- key: "default",
- fn: function(scope) {
- return [
- _vm._v(
- " " +
- _vm._s(
- _vm._f("dataFormat")(
- scope.row[item.prop],
- item.formatter
- )
- ) +
- " "
- )
- ]
- }
- }
- ],
- null,
- true
- )
- })
- : _vm._e(),
- item.type == "buttons"
- ? _c("el-table-column", {
- key: index,
- attrs: {
- prop: item.prop,
- label: item.label,
- width: item.width
- },
- scopedSlots: _vm._u(
- [
- {
- key: "default",
- fn: function(scope) {
- return [
- _c(
- "div",
- { class: item.class },
- _vm._l(item.button, function(btn, index) {
- return _c(
- "el-button",
- {
- key: index,
- on: {
- click: function($event) {
- return _vm.handle(
- btn,
- scope.$index,
- scope.row
- )
- }
- }
- },
- [_vm._v(_vm._s(btn.text))]
- )
- }),
- 1
- )
- ]
- }
- }
- ],
- null,
- true
- )
- })
- : _vm._e()
- ]
- })
- ],
- 2
- )
- ],
- 1
- )
- }
- var staticRenderFns = []
- render._withStripped = true
- /***/ }),
- /***/ "./src/api/product/product-set.js":
- /*!****************************************!*\
- !*** ./src/api/product/product-set.js ***!
- \****************************************/
- /*! exports provided: getProductEdition, changeSubject, switchEdition, initProductSetting, getCopyTemplate, setReName, setBeforeDel, setDelTemplate, getTemplateById, saveTemplate, getSubject, getClassByGrade, productClassSet, resetClassSet, saveClassSet, productStudentSet, getStudent, resetStudentSet, saveStudentSet, customProductStudentSet, getTemplateByType, delStudentOptionalCard, SaveOptionalCard, getSemester, getStyleType, switchStyle, subjectList, subjectSave */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getProductEdition", function() { return getProductEdition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "changeSubject", function() { return changeSubject; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchEdition", function() { return switchEdition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initProductSetting", function() { return initProductSetting; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCopyTemplate", function() { return getCopyTemplate; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setReName", function() { return setReName; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setBeforeDel", function() { return setBeforeDel; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDelTemplate", function() { return setDelTemplate; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTemplateById", function() { return getTemplateById; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveTemplate", function() { return saveTemplate; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSubject", function() { return getSubject; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClassByGrade", function() { return getClassByGrade; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "productClassSet", function() { return productClassSet; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetClassSet", function() { return resetClassSet; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveClassSet", function() { return saveClassSet; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "productStudentSet", function() { return productStudentSet; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStudent", function() { return getStudent; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetStudentSet", function() { return resetStudentSet; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveStudentSet", function() { return saveStudentSet; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "customProductStudentSet", function() { return customProductStudentSet; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTemplateByType", function() { return getTemplateByType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delStudentOptionalCard", function() { return delStudentOptionalCard; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SaveOptionalCard", function() { return SaveOptionalCard; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSemester", function() { return getSemester; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyleType", function() { return getStyleType; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchStyle", function() { return switchStyle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subjectList", function() { return subjectList; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subjectSave", function() { return subjectSave; });
- /* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../http */ "./src/api/http.js");
- // 获取版本
- function getProductEdition(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("productset/getProductEdition", data);
- } //切换学科
- function changeSubject(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/changeSubject", data);
- } // 切换版本
- function switchEdition(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/switchEdition", data);
- } // 初始化设定
- function initProductSetting(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("productset/initProductSetting", data);
- } // 模板设置接口
- var getCopyTemplate = function getCopyTemplate(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/copyTemplate", data);
- };
- var setReName = function setReName(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/reNameTemplate", data);
- };
- var setBeforeDel = function setBeforeDel(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/beforeDelTemplate", data);
- };
- var setDelTemplate = function setDelTemplate(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/delTemplate", data);
- };
- var getTemplateById = function getTemplateById(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/ajaxGetTemplateById", data);
- };
- var saveTemplate = function saveTemplate(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/saveTemplate", data);
- }; //
- var getSubject = function getSubject(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("productset/getSubject", data);
- }; // 根据年级获取班级数据
- function getClassByGrade(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/getClassByGrade", data);
- } // 班级定制列表
- function productClassSet(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/productClassSet", data);
- } // 班级恢复默认设置
- function resetClassSet(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/resetClassSet", data);
- } // 保存班级定制
- var saveClassSet = function saveClassSet(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/saveClassSet", data);
- }; // 学生定制
- function productStudentSet(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/productStudentSet", data);
- }
- var getStudent = function getStudent(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/studentinfo/getStudent", data);
- }; // 学生恢复默认设置
- function resetStudentSet(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/resetStudentSet", data);
- } // 保存学生定制
- var saveStudentSet = function saveStudentSet(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/saveStudentSet", data);
- }; // 学生自选卡
- function customProductStudentSet(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/customProductStudentSet", data);
- } // 定制选模板
- function getTemplateByType(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/getTemplateByType", data);
- } // 删除学生自定义配置
- function delStudentOptionalCard(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/delStudentOptionalCard", data);
- } // 保存学生自选卡设置
- function SaveOptionalCard(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/SaveOptionalCard", data);
- } // 当前学年、学期
- function getSemester() {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].get("/productset/getSemester");
- } // 获取字号
- function getStyleType(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].get("/productset/getStyleType", data);
- } // 切换字号
- function switchStyle(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/productset/switchStyle", data);
- } // 学科产品设置列表
- function subjectList() {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/subjectProductSetting/index");
- } //学科产品设置保存
- function subjectSave(data) {
- return _http__WEBPACK_IMPORTED_MODULE_0__["default"].post("/subjectProductSetting/update", data);
- }
- /***/ }),
- /***/ "./src/views/product-set/components/set-table/SetTable.vue":
- /*!*****************************************************************!*\
- !*** ./src/views/product-set/components/set-table/SetTable.vue ***!
- \*****************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _SetTable_vue_vue_type_template_id_5ba5383c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SetTable.vue?vue&type=template&id=5ba5383c& */ "./src/views/product-set/components/set-table/SetTable.vue?vue&type=template&id=5ba5383c&");
- /* harmony import */ var _SetTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SetTable.vue?vue&type=script&lang=js& */ "./src/views/product-set/components/set-table/SetTable.vue?vue&type=script&lang=js&");
- /* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
- /* normalize component */
- var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
- _SetTable_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
- _SetTable_vue_vue_type_template_id_5ba5383c___WEBPACK_IMPORTED_MODULE_0__["render"],
- _SetTable_vue_vue_type_template_id_5ba5383c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
- false,
- null,
- null,
- null
-
- )
- /* hot reload */
- if (false) { var api; }
- component.options.__file = "src/views/product-set/components/set-table/SetTable.vue"
- /* harmony default export */ __webpack_exports__["default"] = (component.exports);
- /***/ }),
- /***/ "./src/views/product-set/components/set-table/SetTable.vue?vue&type=script&lang=js&":
- /*!******************************************************************************************!*\
- !*** ./src/views/product-set/components/set-table/SetTable.vue?vue&type=script&lang=js& ***!
- \******************************************************************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _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___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/babel-loader/lib!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./SetTable.vue?vue&type=script&lang=js& */ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/product-set/components/set-table/SetTable.vue?vue&type=script&lang=js&");
- /* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_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___WEBPACK_IMPORTED_MODULE_0__["default"]);
- /***/ }),
- /***/ "./src/views/product-set/components/set-table/SetTable.vue?vue&type=template&id=5ba5383c&":
- /*!************************************************************************************************!*\
- !*** ./src/views/product-set/components/set-table/SetTable.vue?vue&type=template&id=5ba5383c& ***!
- \************************************************************************************************/
- /*! exports provided: render, staticRenderFns */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony import */ var _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_5ba5383c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../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??vue-loader-options!./SetTable.vue?vue&type=template&id=5ba5383c& */ "./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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/product-set/components/set-table/SetTable.vue?vue&type=template&id=5ba5383c&");
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _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_5ba5383c___WEBPACK_IMPORTED_MODULE_0__["render"]; });
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _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_5ba5383c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
- /***/ })
- }]);
- //# sourceMappingURL=4.js.map
|