(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{ /***/ "./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/train-topic-push/Index.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/train-topic-push/Index.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_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 core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.keys */ "./node_modules/core-js/modules/es.object.keys.js"); /* harmony import */ var core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string */ "./node_modules/core-js/modules/es.object.to-string.js"); /* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var core_js_modules_es_object_values__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.values */ "./node_modules/core-js/modules/es.object.values.js"); /* harmony import */ var core_js_modules_es_object_values__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_5__ = __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_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator */ "./node_modules/core-js/modules/web.dom-collections.iterator.js"); /* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_6__); // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ __webpack_exports__["default"] = ({ name: "TrainTopicPush", props: { titleNum: String, pushTopicType: { type: Boolean }, trainList: { type: Array, default: function _default() { return []; } }, trainTopicMap: { type: Object, default: function _default() { return {}; } }, noLevel: { type: Number, default: 1 } }, data: function data() { return { subjectId: sessionStorage.getItem("subject_id"), edition: sessionStorage.getItem("edition"), productType: this.$route.query.product_type, targetType: this.$route.query.target_type, difficulty: [{ value: 0, label: "与错题难度相同" }, { value: 1, label: "降低一级难度" }, { value: 3, label: "增加一级难度" }], nums: [], keys: [], knowledgeNum: [{ value: 1, label: "1个" }, { value: 2, label: "2个" }, { value: 3, label: "3个" }, { value: 4, label: "4个" }], consolidateNum: [{ value: 1, label: "1个" }, { value: 2, label: "2个" }, { value: 3, label: "3个" }, { value: 4, label: "4个" }, { value: 5, label: "5个" }], knowledgeTopicNum: [{ value: 1, label: "1道" }, { value: 2, label: "2道" }, { value: 3, label: "3道" }], topicGroupMod: false }; }, computed: { numOptions: function numOptions() { var arr1 = [{ value: 1, label: "1配1" }, { value: 2, label: "1配2" }, { value: 3, label: "1配3" }]; var arr2 = [{ value: 1, label: "1配1" }, { value: 2, label: "1配2" }]; var arr3 = [{ value: 0, label: "不推" }, { value: 1, label: "1配1" }, { value: 2, label: "1配2" }, { value: 3, label: "1配3" }]; // if (Object.keys(this.trainTopicMap).length == 2) { if (this.subjectId == 12) { return arr2; } else if (this.subjectId == 3 && this.productType === "3") { return arr3; } else { return arr1; } } }, watch: { pushTopicType: function pushTopicType(val) { this.topicGroupMod = val; this.showPushDifficulty(this.trainList); }, trainList: { deep: true, handler: function handler(list) { if (list.length) { this.showPushDifficulty(list); } } } }, created: function created() {}, methods: { showPushDifficulty: function showPushDifficulty(data) { var _this = this; data.forEach(function (item, index) { if (_this.topicGroupMod) { var keyName = Object.keys(item.topicGroupPushTopic.pushDifficulty)[0]; _this.$set(_this.keys, index, keyName); } else { var maxNum = Math.max.apply(null, Object.values(item.pushNumber)); var _keyName = Object.keys(item.pushDifficulty)[0]; _this.$set(_this.nums, index, maxNum); _this.$set(_this.keys, index, _keyName); } }); }, sendSwitch: function sendSwitch(val) { this.$emit("trainPushSwitch", val); }, sendChange: function sendChange(val, type, rowIndex, dIndex) { this.$emit("trainChange", val, type, rowIndex, dIndex, this.keys[rowIndex]); } } }); /***/ }), /***/ "./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/train-topic-push/Index.vue?vue&type=template&id=c0a77cb8&scoped=true&": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/train-topic-push/Index.vue?vue&type=template&id=c0a77cb8&scoped=true& ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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: "step" }, [ _c("ModuleTitle", { staticStyle: { float: "left" }, attrs: { titleNum: _vm.titleNum, titleText: "训练题推送规则" } }), _vm.subjectId == "3" && _vm.edition == "4" && _vm.productType == 3 ? _c("span", { staticClass: "tips" }, [ _vm._v("**基础宝不推送变式题,推送基础知识和训练题") ]) : _vm._e(), _vm.subjectId === "12" && _vm.productType !== 1 && _vm.targetType == 1 ? _c( "div", { staticClass: "topic-group-switch" }, [ _c("el-switch", { attrs: { "active-color": "#16ae68", "inactive-color": "#ddd" }, on: { change: _vm.sendSwitch }, model: { value: _vm.topicGroupMod, callback: function($$v) { _vm.topicGroupMod = $$v }, expression: "topicGroupMod" } }), _c("span", [_vm._v("题组推题")]) ], 1 ) : _vm._e(), _c( "el-table", { staticStyle: { width: "100%" }, attrs: { border: "", data: _vm.trainList, "header-cell-style": { background: "#f2f2f2", color: "#606266" } } }, [ _vm.noLevel ? _c("el-table-column", { attrs: { prop: "level", label: "学生层次", width: "150" } }) : _vm._e(), (_vm.edition === "4" || _vm.subjectId === "12") && _vm.productType == 3 ? _c("el-table-column", { attrs: { prop: "versionType", label: "产品", width: "150" }, scopedSlots: _vm._u( [ { key: "default", fn: function(scope) { return [ _vm._v( " " + _vm._s( scope.row.versionType == 1 ? "学习宝" : scope.row.versionType == 2 ? "基础宝" : "能力宝" ) + " " ) ] } } ], null, false, 1159942169 ) }) : _vm._e(), _c("el-table-column", { attrs: { label: "推送数量" }, scopedSlots: _vm._u([ { key: "default", fn: function(scope) { return [ scope.row.versionType !== 2 ? _c( "div", { staticClass: "push-rules" }, [ _vm._l(_vm.trainTopicMap, function(item, value) { return _c( "div", { directives: [ { name: "show", rawName: "v-show", value: !_vm.topicGroupMod, expression: "!topicGroupMod" } ], key: value, staticClass: "push-select" }, [ _c("span", [_vm._v(_vm._s(item))]), _c("SelectOption", { attrs: { value: scope.row.pushNumber[value], options: _vm.numOptions, index: scope.$index, selectType: value }, on: { change: _vm.sendChange } }) ], 1 ) }), _vm.subjectId === "12" && _vm.topicGroupMod ? _c( "div", { staticClass: "push-select" }, [ _c("span", [_vm._v("题组")]), _c("SelectOption", { attrs: { value: scope.row.topicGroupPushTopic .topicGroup, options: _vm.numOptions, index: scope.$index, selectType: "topicGroup" }, on: { change: _vm.sendChange } }) ], 1 ) : _vm._e() ], 2 ) : _c("div", { staticClass: "push-rules" }, [ _c( "div", { staticClass: "push-select" }, [ _c("span", [_vm._v("基础知识")]), _c("SelectOption", { attrs: { value: scope.row.basics.knowledge, options: _vm.knowledgeNum, index: scope.$index, selectType: "knowledge" }, on: { change: _vm.sendChange } }) ], 1 ), _vm.subjectId === "3" ? _c( "div", { staticClass: "push-select" }, [ _c("span", [_vm._v("基础巩固训练")]), _c("SelectOption", { attrs: { value: scope.row.basics.consolidate, options: _vm.consolidateNum, index: scope.$index, selectType: "consolidate" }, on: { change: _vm.sendChange } }) ], 1 ) : _c( "div", { staticClass: "push-select" }, [ _c("span", [_vm._v("基础知识推题")]), _c("SelectOption", { attrs: { value: scope.row.basics.knowledgePushTopic, options: _vm.knowledgeTopicNum, index: scope.$index, selectType: "knowledgePushTopic" }, on: { change: _vm.sendChange } }) ], 1 ) ]) ] } } ]) }), _c("el-table-column", { attrs: { label: "推送难度" }, scopedSlots: _vm._u( [ { key: "default", fn: function(scope) { return scope.row.versionType !== 2 ? [ _c( "div", { staticClass: "push-rules push-difficulty" }, [ !_vm.topicGroupMod ? _vm._l(_vm.nums[scope.$index], function( item, index ) { return _c( "div", { key: index, staticClass: "push-select" }, [ _c("span", [ _vm._v("第" + _vm._s(item) + "题") ]), _c("SelectOption", { attrs: { value: scope.row.pushDifficulty[ _vm.keys[scope.$index] ][item - 1], options: _vm.difficulty, index: scope.$index, itemIndex: index, selectType: "difficulty" }, on: { change: _vm.sendChange } }) ], 1 ) }) : _vm._e(), _vm.subjectId === "12" && _vm.topicGroupMod ? _vm._l( scope.row.topicGroupPushTopic.topicGroup, function(item, index) { return _c( "div", { key: item, staticClass: "push-select" }, [ _c("span", [ _vm._v("第" + _vm._s(item) + "题") ]), _c("SelectOption", { attrs: { value: scope.row.topicGroupPushTopic .pushDifficulty[ _vm.keys[scope.$index] ][item - 1], options: _vm.difficulty, index: scope.$index, itemIndex: index, selectType: "topicGroupDifficulty" }, on: { change: _vm.sendChange } }) ], 1 ) } ) : _vm._e() ], 2 ) ] : undefined } } ], null, true ) }) ], 1 ) ], 1 ) } var staticRenderFns = [] 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/product-set/components/train-topic-push/Index.vue?vue&type=style&index=0&id=c0a77cb8&lang=less&scoped=true&": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/product-set/components/train-topic-push/Index.vue?vue&type=style&index=0&id=c0a77cb8&lang=less&scoped=true& ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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, ".tips[data-v-c0a77cb8] {\n color: #16ae68;\n line-height: 28px;\n margin-left: 20px;\n}\n.topic-group-switch[data-v-c0a77cb8] {\n float: left;\n line-height: 30px;\n margin-left: 20px;\n}\n.topic-group-switch span[data-v-c0a77cb8] {\n margin-left: 10px;\n}\n.push-rules[data-v-c0a77cb8] {\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n}\n.push-rules .push-select span[data-v-c0a77cb8] {\n padding-right: 5px;\n}\n.push-rules .push-select .el-select[data-v-c0a77cb8] {\n width: 75px;\n margin-right: 15px;\n}\n.push-difficulty .push-select .el-select[data-v-c0a77cb8] {\n width: 135px;\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/product-set/components/train-topic-push/Index.vue?vue&type=style&index=0&id=c0a77cb8&lang=less&scoped=true&": /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/product-set/components/train-topic-push/Index.vue?vue&type=style&index=0&id=c0a77cb8&lang=less&scoped=true& ***! \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a