(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[30],{ /***/ "./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/font-size-setting/FontSizeSetting.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/font-size-setting/FontSizeSetting.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 core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.for-each */ "./node_modules/core-js/modules/es.array.for-each.js"); /* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each */ "./node_modules/core-js/modules/web.dom-collections.for-each.js"); /* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _api_product_product_set__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../api/product/product-set */ "./src/api/product/product-set.js"); /* harmony import */ var _lib_productset_many_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../lib/productset/many.js */ "./src/lib/productset/many.js"); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ __webpack_exports__["default"] = ({ name: 'FontSizeSetting', data: function data() { return { iscolor: 0, newfont: false, blank: false, subjects: [] }; }, methods: { toggle: function toggle(index) { this.iscolor = index; this.getSubjectList(); }, getSubjectList: function getSubjectList() { var _this = this; Object(_api_product_product_set__WEBPACK_IMPORTED_MODULE_2__["subjectList"])().then(function (res, index) { _this.subjects = res.data.lists; _this.subjects.forEach(function (val, index) { val.config_text = JSON.parse(val.config_text); _this.$set(val, 'idx', index); }); }); }, fontSave: function fontSave(val) { var _this2 = this; console.log(val); var obj = { config_text: JSON.stringify(val.config_text), sps_id: val.sps_id }; var param = Object(_lib_productset_many_js__WEBPACK_IMPORTED_MODULE_3__["getFormData"])(obj); Object(_api_product_product_set__WEBPACK_IMPORTED_MODULE_2__["subjectSave"])(param).then(function (res) { if (res.status === 1) { _this2.$alert("操作成功!", "信息", { confirmButtonText: "确定" }); } else { _this2.$message.error(res.msg); } }); } }, mounted: function mounted() { this.getSubjectList(); } }); /***/ }), /***/ "./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/font-size-setting/FontSizeSetting.vue?vue&type=template&id=8bb797ae&": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/font-size-setting/FontSizeSetting.vue?vue&type=template&id=8bb797ae& ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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: "font-size-setting" }, [ _vm._m(0), _c("div", { staticClass: "size-setting-content" }, [ _c( "div", { staticClass: "subject" }, [ _vm._m(1), _vm._l(_vm.subjects, function(item1, index) { return _c( "div", { key: item1.subject_id, staticClass: "subject-name", class: _vm.iscolor === index ? "active" : "", on: { click: function($event) { return _vm.toggle(index) } } }, [_vm._v(_vm._s(item1.name))] ) }) ], 2 ), _c( "div", { staticClass: "content" }, [ _vm._m(2), _vm._l(_vm.subjects, function(item2) { return _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.iscolor == item2.idx, expression: "iscolor==item2.idx" } ], key: item2.subject_id }, [ _c( "div", { staticClass: "setup" }, [ _c("span", { staticClass: "text" }, [ _vm._v("新版字号"), _c("i", { staticClass: "el-icon-warning-outline", on: { click: function($event) { _vm.newfont = !_vm.newfont _vm.blank = false } } }) ]), _c("el-switch", { attrs: { "active-color": "#169bd5", "inactive-color": "#8c8c8c" }, model: { value: item2.config_text.new_version_size, callback: function($$v) { _vm.$set(item2.config_text, "new_version_size", $$v) }, expression: "item2.config_text.new_version_size" } }) ], 1 ), _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.iscolor != 2, expression: "iscolor!=2" } ], staticClass: "setup" }, [ _c("span", { staticClass: "text" }, [ _vm._v("自动截去空白答题区域"), _c("i", { staticClass: "el-icon-warning-outline", on: { click: function($event) { _vm.blank = !_vm.blank _vm.newfont = false } } }) ]), _c("el-switch", { attrs: { "active-color": "#169bd5", "inactive-color": "#8c8c8c" }, model: { value: item2.config_text.cut_blank_answer_area, callback: function($$v) { _vm.$set( item2.config_text, "cut_blank_answer_area", $$v ) }, expression: "item2.config_text.cut_blank_answer_area" } }) ], 1 ), _c( "el-button", { attrs: { type: "success" }, on: { click: function($event) { return _vm.fontSave(item2) } } }, [_vm._v("保存")] ) ], 1 ) }) ], 2 ), _c("div", { staticClass: "imgs" }, [ _vm._m(3), _c("div", { staticClass: "open" }, [ _c("img", { directives: [ { name: "show", rawName: "v-show", value: _vm.newfont, expression: "newfont" } ], attrs: { src: __webpack_require__(/*! @/assets/img/product/physics-img.jpg */ "./src/assets/img/product/physics-img.jpg"), alt: "" } }), _c("img", { directives: [ { name: "show", rawName: "v-show", value: _vm.blank, expression: "blank" } ], attrs: { src: __webpack_require__(/*! @/assets/img/product/math-img.jpg */ "./src/assets/img/product/math-img.jpg"), alt: "" } }) ]) ]) ]) ]) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "head" }, [ _c("p", [_vm._v("学科产品设置")]) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "cont-head" }, [ _c("h2", [_vm._v("选择学科")]) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "cont-head" }, [ _c("h2", [_vm._v("选择内容")]), _c("p", [ _vm._v("系统会根据您的设置生成产品,此处设置将应用与该学科所有产品") ]) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "cont-head" }, [ _c("h2", [_vm._v("示意图")]) ]) } ] render._withStripped = true /***/ }), /***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/font-size-setting/FontSizeSetting.vue?vue&type=style&index=0&lang=less&": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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??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??vue-loader-options!./src/views/font-size-setting/FontSizeSetting.vue?vue&type=style&index=0&lang=less& ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // Imports var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); exports = ___CSS_LOADER_API_IMPORT___(false); // Module exports.push([module.i, ".font-size-setting .active {\n color: #00ffff;\n}\n.font-size-setting .head {\n padding: 10px;\n line-height: 30px;\n text-align: center;\n background-color: #ddd;\n}\n.font-size-setting .head p {\n width: 120px;\n height: 30px;\n background-color: #01b677;\n font-size: 16px;\n color: #fff;\n}\n.font-size-setting .size-setting-content {\n height: 100vh;\n display: flex;\n}\n.font-size-setting .size-setting-content .subject,\n.font-size-setting .size-setting-content .content,\n.font-size-setting .size-setting-content .imgs {\n padding: 0 20px;\n border-right: 1px solid #000;\n}\n.font-size-setting .size-setting-content .subject .cont-head,\n.font-size-setting .size-setting-content .content .cont-head,\n.font-size-setting .size-setting-content .imgs .cont-head {\n height: 100px;\n}\n.font-size-setting .size-setting-content .subject .cont-head h2,\n.font-size-setting .size-setting-content .content .cont-head h2,\n.font-size-setting .size-setting-content .imgs .cont-head h2 {\n margin-top: 10px;\n font-size: 25px;\n}\n.font-size-setting .size-setting-content .subject {\n width: 20%;\n}\n.font-size-setting .size-setting-content .subject .subject-name {\n cursor: pointer;\n margin-bottom: 35px;\n font-size: 15px;\n}\n.font-size-setting .size-setting-content .content {\n width: 30%;\n}\n.font-size-setting .size-setting-content .content .setup {\n margin-bottom: 35px;\n}\n.font-size-setting .size-setting-content .content .setup .text {\n font-size: 20px;\n}\n.font-size-setting .size-setting-content .content .setup .text i {\n color: #01b677;\n}\n.font-size-setting .size-setting-content .content .setup .el-switch {\n float: right;\n}\n.font-size-setting .size-setting-content .content p {\n margin-top: 10px;\n line-height: 20px;\n}\n.font-size-setting .size-setting-content .content .el-button {\n margin-top: 50px;\n}\n.font-size-setting .size-setting-content .imgs {\n border-right: none;\n width: 50%;\n}\n", ""]); // Exports module.exports = exports; /***/ }), /***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/less-loader/dist/cjs.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/font-size-setting/FontSizeSetting.vue?vue&type=style&index=0&lang=less&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/vue-style-loader??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??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??vue-loader-options!./src/views/font-size-setting/FontSizeSetting.vue?vue&type=style&index=0&lang=less& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a