(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[37],{ /***/ "./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/waikan-set/WaiKanSeparate.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/waikan-set/WaiKanSeparate.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_splice__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.splice */ "./node_modules/core-js/modules/es.array.splice.js"); /* harmony import */ var core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.number.constructor */ "./node_modules/core-js/modules/es.number.constructor.js"); /* harmony import */ var core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _api_waikan_waikan_set_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../api/waikan/waikan-set.js */ "./src/api/waikan/waikan-set.js"); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ __webpack_exports__["default"] = ({ name: "WaiKanGenerate", components: {}, filters: {}, props: {}, data: function data() { return { weekName: "2022年7月第二周", productName: ["基础宝", "外刊宝", "热点宝"], basicShrink: true, hotspotShrink: true, waikanData: { textbooks: [], modules: [], units: [], contexts: [], grades: [{ value: 1, label: "高一" }, { value: 2, label: "高二" }, { value: 3, label: "高三" }], classes: [], basicTopics: [], hotTopics: [] }, productType: "periodicals", formWaiKan: { category: 2, //新老板 1新版 2老版 select_set_type: 1, //选择设置模式 textbookId: 0, //教材版本 moduleId: 0, //模块 unitId: [], //单元 selectedItemIds: [], //主题语境 grade: 1, //年级 selectClassIds: [], //班级 recommend_mode: 1, //推荐模式 默认1 product_type: 1, //产品类型 1基础宝 2外刊宝 3热点宝 basic_topic: 1, //基础选题 type: 2, //外刊类型 class_between_content: 0, // 班级间内容 level: 2, //外刊分级 共性 个性 hot_topic: 1, //热点选题 //题目数量 topic_number: { //外刊宝 periodicals: { reading: 4, //外刊阅读 gestalt: 0, //外刊完形 seven_selected_five: 1 //外刊七选五 }, //热点宝 hot: { reading: 3, //外刊阅读 gestalt: 0, //外刊完形 seven_selected_five: 1 //外刊七选五 } }, isAnswerSeparate: 0 //下载方式 }, maxA: 7, maxB: 2, maxC: 2, minA: 0, minB: 0, minC: 0 }; }, computed: {}, watch: {}, created: function created() { this.selectProduct(this.$route.query.product_type); this.getTextbook(); this.selectGrade(1); }, mounted: function mounted() {}, methods: { // 获取版本、模块、单元数据 getTextbook: function getTextbook() { var _this = this; Object(_api_waikan_waikan_set_js__WEBPACK_IMPORTED_MODULE_2__["getTextbookModuleUnit"])().then(function (res) { _this.weekName = res.data.week_name; _this.waikanData.textbooks = res.data.textbooks; _this.formWaiKan.textbookId = res.data.textbooks[0].textbook_id; _this.waikanData.modules = res.data.modules; _this.formWaiKan.moduleId = res.data.modules[0].textbook_id; _this.waikanData.units = res.data.units; _this.formWaiKan.unitId.push(res.data.units[0].textbook_id); }); }, // 选择教材版本 selectTextbook: function selectTextbook(id) { var _this2 = this; var params = { version_id: id }; Object(_api_waikan_waikan_set_js__WEBPACK_IMPORTED_MODULE_2__["getModuleAndUnit"])(params).then(function (res) { _this2.waikanData.modules = res.data.modules; _this2.formWaiKan.moduleId = res.data.modules[0].textbook_id; _this2.waikanData.units = res.data.units; _this2.formWaiKan.unitId.splice(0, 1, res.data.units[0].textbook_id); }); }, // 选择模块 selectModule: function selectModule(id) { var _this3 = this; var params = { module_id: id }; Object(_api_waikan_waikan_set_js__WEBPACK_IMPORTED_MODULE_2__["getUnitByModuleId"])(params).then(function (res) { _this3.waikanData.units = res.data.units; _this3.formWaiKan.unitId.splice(0, 1, res.data.units[0].textbook_id); }); }, // 选择单元 selectUnit: function selectUnit() {}, // 选择年级 selectGrade: function selectGrade(grade) { var _this4 = this; var params = { grade: grade, category: 2, pt: this.formWaiKan.product_type }; Object(_api_waikan_waikan_set_js__WEBPACK_IMPORTED_MODULE_2__["getClasses"])(params).then(function (res) { _this4.waikanData.classes = res.data.class; }); this.getBasicTopic(grade); this.getHotTopic(grade); this.formWaiKan.selectClassIds = []; this.waikanData.students = []; }, // 选择班级 selectClass: function selectClass(clas) {// this.getStudent(clas); }, // 获取基础选题数据 getBasicTopic: function getBasicTopic(val) { var _this5 = this; var params = { grade: val }; Object(_api_waikan_waikan_set_js__WEBPACK_IMPORTED_MODULE_2__["getBasicTopics"])(params).then(function (res) { _this5.waikanData.basicTopics = res.data.basic_topics; _this5.formWaiKan.basic_topic = res.data.basic_topics[0].lib_element_id; }); }, // 获取热点选题数据 getHotTopic: function getHotTopic(val) { var _this6 = this; var params = { grade: val }; Object(_api_waikan_waikan_set_js__WEBPACK_IMPORTED_MODULE_2__["getHotTopics"])(params).then(function (res) { _this6.waikanData.hotTopics = res.data.hot_topics; _this6.formWaiKan.hot_topic = res.data.hot_topics[0].lib_element_id; }); }, // 选择查询模式 selectMode: function selectMode(mod) { this.formWaiKan.select_set_type = mod; if (mod == 2) { this.getContext(); } }, // 获取主题语境数据 getContext: function getContext() { var _this7 = this; Object(_api_waikan_waikan_set_js__WEBPACK_IMPORTED_MODULE_2__["getSubjectContext"])().then(function (res) { _this7.waikanData.contexts = res.data.subject_context; _this7.formWaiKan.selectedItemIds.push(res.data.subject_context[0].tag_extend_id); }); }, // 产品设置模块显示 selectProduct: function selectProduct(val) { this.formWaiKan.product_type = Number(val); if (val == 2) { this.productType = "periodicals"; } else if (val == 3) { this.productType = "hot"; } this.changeNumber(); }, // 选择外刊类型 selectWaiKanType: function selectWaiKanType() { this.formWaiKan.class_between_content = 0; }, // 展开、收缩 open: function open(type) { if (type === "basic") { this.basicShrink = !this.basicShrink; } else { this.hotspotShrink = !this.hotspotShrink; } }, // 设置题量 changeNumber: function changeNumber() { this.formWaiKan.product_type == 2 ? this.limitNum(7, 2) : this.limitNum(6, 1); }, // 限制题量 limitNum: function limitNum(max, min) { var a, b, c; a = this.formWaiKan.topic_number[this.productType].reading; b = this.formWaiKan.topic_number[this.productType].gestalt; c = this.formWaiKan.topic_number[this.productType].seven_selected_five; var total = a + b + c; if (total == max) { this.maxA = a; this.maxB = b; this.maxC = c; } else { this.maxA = max; this.maxB = 2; this.maxC = 2; } if (total == min) { this.minA = a; this.minB = b; this.minC = c; } else { this.minA = 0; this.minB = 0; this.minC = 0; } }, // 生成 generate: function generate() { var _this8 = this; if (!this.formWaiKan.selectClassIds.length) return; var data = JSON.parse(JSON.stringify(this.formWaiKan)); if (this.formWaiKan.select_set_type == 1) { if (!this.formWaiKan.unitId.length) { this.$message.error("请选择单元"); return; } delete data.selectedItemIds; } if (this.formWaiKan.select_set_type == 2) { if (!this.formWaiKan.selectedItemIds.length) { this.$message.error("请选择主题语境"); return; } delete data.textbookId; delete data.moduleId; delete data.unitId; } if (this.formWaiKan.select_set_type == 3) { delete data.textbookId; delete data.moduleId; delete data.unitId; delete data.selectedItemIds; } if (this.formWaiKan.product_type == 1 || this.formWaiKan.type == 1) { delete data.class_between_content; } switch (data.product_type) { case 1: delete data.type; delete data.level; delete data.topic_number; delete data.hot_topic; break; case 2: delete data.basic_topic; delete data.hot_topic; delete data.topic_number.hot; break; case 3: delete data.basic_topic; delete data.topic_number.periodicals; break; } if (data.type == 1) { delete data.level; } console.log(data); var loading = this.$loading({ lock: true, text: "开始生成......", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.5)", customClass: "waikan-loading" }); Object(_api_waikan_waikan_set_js__WEBPACK_IMPORTED_MODULE_2__["saveEnglishReading"])(data).then(function (res) { loading.close(); if (res.status == 1) { _this8.$alert("生成成功!", { confirmButtonText: "确定", callback: function callback() { _this8.back(); } }); } else { _this8.$message.error("设置数据错误!"); } }); }, // 返回 back: function back() { var pro = this.formWaiKan.product_type; if (false) {} else { switch (pro) { case 1: location.href = "/print/english_reading/pt/1/cg/2"; break; case 2: location.href = "/print/english_reading/pt/2/cg/2"; break; case 3: location.href = "/print/english_reading/pt/3/cg/2"; break; } } } } }); /***/ }), /***/ "./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/waikan-set/WaiKanSeparate.vue?vue&type=template&id=f9abca9a&": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/waikan-set/WaiKanSeparate.vue?vue&type=template&id=f9abca9a& ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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: "waikan-separate set-page" }, [ _c("div", { staticClass: "page-title" }, [ _c("h1", [ _vm._v( _vm._s(_vm.productName[_vm.formWaiKan.product_type - 1]) + "生成" ) ]), _c("div", { staticClass: "back-btn btn", on: { click: _vm.back } }, [ _vm._v("返回") ]) ]), _c("p", { staticClass: "tips" }, [ _vm._v(" 提示:每个班级每周允许生成一次 ") ]), _c("div", { staticClass: "mode-select clearfix" }, [ _c("div", { staticClass: "current-time fl" }, [ _vm._v("当前时间:" + _vm._s(_vm.weekName)) ]), _c("div", { staticClass: "fr" }, [ _c( "div", { staticClass: "tab-btn mode-btn", class: [_vm.formWaiKan.select_set_type == 1 ? "select" : ""], on: { click: function($event) { return _vm.selectMode(1) } } }, [_vm._v(" 按照教材单元设置 ")] ), _c( "div", { staticClass: "tab-btn mode-btn", class: [_vm.formWaiKan.select_set_type == 2 ? "select" : ""], on: { click: function($event) { return _vm.selectMode(2) } } }, [_vm._v(" 主题语境设置 ")] ), _c( "div", { staticClass: "tab-btn mode-btn", class: [_vm.formWaiKan.select_set_type == 3 ? "select" : ""], on: { click: function($event) { return _vm.selectMode(3) } } }, [_vm._v(" 时文阅读 ")] ) ]) ]), _c( "el-form", { ref: "form", attrs: { model: _vm.formWaiKan } }, [ _c( "el-form-item", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.select_set_type == 1, expression: "formWaiKan.select_set_type == 1" } ], attrs: { label: "版本:" } }, [ _c( "div", { staticClass: "set-item-cont no-radio multiline" }, [ _c( "el-radio-group", { on: { change: _vm.selectTextbook }, model: { value: _vm.formWaiKan.textbookId, callback: function($$v) { _vm.$set(_vm.formWaiKan, "textbookId", $$v) }, expression: "formWaiKan.textbookId" } }, _vm._l(_vm.waikanData.textbooks, function(item, index) { return _c( "el-radio", { key: index, attrs: { label: item.textbook_id } }, [_vm._v(_vm._s(item.textbook_name))] ) }), 1 ) ], 1 ) ] ), _c( "el-form-item", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.select_set_type == 1, expression: "formWaiKan.select_set_type == 1" } ], attrs: { label: "模块:" } }, [ _c( "div", { staticClass: "set-item-cont no-radio multiline" }, [ _c( "el-radio-group", { on: { change: _vm.selectModule }, model: { value: _vm.formWaiKan.moduleId, callback: function($$v) { _vm.$set(_vm.formWaiKan, "moduleId", $$v) }, expression: "formWaiKan.moduleId" } }, _vm._l(_vm.waikanData.modules, function(item, index) { return _c( "el-radio", { key: index, attrs: { label: item.textbook_id } }, [_vm._v(_vm._s(item.textbook_name))] ) }), 1 ) ], 1 ) ] ), _c( "el-form-item", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.select_set_type == 1, expression: "formWaiKan.select_set_type == 1" } ], attrs: { label: "单元:" } }, [ _c( "div", { staticClass: "set-item-cont no-check multiline" }, [ _c( "el-checkbox-group", { attrs: { max: 3 }, on: { change: _vm.selectUnit }, model: { value: _vm.formWaiKan.unitId, callback: function($$v) { _vm.$set(_vm.formWaiKan, "unitId", $$v) }, expression: "formWaiKan.unitId" } }, _vm._l(_vm.waikanData.units, function(item, index) { return _c( "el-checkbox", { key: index, attrs: { label: item.textbook_id } }, [_vm._v(_vm._s(item.textbook_name))] ) }), 1 ) ], 1 ) ] ), _c( "el-form-item", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.select_set_type == 2, expression: "formWaiKan.select_set_type == 2" } ], attrs: { label: "主题语境:" } }, [ _c( "div", { staticClass: "set-item-cont context-item no-check multiline" }, [ _c( "el-checkbox-group", { model: { value: _vm.formWaiKan.selectedItemIds, callback: function($$v) { _vm.$set(_vm.formWaiKan, "selectedItemIds", $$v) }, expression: "formWaiKan.selectedItemIds" } }, _vm._l(_vm.waikanData.contexts, function(item, index) { return _c( "el-checkbox", { key: index, attrs: { label: item.tag_extend_id } }, [_vm._v(_vm._s(item.tag_extend_name))] ) }), 1 ) ], 1 ) ] ), _c("el-form-item", { attrs: { label: "班级:" } }, [ _c( "div", { staticClass: "set-item-cont class-item" }, [ _c( "el-select", { attrs: { size: "mini" }, on: { change: _vm.selectGrade }, model: { value: _vm.formWaiKan.grade, callback: function($$v) { _vm.$set(_vm.formWaiKan, "grade", $$v) }, expression: "formWaiKan.grade" } }, _vm._l(_vm.waikanData.grades, function(item) { return _c("el-option", { key: item.value, attrs: { label: item.label, value: item.value } }) }), 1 ), _c( "el-checkbox-group", { on: { change: _vm.selectClass }, model: { value: _vm.formWaiKan.selectClassIds, callback: function($$v) { _vm.$set(_vm.formWaiKan, "selectClassIds", $$v) }, expression: "formWaiKan.selectClassIds" } }, _vm._l(_vm.waikanData.classes, function(item, index) { return _c( "el-checkbox", { key: index, attrs: { label: item.class_id, disabled: item.status == 1 ? true : false } }, [_vm._v(_vm._s(item.class_name))] ) }), 1 ) ], 1 ) ]), _c( "el-form-item", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.product_type == 1, expression: "formWaiKan.product_type == 1" } ], attrs: { label: "基础选题:" } }, [ _c( "div", { staticClass: "set-item-cont choice-topic multiline", class: [_vm.basicShrink ? "shrink" : ""] }, [ _c( "el-radio-group", { model: { value: _vm.formWaiKan.basic_topic, callback: function($$v) { _vm.$set(_vm.formWaiKan, "basic_topic", $$v) }, expression: "formWaiKan.basic_topic" } }, _vm._l(_vm.waikanData.basicTopics, function(item, index) { return _c( "el-radio", { key: index, attrs: { label: item.lib_element_id } }, [_vm._v(_vm._s(item.rich_text))] ) }), 1 ), _c( "div", { staticClass: "open-btn", on: { click: function($event) { return _vm.open("basic") } } }, [ _vm.basicShrink ? _c("span", [_vm._v("展开")]) : _c("span", [_vm._v("收缩")]) ] ) ], 1 ) ] ), _c( "el-form-item", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.product_type == 2 || _vm.formWaiKan.product_type == 3, expression: "formWaiKan.product_type == 2 || formWaiKan.product_type == 3" } ], attrs: { label: "外刊类型:" } }, [ _c( "div", { staticClass: "set-item-cont alone" }, [ _c( "el-radio-group", { on: { change: _vm.selectWaiKanType }, model: { value: _vm.formWaiKan.type, callback: function($$v) { _vm.$set(_vm.formWaiKan, "type", $$v) }, expression: "formWaiKan.type" } }, [ _c("el-radio", { attrs: { label: 2 } }, [ _vm._v("共性外刊"), _c("span", { staticClass: "tips" }, [ _vm._v("(班级同学语篇完全相同,老师可讲解)") ]) ]), _c("el-radio", { attrs: { label: 1 } }, [ _vm._v("个性外刊"), _c("span", { staticClass: "tips" }, [ _vm._v( "(班级同学语篇不完全相同,根据学生水平个性化)" ) ]) ]) ], 1 ), _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.type == 2, expression: "formWaiKan.type == 2" } ], staticClass: "class-content" }, [ _c("span", { staticClass: "txt" }, [ _vm._v("班级间内容:") ]), _c( "el-radio", { attrs: { label: 0 }, model: { value: _vm.formWaiKan.class_between_content, callback: function($$v) { _vm.$set( _vm.formWaiKan, "class_between_content", $$v ) }, expression: "formWaiKan.class_between_content" } }, [_vm._v("相同")] ), _c( "el-radio", { attrs: { label: 1 }, model: { value: _vm.formWaiKan.class_between_content, callback: function($$v) { _vm.$set( _vm.formWaiKan, "class_between_content", $$v ) }, expression: "formWaiKan.class_between_content" } }, [_vm._v("不同")] ) ], 1 ) ], 1 ) ] ), _c( "el-form-item", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.product_type != 1 && _vm.formWaiKan.type == 2, expression: "formWaiKan.product_type != 1 && formWaiKan.type == 2" } ], attrs: { label: "外刊分级:" } }, [ _c( "div", { staticClass: "set-item-cont alone" }, [ _c( "el-radio-group", { model: { value: _vm.formWaiKan.level, callback: function($$v) { _vm.$set(_vm.formWaiKan, "level", $$v) }, expression: "formWaiKan.level" } }, [ _c("el-radio", { attrs: { label: 1 } }, [ _vm._v("尖子班(优秀生)") ]), _c("el-radio", { attrs: { label: 2 } }, [ _vm._v("培优班(中等生)") ]), _c("el-radio", { attrs: { label: 3 } }, [ _vm._v("提高班(学困生)") ]) ], 1 ) ], 1 ) ] ), _c( "el-form-item", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.product_type == 3, expression: "formWaiKan.product_type == 3" } ], attrs: { label: "热点选题:" } }, [ _c( "div", { staticClass: "set-item-cont choice-topic multiline", class: [_vm.hotspotShrink ? "shrink" : ""] }, [ _c( "el-radio-group", { model: { value: _vm.formWaiKan.hot_topic, callback: function($$v) { _vm.$set(_vm.formWaiKan, "hot_topic", $$v) }, expression: "formWaiKan.hot_topic" } }, _vm._l(_vm.waikanData.hotTopics, function(item, index) { return _c( "el-radio", { key: index, attrs: { label: item.lib_element_id } }, [_vm._v(_vm._s(item.rich_text))] ) }), 1 ), _c( "div", { staticClass: "open-btn", on: { click: function($event) { return _vm.open("hotspot") } } }, [ _vm.hotspotShrink ? _c("span", [_vm._v("展开")]) : _c("span", [_vm._v("收缩")]) ] ) ], 1 ) ] ), _c( "el-form-item", { directives: [ { name: "show", rawName: "v-show", value: _vm.formWaiKan.product_type == 2 || _vm.formWaiKan.product_type == 3, expression: "formWaiKan.product_type == 2 || formWaiKan.product_type == 3" } ], attrs: { label: "题目数量:" } }, [ _c( "div", { staticClass: "set-item-cont topic-number" }, [ _c("span", [_vm._v("外刊阅读")]), _c("el-input-number", { attrs: { size: "small", "controls-position": "right", min: _vm.minA, max: _vm.maxA }, on: { change: _vm.changeNumber }, model: { value: _vm.formWaiKan.topic_number[_vm.productType].reading, callback: function($$v) { _vm.$set( _vm.formWaiKan.topic_number[_vm.productType], "reading", $$v ) }, expression: "formWaiKan.topic_number[productType].reading" } }), _c("span", [_vm._v("外刊七选五")]), _c("el-input-number", { attrs: { size: "small", "controls-position": "right", min: _vm.minC, max: _vm.maxC }, on: { change: _vm.changeNumber }, model: { value: _vm.formWaiKan.topic_number[_vm.productType] .seven_selected_five, callback: function($$v) { _vm.$set( _vm.formWaiKan.topic_number[_vm.productType], "seven_selected_five", $$v ) }, expression: "formWaiKan.topic_number[productType].seven_selected_five" } }), _c("span", [_vm._v("外刊完形(新高考)")]), _c("el-input-number", { attrs: { size: "small", "controls-position": "right", min: _vm.minB, max: _vm.maxB }, on: { change: _vm.changeNumber }, model: { value: _vm.formWaiKan.topic_number[_vm.productType].gestalt, callback: function($$v) { _vm.$set( _vm.formWaiKan.topic_number[_vm.productType], "gestalt", $$v ) }, expression: "formWaiKan.topic_number[productType].gestalt" } }) ], 1 ) ] ), _c("el-form-item", { attrs: { label: "下载方式:" } }, [ _c( "div", { staticClass: "set-item-cont" }, [ _c( "el-radio-group", { model: { value: _vm.formWaiKan.isAnswerSeparate, callback: function($$v) { _vm.$set(_vm.formWaiKan, "isAnswerSeparate", $$v) }, expression: "formWaiKan.isAnswerSeparate" } }, [ _c("el-radio", { attrs: { label: 0 } }, [ _vm._v("合并题目和答案") ]), _c("el-radio", { attrs: { label: 1 } }, [ _vm._v("分离题目和答案") ]) ], 1 ) ], 1 ) ]), _c("el-form-item", { attrs: { label: "" } }, [ _c("div", { staticClass: "set-item-cont generate" }, [ _c( "div", { staticClass: "generate-btn btn", class: [ !_vm.formWaiKan.selectClassIds.length ? "disabled" : "" ], on: { click: function($event) { return _vm.generate() } } }, [_vm._v(" 开始生成 ")] ) ]) ]) ], 1 ) ], 1 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "./node_modules/core-js/modules/es.array.splice.js": /*!*********************************************************!*\ !*** ./node_modules/core-js/modules/es.array.splice.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); var toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ "./node_modules/core-js/internals/to-absolute-index.js"); var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js"); var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js"); var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js"); var arraySpeciesCreate = __webpack_require__(/*! ../internals/array-species-create */ "./node_modules/core-js/internals/array-species-create.js"); var createProperty = __webpack_require__(/*! ../internals/create-property */ "./node_modules/core-js/internals/create-property.js"); var arrayMethodHasSpeciesSupport = __webpack_require__(/*! ../internals/array-method-has-species-support */ "./node_modules/core-js/internals/array-method-has-species-support.js"); var arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ "./node_modules/core-js/internals/array-method-uses-to-length.js"); var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice'); var USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 }); var max = Math.max; var min = Math.min; var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded'; // `Array.prototype.splice` method // https://tc39.github.io/ecma262/#sec-array.prototype.splice // with adding support of @@species $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, { splice: function splice(start, deleteCount /* , ...items */) { var O = toObject(this); var len = toLength(O.length); var actualStart = toAbsoluteIndex(start, len); var argumentsLength = arguments.length; var insertCount, actualDeleteCount, A, k, from, to; if (argumentsLength === 0) { insertCount = actualDeleteCount = 0; } else if (argumentsLength === 1) { insertCount = 0; actualDeleteCount = len - actualStart; } else { insertCount = argumentsLength - 2; actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart); } if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) { throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED); } A = arraySpeciesCreate(O, actualDeleteCount); for (k = 0; k < actualDeleteCount; k++) { from = actualStart + k; if (from in O) createProperty(A, k, O[from]); } A.length = actualDeleteCount; if (insertCount < actualDeleteCount) { for (k = actualStart; k < len - actualDeleteCount; k++) { from = k + actualDeleteCount; to = k + insertCount; if (from in O) O[to] = O[from]; else delete O[to]; } for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1]; } else if (insertCount > actualDeleteCount) { for (k = len - actualDeleteCount; k > actualStart; k--) { from = k + actualDeleteCount - 1; to = k + insertCount - 1; if (from in O) O[to] = O[from]; else delete O[to]; } } for (k = 0; k < insertCount; k++) { O[k + actualStart] = arguments[k + 2]; } O.length = len - actualDeleteCount + insertCount; return A; } }); /***/ }), /***/ "./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/waikan-set/WaiKanSeparate.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/waikan-set/WaiKanSeparate.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, ".waikan-separate .page-title {\n display: flex;\n justify-content: space-between;\n}\n.waikan-separate .page-title .back-btn {\n width: 60px;\n height: 30px;\n line-height: 30px;\n}\n.waikan-separate .mode-select {\n line-height: 32px;\n margin-bottom: 14px;\n}\n.waikan-separate .mode-select .current-time {\n font-size: 16px;\n font-weight: bold;\n}\n.waikan-separate .mode-select .mode-btn {\n padding: 0 8px;\n}\n.waikan-separate .mode-select .mode-btn:nth-child(-n + 2) {\n margin-right: 18px;\n}\n.waikan-separate .tab-btn {\n height: 34px;\n text-align: center;\n line-height: 32px;\n color: #44be86;\n border: 1px solid #44be86;\n border-radius: 3px;\n cursor: pointer;\n float: left;\n}\n.waikan-separate .tab-btn:hover:not(.select) {\n color: #fff;\n background: #44be86;\n opacity: 0.6;\n}\n.waikan-separate .tab-btn.select {\n color: #fff;\n background: #44be86;\n}\n.waikan-separate .set-item-cont {\n width: 1100px;\n min-height: 38px;\n line-height: 38px;\n float: right;\n border: 1px solid #888;\n padding: 0 10px;\n}\n.waikan-separate .no-radio .el-radio__input {\n display: none;\n}\n.waikan-separate .no-radio .el-radio__label {\n padding-left: 0;\n}\n.waikan-separate .no-check .el-checkbox__input {\n display: none;\n}\n.waikan-separate .no-check .el-checkbox__label {\n padding-left: 0;\n}\n.waikan-separate .multiline {\n padding: 5px 10px;\n line-height: 28px;\n}\n.waikan-separate .multiline .el-radio-group {\n line-height: 28px;\n}\n.waikan-separate .class-item {\n min-height: 83px;\n}\n.waikan-separate .class-item .el-select {\n width: 80px;\n margin-top: 5px;\n}\n.waikan-separate .choice-topic {\n position: relative;\n}\n.waikan-separate .choice-topic .el-radio {\n margin-right: 16px;\n}\n.waikan-separate .choice-topic .el-radio__label {\n padding-left: 6px;\n}\n.waikan-separate .choice-topic .open-btn {\n color: #44be86;\n cursor: pointer;\n position: absolute;\n right: 5px;\n top: -2px;\n}\n.waikan-separate .choice-topic.shrink {\n height: 40px;\n overflow: hidden;\n}\n.waikan-separate .alone .el-radio {\n display: block;\n line-height: 34px;\n}\n.waikan-separate .alone .tips {\n margin-left: 20px;\n}\n.waikan-separate .class-content {\n display: inline-block;\n vertical-align: top;\n line-height: 34px;\n}\n.waikan-separate .class-content .txt {\n margin-right: 20px;\n}\n.waikan-separate .class-content .el-radio {\n display: inline-block;\n}\n.waikan-separate .product-tab {\n border: none;\n padding: 0;\n}\n.waikan-separate .product-tab .tab-btn {\n width: 100px;\n margin-right: 10px;\n}\n.waikan-separate .student-item {\n height: 134px;\n overflow: auto;\n}\n.waikan-separate .student-item .class-list {\n display: flex;\n margin-bottom: 10px;\n}\n.waikan-separate .student-item .class-list span {\n flex: none;\n margin-right: 5px;\n}\n.waikan-separate .student-item .class-list ul {\n min-height: 56px;\n}\n.waikan-separate .student-item .class-list ul li {\n float: left;\n margin-right: 26px;\n}\n.waikan-separate .student-item .class-list:last-child {\n margin-bottom: 0;\n}\n.waikan-separate .topic-number {\n display: flex;\n align-items: center;\n}\n.waikan-separate .topic-number > span {\n margin-right: 10px;\n}\n.waikan-separate .topic-number .el-input-number {\n width: 82px;\n margin-right: 15px;\n}\n.waikan-separate .generate {\n border: none;\n padding: 0;\n}\n.waikan-separate .generate .generate-btn {\n width: 100px;\n height: 38px;\n line-height: 38px;\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/waikan-set/WaiKanSeparate.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/waikan-set/WaiKanSeparate.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