(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[9],{
/***/ "./node_modules/@babel/runtime/helpers/typeof.js":
/*!*******************************************************!*\
!*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! core-js/modules/es.symbol */ "./node_modules/core-js/modules/es.symbol.js");
__webpack_require__(/*! core-js/modules/es.symbol.description */ "./node_modules/core-js/modules/es.symbol.description.js");
__webpack_require__(/*! core-js/modules/es.symbol.iterator */ "./node_modules/core-js/modules/es.symbol.iterator.js");
__webpack_require__(/*! core-js/modules/es.object.to-string */ "./node_modules/core-js/modules/es.object.to-string.js");
__webpack_require__(/*! core-js/modules/es.string.iterator */ "./node_modules/core-js/modules/es.string.iterator.js");
__webpack_require__(/*! core-js/modules/web.dom-collections.iterator */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
module.exports = _typeof = function _typeof(obj) {
return typeof obj;
};
} else {
module.exports = _typeof = function _typeof(obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
module.exports = _typeof;
/***/ }),
/***/ "./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/components/editor/UeCard.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/components/editor/UeCard.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_array_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.includes */ "./node_modules/core-js/modules/es.array.includes.js");
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.index-of */ "./node_modules/core-js/modules/es.array.index-of.js");
/* harmony import */ var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_3__ = __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_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_regexp_constructor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.regexp.constructor */ "./node_modules/core-js/modules/es.regexp.constructor.js");
/* harmony import */ var core_js_modules_es_regexp_constructor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_constructor__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.regexp.exec */ "./node_modules/core-js/modules/es.regexp.exec.js");
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string */ "./node_modules/core-js/modules/es.regexp.to-string.js");
/* harmony import */ var core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.includes */ "./node_modules/core-js/modules/es.string.includes.js");
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.string.replace */ "./node_modules/core-js/modules/es.string.replace.js");
/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_string_search__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.string.search */ "./node_modules/core-js/modules/es.string.search.js");
/* harmony import */ var core_js_modules_es_string_search__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_search__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_10__ = __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_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var _public_ueditor_ueditor_config_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../public/ueditor/ueditor.config.js */ "./public/ueditor/ueditor.config.js");
/* harmony import */ var _public_ueditor_ueditor_config_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_public_ueditor_ueditor_config_js__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var _public_ueditor_ueditor_all_card_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../public/ueditor/ueditor.all.card.js */ "./public/ueditor/ueditor.all.card.js");
/* harmony import */ var _public_ueditor_ueditor_all_card_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_public_ueditor_ueditor_all_card_js__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var _public_ueditor_lang_zh_cn_zh_cn_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../public/ueditor/lang/zh-cn/zh-cn.js */ "./public/ueditor/lang/zh-cn/zh-cn.js");
/* harmony import */ var _public_ueditor_lang_zh_cn_zh_cn_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_public_ueditor_lang_zh_cn_zh_cn_js__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var _public_ueditor_kityformula_plugin_addKityFormulaDialog_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../public/ueditor/kityformula-plugin/addKityFormulaDialog.js */ "./public/ueditor/kityformula-plugin/addKityFormulaDialog.js");
/* harmony import */ var _public_ueditor_kityformula_plugin_addKityFormulaDialog_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_public_ueditor_kityformula_plugin_addKityFormulaDialog_js__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var _public_ueditor_kityformula_plugin_getKfContent_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../public/ueditor/kityformula-plugin/getKfContent.js */ "./public/ueditor/kityformula-plugin/getKfContent.js");
/* harmony import */ var _public_ueditor_kityformula_plugin_getKfContent_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_public_ueditor_kityformula_plugin_getKfContent_js__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var _public_ueditor_kityformula_plugin_defaultFilterFix_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../public/ueditor/kityformula-plugin/defaultFilterFix.js */ "./public/ueditor/kityformula-plugin/defaultFilterFix.js");
/* harmony import */ var _public_ueditor_kityformula_plugin_defaultFilterFix_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_public_ueditor_kityformula_plugin_defaultFilterFix_js__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _public_ueditor_kityformula_plugin_editKityFormulaDialog_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../public/ueditor/kityformula-plugin/editKityFormulaDialog.js */ "./public/ueditor/kityformula-plugin/editKityFormulaDialog.js");
/* harmony import */ var _public_ueditor_horizontal_line_addHorizontalLineDialog_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../public/ueditor/horizontal-line/addHorizontalLineDialog.js */ "./public/ueditor/horizontal-line/addHorizontalLineDialog.js");
/* harmony import */ var _public_ueditor_horizontal_line_addHorizontalLineDialog_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_public_ueditor_horizontal_line_addHorizontalLineDialog_js__WEBPACK_IMPORTED_MODULE_19__);
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _store_constant__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/store/constant */ "./src/store/constant.js");
//
//
//
//
//
//
//
/* eslint-disable */
//编辑公式
//插入横线
// toMathType公式
// import '../../../public/ueditor/toMathType/addtoMathTypeFormulaDialog.js'
// import {editToMathType} from "../../../public/ueditor/toMathType/edittoMathTypeFormulaDialog.js";
/* harmony default export */ __webpack_exports__["default"] = ({
name: "Ue",
props: {
isSave: Boolean,
value: {
type: String,
default: ''
},
height: Number,
showTitle: Boolean
},
data: function data() {
return {
ue: null,
randomId: 'editor_' + Math.random() * 100000000000000000,
scriptTagStatus: 2,
UEditorConfig: {
toolbars: [['formatmatch', 'undo', 'redo', 'fontsize', 'bold', 'italic', 'underline', 'subscript', 'superscript', 'removeformat', 'lineheight', 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', 'simpleupload', 'horizontal', 'spechars', 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'kityformula', 'chineselattice', 'horizontalline']],
enableAutoSave: false,
enableContextMenu: false,
imagePopup: false,
initialFrameHeight: 20,
UEDITOR_HOME_URL: 'ueditor/'
},
imgDrag: {
isDrag: false,
diffX: 0,
diffY: 0,
offsetWidth: 0,
offsetHeight: 0
},
text: ''
};
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_20__["mapGetters"])('answerSheet', ['topicBlur'])),
watch: {
isSave: function isSave(val) {
if (val) {
this.$emit('input', this.getUEContent());
}
},
value: function value(val) {
if (val !== this.text) {
this.setText(val);
}
},
height: function height(val) {
this.ue.setHeight(val);
},
showTitle: function showTitle(val) {
val ? this.showUeTitle() : this.hideUeTitle();
}
},
mounted: function mounted() {
this.initEditor();
},
beforeDestroy: function beforeDestroy() {
// 组件销毁的时候,要销毁 UEditor 实例
if (this.ue !== null && this.ue.textarea && this.ue.destroy) {
this.ue.destroy();
}
},
methods: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_20__["mapMutations"])('answerSheet', {
setTopicBlur: _store_constant__WEBPACK_IMPORTED_MODULE_21__["SET_TOPIC_BLUR"]
})), {}, {
initEditor: function initEditor() {
var _this2 = this;
var _this = this; // this.ue = UE.getEditor('editor');
// scriptTagStatus 为 2 的时候,说明两个必需引入的 js 文件都已经被引入,且加载完成
if (this.scriptTagStatus === 2 && this.ue === null) {
// Vue 异步执行 DOM 更新,这样一来代码执行到这里的时候可能 template 里面的 script 标签还没真正创建
// 所以,我们只能在 nextTick 里面初始化 UEditor
this.$nextTick(function () {
_this2.ue = window.UE.getEditor(_this2.randomId, _this2.UEditorConfig); // this.ue.ready(function(){
// this.ue.execCommand('fontfamily','微软雅黑'); //字体
// this.ue.execCommand('lineheight', 2); //行间距
// this.ue.execCommand('fontsize', '14px'); //字号
// });
// console.log(666);
// 绑定事件,当 UEditor 初始化完成后,将编辑器实例通过自定义的 ready 事件交出去
_this2.ue.addListener('ready', function () {
if (_this2.value != '') {
_this2.setText(_this2.value);
}
_this2.ue.setHeight(_this2.height);
_this2.pasteEvent(_this2.ue);
_this2.addImgDragMousedown();
_this2.addImgDragMousemove();
_this2.addImgDragMouseup();
_this2.$nextTick(function () {
_this2.$emit('ready', _this2.ue);
});
_this2.ue.body.addEventListener('click', function (event) {
var target = event.target || event.srcElement;
var k = target.getAttribute('data-latex');
if (target.className.indexOf('mathType') !== -1) {
var text = target.src.substring(target.src.indexOf("?") + 1);
Object(_public_ueditor_kityformula_plugin_editKityFormulaDialog_js__WEBPACK_IMPORTED_MODULE_18__["editKityFormula"])(_this.ue, 'chineselattice', text);
}
if (k == null) {
return false;
}
if (k.length > 0) {
Object(_public_ueditor_kityformula_plugin_editKityFormulaDialog_js__WEBPACK_IMPORTED_MODULE_18__["editKityFormula"])(_this.ue, 'chineselattice', k);
}
});
if (!_this2.topicBlur) {
document.body.addEventListener('click', function (e) {
if (!e.target.className.includes('edui-default')) {
_this2.hideUeTitle();
}
});
_this2.setTopicBlur(true);
}
_this2.ue.addListener('contentChange', function () {
_this.text = _this.getUEContent();
_this.$emit('input', _this.getUEContent()); // _this.$emit('ueBlur', true);
});
_this2.ue.addListener('blur', function () {
_this.text = _this.getUEContent();
_this.$emit('input', _this.getUEContent());
_this.$emit('ueBlur', true);
});
_this2.ue.addListener('focus', function () {
_this2.hideUeTitle();
_this2.showUeTitle();
});
});
});
}
},
getUEContent: function getUEContent() {
// 获取内容方法
return this.ue.getContent();
},
setText: function setText(con) {
// this.ue = UE.getEditor(this.randomId, this.UEditorConfig);
this.ue.setContent(con);
},
pasteEvent: function pasteEvent(editorInstance) {
var _this = this;
var tagNameArr = ['nobr']; //特殊标签集合
var arr = ['zhixinhuixue.com', 'zhixinhuixue.cn', 'zhixinhuixue.net', 'xueping.com', 'xueping365.com'];
editorInstance.addListener('beforepaste', function (e, html, o) {
if (html.html == "") {
html.html = "";
return;
}
for (var i = 0; i < tagNameArr.length; i++) {
var tagNameReg = new RegExp("<" + tagNameArr[i] + "[^>]+>", "gi");
if (html.html.indexOf(tagNameArr[i]) != -1) {
html.html = html.html.replace(tagNameReg, "");
}
}
if (html.html.indexOf("img") != -1) {
var src = [];
var isEmpty = true;
var t = JSON.stringify(html.html);
if (html.html.search('xueping365') > -1) {
var h = t.replace(/xueping365.com/g, "zhixinhuixue.net");
html.html = decodeURIComponent(JSON.parse(h));
}
html.html.replace(//gi, function (match, capture) {
src.push(capture);
for (var _i = 0; _i < arr.length; _i++) {
if (capture.indexOf(arr[_i]) != -1) {
isEmpty = false;
}
}
}); // 粘贴图片
var isPasteImg = html.html.search('loadingclass');
if (isPasteImg > -1) {
isEmpty = false;
}
if (isEmpty) {
html.html = '';
_this.$message({
type: 'info',
message: '禁止复制包含外部地址图片(或插入空小图标)的内容 如需上传图片请通过编辑器(或插入空)上传'
});
}
}
});
},
// pasteEvent(ue){
// ue.addListener('beforepaste',function (e,html,o) {
// let t = JSON.stringify(html.html);
// let h = t.replace(/xueping365.com/g, "zhixinhuixue.net");
// html.html= JSON.parse(h);
// })
//
// },
addImgDragMousedown: function addImgDragMousedown() {
var _this = this;
this.ue.body.addEventListener('mousedown', function (event) {
var target = event.target || event.srcElement;
if (target.tagName === 'IMG' && target.className.indexOf('mathType') === -1) {
event.stopPropagation();
event.preventDefault();
_this.imgDrag.offsetWidth = target.offsetWidth;
_this.imgDrag.offsetHeight = target.offsetHeight;
_this.imgDrag.diffX = event.clientX - target.offsetLeft;
_this.imgDrag.diffY = event.clientY - target.offsetTop;
_this.imgDrag.isDrag = true;
} else {
_this.ue.focus(true);
}
});
},
addImgDragMousemove: function addImgDragMousemove() {
var _this = this;
this.ue.body.addEventListener('mousemove', function (event) {
var target = event.target || event.srcElement;
if (target.tagName === 'IMG' && _this.imgDrag.isDrag) {
event.stopPropagation();
event.preventDefault();
var moveX = event.clientX - _this.imgDrag.diffX;
var moveY = event.clientY - _this.imgDrag.diffY;
if (moveX < 0) {
moveX = 0;
} else if (moveX > _this.ue.window.innerWidth - _this.imgDrag.offsetWidth) {
moveX = _this.ue.window.innerWidth - _this.imgDrag.offsetWidth;
}
if (moveY < 0) {
moveY = 0;
} else if (moveY > _this.ue.window.innerHeight - _this.imgDrag.offsetHeight) {
moveY = _this.ue.window.innerHeight - _this.imgDrag.offsetHeight;
}
target.style.position = 'absolute';
target.style.left = moveX + 'px';
target.style.top = moveY + 'px';
}
});
},
addImgDragMouseup: function addImgDragMouseup() {
var _this = this;
this.ue.body.addEventListener('mouseup', function (event) {
// event.stopPropagation();
// event.preventDefault();
// let target = event.target || event.srcElement;
_this.imgDrag.isDrag = false; // _this.ue.blur()
// _this.ue.focus(true);
});
},
showUeTitle: function showUeTitle() {
this.$refs.ueCard.getElementsByClassName('edui-editor-toolbarbox')[0].style.display = 'block';
},
hideUeTitle: function hideUeTitle() {
// this.text = this.getUEContent();
// this.$emit('input', this.getUEContent());
// this.$emit('ueBlur', true);
var el = document.querySelectorAll('.edui-editor-toolbarbox');
el.forEach(function (val) {
return val.style.display = 'none';
});
}
})
});
/***/ }),
/***/ "./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/answer-sheet/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/answer-sheet/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_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat */ "./node_modules/core-js/modules/es.array.concat.js");
/* harmony import */ var core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.filter */ "./node_modules/core-js/modules/es.array.filter.js");
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.find-index */ "./node_modules/core-js/modules/es.array.find-index.js");
/* harmony import */ var core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_3__ = __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_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.includes */ "./node_modules/core-js/modules/es.array.includes.js");
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.map */ "./node_modules/core-js/modules/es.array.map.js");
/* harmony import */ var core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_6__ = __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_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_7__ = __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_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_8__ = __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_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_set__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.set */ "./node_modules/core-js/modules/es.set.js");
/* harmony import */ var core_js_modules_es_set__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_set__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.string.iterator */ "./node_modules/core-js/modules/es.string.iterator.js");
/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_11__ = __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_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_12__ = __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_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var _mixins_answersheet_setPage__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/mixins/answersheet/setPage */ "./src/mixins/answersheet/setPage.js");
/* harmony import */ var _setting_Index_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./setting/Index.vue */ "./src/views/answer-sheet/setting/Index.vue");
/* harmony import */ var _paper_Index_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./paper/Index.vue */ "./src/views/answer-sheet/paper/Index.vue");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _lib_util_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @/lib/util.js */ "./src/lib/util.js");
/* harmony import */ var _api_answer_sheet__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @/api/answer-sheet */ "./src/api/answer-sheet.js");
/* harmony import */ var _views_answer_sheet_topic_AddTopic__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/views/answer-sheet/topic/AddTopic */ "./src/views/answer-sheet/topic/AddTopic.vue");
/* harmony import */ var _store_constant__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @/store/constant */ "./src/store/constant.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* eslint-disable no-console */
/* harmony default export */ __webpack_exports__["default"] = ({
name: "AnswerSheet",
components: {
Setting: _setting_Index_vue__WEBPACK_IMPORTED_MODULE_16__["default"],
Paper: _paper_Index_vue__WEBPACK_IMPORTED_MODULE_17__["default"],
AddTopic: _views_answer_sheet_topic_AddTopic__WEBPACK_IMPORTED_MODULE_21__["default"]
},
mixins: [_mixins_answersheet_setPage__WEBPACK_IMPORTED_MODULE_15__["default"]],
data: function data() {
return {
cardType: 0,
//答题卡类型 0第三方,1知心慧学
dialogVisibleIsAddTopic: false,
//第三方添加、编辑试题弹层
grade: 1,
TopicsData: {
card_status: 0,
//准考证号类型,0系统考号、1学校考号
printClassStatus: 0 //是否已经有打印的班级
},
isEdit: false,
//是否编辑所触发弹层
editNo: '',
//题号
paperData: [],
//试题数据
cardSettings: {
paperSize: 5,
//1:A3 2:A4 3:16K 4:8K(260*370) 5:8K(270*390)
direction: 1,
//1横版 2竖版
column: 2,
//1一栏 2两栏 3三栏
hasBindingLine: 0,
//装订线 0无 1有
hasPaperMsg: true,
//信息栏
examinationNumberType: [1, 2],
//1填涂考号 2条形码
useQrCode: false,
//使用二维码
title: "",
//考试名称
examInfoConfig: [{
id: 0,
name: '时间',
isShow: true,
text: '100',
units: '分钟'
}, {
id: 1,
name: '满分',
isShow: true,
text: '',
units: '分'
}, {
id: 2,
name: '命卷人',
isShow: true,
text: '',
units: ''
}, {
id: 3,
name: '审核人',
isShow: true,
text: '',
units: ''
}],
//信息栏配置
cardStatus: 0,
//准考证号类型,0系统考号、1学校考号
cardLength: 9,
//考号长度
examStatus: 0,
//考试状态 0未上传、1已上传
grade: 1,
examGroupId: 0 //考试id
},
editType: 0,
//答题卡编辑状态,0新建答题卡,1编辑已保存答题卡
scoreLimitMapArr: [15, 16, 29, 49]
};
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_14__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_14__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_18__["mapGetters"])('answerSheet', ['cardSetting', 'bigTopicArr', 'paperListData', 'topicTypes', 'bigTopicPageArr', 'initPageFlag', 'paperSource', 'isPreviewBack', 'testFormData'])), {}, {
answerSheetHeight: function answerSheetHeight() {
return window.innerHeight;
}
}),
mounted: function mounted() {
this.getDefaultData();
},
methods: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_14__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_14__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_18__["mapMutations"])('answerSheet', {
setCardSetting: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_CARD_SETTING"],
setBigTopicArr: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_BIG_TOPIC_ARR"],
setPaperListData: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_PAPER_LIST_DATA"],
setBigTopicPageArr: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_PAGETOPIC_ARR"],
setAnswerCardType: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_ANSWER_CARD_TYPE"],
setPaperSource: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_PAPER_SOURCE"],
setInitPageFlag: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_INITPAGE_FLAG"],
setTestFormData: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_TEST_FORM_DATA"],
setSubject: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_SUBJECT"],
setIsPreviewBack: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_IS_PREVIEW_BACK"],
setIsAnswerCardTypeChange: _store_constant__WEBPACK_IMPORTED_MODULE_22__["SET_IS_ANSWER_CARD_TYPE_CHANGE"]
})), {}, {
getDefaultData: function getDefaultData() {
var _this2 = this;
//如果是从预览页面返回的
if (this.isPreviewBack) {
this.setIsPreviewBack(false);
return false;
}
this.cardSettings = this.cardSetting;
this.cardSettings.examGroupId = this.$route.query.exam_group_id;
this.cardType = Number(this.$route.query.card_type);
this.editType = this.$route.query.editType; //只有第三方有
if (this.cardType === undefined) {
this.$message.error('无法获取答题卡类型!');
return false;
}
if (this.cardSettings.examGroupId === undefined) {
this.$message.error('无法获取考试id!');
return false;
}
this.setPaperSource(this.cardType); //知心慧学数学
if (this.cardType === 1) {
var uploadForm = new FormData();
uploadForm.append('examGroupId', this.cardSettings.examGroupId);
Object(_api_answer_sheet__WEBPACK_IMPORTED_MODULE_20__["getPaperWithTopicsDetails"])(uploadForm).then(function (res) {
// paperTplType 1题库合一 2题卡分离
// this.setAnswerCardType(res.paperTplType == 1 ? 1 : 0)
_this2.TopicsData = JSON.parse(JSON.stringify(res));
var position = '';
if (res.position) {
position = JSON.parse(res.position);
} //是否是编辑答题卡
var isEdit = false;
if (position.bigTopicArr) {
isEdit = true;
var paperTplType = position.answerCardType == 1 ? 1 : 2;
if (res.paperTplType != paperTplType) {
// isEdit = true
_this2.setIsAnswerCardTypeChange(true);
}
}
if (isEdit) {
//编辑已保存的知心慧学答题卡
var _paperTplType = position.answerCardType == 1 ? 1 : 2;
_this2.setAnswerCardType(_paperTplType);
_this2.setEditZXHX(res, position);
} else {
//新建知心慧学答题卡
_this2.setAnswerCardType(res.paperTplType == 1 ? 1 : 0);
_this2.setNewZXHX(res);
}
}).catch(function (err) {
console.log(err);
});
} else {
//第三方答题卡获取默认数据
var upDataThreeCard = localStorage.getItem('upDataThreeCard');
if (upDataThreeCard != undefined) {
if (upDataThreeCard == null) return false; // let resData = JSON.parse(res.data.replace(/"/g,'"'));
var resData = JSON.parse(upDataThreeCard); // this.testFormData = resData.testFormData;
this.setTestFormData(resData.testFormData); //缓存第三方考试信息,保存答题卡时,一起保存。
this.editType = resData.testFormData.editType;
if (this.editType === undefined) {
this.editType = 0;
}
this.grade = resData.testFormData.grade;
this.setSubject(Number(resData.testFormData.subjectId));
if (this.editType === 1) {
//编辑第三方答题卡
this.setEditThree(resData);
} else {
//新建第三方答题卡
this.setNewThree(resData);
}
} // let examGroupIdForm = new FormData();
// examGroupIdForm.append('examGroupId', this.cardSettings.examGroupId)
// //编辑第三方答题卡时从接口获取上次保存的数据
// getTemporaryByExamGroupId(examGroupIdForm).then(res =>{
// // console.log(getCardStatusByGrade,res)
// if(res.status==1){
// if(res.data ==false) return false
// // let resData = JSON.parse(res.data.replace(/"/g,'"'));
// let resData = JSON.parse(res.data);
//
//
// // this.testFormData = resData.testFormData;
// this.setTestFormData(resData.testFormData);//缓存第三方考试信息,保存答题卡时,一起保存。
//
// this.editType = resData.testFormData.editType;
// if(this.editType === undefined){
// this.editType = 0
// }
// this.grade = resData.testFormData.grade;
// this.setSubject(Number(resData.testFormData.subjectId));
//
// if(this.editType===1){
// //编辑第三方答题卡
// this.setEditThree(resData);
//
// }else {
// //新建第三方答题卡
// this.setNewThree(res,resData)
// }
//
// }
//
// })
} //
},
classificationTree: function classificationTree(data) {
var _this3 = this;
//试题分类
var newData = [];
var bigTopicArrLength = 0;
data.forEach(function (item) {
var indexFound = newData.findIndex(function (newItem) {
return newItem.questionTypeId === item.questionTypeId;
});
if (indexFound > -1) {
newData[indexFound].questions.push(item);
} else {
var modelId = 'modelId' + ++bigTopicArrLength;
var bigTopic = {
modelId: modelId,
bigTitle: Object(_lib_util_js__WEBPACK_IMPORTED_MODULE_19__["SectionToChinese"])(bigTopicArrLength) + '、' + _this3.getTopicTypeText(item.questionTypeId),
subtitle: '',
questionTypeId: item.questionTypeId,
topicConfigureData: {},
questions: [item]
};
newData.push(bigTopic);
}
});
newData.forEach(function (val) {
val.subtitle = _this3.setSubTitle(val);
});
return newData;
},
setSubTitle: function setSubTitle(val) {
var topicSubTitleText = '';
if (this.paperSource == 1 && !val.isQuestionText) {
// let question = val.questions[0]?val.questions[0]:val.QuestionTextList[0]
var question = val.questions[0];
var tempScoreArr = val.questions.map(function (item) {
return item.fullScore;
});
var sameScoreFlag = Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_13__["default"])(new Set(tempScoreArr)).length > 1 ? false : true;
var str = '';
if (!sameScoreFlag) {
val.questions.forEach(function (item) {
str += "\u7B2C".concat(item.questionNum, "\u9898").concat(item.fullScore, "\u5206\uFF0C");
});
}
if (val.questionTypeId == 1) {
topicSubTitleText = "\uFF08\u672C\u5927\u9898\u5171".concat(question.total, "\u5C0F\u9898\uFF0C").concat(sameScoreFlag ? '每小题' + question.fullScore + '分,' : str, "\u5171").concat(question.questionTypeFullScore, "\u5206\u3002\u5728\u6BCF\u5C0F\u9898\u7ED9\u51FA\u7684").concat(question.optionCount, "\u4E2A\u9009\u9879\u4E2D\uFF0C\u53EA\u6709\u4E00\u9879\u662F\u7B26\u5408\u9898\u76EE\u8981\u6C42\u7684\u3002\u628A\u7B54\u6848\u586B\u6D82\u5728\u7B54\u9898\u5361\u4E0A\u3002\uFF09");
} else if ([2, 11].includes(val.questionTypeId)) {
topicSubTitleText = "\uFF08\u672C\u5927\u9898\u5171".concat(question.total, "\u5C0F\u9898\uFF0C").concat(sameScoreFlag ? '每小题' + question.fullScore + '分,' : str, "\u5171").concat(question.questionTypeFullScore, "\u5206\u3002\u5728\u6BCF\u5C0F\u9898\u7ED9\u51FA\u7684").concat(question.optionCount, "\u4E2A\u9009\u9879\u4E2D\uFF0C\u6709\u4E24\u9879\u53CA\u4EE5\u4E0A\u662F\u7B26\u5408\u9898\u76EE\u8981\u6C42\u7684\u3002\u628A\u7B54\u6848\u586B\u6D82\u5728\u7B54\u9898\u5361\u4E0A\u3002\uFF09");
} else if ([5].includes(val.questionTypeId)) {
topicSubTitleText = "\uFF08\u672C\u5927\u9898\u5171".concat(question.total, "\u5C0F\u9898\uFF0C").concat(sameScoreFlag ? '每小题' + question.fullScore + '分,' : str, "\u5171").concat(question.questionTypeFullScore, "\u5206\u3002\u628A\u7B54\u6848\u586B\u5199\u5728\u7B54\u9898\u5361\u76F8\u5E94\u7684\u9898\u53F7\u540E\u7684\u6A2A\u7EBF\u4E0A\u3002\uFF09");
} else if ([7].includes(val.questionTypeId) || [27].includes(val.questionTypeId)) {
topicSubTitleText = "\uFF08\u672C\u5927\u9898\u5171".concat(question.total, "\u5C0F\u9898\uFF0C").concat(sameScoreFlag ? '每小题' + question.fullScore + '分,' : str, "\u5171").concat(question.questionTypeFullScore, "\u5206\u3002\u89E3\u7B54\u5199\u51FA\u76F8\u5E94\u7684\u6587\u5B57\u8BF4\u660E\u3001\u8BC1\u660E\u8FC7\u7A0B\u6216\u6F14\u7B97\u6B65\u9AA4\u3002\uFF09");
} else if ([17].includes(val.questionTypeId)) {
topicSubTitleText = "\uFF08\u672C\u9898\u5305\u62EC".concat(question.total, "\u5C0F\u9898\uFF0C\u8BF7\u9009\u5B9A\u5176\u4E2D").concat(question.required, "\u5C0F\u9898\uFF0C\u5E76\u5728\u76F8\u5E94\u7684\u7B54\u9898\u533A\u57DF\u5185\u4F5C\u7B54\uFF0C\u8BF7\u75282B\u94C5\u7B14\u6D82\u9ED1\uFF08\u793A\u4F8B\uFF1A\u25A0\uFF09\u3002\u82E5\u591A\u505A\uFF0C\u5219\u6309\u4F5C\u7B54\u7684\u524D\u4E00\u5C0F\u9898\u8BC4\u5206\u3002\u89E3\u7B54\u5E94\u5199\u51FA\u6587\u5B57\u8BF4\u660E\u3001\u8BC1\u660E\u8FC7\u7A0B\u6216\u6F14\u7B97\u6B65\u9AA4\u3002\uFF09");
}
}
return topicSubTitleText;
},
setNewZXHX: function setNewZXHX(res) {
var _this4 = this;
var _this = this;
this.cardSettings.title = res.object.paperName;
this.cardSetting.examInfoConfig.forEach(function (item) {
switch (item.id) {
case 0:
item.text = res.object.wpTimes;
break;
case 1:
item.text = res.object.fullScore;
break;
case 2:
item.text = res.object.wpAuthor;
break;
case 3:
item.text = res.object.wpReviewer;
break;
}
});
this.cardSettings.cardLength = res.object.school_card_length;
this.cardSettings.cardStatus = res.object.school_card_status;
this.setCardSetting(this.cardSettings);
this.paperData = this.classificationTree(res.object.questions);
var bigTopicArrZXHX = {};
var TopicArrZXHX = JSON.parse(JSON.stringify(this.paperData));
TopicArrZXHX.forEach(function (mod) {
mod.topicConfigureData.topicTypeArr = [{
startNo: mod.questions[0].questionNum,
endNo: mod.questions[mod.questions.length - 1].questionNum
}];
bigTopicArrZXHX[mod.modelId] = mod;
});
this.setBigTopicArr(bigTopicArrZXHX);
if (res.paperTplType == 1) {
var _this$paperData;
var tempArr = JSON.parse(JSON.stringify(this.paperData.filter(function (val) {
return ![7, 17, 27].includes(val.questionTypeId);
}))); //知心慧学题卡合一,添加试题数据,设置isQuestionText并选项排序
tempArr.forEach(function (val) {
val.isQuestionText = true;
if ([1, 2, 11].includes(val.questionTypeId)) {
val.questions.forEach(function (valQue) {
valQue.queOptions.forEach(function (valOpt, idxOpt) {
return valOpt.index = idxOpt;
});
});
}
});
(_this$paperData = this.paperData).splice.apply(_this$paperData, [tempArr.length, 0].concat(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_13__["default"])(tempArr)));
}
this.paperData.forEach(function (mod) {
if ([7, 27].includes(mod.questionTypeId)) {
mod.questions.forEach(function (topic) {
topic.TopicAreaHeight = 200;
topic.contentHtml = res.paperTplType == 1 ? topic.questionNum + '、' + topic.queBody + topic.matchPicture : topic.questionNum + '、' + topic.matchPicture;
topic.cutId = 1; //区分被切割试题,区分分页,1第一段内容
topic.alias = topic.questionNum;
topic.ChooseArea = 1; //选做题区分答题区域是第几块
topic.scoreLimit = _this4.getAnswerMinScoreLimit(topic.fullScore);
topic.point = 0;
});
} else if (mod.questionTypeId === 17) {
mod.topicConfigureData.topicTypeArr = [{
chooseOption: mod.questions[0].total,
chooseSelectOption: mod.questions[0].required
}]; //题卡合一的题文
if (res.paperTplType == 1) {
mod.QuestionTextList = JSON.parse(JSON.stringify(mod.questions));
mod.QuestionTextList.forEach(function (topic) {
topic.alias = topic.questionNum;
});
}
var chooseTopicList = JSON.parse(JSON.stringify(mod.questions));
var showPaperChooseTopic = chooseTopicList[0];
showPaperChooseTopic.alias = showPaperChooseTopic.questionNum;
showPaperChooseTopic.cutId = 1;
showPaperChooseTopic.TopicAreaHeight = 200;
showPaperChooseTopic.scoreLimit = _this4.getAnswerMinScoreLimit(showPaperChooseTopic.fullScore);
showPaperChooseTopic.point = 0;
showPaperChooseTopic.contentHtml = chooseTopicList[0].questionNum + '~' + chooseTopicList[chooseTopicList.length - 1].questionNum + '、';
if (showPaperChooseTopic.required > 1) {
mod.questions = [];
for (var l = 0; l < showPaperChooseTopic.required; l++) {
var newShowPaperChooseTopic = JSON.parse(JSON.stringify(showPaperChooseTopic)); //ChooseArea为选做题第几个答题区域
newShowPaperChooseTopic.ChooseArea = l + 1;
mod.questions.push(newShowPaperChooseTopic);
}
} else {
showPaperChooseTopic.ChooseArea = 1;
mod.questions = [showPaperChooseTopic];
}
} else {
mod.questions.forEach(function (topic) {
topic.alias = topic.questionNum;
if ([1, 2, 11].includes(topic.questionTypeId)) {
topic.queOptions.forEach(function (val, index) {
val.index = index;
});
}
});
}
});
this.setPaperListData(this.paperData);
this.setBigTopicPageArr([JSON.parse(JSON.stringify(this.paperData))]);
this.$nextTick(function () {
_this.setInitPageFlag(!_this4.initPageFlag); //触发分页
});
},
setEditZXHX: function setEditZXHX(res, position) {
this.cardSettings = position.cardSetting;
this.setCardSetting(this.cardSettings);
this.setBigTopicArr(position.bigTopicArr);
this.setPaperListData(position.paperListData);
this.setBigTopicPageArr(JSON.parse(JSON.stringify(position.bigTopicPageArr)));
var testFormData = {
pdf_url: res.online_card_pdf
};
this.setTestFormData(testFormData); //缓存考试信息
},
setNewThree: function setNewThree(resData) {
var _this5 = this;
this.cardSettings.title = resData.testFormData.examName; //新建第三方答题卡
var uploadForm = new FormData();
uploadForm.append('grade', this.grade); //根据年级获取第三方答题卡的准考证类型与考后长度
Object(_api_answer_sheet__WEBPACK_IMPORTED_MODULE_20__["getCardStatusByGrade"])(uploadForm).then(function (res) {
_this5.cardSettings.cardLength = res.data.card_length;
_this5.cardSettings.cardStatus = res.data.card_status;
_this5.setCardSetting(_this5.cardSettings);
});
},
setEditThree: function setEditThree(resData) {
this.cardSettings = resData.savePrintInfo.position.cardSetting; // this.cardSettings.title = resData.testFormData.examName;
this.cardSettings.examGroupId = resData.testFormData.examGroupId;
this.setCardSetting(this.cardSettings);
this.setBigTopicArr(resData.savePrintInfo.position.bigTopicArr);
this.setPaperListData(resData.savePrintInfo.position.paperListData);
this.setBigTopicPageArr(JSON.parse(JSON.stringify(resData.savePrintInfo.position.bigTopicPageArr)));
},
getTopicTypeText: function getTopicTypeText(type) {
// 获取试题类型名称
var text = '';
if (type == 1) return '选择题';
this.topicTypes.forEach(function (item) {
if (type == item.value) {
text = item.label;
}
});
return text;
},
handleCloseAddTopic: function handleCloseAddTopic() {
this.dialogVisibleIsAddTopic = false;
},
showAddBigTopic: function showAddBigTopic() {
this.isEdit = false;
this.editNo = '';
this.dialogVisibleIsAddTopic = true;
},
showEditBigTopic: function showEditBigTopic(type) {
this.isEdit = true;
this.editNo = type;
this.dialogVisibleIsAddTopic = true;
},
showBigTopicDialog: function showBigTopicDialog() {
var _this6 = this;
if (this.$refs.AddTopic) {
this.$nextTick(function () {
_this6.$refs.AddTopic.getDefaultData();
});
}
},
ueBlur: function ueBlur() {
//编辑器修改内容自动保存
this.setBigTopicPageArr(this.bigTopicPageArr);
},
getAnswerMinScoreLimit: function getAnswerMinScoreLimit(score) {
var minLimit = 15;
for (var i = 0, item; item = this.scoreLimitMapArr[i++];) {
if (item >= score) {
minLimit = item;
break;
}
}
return minLimit;
},
goBack: function goBack() {
if (this.testFormData.referrerUrl) {
window.location.href = this.testFormData.referrerUrl + "/isCardReturn=true";
} else {
window.history.back();
}
},
restAnswerSheet: function restAnswerSheet() {
//重置知心慧学答题卡
this.setNewZXHX(this.TopicsData);
}
})
});
/***/ }),
/***/ "./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/answer-sheet/common/SubjectSelect.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/answer-sheet/common/SubjectSelect.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_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __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_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* eslint-disable no-console, no-debugger*/
/* harmony default export */ __webpack_exports__["default"] = ({
name: "subjectSelect",
components: {},
filters: {},
props: {
subjectId: Number
},
data: function data() {
return {
isSubject: 12,
options: [{
label: '物理',
id: 12
}, {
label: '化学',
id: 13
}, {
label: '生物',
id: 14
}],
wenzong: [{
label: '政治',
id: 15
}, {
label: '历史',
id: 16
}, {
label: '地理',
id: 17
}],
lizong: [{
label: '物理',
id: 12
}, {
label: '化学',
id: 13
}, {
label: '生物',
id: 14
}],
tipsText: "请选择当前题目所属的学科,用以生成各科考试成绩"
};
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__["mapGetters"])('answerSheet', ['subject'])),
watch: {
subjectId: function subjectId(newVal, oldval) {
if (oldval != newVal) {
this.isSubject = this.subjectId;
}
}
},
created: function created() {
if (this.subject === 19) {
this.options = this.wenzong;
} else if (this.subject === 18) {
this.options = this.lizong;
}
this.isSubject = this.subjectId;
},
mounted: function mounted() {},
methods: {
subjectChange: function subjectChange() {
this.$emit('subjectChange', this.isSubject);
}
}
});
/***/ }),
/***/ "./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/answer-sheet/paper/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/answer-sheet/paper/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_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __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_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _PaperLine_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PaperLine.vue */ "./src/views/answer-sheet/paper/PaperLine.vue");
/* harmony import */ var _PaperContent_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PaperContent.vue */ "./src/views/answer-sheet/paper/PaperContent.vue");
/* harmony import */ var _mixins_answersheet_pageSize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../mixins/answersheet/pageSize */ "./src/mixins/answersheet/pageSize.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* eslint-disable no-console */
/* harmony default export */ __webpack_exports__["default"] = ({
name: "PaperIndex",
components: {
PaperLine: _PaperLine_vue__WEBPACK_IMPORTED_MODULE_1__["default"],
PaperContent: _PaperContent_vue__WEBPACK_IMPORTED_MODULE_2__["default"]
},
mixins: [_mixins_answersheet_pageSize__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: {
pageIndex: {
type: Number,
default: null
},
totalPageNum: {
type: Number,
default: null
},
content: {
type: Array,
default: function _default() {
return [];
}
}
}
});
/***/ }),
/***/ "./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/answer-sheet/paper/PaperContent.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/answer-sheet/paper/PaperContent.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_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __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_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _paper_info_Index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./paper-info/Index.vue */ "./src/views/answer-sheet/paper/paper-info/Index.vue");
/* harmony import */ var _paper_topic_Index_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./paper-topic/Index.vue */ "./src/views/answer-sheet/paper/paper-topic/Index.vue");
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'PaperContent',
components: {
PaperInfo: _paper_info_Index_vue__WEBPACK_IMPORTED_MODULE_1__["default"],
PaperTopic: _paper_topic_Index_vue__WEBPACK_IMPORTED_MODULE_2__["default"]
},
props: {
PaperLineFlag: {
type: Number,
default: 0
},
pageIndex: {
type: Number,
default: null
},
paperColumn: {
type: Number,
default: null
}
},
data: function data() {
return {};
}
});
/***/ }),
/***/ "./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/answer-sheet/paper/PaperLine.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/answer-sheet/paper/PaperLine.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_number_constructor__WEBPACK_IMPORTED_MODULE_0__ = __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_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'PaperLine',
props: {
PaperLineFlag: {
type: Number,
default: 0
}
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__["mapGetters"])('answerSheet', ['cardSetting']))
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/GradeAndName.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/answer-sheet/paper/paper-info/GradeAndName.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 F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'GradeAndName',
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_1__["mapGetters"])('answerSheet', ['cardSetting']))
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/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/answer-sheet/paper/paper-info/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 F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var _PaperTitle_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PaperTitle.vue */ "./src/views/answer-sheet/paper/paper-info/PaperTitle.vue");
/* harmony import */ var _GradeAndName_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GradeAndName.vue */ "./src/views/answer-sheet/paper/paper-info/GradeAndName.vue");
/* harmony import */ var _PaperInfo_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PaperInfo.vue */ "./src/views/answer-sheet/paper/paper-info/PaperInfo.vue");
/* harmony import */ var _PaperAttention_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PaperAttention.vue */ "./src/views/answer-sheet/paper/paper-info/PaperAttention.vue");
/* harmony import */ var _PaperCard_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PaperCard.vue */ "./src/views/answer-sheet/paper/paper-info/PaperCard.vue");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: "PaperInfoIndex",
components: {
PaperTitle: _PaperTitle_vue__WEBPACK_IMPORTED_MODULE_1__["default"],
GradeAndName: _GradeAndName_vue__WEBPACK_IMPORTED_MODULE_2__["default"],
PaperInfo: _PaperInfo_vue__WEBPACK_IMPORTED_MODULE_3__["default"],
PaperAttention: _PaperAttention_vue__WEBPACK_IMPORTED_MODULE_4__["default"],
PaperCard: _PaperCard_vue__WEBPACK_IMPORTED_MODULE_5__["default"]
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__["mapGetters"])('answerSheet', ['cardSetting']))
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/PaperAttention.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/answer-sheet/paper/paper-info/PaperAttention.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 _mixins_answersheet_pageSize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../mixins/answersheet/pageSize */ "./src/mixins/answersheet/pageSize.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'PaperAttention',
data: function data() {
return {
attentionOne: ['考生务必正确书写班级、姓名,请填涂系统准考证号。', '考生务必正确书写班级、姓名,请填涂学校准考证号。'],
attentionList: ['考生务必用2B铅笔填涂。', '考生务必在答题卡指定位置作答,并保持卷面整洁。', '如需要条形码,则考生务必要在指定位置正确贴好条形码。', '教师务必使用红笔阅卷。']
};
},
methods: {
isShowAttention: function isShowAttention(index) {
if (index === 0) {
return !this.cardSetting.useQrCode && this.cardSetting.cardStatus == 0;
} else if (index === 1) {
return !this.cardSetting.useQrCode && this.cardSetting.cardStatus == 1;
} else {
return true;
}
}
},
mixins: [_mixins_answersheet_pageSize__WEBPACK_IMPORTED_MODULE_0__["default"]]
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/PaperCard.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/answer-sheet/paper/paper-info/PaperCard.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 F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _mixins_answersheet_pageSize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../mixins/answersheet/pageSize */ "./src/mixins/answersheet/pageSize.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'PaperCard',
// props:{
// PaperLineFlag:{
// type:Number,
// default:0
// }
// },
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_1__["mapGetters"])('answerSheet', ['cardSetting'])),
mixins: [_mixins_answersheet_pageSize__WEBPACK_IMPORTED_MODULE_2__["default"]]
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/PaperInfo.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/answer-sheet/paper/paper-info/PaperInfo.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_filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.filter */ "./node_modules/core-js/modules/es.array.filter.js");
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2__ = __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_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _store_constant__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/store/constant */ "./src/store/constant.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'PaperInfo',
data: function data() {
return {
paperInfoDialog: false,
checkedTempInfo: [0, 1, 2, 3],
checkedInfo: [0, 1, 2, 3],
//时间0,满分1,命卷人2,审核人3
cardSettingTemp: {
examInfoConfig: []
}
};
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__["mapGetters"])('answerSheet', ['cardSetting'])), {}, {
infoList: function infoList() {
var list = [];
this.cardSetting.examInfoConfig.forEach(function (item) {
if (item.isShow) {
list.push(item);
}
});
return list;
}
}),
methods: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_4__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__["mapMutations"])('answerSheet', {
setCardSetting: _store_constant__WEBPACK_IMPORTED_MODULE_6__["SET_CARD_SETTING"]
})), {}, {
editInfo: function editInfo() {
this.paperInfoDialog = true;
this.cardSettingTemp = JSON.parse(JSON.stringify(this.cardSetting));
},
setInfoList: function setInfoList() {
this.setCardSetting(this.cardSetting);
},
confirm: function confirm() {
this.paperInfoDialog = false; // 信息栏显示项为0时,右侧设置模块信息栏设置为无
var infoShowArr = this.cardSettingTemp.examInfoConfig.filter(function (v) {
return v.isShow == true;
});
this.cardSettingTemp.hasPaperMsg = infoShowArr.length == 0 ? false : true;
this.setCardSetting(this.cardSettingTemp);
},
cancel: function cancel() {
this.paperInfoDialog = false;
this.checkedTempInfo = Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__["default"])(this.checkedInfo);
}
})
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/PaperTitle.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/answer-sheet/paper/paper-info/PaperTitle.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 F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _store_constant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/store/constant */ "./src/store/constant.js");
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'PaperTitle',
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_1__["mapGetters"])('answerSheet', ['cardSetting'])),
methods: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_1__["mapMutations"])('answerSheet', {
setCardSetting: _store_constant__WEBPACK_IMPORTED_MODULE_2__["SET_CARD_SETTING"]
})), {}, {
setTitle: function setTitle() {
this.setCardSetting(this.cardSetting);
}
})
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/ArticleCh.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/answer-sheet/paper/paper-topic/ArticleCh.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_from__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.from */ "./node_modules/core-js/modules/es.array.from.js");
/* harmony import */ var core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from__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_string_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.string.iterator */ "./node_modules/core-js/modules/es.string.iterator.js");
/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var _mixins_answersheet_pageSize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../mixins/answersheet/pageSize */ "./src/mixins/answersheet/pageSize.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ArticleCh',
mixins: [_mixins_answersheet_pageSize__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: {
wordsCountCh: {
type: Object,
default: function _default() {
return {
start: 1,
//起始格子最小为 1
end: 1 //结束格子最小为1
};
}
},
pageIndex: Number
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_5__["mapGetters"])('answerSheet', ['squareSize'])),
// watch:{
// wordsCountCh:{
// //深度监听数组更新,重排选项
// handler(){
// if(this.isMounted){
// this.startX()
// }
// },
// deep:true
// }
// },
data: function data() {
return {
svgWidth: 0,
lineArr: [],
//竖小格子线分割线pos
totalRowsArr: [],
//横分割线pos
textArr: [],
//字数文本Pos
rectPadding: 0,
//svg边框
isMounted: false
};
},
methods: {
startX: function startX() {
//一行可放格子数 = (纸张宽度-padding)/格子宽度
var count = parseInt(this.svgWidth / this.squareSize.w);
if (count < 1) {
return false;
} // 不满一格,设置成svg外边框:纸张宽度 - (一行格子数 * 一行总数)
this.rectPadding = this.svgWidth - this.squareSize.w * count; // 总共行数
var rowCount = Math.ceil((this.wordsCountCh.end - this.wordsCountCh.start + 1) / count);
this.totalRowsArr = []; // totalRowsArr 添加每行之间的分割横线
for (var i = 0; i < rowCount + 1; i++) {
this.totalRowsArr.push({
x1: 0,
y1: i * (this.squareSize.h + 10) - 10,
x2: this.svgWidth,
y2: i * (this.squareSize.h + 10) - 10
});
this.totalRowsArr.push({
x1: 0,
y1: i * (this.squareSize.h + 10),
x2: this.svgWidth,
y2: i * (this.squareSize.h + 10)
});
} // 总格子数
for (var _i = 0; _i < count * rowCount; _i++) {
this.lineArr.push({
x1: parseInt(_i % count) * this.squareSize.w,
y1: _i === 0 ? parseInt(_i / count) * this.squareSize.h : parseInt(_i / count) * (this.squareSize.h + 10),
x2: parseInt(_i % count) * this.squareSize.w,
y2: _i === 0 ? parseInt(_i / count) * this.squareSize.h + this.squareSize.h : parseInt(_i / count) * (this.squareSize.h + 10) + this.squareSize.h
}); // 每100个字,标明位置
if ((_i + this.wordsCountCh.start) % 100 == 0) {
var x = void 0,
y = void 0;
x = _i % count * this.squareSize.w;
y = Math.ceil(_i / count) * (this.squareSize.h + 10);
this.textArr.push({
x: x,
y: y,
count: _i + this.wordsCountCh.start
});
}
}
}
},
mounted: function mounted() {
// 计算svg总高度
var HtmlObj = document.querySelectorAll('.card_edit-wrap')[0];
var articleObj = Array.from(HtmlObj.querySelectorAll('.article-chinese'));
if (this.cardSetting.hasBindingLine) {
if (this.pageIndex == this.bigTopicPageArr.length - 1) {
this.svgWidth = articleObj[articleObj.length - 1].offsetWidth;
} else if (this.pageIndex == 0) {
this.svgWidth = articleObj[0].offsetWidth;
} else {
this.svgWidth = articleObj[0].offsetWidth;
}
} else {
this.svgWidth = document.querySelector('.article-chinese').offsetWidth;
}
this.isMounted = true;
this.startX();
}
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/ChooseTopic.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/answer-sheet/paper/paper-topic/ChooseTopic.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: "ChooseTopic",
components: {},
filters: {},
props: {
topic: Array
},
data: function data() {
return {};
},
computed: {},
watch: {},
created: function created() {},
mounted: function mounted() {},
methods: {}
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/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/answer-sheet/paper/paper-topic/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 F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var _TopicTitle_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TopicTitle.vue */ "./src/views/answer-sheet/paper/paper-topic/TopicTitle.vue");
/* harmony import */ var _TopicChoice_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TopicChoice.vue */ "./src/views/answer-sheet/paper/paper-topic/TopicChoice.vue");
/* harmony import */ var _TopicFill_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TopicFill.vue */ "./src/views/answer-sheet/paper/paper-topic/TopicFill.vue");
/* harmony import */ var _TopicExplain_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TopicExplain.vue */ "./src/views/answer-sheet/paper/paper-topic/TopicExplain.vue");
/* harmony import */ var _Topic_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Topic.vue */ "./src/views/answer-sheet/paper/paper-topic/Topic.vue");
/* harmony import */ var _ChooseTopic_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ChooseTopic.vue */ "./src/views/answer-sheet/paper/paper-topic/ChooseTopic.vue");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* eslint-disable no-console */
/* harmony default export */ __webpack_exports__["default"] = ({
name: "PaperTopic",
components: {
TopicTitle: _TopicTitle_vue__WEBPACK_IMPORTED_MODULE_1__["default"],
TopicChoice: _TopicChoice_vue__WEBPACK_IMPORTED_MODULE_2__["default"],
TopicFill: _TopicFill_vue__WEBPACK_IMPORTED_MODULE_3__["default"],
TopicExplain: _TopicExplain_vue__WEBPACK_IMPORTED_MODULE_4__["default"],
Topic: _Topic_vue__WEBPACK_IMPORTED_MODULE_5__["default"],
ChooseTopic: _ChooseTopic_vue__WEBPACK_IMPORTED_MODULE_6__["default"]
},
props: {
content: {
type: Array,
default: function _default() {
return [];
}
}
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_7__["mapGetters"])('answerSheet', ['answerCardType', 'subject', 'paperSource', 'bigTopicArr'])),
methods: {
setTopicTitle: function setTopicTitle(val) {
var topicTitleText = val.bigTitle;
var topicSubTitleText = '';
if (this.paperSource == 1 && !val.isQuestionText) {
topicSubTitleText = val.subtitle;
}
return {
topicTitleText: topicTitleText,
topicSubTitleText: topicSubTitleText
};
}
}
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/Topic.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/answer-sheet/paper/paper-topic/Topic.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_find_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.find-index */ "./node_modules/core-js/modules/es.array.find-index.js");
/* harmony import */ var core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2__ = __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_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _store_constant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/store/constant */ "./src/store/constant.js");
/* harmony import */ var _lib_resetPage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/lib/resetPage */ "./src/lib/resetPage.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Topic',
data: function data() {
return {
topicSetDialog: false,
fillSetting: {
columnCount: 1,
rowLineHeight: 30,
fontSizeCount: 12
},
form: {
columnCount: 0,
//下标
rowLineHeight: 30,
//行高
fontSizeCount: 12,
//字号大小
columnCountArr: [{
id: 0,
label: 1,
num: 0
}, {
id: 2,
label: 2,
num: 2
}, {
id: 1,
label: 4,
num: 1
}],
// 0纵向 1横向 2一排两个
rowHieightArr: [25, 30, 35, 40, 45, 50],
fontSizeArr: [12, 14, 16, 18]
},
words: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M']
};
},
props: {
topicContent: {
type: Object,
default: function _default() {
return {};
}
}
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_4__["mapGetters"])('answerSheet', ['paperSource', 'bigTopicPageArr', 'initPageFlag'])),
mounted: function mounted() {
this.initTopic();
},
methods: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_3__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_4__["mapMutations"])('answerSheet', {
setBigTopicPageArr: _store_constant__WEBPACK_IMPORTED_MODULE_5__["SET_PAGETOPIC_ARR"],
setInitPageFlag: _store_constant__WEBPACK_IMPORTED_MODULE_5__["SET_INITPAGE_FLAG"]
})), {}, {
initTopic: function initTopic() {
this.form.columnCount = this.topicContent.listType;
this.form.rowLineHeight = this.topicContent.rowLineHeight || 30;
this.form.fontSizeCount = this.topicContent.fontSizeCount || 14;
},
confirm: function confirm() {
var _this = this;
this.topicSetDialog = false;
var tempArr = Object(_lib_resetPage__WEBPACK_IMPORTED_MODULE_6__["default"])(this.bigTopicPageArr);
tempArr.forEach(function (item) {
if (item.questionTypeId == _this.topicContent.questionTypeId && item.isQuestionText) {
item.questions.forEach(function (val, index) {
if (val.questionNum == _this.topicContent.questionNum) {
var count = _this.form.columnCountArr.findIndex(function (v) {
return v.id == _this.form.columnCount;
});
item.questions[index].listType = _this.form.columnCountArr[count].num;
item.questions[index].rowLineHeight = _this.form.rowLineHeight;
item.questions[index].fontSizeCount = _this.form.fontSizeCount;
}
});
}
});
this.setBigTopicPageArr([tempArr]);
this.setInitPageFlag(!this.initPageFlag);
},
cancel: function cancel() {
this.topicSetDialog = false;
}
})
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/TopicChoice.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/answer-sheet/paper/paper-topic/TopicChoice.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_array_map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.map */ "./node_modules/core-js/modules/es.array.map.js");
/* harmony import */ var core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_2__ = __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_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_3__ = __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_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _lib_resetPage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/lib/resetPage */ "./src/lib/resetPage.js");
/* harmony import */ var _mixins_answersheet_deleteTopic__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/mixins/answersheet/deleteTopic */ "./src/mixins/answersheet/deleteTopic.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: "TopicChoice",
mixins: [_mixins_answersheet_deleteTopic__WEBPACK_IMPORTED_MODULE_5__["default"]],
props: {
topicInfo: {
type: Array,
default: function _default() {
return [];
}
},
setConfig: {
type: Object,
default: function _default() {
return {};
}
},
modelId: {
type: String
},
pageIndex: {
type: Number,
default: null
}
},
watch: {
topicInfo: {
//深度监听数组更新,重排选项
handler: function handler(newVal) {
if (this.isMounted) {
this.form.direction = this.setConfig.direction || 0;
this.form.tempDirection = this.setConfig.direction || 0;
this.sortOptions(newVal);
}
},
deep: true
}
},
data: function data() {
return {
optionsArr: [],
topicSetDialog: false,
form: {
direction: 0,
//0横向 1纵向
tempDirection: 0,
infoList: [{
id: 0,
name: '横向'
}, {
id: 1,
name: '纵向'
}]
},
isMounted: false
};
},
created: function created() {
this.form.direction = this.setConfig.direction || 0;
this.form.tempDirection = this.setConfig.direction || 0;
},
mounted: function mounted() {
// 处理数据,5组数据放入一个ul中
this.sortOptions(this.topicInfo);
this.isMounted = true;
},
methods: {
sortOptions: function sortOptions(arr) {
var _this = this;
// 选项排序
this.optionsArr = [];
arr.forEach(function (val, index) {
if (!_this.optionsArr[parseInt(index / 5)]) {
_this.optionsArr[parseInt(index / 5)] = [];
}
_this.optionsArr[parseInt(index / 5)].push(val);
}); // this.$set(this.optionsArr,this.optionsArr)
},
openSet: function openSet() {
if (this.paperSource === 0) {
this.$emit('showEditBigTopic', this.modelId);
return;
}
this.topicSetDialog = true;
},
confirm: function confirm() {
var _this2 = this;
this.topicSetDialog = false;
this.form.direction = this.form.tempDirection;
if (this.paperSource == 1) {
// 0第三方 1知心慧学
var tempArr = [];
tempArr = Object(_lib_resetPage__WEBPACK_IMPORTED_MODULE_4__["default"])(this.bigTopicPageArr);
tempArr = tempArr.map(function (val) {
if (val.modelId == _this2.modelId) {
val.topicConfigureData.direction = _this2.form.direction;
}
return val;
});
this.setBigTopicPageArr([tempArr]);
this.setInitPageFlag(!this.initPageFlag);
}
},
cancel: function cancel() {
this.topicSetDialog = false;
this.form.tempDirection = this.form.direction;
}
}
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/TopicExplain.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/answer-sheet/paper/paper-topic/TopicExplain.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_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat */ "./node_modules/core-js/modules/es.array.concat.js");
/* harmony import */ var core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.find-index */ "./node_modules/core-js/modules/es.array.find-index.js");
/* harmony import */ var core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2__ = __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_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.index-of */ "./node_modules/core-js/modules/es.array.index-of.js");
/* harmony import */ var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_5__ = __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_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_object_values__WEBPACK_IMPORTED_MODULE_6__ = __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_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_7__ = __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_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var _components_editor_UeCard__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/components/editor/UeCard */ "./src/components/editor/UeCard.vue");
/* harmony import */ var _views_answer_sheet_topic_AddTopic__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/views/answer-sheet/topic/AddTopic */ "./src/views/answer-sheet/topic/AddTopic.vue");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _store_constant__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/store/constant */ "./src/store/constant.js");
/* harmony import */ var _ArticleCh__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ArticleCh */ "./src/views/answer-sheet/paper/paper-topic/ArticleCh.vue");
/* harmony import */ var _lib_resetPage__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/lib/resetPage */ "./src/lib/resetPage.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* eslint-disable no-console,no-debugger */
/* harmony default export */ __webpack_exports__["default"] = ({
name: "TopicExplain",
props: {
topicInfo: {
type: Object,
default: function _default() {
return [];
}
},
setConfig: {
type: Object,
default: function _default() {
return {};
}
},
pageIndex: {
type: Number,
default: null
}
},
components: {
UeCard: _components_editor_UeCard__WEBPACK_IMPORTED_MODULE_10__["default"],
AddTopic: _views_answer_sheet_topic_AddTopic__WEBPACK_IMPORTED_MODULE_11__["default"],
ArticleCh: _ArticleCh__WEBPACK_IMPORTED_MODULE_14__["default"]
},
data: function data() {
return {
showUeTitle: false,
dialogVisibleIsAddTopic: false,
TopicAreaHeight: 200,
modelId: '',
isMove: false,
bit: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
scoreLimitMap: {
'16': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16],
'15': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
'29': {
tenPlace: [1, 2]
},
'49': {
tenPlace: [1, 2, 3, 4]
},
'69': {
tenPlace: [1, 2, 3, 4, 5, 6]
}
},
scoreLimitMapArr: [15, 16, 29, 49],
noScoringW: 48,
ChooseOptData: [],
topicSetDialog: false,
form: {
scoreBoxCount: 15,
//下标
halfScore: false,
scoreBoxArr: [{
id: 15,
label: '上限15分'
}, {
id: 16,
label: '上限16分'
}, {
id: 29,
label: '上限29分'
}, {
id: 49,
label: '上限49分'
}]
}
};
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_12__["mapGetters"])('answerSheet', ['bigTopicArr', 'bigTopicPageArr', 'paperListData', 'initPageFlag', 'paperSource', 'cardSetting', 'chageSomePageIndex', 'isExplainMove', 'changeUeReadyHeightArr'])), {}, {
// topicType(){
// return this.topicInfo.markType===4?77:7
// }
topicScore: function topicScore() {
var scoreLimit = 0;
var fullScore = Number(this.topicInfo.fullScore);
var hasHalfScore = false;
if (this.paperSource === 1) {
//知心慧学数学
// scoreLimit = this.getAnswerMinScoreLimit(fullScore);
scoreLimit = this.topicInfo.scoreLimit;
hasHalfScore = this.topicInfo.point == 1 ? true : false;
} else {
//第三方
scoreLimit = this.setConfig.topicConfigureData.scoreLimit;
hasHalfScore = this.setConfig.topicConfigureData.hasHalfScore;
} // if(fullScore<17){
// scoreLimit = 16
// }
var topicScore = [];
if (scoreLimit < 17) {
//分数小于20
if (fullScore > 15) {
topicScore = this.scoreLimitMap[scoreLimit];
} else {
for (var index = 0; index < fullScore + 1; index++) {
topicScore.push(index);
}
}
} else {
topicScore.push('十位');
topicScore = topicScore.concat(this.scoreLimitMap[scoreLimit].tenPlace);
topicScore.push('个位');
topicScore = topicScore.concat(this.bit);
}
if (hasHalfScore) {
topicScore.push('0.5');
}
return topicScore;
},
isShowNoScoring: function isShowNoScoring() {
var scoreLimit = 0;
var fullScore = this.topicInfo.fullScore;
if (this.paperSource === 1) {
//知心慧学数学
// scoreLimit = this.getAnswerMinScoreLimit(fullScore);
scoreLimit = this.topicInfo.scoreLimit;
} else {
//第三方
scoreLimit = this.setConfig.topicConfigureData.scoreLimit;
}
if (scoreLimit < 17 && fullScore < scoreLimit) {
return true;
} else {
return false;
}
},
// topicAreaHeight(){
// return this.topicInfo.TopicAreaHeight || 200
// }
isArticleChOver: function isArticleChOver() {
return this.topicInfo.TopicAreaHeight < 1 && this.setConfig.questionTypeId === 77 && this.topicInfo.subject === 9;
},
setWordsCountCh: function setWordsCountCh() {
return {
start: this.topicInfo.startPositionNumber || 1,
end: this.topicInfo.endPositionNumber
};
}
}),
watch: {
topicInfo: {
handler: function handler() {
this.getDefaultData();
},
deep: true
} // bigTopicPageArr: {
// handler() {
// this.setTopicAreaHeight()
// },
// deep: true
// },
},
created: function created() {
this.form.scoreBoxCount = this.topicInfo.scoreLimit;
this.form.halfScore = this.topicInfo.point == 1 ? true : false;
this.getDefaultData();
},
mounted: function mounted() {
this.setNoScoringW();
},
methods: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_12__["mapMutations"])('answerSheet', {
setBigTopicArr: _store_constant__WEBPACK_IMPORTED_MODULE_13__["SET_BIG_TOPIC_ARR"],
setPaperListData: _store_constant__WEBPACK_IMPORTED_MODULE_13__["SET_PAPER_LIST_DATA"],
setBigTopicPageArr: _store_constant__WEBPACK_IMPORTED_MODULE_13__["SET_PAGETOPIC_ARR"],
setInitPageFlag: _store_constant__WEBPACK_IMPORTED_MODULE_13__["SET_INITPAGE_FLAG"],
setChangeSomePageIndex: _store_constant__WEBPACK_IMPORTED_MODULE_13__["SET_CHANGE_SOMEPAGE_INDEX"],
setExplainMove: _store_constant__WEBPACK_IMPORTED_MODULE_13__["SET_IS_EXPLAIN_MOVE"],
setChangeUeReadyHeight: _store_constant__WEBPACK_IMPORTED_MODULE_13__["SET_CHANGE_UE_READY_HEIGHT_ARR"]
})), {}, {
confirm: function confirm() {
this.topicSetDialog = false;
if (this.paperSource == 1) {
// 0第三方 1知心慧学
// this.topicInfo.scoreLimit = this.form.scoreBoxArr[this.form.scoreBoxCount].id
this.topicInfo.scoreLimit = this.form.scoreBoxCount;
this.topicInfo.point = this.form.halfScore ? 1 : 0; // this.setBigTopicPageArr(this.bigTopicPageArr)
}
},
mouseEvent: function mouseEvent(type) {
if (this.isExplainMove) return;
if (type === 0) {
this.showUeTitle = false;
} else {
this.showUeTitle = true;
}
},
cancel: function cancel() {
this.topicSetDialog = false;
},
getDefaultData: function getDefaultData() {
this.TopicAreaHeight = this.topicInfo.TopicAreaHeight;
if (this.setConfig.questionTypeId == 17) {
this.getChooseOptData();
}
},
getChooseOptData: function getChooseOptData() {
this.ChooseOptData = [];
var optL = this.setConfig.topicConfigureData.topicTypeArr[0].chooseOption;
for (var i = 0; i < optL; i++) {
var opt = String.fromCharCode(65 + i);
this.ChooseOptData.push(opt);
}
},
setNoScoringW: function setNoScoringW() {
if (this.$refs.topicModule === undefined) {
return false;
}
var topicModuleW = this.$refs.topicModule.offsetWidth;
this.noScoringW = (16 - this.topicInfo.fullScore) * (topicModuleW / 18);
if (this.noScoringW < 48) {
this.noScoringW = 48;
}
},
setTopicAreaHeight: function setTopicAreaHeight() {
var _this = this; // if(this.setConfig.questionTypeId === 77 && this.setConfig.topicConfigureData.subject===8){
this.TopicAreaHeight = this.$refs.ueCard.ue.body.scrollHeight;
if (this.topicInfo.TopicAreaHeight != this.TopicAreaHeight) {
//16为padding
this.topicInfo.TopicAreaHeight = this.TopicAreaHeight + 16; //试题图片加载高度,重组部分试题
// this.$nextTick(()=>{
setTimeout(function () {
_this.setSomePageReset(); //触发分页
}, 500); // })
} // }
},
setSomePageReset: function setSomePageReset() {
var _this2 = this;
var flag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
// 当前拖动页及后续页面数据重组
var baseArr = JSON.parse(JSON.stringify(this.bigTopicPageArr)).splice(0, this.pageIndex);
var resetArr = Object(_lib_resetPage__WEBPACK_IMPORTED_MODULE_15__["default"])(JSON.parse(JSON.stringify(this.bigTopicPageArr)).splice(this.pageIndex), false, true);
baseArr.push(resetArr); //删除最后一页最后一题时,删掉空白纸张
if (this.pageIndex == baseArr.length - 1 && baseArr[this.pageIndex].length == 1) {
if (!baseArr[this.pageIndex][0].questions || baseArr[this.pageIndex][0].questions.length == 0) {
baseArr.pop();
this.setBigTopicPageArr(baseArr);
return;
}
}
this.setBigTopicPageArr(baseArr);
this.$nextTick(function () {
_this2.setChangeSomePageIndex({
index: _this2.pageIndex,
isToCurPage: flag,
//是否回到指定试题
flag: !_this2.chageSomePageIndex.flag
}); //触发分页
}); // this.setChangeSomePageIndex({
// index:this.pageIndex,
// flag:!this.chageSomePageIndex.flag
// })
},
moveTopicAreaHeight: function moveTopicAreaHeight(e) {
var _this = this;
var imgArrHeight = [];
var pAllHeight = 0;
this.$refs.ueCard.ue.body.querySelectorAll("img").forEach(function (el) {
if (el.className.indexOf('mathType') === -1) {
imgArrHeight.push(el.offsetTop + el.offsetHeight);
}
});
this.$refs.ueCard.ue.body.querySelectorAll("p").forEach(function (el) {
pAllHeight = el.offsetHeight + pAllHeight;
});
var imgMaxHeight = Math.max.apply(Math, imgArrHeight); //答题区域最小高度
var minTopicAreaHeight = imgMaxHeight > pAllHeight ? imgMaxHeight : pAllHeight;
if (minTopicAreaHeight < 20) {
minTopicAreaHeight = 20;
} //答题区初始高度
var TopicAreaHeight = _this.TopicAreaHeight; // 鼠标初始位置
var startPageY = e.pageY; //移动距离
var distance = 0; //是否执行移动
this.isMove = true;
this.setExplainMove(this.isMove);
document.addEventListener('mousemove', function (e) {
if (_this.isMove) {
distance = e.pageY - startPageY;
var newHeight = TopicAreaHeight + distance;
_this.TopicAreaHeight = newHeight > minTopicAreaHeight ? newHeight : minTopicAreaHeight;
}
}, true); // this.$refs.ueCard.ue.addListener('mousemove', function(){
// console.log(this)
// // onselectstart="return false"
// });
document.addEventListener('mouseup', this.stopMoveTopicAreaHeight, false); // this.$refs.ueCard.ue.addListener('mouseup', this.stopMoveTopicAreaHeight);
// this.$refs.ueCard.ue.body.addEventListener('mouseup', this.stopMoveTopicAreaHeight)
},
stopMoveTopicAreaHeight: function stopMoveTopicAreaHeight() {
this.isMove = false;
this.setExplainMove(this.isMove);
this.topicInfo.TopicAreaHeight = this.TopicAreaHeight;
this.setSomePageReset(true); // this.setInitPageFlag(!this.initPageFlag);
document.removeEventListener('mouseup', this.stopMoveTopicAreaHeight, false); // this.$refs.ueCard.ue.removeListener('mouseup', this.stopMoveTopicAreaHeight);
// this.$refs.ueCard.ue.body.removeEventListener('mouseup', this.stopMoveTopicAreaHeight)
},
handleCloseAddTopic: function handleCloseAddTopic() {
this.dialogVisibleIsAddTopic = false;
},
showEditBigTopic: function showEditBigTopic() {
if (this.paperSource === 0) {
this.modelId = this.setConfig.modelId;
this.dialogVisibleIsAddTopic = true;
return;
}
this.topicSetDialog = true;
},
editTopicData: function editTopicData() {
var _this3 = this,
_PaperListData;
var topicInPaperAll = [];
var TopicAreaHeight = 0;
var contentHtml = '';
this.bigTopicPageArr.forEach(function (paper) {
paper.forEach(function (mod) {
if (_this3.setConfig.modelId === mod.modelId) {
mod.questions.forEach(function (topic) {
if (topic.alias === _this3.topicInfo.alias) {
topicInPaperAll.push(topic);
}
});
}
});
});
topicInPaperAll.forEach(function (item) {
TopicAreaHeight = TopicAreaHeight + item.TopicAreaHeight;
contentHtml = contentHtml + item.contentHtml;
});
var bigTopicArr = JSON.parse(JSON.stringify(this.bigTopicArr));
bigTopicArr[this.setConfig.modelId].questions.forEach(function (topic) {
if (topic.alias === _this3.topicInfo.alias) {
topic.TopicAreaHeight = TopicAreaHeight;
topic.contentHtml = contentHtml;
}
}); // this.setBigTopicArr(bigTopicArr);
var PaperListData = [];
PaperListData = (_PaperListData = PaperListData).concat.apply(_PaperListData, Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__["default"])(Object.values(this.bigTopicArr))); // this.setPaperListData(PaperListData);
this.setBigTopicPageArr([Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__["default"])(JSON.parse(JSON.stringify(PaperListData)))]);
this.setInitPageFlag(!this.initPageFlag);
},
delTopicOver: function delTopicOver() {
var _this4 = this;
var delIndex = this.setConfig.questions.findIndex(function (val) {
return val.alias == _this4.topicInfo.alias;
});
if (this.topicInfo.contentHtml != '') {
if (delIndex > 0) {
this.setConfig.questions[delIndex - 1].contentHtml = this.setConfig.questions[delIndex - 1].contentHtml + this.topicInfo.contentHtml;
} else {
var upIndex = this.bigTopicPageArr[this.pageIndex - 1].length - 1;
this.bigTopicPageArr[this.pageIndex - 1][upIndex].contentHtml = this.bigTopicPageArr[this.pageIndex - 1][upIndex].contentHtml + this.topicInfo.contentHtml;
}
}
this.setConfig.questions.splice(delIndex, 1);
this.setSomePageReset(); // let tempArr = resetPage(this.bigTopicPageArr);
// this.setBigTopicPageArr([tempArr]);
// this.setInitPageFlag(!this.initPageFlag);
},
//编辑器初始化完成
ueReady: function ueReady() {
// this.setTopicAreaHeight()
// let _this = this;
// if(this.setConfig.questionTypeId === 77 && this.setConfig.topicConfigureData.subject===8){
this.TopicAreaHeight = this.$refs.ueCard.ue.body.scrollHeight;
if (this.topicInfo.TopicAreaHeight != this.TopicAreaHeight) {
//16为padding
this.topicInfo.TopicAreaHeight = this.TopicAreaHeight + 16;
this.changeUeReadyHeightArr.push(this.pageIndex);
this.setChangeUeReadyHeight(this.changeUeReadyHeightArr);
}
},
getAnswerMinScoreLimit: function getAnswerMinScoreLimit(score) {
var minLimit = 16;
for (var i = 0, item; item = this.scoreLimitMapArr[i++];) {
if (item >= score) {
minLimit = item;
break;
}
}
return minLimit;
},
ueBlur: function ueBlur() {
this.setTopicAreaHeight();
this.$emit('ueBlur', true);
},
delTopic: function delTopic() {
var _this5 = this;
var _this = this; // 删除题目
this.$confirm('确定要删除当前题目吗?', '提示', {
cancelButtonText: '取消',
confirmButtonText: '确定',
callback: function callback(action) {
if (action != 'confirm') return;
var tempArr = Object(_lib_resetPage__WEBPACK_IMPORTED_MODULE_15__["default"])(_this5.bigTopicPageArr); //统计总分
var fullScore = 0;
tempArr.forEach(function (bigTopic, delBigIndex) {
if (bigTopic.modelId == _this.setConfig.modelId) {
var delIndex = bigTopic.questions.findIndex(function (val) {
return val.alias == _this.topicInfo.alias;
});
bigTopic.questions.splice(delIndex, 1);
if (bigTopic.questions.length === 0) {
tempArr.splice(delBigIndex, 1);
}
}
bigTopic.questions.forEach(function (topic) {
fullScore = fullScore + topic.fullScore;
});
});
_this5.cardSetting.examInfoConfig.forEach(function (item) {
if (item.id === 1) {
item.text = fullScore;
}
}); //在配置数据内删除
var bigTopicArr = JSON.parse(JSON.stringify(_this5.bigTopicArr));
var bigDelIndex = bigTopicArr[_this5.setConfig.modelId].questions.findIndex(function (val) {
return val.alias == _this.topicInfo.alias;
});
bigTopicArr[_this5.setConfig.modelId].questions.splice(bigDelIndex, 1); //弹窗内试题配置删除
bigTopicArr[_this5.setConfig.modelId].topicList.forEach(function (minTopic, mIndex) {
var isMiniL = String(_this.topicInfo.alias).indexOf(".");
if (isMiniL > -1) {
minTopic.smTopic.forEach(function (mini, index) {
if (mini.alias == _this.topicInfo.alias) {
minTopic.smTopic.splice(index, 1);
if (minTopic.smTopic.length == 0) {
bigTopicArr[_this5.setConfig.modelId].topicList.splice(mIndex, 1);
}
}
});
} else {
if (minTopic.alias == _this.topicInfo.alias) {
bigTopicArr[_this5.setConfig.modelId].topicList.splice(mIndex, 1);
}
}
});
if (bigTopicArr[_this5.setConfig.modelId].questions.length == 0) {
// bigTopicArr
delete bigTopicArr[_this5.setConfig.modelId];
} else if (bigTopicArr[_this5.setConfig.modelId].questionTypeId == 17) {
delete bigTopicArr[_this5.setConfig.modelId];
} else {
//编辑试题弹窗内题号配置
var titleNumber = _this.topicInfo.alias;
var titleNumberNo = parseInt(_this.topicInfo.alias);
var topicTypeArr = bigTopicArr[_this5.setConfig.modelId].topicConfigureData.topicTypeArr;
var minNoArr = [];
bigTopicArr[_this5.setConfig.modelId].questions.forEach(function (t) {
minNoArr.push(parseInt(t.alias));
}); //过滤重复题号
// let hasMinNoArr = this.arrayUnique(minNoArr);
// hasMinNoArr.forEach(no =>{
// topicTypeArr.forEach((n,ni)=>{
// if(no 1) {
topicTypeArr.splice(ni, 1);
} else {
topicTypeArr[ni].startNo = '';
topicTypeArr[ni].endNo = '';
}
} else {
if (titleNumberNo == n.startNo) {
n.startNo = Number(n.startNo) + 1;
} else {
n.endNo = Number(n.endNo) - 1;
}
}
} else if (titleNumberNo > n.startNo && titleNumberNo < n.endNo) {
var newConfig = JSON.parse(JSON.stringify(n));
if (minNoArr.length == 1) {
n.endNo = minNoArr[0];
n.startNo = minNoArr[0];
} else if (parseInt(titleNumber) == 1) {
// n.endNo = minNoArr[0];
n.startNo = minNoArr[0];
} else {
n.endNo = parseInt(Number(titleNumber)) - 1;
newConfig.startNo = parseInt(Number(titleNumber)) + 1;
topicTypeArr.splice(ni + 1, 0, newConfig);
}
} else {// if(minNoArr.indexOf(parseInt(titleNumber))==-1&&parseInt(titleNumber) == n.startNo && parseInt(titleNumber) == n.endNo ){
// topicTypeArr.splice(ni, 1);
// }else if(parseInt(titleNumber) == n.endNo){
// n.endNo = minNoArr[minNoArr.length-1];
// }
}
});
}
}
_this5.setBigTopicArr(bigTopicArr);
_this5.setBigTopicPageArr([tempArr]); // this.setSomePageReset()
// this.setChangeSomePageIndex({
// index:this.pageIndex,
// isToCurPage:true,//是否回到指定试题
// flag:!this.chageSomePageIndex.flag
// })
_this5.setInitPageFlag(!_this5.initPageFlag);
_this5.$message({
type: 'info',
message: "\u5220\u9664\u6210\u529F"
});
}
});
},
//数组内重复数字过滤
arrayUnique: function arrayUnique(arr) {
var hash = {},
result = [];
for (var i = 0; i < arr.length; i++) {
if (!hash[arr[i]]) {
hash[arr[i]] = true;
result.push(arr[i]);
}
}
return result;
}
})
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/TopicFill.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/answer-sheet/paper/paper-topic/TopicFill.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_array_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.includes */ "./node_modules/core-js/modules/es.array.includes.js");
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.map */ "./node_modules/core-js/modules/es.array.map.js");
/* harmony import */ var core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_3__ = __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_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.regexp.exec */ "./node_modules/core-js/modules/es.regexp.exec.js");
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.string.includes */ "./node_modules/core-js/modules/es.string.includes.js");
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_string_split__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.split */ "./node_modules/core-js/modules/es.string.split.js");
/* harmony import */ var core_js_modules_es_string_split__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_7__ = __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_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
/* harmony import */ var _lib_resetPage__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/lib/resetPage */ "./src/lib/resetPage.js");
/* harmony import */ var _mixins_answersheet_deleteTopic__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/mixins/answersheet/deleteTopic */ "./src/mixins/answersheet/deleteTopic.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* eslint-disable no-console */
/* harmony default export */ __webpack_exports__["default"] = ({
name: "TopicFill",
mixins: [_mixins_answersheet_deleteTopic__WEBPACK_IMPORTED_MODULE_10__["default"]],
props: {
topicInfo: {
type: Array,
default: function _default() {
return [];
}
},
setConfig: {
type: Object,
default: function _default() {
return {};
}
},
modelId: {
type: String
},
pageIndex: {
type: Number,
default: null
}
},
watch: {
setConfig: {
//深度监听数组更新,重排选项
handler: function handler() {
if (this.isMounted) {
this.initFill();
}
},
deep: true
}
},
data: function data() {
return {
topicSetDialog: false,
form: {
columnCount: 1,
//一行个数
rowLineHeight: 40,
//行高
scoreBoxCount: 0,
//下标
columnCountArr: [1, 2, 3],
rowHieightArr: [30, 35, 40, 45, 50],
scoreBoxArr: [{
id: 1,
label: '空白方框'
}, {
id: 2,
label: '2/3/5'
}, {
id: 3,
label: '2/3/4/6'
}, {
id: 4,
label: '2/4'
}],
scoreArr: [2, 3, 5]
},
isMounted: false,
scoreA: 1,
// 2/3/5
scoreB: 1,
// 2/3/4/6
scorec: 1,
// 2/4
scoreFull: []
};
},
mounted: function mounted() {
this.initFill();
this.questionScore();
this.isMounted = true;
},
methods: {
//验证填空题分数
questionScore: function questionScore() {
for (var w = 0; w < this.topicInfo.length; w++) {
this.scoreFull.push(this.topicInfo[w].fullScore);
}
for (var i = 0; i < this.form.scoreBoxArr.length; i++) {
if (i > 0) {
for (var t = 0; t < this.topicInfo.length; t++) {
if (this.form.scoreBoxArr[i].label.includes(this.topicInfo[t].fullScore) && Math.max.apply(Math, Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__["default"])(this.form.scoreBoxArr[i].label.split('/'))) <= Math.max.apply(Math, Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_8__["default"])(this.scoreFull))) {
if (i == 1) {
this.scoreA = 2;
} else if (i == 2) {
this.scoreB = 3;
} else if (i == 3) {
this.scorec = 4;
}
} else {
if (i == 1) {
this.scoreA = 1;
} else if (i == 2) {
this.scoreB = 1;
} else if (i == 3) {
this.scorec = 1;
}
}
}
}
}
},
initFill: function initFill() {
var _this = this;
// this.setConfig.columns 几列
// this.setConfig.rowLineHeight 行高
this.form.scoreBoxArr.forEach(function (item, i) {
if (item.id == _this.setConfig.scoreStyle) {
_this.form.scoreBoxCount = i;
}
});
this.form.columnCount = this.setConfig.columns || 1;
this.form.scoreArr = this.form.scoreBoxCount == 0 ? [''] : this.form.scoreBoxArr[this.form.scoreBoxCount].label.split('/');
},
openSet: function openSet() {
if (this.paperSource === 0) {
this.$emit('showEditBigTopic', this.modelId);
return;
}
this.topicSetDialog = true;
},
confirm: function confirm() {
var _this2 = this;
this.topicSetDialog = false;
if (this.paperSource == 1) {
// 0第三方 1知心慧学
var tempArr = [];
tempArr = Object(_lib_resetPage__WEBPACK_IMPORTED_MODULE_9__["default"])(this.bigTopicPageArr);
tempArr = tempArr.map(function (val) {
if (val.modelId == _this2.modelId) {
val.topicConfigureData.columns = _this2.form.columnCount;
val.topicConfigureData.rowLineHeight = _this2.form.rowLineHeight;
val.topicConfigureData.scoreStyle = _this2.form.scoreBoxArr[_this2.form.scoreBoxCount].id;
}
return val;
});
this.setBigTopicPageArr([tempArr]);
this.setInitPageFlag(!this.initPageFlag);
}
},
cancel: function cancel() {
this.topicSetDialog = false;
}
}
});
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/TopicTitle.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/answer-sheet/paper/paper-topic/TopicTitle.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: 'TopicTitle',
data: function data() {
return {};
},
props: {
titleInfo: {
type: Object,
default: function _default() {
return {};
}
}
}
});
/***/ }),
/***/ "./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/answer-sheet/setting/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/answer-sheet/setting/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_filter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.filter */ "./node_modules/core-js/modules/es.array.filter.js");
/* harmony import */ var core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.from */ "./node_modules/core-js/modules/es.array.from.js");
/* harmony import */ var core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.includes */ "./node_modules/core-js/modules/es.array.includes.js");
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.index-of */ "./node_modules/core-js/modules/es.array.index-of.js");
/* harmony import */ var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.function.name */ "./node_modules/core-js/modules/es.function.name.js");
/* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_6__ = __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_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_7__ = __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_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.string.includes */ "./node_modules/core-js/modules/es.string.includes.js");
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.string.iterator */ "./node_modules/core-js/modules/es.string.iterator.js");
/* harmony import */ var core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_10__ = __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_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var _SetAnswer_vue__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./SetAnswer.vue */ "./src/views/answer-sheet/setting/SetAnswer.vue");
/* harmony import */ var _lib_resetPage__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/lib/resetPage */ "./src/lib/resetPage.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _store_constant__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @/store/constant */ "./src/store/constant.js");
/* harmony import */ var _api_answer_sheet__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/api/answer-sheet */ "./src/api/answer-sheet.js");
/* harmony import */ var _views_answer_sheet_toPdfHtml_Index__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @/views/answer-sheet/toPdfHtml/Index */ "./src/views/answer-sheet/toPdfHtml/Index.vue");
/* harmony import */ var _mixins_answersheet_setPagePos__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @/mixins/answersheet/setPagePos */ "./src/mixins/answersheet/setPagePos.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* eslint-disable no-console, no-debugger */
// import html2canvas from 'html2canvas';
// import Canvas2Image from '@/lib/canvas2image.js';
// import {dataURLtoFile} from '@/lib/util'
/* harmony default export */ __webpack_exports__["default"] = ({
name: "Setting",
components: {
SetAnswer: _SetAnswer_vue__WEBPACK_IMPORTED_MODULE_14__["default"],
toPdfHtml: _views_answer_sheet_toPdfHtml_Index__WEBPACK_IMPORTED_MODULE_19__["default"]
},
mixins: [_mixins_answersheet_setPagePos__WEBPACK_IMPORTED_MODULE_20__["default"]],
data: function data() {
return {
isSetAnswer: false,
bigTopicList: [],
curDateTime: null,
isShowToPdfHtml: false,
pdfHtml: '',
pdf_url: '',
tipsBox1: false,
//信息栏提示
tipsBox2: false,
//二维码提示
saveLoading: false,
centerDialogVisible: false,
tipsContent: ''
};
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_13__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_13__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_16__["mapGetters"])('answerSheet', ['paperSource', 'sizeConfig', 'bigTopicArr', 'topicTypes', 'cardSetting', 'initPageFlag', 'bigTopicArr', 'bigTopicPageArr', 'paperListData', 'testFormData', 'sizeConfig', 'answerCardType', 'isAnswerCardTypeChange'])), {}, {
calcPaperSize: function calcPaperSize() {
// store/answer.sheet.js对应字段注释
var pageStatus = this.cardSetting.paperSize,
pageDirection = this.cardSetting.direction,
pageWidth = this.sizeConfig[pageStatus].width,
pageHeight = this.sizeConfig[pageStatus].height;
var width = pageDirection === 1 ? pageHeight : pageWidth;
var height = pageDirection === 1 ? pageWidth : pageHeight;
return {
width: width,
height: height
};
},
isAllowEdit: function isAllowEdit() {
// 扫描上传的答题卡禁止编辑
if (this.paperSource == 0) {
if (this.testFormData.type == 2) return true;
}
return false;
},
isDisabledBtnDown: function isDisabledBtnDown() {
var isDisabled = true;
if (this.cardSetting.useQrCode) {
isDisabled = this.cardSetting.allowEdit ? true : false;
} else {
if (this.cardSetting.allowEdit) {
isDisabled = true;
} else {
isDisabled = !this.pdf_url ? true : false;
}
}
return isDisabled;
}
}),
watch: {
testFormData: {
handler: function handler() {
this.pdf_url = this.testFormData.pdf_url;
},
deep: true
}
},
mounted: function mounted() {
this.getDefaultData();
},
methods: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_13__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_13__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_16__["mapMutations"])('answerSheet', {
setCardSetting: _store_constant__WEBPACK_IMPORTED_MODULE_17__["SET_CARD_SETTING"],
setBigTopicArr: _store_constant__WEBPACK_IMPORTED_MODULE_17__["SET_BIG_TOPIC_ARR"],
setBigTopicPageArr: _store_constant__WEBPACK_IMPORTED_MODULE_17__["SET_PAGETOPIC_ARR"],
setInitPageFlag: _store_constant__WEBPACK_IMPORTED_MODULE_17__["SET_INITPAGE_FLAG"],
setTestFormData: _store_constant__WEBPACK_IMPORTED_MODULE_17__["SET_TEST_FORM_DATA"],
setAnswerCardType: _store_constant__WEBPACK_IMPORTED_MODULE_17__["SET_ANSWER_CARD_TYPE"]
})), {}, {
getDefaultData: function getDefaultData() {
this.bigTopicList = this.bigTopicArr;
this.pdf_url = this.testFormData.pdf_url;
},
setPosInfo: function setPosInfo() {
//定位点数据组装
this.pages = [{
pageNo: '',
questions: [],
location: [],
imge: {}
}, {
pageNo: '',
questions: [],
location: [],
imge: {}
}];
var dotX = document.querySelector('.unique-code'); // bigTopicArr
for (var modelId in this.bigTopicArr) {
// 不同modelId试题,分开调用,防止选做题位置错误
if ([1, 2, 11, 5, 7, 17, 27, 77].includes(this.bigTopicArr[modelId].questionTypeId)) {
this.getAllTopicPos(modelId, this.bigTopicArr[modelId].questionTypeId);
}
}
this.pageSide(dotX);
this.pointWay(dotX);
if (!this.cardSetting.useQrCode) {
this.identCard(dotX);
}
var params = {}; // params.columns = this.cardSetting.columns;
params.examGroupId = this.cardSetting.examGroupId;
params.title = this.cardSetting.title;
params.useQrCode = this.cardSetting.useQrCode ? 1 : 0;
params.pdfHtml = this.pdfHtml;
params.pdf_url = "";
params.position = {};
params.position.paper = this.sizeConfig[this.cardSetting.paperSize].name; // 横版宽高调换一下
params.position.width = this.cardSetting.direction == 1 ? this.sizeConfig[this.cardSetting.paperSize].height : this.sizeConfig[this.cardSetting.paperSize].width;
params.position.height = this.cardSetting.direction == 1 ? this.sizeConfig[this.cardSetting.paperSize].width : this.sizeConfig[this.cardSetting.paperSize].height; //区分版本
params.online_card_version = '2.0.0';
params.position.online_card_version = '2.0.0';
params.position.columns = this.cardSetting.column;
params.position.totalPage = this.cardSetting.column * 2;
params.position.useQrCode = this.cardSetting.useQrCode ? 1 : 0;
params.position.school_card_status = this.cardSetting.cardStatus;
params.position.cardSetting = this.cardSetting;
params.position.bigTopicArr = this.bigTopicArr;
params.position.bigTopicPageArr = this.bigTopicPageArr;
params.position.paperListData = this.paperListData;
params.position.pages = this.pages;
params.position.answerCardType = this.answerCardType;
params.question_info = {};
var tempArr = [];
for (var key in this.bigTopicArr) {
tempArr.push.apply(tempArr, Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_12__["default"])(this.bigTopicArr[key].questions));
}
params.question_info.content = JSON.parse(JSON.stringify(tempArr));
params.sheet_answer = {};
params.sheet_halfscore = {};
params.sheet_score = {};
tempArr.forEach(function (val) {
if (val.answer && [1, 2, 11].includes(val.questionTypeId)) {
params.sheet_answer[val.questionNum] = val.answer;
}
if (params.sheet_halfscore[val.questionNum]) {
params.sheet_halfscore[val.questionNum] = val.halfScore;
}
params.sheet_score[val.questionNum] = String(val.fullScore);
});
params.timu = {
"KeGuanTi": params.question_info.content.filter(function (val) {
return val.questionTypeId == 1 || val.questionTypeId == 2 || val.questionTypeId == 11;
}).length,
"TianKongTi": params.question_info.content.filter(function (val) {
return val.questionTypeId == 5;
}).length,
"XuanZuoTi": params.question_info.content.filter(function (val) {
return val.questionTypeId == 17;
}).length,
"ZhuGuanTi": params.question_info.content.filter(function (val) {
return val.questionTypeId == 7;
}).length
};
return params;
},
savePage: function savePage() {
var _this2 = this;
var _this = this;
if (!this.cardSetting.allowEdit) {
if (this.answerCardType === 1 || this.isAnswerCardTypeChange) {
if (this.answerCardType === 2) {
this.setAnswerCardType(1);
this.$confirm('当前考试已被设为“题卡合一”模式,是否确定更改?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function () {
// restoreAnswerInfo
_this2.$message({
type: 'success',
message: '考试已被设置为【题卡合一】,请注意答题卡以被重置!'
});
_this2.$emit("restAnswerSheet", true);
}).catch(function () {
_this2.$message({
type: 'info',
message: '已取消'
});
});
} else {
this.$confirm(this.isAnswerCardTypeChange ? '当前考试已被设为“题卡分离”模式,是否确定更改?' : '当前考试为“题卡合一”模式,是否还原为系统默认排版样式?”', '提示', {
confirmButtonText: this.isAnswerCardTypeChange ? '确定' : '确认还原',
cancelButtonText: this.isAnswerCardTypeChange ? '取消' : '不还原',
type: 'warning'
}).then(function () {
// restoreAnswerInfo
if (_this2.answerCardType === 1) {
_this2.setAnswerCardType(2);
_this2.$message({
type: 'success',
message: '考试已被设置为【题卡分离】,请注意答题卡以被重置!'
});
} else {
_this2.setAnswerCardType(1);
}
_this2.$emit("restAnswerSheet", true); // this.$message({
// type: 'success',
// message: '删除成功!'
// });
}).catch(function () {
_this2.$message({
type: 'info',
message: '已取消'
});
});
}
}
this.cardSetting.allowEdit = !this.cardSetting.allowEdit;
this.setCardSetting(this.cardSetting);
return;
} //第三方重置题号
if (this.paperSource == 0) {
var newQuestionNum = 1;
var tempArr = [];
var groupid = 0; //选做题组,区分多道选做题大题
// let ChooseL = 0;//有几道选做题大题
var upModId = '';
for (var key in this.bigTopicArr) {
tempArr.push(this.bigTopicArr[key]);
}
tempArr.forEach(function (bigTopic) {
bigTopic.questions.forEach(function (topic) {
topic.questionNum = newQuestionNum;
newQuestionNum++;
if (bigTopic.questionTypeId == 17) {
// ChooseL = ChooseL+1;
if (upModId != bigTopic.modelId) {
upModId = bigTopic.modelId;
groupid++;
}
topic.groupid = JSON.parse(JSON.stringify(groupid));
}
_this2.bigTopicPageArr.forEach(function (page) {
page.forEach(function (big) {
for (var i = 0; i < big.questions.length; i++) {
if (big.questions[i].alias == topic.alias) {
big.questions[i].questionNum = topic.questionNum;
break;
}
}
});
});
});
});
this.setBigTopicArr(this.bigTopicArr);
this.setBigTopicPageArr(this.bigTopicPageArr);
}
var pageL = this.bigTopicPageArr.length;
if (pageL > this.cardSetting.column * 2) {
this.$message.error('超出' + this.cardSetting.column * 2 + '页,请重新编辑后再保存!');
return false;
}
if (this.cardSetting.title == '') {
this.centerDialogVisible = true;
this.tipsContent = "考试名称不能为空!"; //this.$message.error('考试名称不能为空!')
return false;
}
var isAnswerErr = false;
for (var _key in this.bigTopicArr) {
if ([1, 2, 11].includes(this.bigTopicArr[_key].questionTypeId)) {
this.bigTopicArr[_key].questions.forEach(function (topic) {
if (topic.answer == '') {
isAnswerErr = true;
}
});
}
}
if (isAnswerErr) {
this.centerDialogVisible = true;
this.tipsContent = "请设置答案!"; //this.$message.error('请设置答案!');
return false;
}
this.cardSetting.allowEdit = false;
this.setCardSetting(this.cardSetting); //生成pdf
// this.saveLoading&&this.saveLoading.close();
this.saveLoading = this.$loading.service({
lock: true,
text: '保存中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.isShowToPdfHtml = true;
this.$refs.toPdfHtml.getDefaultData();
setTimeout(function () {
_this2.$nextTick(function () {
// 定位点位置
var params = _this2.setPosInfo(); // 禁止作答区域高度设置,解决BlankPage组件中设置高度三栏无效
Array.from(document.querySelectorAll('.blank-page')).forEach(function (v) {
v.style.height = document.querySelectorAll('.paper-item')[0].offsetHeight - 100 + 'px';
});
var upData = {
width: '210mm',
height: '297mm',
name: 'pdf',
examGroupId: _this2.cardSetting.examGroupId,
pdfHtml: _this2.pdfHtml
};
upData.width = _this2.calcPaperSize.width + 'mm';
upData.height = _this2.calcPaperSize.height + 'mm';
upData.name = _this2.cardSetting.title;
upData.pdfHtml = _this2.getPdfHtml();
var uploadForm = new FormData();
Object.keys(upData).forEach(function (key) {
uploadForm.append(key, upData[key]);
});
Object(_api_answer_sheet__WEBPACK_IMPORTED_MODULE_18__["getOnlinePdf"])(uploadForm).then(function (res) {
// this.saveLoading.close();
// let resData = JSON.parse(res);
if (res.success == 0) {
_this2.$message.error('生成pdf失败,请稍后再试!');
_this2.cardSetting.allowEdit = true;
_this2.setCardSetting(_this2.cardSetting);
_this.saveLoading.close();
return false;
} else {
_this2.pdf_url = res.data;
params.pdf_url = res.data;
params.pdfHtml = _this2.pdfHtml;
_this.testFormData.pdf_url = res.data;
_this.setTestFormData(_this.testFormData);
if (_this2.paperSource == 0) {
//第三方临时保存
_this2.testFormData.editType = 1;
_this2.testFormData.pdf_url = res.data; // let upData = {
// examGroupId:params.examGroupId,
// text:JSON.stringify({
// testFormData:this.testFormData,
// savePrintInfo:params
// })
// };
var _upData = {
testFormData: _this2.testFormData,
savePrintInfo: params
};
localStorage.setItem('upDataThreeCard', JSON.stringify(_upData));
_this.saveLoading.close();
_this2.$message.success('保存成功!'); // let uploadForm = new FormData();
// Object.keys(upData).forEach((key) => {
// uploadForm.append(key, upData[key]);
// });
// saveOnlineCardTempData(uploadForm).then(res=>{
// console.log(res)
// _this.saveLoading.close();
// if(res.status == 1){
// // _this.loading.close();
// this.$message.success('保存成功!')
// }else {
// _this.cardSetting.allowEdit = true;
// _this.setCardSetting(this.cardSetting);
// _this.$message.error('保存失败,请稍后再试!')
// }
// })
} else {
//知心慧学保存
// let pages = this.$refs.toPdfHtml.$el.getElementsByClassName('side');
// let pages = this.$refs.toPdfHtml.$el.querySelectorAll('.side');
var _upData2 = params;
var _uploadForm = new FormData(); // let html2canvasPromise = [];
// //html2canvas 返回的是一个promise
// [].slice.call(pages).forEach(function (pageItem) {
// html2canvasPromise.push(html2canvas(pageItem))
// })
// let html2canvasPromise = [];
// //html2canvas 返回的是一个promise
// pages.forEach(pageItem => {
// html2canvasPromise.push(html2canvas(pageItem,{imageTimeout:5000}))
// })
// Promise.all(html2canvasPromise).then(function (res) {
// let imgFiles = []
// res.forEach(function (canvas, index) {
// let img = Canvas2Image.convertToJPEG(canvas);
// let dataUrl = img.src;
// imgFiles.push(dataURLtoFile(dataUrl, 'pic' + index + '.jpeg'))
// })
//处理模版html
var pdfHtmlStream = new Blob([_this.pdfHtml], {
type: 'text/plain;charset=utf-8'
});
_this.isShowToPdfHtml = false;
Object.keys(_upData2).forEach(function (key) {
if (Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_11__["default"])(_upData2[key]) === 'object') {
_uploadForm.append(key, JSON.stringify(_upData2[key]));
} else {
_uploadForm.append(key, _upData2[key]);
}
});
_uploadForm.append('pdfTemplate', pdfHtmlStream, 'pdfTepmlate.txt'); //试卷原图
// imgFiles.forEach(function (img, index) {
// uploadForm.append('imgFiles' + index, img)
// })
Object(_api_answer_sheet__WEBPACK_IMPORTED_MODULE_18__["saveCardOnline"])(_uploadForm).then(function (res) {
_this.saveLoading.close();
console.log(res); // _this.loading.close();
_this.$message.success('保存成功!');
}).catch(function (err) {
console.log(err);
_this.saveLoading.close();
_this.cardSetting.allowEdit = true;
_this.setCardSetting(_this2.cardSetting);
_this.$message.error('保存失败,请稍后再试!');
}); // }).catch(() => {
// this.saveLoading.close();
// _this.cardSetting.allowEdit = true;
// _this.setCardSetting(this.cardSetting);
// _this.$message.error('保存失败,请稍后再试!')
// })
}
}
}).catch(function () {
_this2.saveLoading.close();
_this.cardSetting.allowEdit = true;
_this.setCardSetting(_this2.cardSetting);
_this.$message.error('保存失败,请稍后再试!');
});
}); // params.sheet_answer = {}
// params.sheet_score = {}
// params.pdfHtml = ""
// saveOnlineCardTempData().then(res=>{
//
// })
// }
}, 200);
},
changePageSize: function changePageSize() {
var isOk = this.isDisabledDirection(this.cardSetting.direction);
if (isOk) {
this.cardSetting.direction = this.cardSetting.direction === 1 ? 2 : 1;
this.changePageDirection();
}
if (this.isDisabledCardColumn(this.cardSetting.column)) {
this.changePageDirection();
}
this.saveCardSetting();
},
isDisabledDirection: function isDisabledDirection(type) {
// type:1横版 2竖版
var directionName = type === 1 ? 'horizontal' : 'vertical';
return !this.sizeConfig[this.cardSetting.paperSize].direction[directionName].length > 0;
},
changePageDirection: function changePageDirection() {
if (this.isDisabledCardColumn(this.cardSetting.column)) {
var directionName = this.cardSetting.direction === 1 ? 'horizontal' : 'vertical';
this.cardSetting.column = this.sizeConfig[this.cardSetting.paperSize].direction[directionName][0];
}
this.saveCardSetting();
},
setCardColumn: function setCardColumn(type) {
if (!this.isDisabledCardColumn(type)) {
this.cardSetting.column = type;
}
this.saveCardSetting();
},
cardColumnClass: function cardColumnClass(type) {
if (type === this.cardSetting.column) {
return 'current';
} else if (this.isDisabledCardColumn(type)) {
return 'disabled';
} else {
return '';
}
},
isDisabledCardColumn: function isDisabledCardColumn(type) {
var directionName = this.cardSetting.direction === 1 ? 'horizontal' : 'vertical';
var typeIndex = this.sizeConfig[this.cardSetting.paperSize].direction[directionName].indexOf(type);
return typeIndex <= -1;
},
changePageExaminationNumberType: function changePageExaminationNumberType() {
// console.log(arr)
// if(arr.length<1){
// this.cardSetting.examinationNumberType = [1]
// this.$message({
// message: '不使用二维码的情况下,填涂考号和条形码至少选择一个',
// type: 'warning'
// });
// }
this.saveCardSetting();
},
changePageUseQrCode: function changePageUseQrCode(type) {
var _this3 = this;
this.cardSetting.useQrCode = false;
if (type) {
this.$confirm('使用二维码,将给每个考试都生成一份定制答题卡,是否确定使用?', '提示', {
confirmButtonText: '仍要使用',
cancelButtonText: '取消',
type: 'warning'
}).then(function () {
_this3.cardSetting.useQrCode = true;
_this3.cardSetting.examinationNumberType = [];
_this3.saveCardSetting();
}).catch(function () {
_this3.$message({
type: 'info',
message: '已取消'
});
_this3.cardSetting.useQrCode = false;
});
} else {
this.cardSetting.examinationNumberType = [1, 2];
this.saveCardSetting();
}
},
showAddBigTopic: function showAddBigTopic() {
this.$emit("showAddBigTopic", true);
},
setPaperInfoMsg: function setPaperInfoMsg() {
// hasPaperMsg
this.cardSetting.examInfoConfig.forEach(function (v) {
return v.isShow = true;
});
this.setCardSetting(this.cardSetting);
this.saveCardSetting();
},
saveCardSetting: function saveCardSetting() {
if (this.cardSetting.column == 3 && this.cardSetting.paperSize == 4) {
this.cardSetting.hasBindingLine = 0;
}
this.setCodeRules();
this.setCardSetting(this.cardSetting); // 防止两秒之内重复渲染页面,解决A4两栏切8k三栏bug
if (new Date().getTime() - this.curDateTime < 2000) return;
this.curDateTime = new Date().getTime();
this.setBigTopicPageArr([Object(_lib_resetPage__WEBPACK_IMPORTED_MODULE_15__["default"])(this.bigTopicPageArr)]);
this.setInitPageFlag(!this.initPageFlag);
},
showSelectSetAnswer: function showSelectSetAnswer() {
this.centerDialogVisible = false;
this.isSetAnswer = true;
},
getTopicTypeText: function getTopicTypeText(type) {
var text = '';
this.topicTypes.forEach(function (item) {
if (type == item.value) {
text = item.label;
}
});
return text;
},
goPreview: function goPreview() {
this.$router.push({
path: '/AnswerSheetPreview',
query: {
exam_group_id: this.cardSetting.examGroupId
}
});
},
getPdfHtml: function getPdfHtml() {
var pdfHtm = '';
pdfHtm = pdfHtm + '';
pdfHtm = pdfHtm + '';
pdfHtm = pdfHtm + '';
pdfHtm = pdfHtm + '';
pdfHtm = pdfHtm + 'Document';
pdfHtm = pdfHtm + '';
pdfHtm = pdfHtm + '';
pdfHtm = pdfHtm + '';
pdfHtm = pdfHtm + '';
pdfHtm = pdfHtm + this.$refs.toPdfHtml.$el.outerHTML;
pdfHtm = pdfHtm + '';
this.pdfHtml = pdfHtm;
return pdfHtm;
},
downPdf: function downPdf(type) {
var _this4 = this;
var upData = {
width: '210mm',
height: '297mm',
name: 'pdf',
examGroupId: this.cardSetting.examGroupId,
pdfHtml: this.pdfHtml
};
var uploadForm = new FormData();
Object.keys(upData).forEach(function (key) {
uploadForm.append(key, upData[key]);
});
this.isShowToPdfHtml = false;
Object(_api_answer_sheet__WEBPACK_IMPORTED_MODULE_18__["getOnlinePdf"])(uploadForm).then(function (res) {
// let resData = JSON.parse(res);
if (res.success == 0) {
_this4.$message.error('生成pdf失败,请稍后再试!');
return false;
} else {
_this4.pdf_url = res.data; //type 1 保存答题卡,2下载答题卡
if (type === 1) {
return Promise.resolve(res);
} else {
location.href = {"apiBaseUrl":"http://zsyas2.dev.xueping.com","siteUrl":"http://zsyas2.dev.xueping.com/vue/index.html#","phpPath":"http://zsyas2.dev.xueping.com/vue","phpBaseUrl":"/","xiaoben":"http://xbas2.dev.xiaoben.com"}.apiBaseUrl + '/third/download?url=' + res.data + '&title=pdf-' + _this4.cardSetting.title + '.pdf';
} //调试用
// window.open(res.data)
}
});
},
downPdfAll: function downPdfAll() {
var _this5 = this;
var _this = this;
var pageL = this.bigTopicPageArr.length;
if (pageL > this.cardSetting.column * 2) {
this.$message.error('超出' + this.cardSetting.column * 2 + '页,请重新编辑后再保存!');
return false;
}
if (this.cardSetting.useQrCode) {
this.$confirm('该操作会把该场考试下面的所有班级学生考试模板进行批量生成。请勿重复生成!', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function () {
var uploadForm = new FormData();
uploadForm.append('exam_group_id', _this.cardSetting.examGroupId);
Object(_api_answer_sheet__WEBPACK_IMPORTED_MODULE_18__["sendCreateOnlineAllStudents"])(uploadForm).then(function (res) {
if (res.status === 1) {
_this.$message({
type: 'success',
message: '后台批量生成中!'
});
}
});
}).catch(function () {
_this5.$message({
type: 'info',
message: '已取消'
});
});
} else {
location.href = {"apiBaseUrl":"http://zsyas2.dev.xueping.com","siteUrl":"http://zsyas2.dev.xueping.com/vue/index.html#","phpPath":"http://zsyas2.dev.xueping.com/vue","phpBaseUrl":"/","xiaoben":"http://xbas2.dev.xiaoben.com"}.apiBaseUrl + '/third/download?url=' + this.pdf_url + '&title=pdf-' + this.cardSetting.title + '.pdf';
}
},
enterLinesTips: function enterLinesTips() {
this.tipsBox1 = true;
},
leaveLinesTips: function leaveLinesTips() {
this.tipsBox1 = false;
},
enterEwmTips: function enterEwmTips() {
this.tipsBox2 = true;
},
leaveEwmTips: function leaveEwmTips() {
this.tipsBox2 = false;
},
isShowBigTopicNo: function isShowBigTopicNo(bigTopic) {
var config = bigTopic.topicConfigureData.topicTypeArr[0];
if (config.startNo != '' && config.endNo != '') {
return true;
} else {
return false;
}
},
setDisabled: function setDisabled(val) {
return this.cardSetting.examinationNumberType.includes(val) && this.cardSetting.examinationNumberType.length == 1 || this.cardSetting.cardLength > 12 && [3, 4, 5].includes(this.cardSetting.paperSize);
},
setCodeRules: function setCodeRules() {
// 不使用二维码时,并且不满足showCodeRules时,只选中填涂考号,并且禁用装订线
var showCodeRules = this.cardSetting.cardLength < 15 && ([1, 2].includes(this.cardSetting.paperSize) || !(this.cardSetting.cardLength > 12 && [3, 4, 5].includes(this.cardSetting.paperSize)));
if (!showCodeRules && !this.cardSetting.useQrCode) {
this.cardSetting.examinationNumberType = [1];
this.cardSetting.hasBindingLine = 0;
}
}
})
});
/***/ }),
/***/ "./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/answer-sheet/setting/SetAnswer.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/answer-sheet/setting/SetAnswer.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_array_includes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.includes */ "./node_modules/core-js/modules/es.array.includes.js");
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_object_values__WEBPACK_IMPORTED_MODULE_2__ = __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_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes */ "./node_modules/core-js/modules/es.string.includes.js");
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _store_constant__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/store/constant */ "./src/store/constant.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* eslint-disable no-console */
/* harmony default export */ __webpack_exports__["default"] = ({
name: "SetAnswer",
components: {},
filters: {},
props: {},
data: function data() {
return {
topicData: [{
alias: '1',
answer: '',
questionTypeId: 1,
questionTypeText: '单选题',
optionsCount: 4
}, {
alias: '2',
answer: '',
questionTypeId: 2,
questionTypeText: '多选题',
optionsCount: 7
}],
topicList: []
};
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_7__["mapGetters"])('answerSheet', ['bigTopicArr', 'topicTypes'])),
watch: {
bigTopicArr: {
handler: function handler() {
this.getDefaultData();
},
deep: true
}
},
mounted: function mounted() {
this.getDefaultData();
},
methods: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_6__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_7__["mapMutations"])('answerSheet', {
setBigTopicArr: _store_constant__WEBPACK_IMPORTED_MODULE_8__["SET_BIG_TOPIC_ARR"]
})), {}, {
getDefaultData: function getDefaultData() {
var _this = this;
this.topicData = [];
this.topicList = [];
Object.values(this.bigTopicArr).forEach(function (bigTopic) {
if ([1, 2, 11].includes(bigTopic.questionTypeId)) {
var _this$topicData;
for (var i = 0; i < bigTopic.questions.length; i++) {
if (bigTopic.questionTypeId == 1) {
bigTopic.questions[i].questionTypeText = "单选题";
} else if (bigTopic.questionTypeId == 2) {
bigTopic.questions[i].questionTypeText = "多选题";
} else if (bigTopic.questionTypeId == 11) {
bigTopic.questions[i].questionTypeText = "不定项";
}
}
(_this$topicData = _this.topicData).push.apply(_this$topicData, Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__["default"])(bigTopic.questions));
}
}); //初始化选择题选项
this.topicData.forEach(function (topic) {
var newTopic = JSON.parse(JSON.stringify(topic));
newTopic.optionList = _this.getOptionList(topic);
_this.topicList.push(newTopic);
});
},
saveSelectAnswer: function saveSelectAnswer() {
var _this2 = this;
//保存设置的选择题答案
this.topicList.forEach(function (topic, index) {
var answer = '';
topic.optionList.forEach(function (opt) {
if (opt.isAnswer) {
answer = answer + (answer == '' ? opt.value : ',' + opt.value);
}
});
_this2.topicData[index].answer = answer;
});
this.setBigTopicArr(this.bigTopicArr);
this.cancel();
},
cancel: function cancel() {
this.$emit("cancel", false);
},
getOptionList: function getOptionList(topic) {
var optArr = [];
for (var i = 0; i < topic.optionCount; i++) {
optArr.push({
value: String.fromCharCode(65 + i),
isAnswer: topic.answer.includes(String.fromCharCode(65 + i))
});
}
return optArr;
},
setAnswer: function setAnswer(opt, topic) {
if (topic.questionTypeId === 1) {
topic.optionList.forEach(function (item) {
if (item.value === opt.value) {
item.isAnswer = true;
} else {
item.isAnswer = false;
}
});
} else {
opt.isAnswer = !opt.isAnswer;
}
}
})
});
/***/ }),
/***/ "./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/answer-sheet/topic/AddTopic.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/answer-sheet/topic/AddTopic.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_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat */ "./node_modules/core-js/modules/es.array.concat.js");
/* harmony import */ var core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_fill__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.fill */ "./node_modules/core-js/modules/es.array.fill.js");
/* harmony import */ var core_js_modules_es_array_fill__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_fill__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2__ = __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_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.includes */ "./node_modules/core-js/modules/es.array.includes.js");
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.index-of */ "./node_modules/core-js/modules/es.array.index-of.js");
/* harmony import */ var core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_index_of__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.join */ "./node_modules/core-js/modules/es.array.join.js");
/* harmony import */ var core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.map */ "./node_modules/core-js/modules/es.array.map.js");
/* harmony import */ var core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_7__ = __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_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.function.name */ "./node_modules/core-js/modules/es.function.name.js");
/* harmony import */ var core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_9__ = __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_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_10__ = __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_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var core_js_modules_es_object_values__WEBPACK_IMPORTED_MODULE_11__ = __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_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.regexp.exec */ "./node_modules/core-js/modules/es.regexp.exec.js");
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_12__);
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.string.includes */ "./node_modules/core-js/modules/es.string.includes.js");
/* harmony import */ var core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes__WEBPACK_IMPORTED_MODULE_13__);
/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.string.replace */ "./node_modules/core-js/modules/es.string.replace.js");
/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_14__);
/* harmony import */ var core_js_modules_es_string_split__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.string.split */ "./node_modules/core-js/modules/es.string.split.js");
/* harmony import */ var core_js_modules_es_string_split__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split__WEBPACK_IMPORTED_MODULE_15__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_16__ = __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_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_16__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _store_constant__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @/store/constant */ "./src/store/constant.js");
/* harmony import */ var _lib_util_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @/lib/util.js */ "./src/lib/util.js");
/* harmony import */ var _MinTopicEditItem__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./MinTopicEditItem */ "./src/views/answer-sheet/topic/MinTopicEditItem.vue");
/* harmony import */ var _common_SubjectSelect__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../common/SubjectSelect */ "./src/views/answer-sheet/common/SubjectSelect.vue");
/* harmony import */ var _lib_resetPage__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @/lib/resetPage */ "./src/lib/resetPage.js");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* eslint-disable no-console, no-debugger*/
/* harmony default export */ __webpack_exports__["default"] = ({
name: "AddTopic",
components: {
MinTopicEditItem: _MinTopicEditItem__WEBPACK_IMPORTED_MODULE_22__["default"],
SubjectSelect: _common_SubjectSelect__WEBPACK_IMPORTED_MODULE_23__["default"]
},
filters: {},
props: {
subjectId: Number,
isEdit: Boolean,
editModelId: String
},
data: function data() {
return {
bigQuestionNos: [],
topicTypeOptions: [],
topicConfigureData: {
BigNo: '一',
name: '',
topicType: '',
subject: 12,
direction: 0,
columns: 1,
rowLineHeight: 40,
scoreStyle: 1,
scoreLimit: 15,
hasHalfScore: false,
compositionNumber: 800,
compositionRows: 10,
topicTypeArr: [{
startNo: '',
endNo: '',
optionsNumber: '',
chooseOption: 2,
chooseSelectOption: 1,
score: '',
halfScore: ''
}]
},
newTopicConfigureData: {
BigNo: '一',
name: '',
topicType: '',
subject: 12,
direction: 0,
columns: 1,
rowLineHeight: 40,
scoreStyle: 1,
scoreLimit: 15,
hasHalfScore: false,
compositionNumber: 800,
compositionRows: 10,
topicTypeArr: [{
startNo: '',
endNo: '',
optionsNumber: '4',
chooseOption: 2,
chooseSelectOption: 1,
score: '',
halfScore: ''
}]
},
topicList: [],
defaultTopicConfig: {
startNo: '',
endNo: '',
optionsNumber: '',
chooseOption: 2,
chooseSelectOption: 1,
score: '',
halfScore: ''
},
chooseOptions: [{
label: "二",
value: 2
}, {
label: "三",
value: 3
}, {
label: "四",
value: 4
}],
chooseSelectOptions: [{
label: "一",
value: 1
} // {
// label: "二",
// value: 2
// }
],
defaultTopicItem: {
isQuestion: false,
topicQues: '',
score: ''
},
columns: [{
label: '1',
value: 1
}, {
label: '2',
value: 2
}, {
label: '3',
value: 3
}],
lineHeights: [{
label: '30px',
value: 30
}, {
label: '35px',
value: 35
}, {
label: '40px',
value: 40
}, {
label: '45px',
value: 45
}, {
label: '50px',
value: 50
}],
scoreOpt: [{
label: '空白方框',
value: 1,
disabled: false
}, {
label: '2/3/5',
value: 2,
disabled: false
}, {
label: '2/3/4/6',
value: 3,
disabled: false
}, {
label: '2/4',
value: 4,
disabled: false
}],
scoreMaxOptions: [{
label: '上限15',
value: 15,
disabled: false
}, {
label: '上限16',
value: 16,
disabled: false
}, {
label: '上限29',
value: 29,
disabled: false
}, {
label: '上限49',
value: 49,
disabled: false
}, {
label: '上限69',
value: 69,
disabled: false
}],
topicNoArr: [],
errMsg: '',
isRunWatch: true
};
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_18__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_18__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_19__["mapGetters"])('answerSheet', ['topicTypes', 'subject', 'bigTopicArr', 'initPageFlag', 'cardSetting', 'bigTopicPageArr', 'chageSomePageIndex'])), {}, {
isSelectType: function isSelectType() {
return [1, 2, 11].includes(this.topicConfigureData.topicType);
},
//多选,不定项选择和多选题
isMoreSelectType: function isMoreSelectType() {
return [2, 11].includes(this.topicConfigureData.topicType);
},
isFillInBlank: function isFillInBlank() {
return this.topicConfigureData.topicType === 5;
},
isAnswer: function isAnswer() {
return [7, 17, 77].includes(this.topicConfigureData.topicType);
},
isChooseAnswer: function isChooseAnswer() {
return this.topicConfigureData.topicType === 17;
},
//作文 77为前端定义,传给后台应为7
isComposition: function isComposition() {
return this.topicConfigureData.topicType === 77;
},
//语文作文
isCompositionZH: function isCompositionZH() {
return this.topicConfigureData.topicType === 77 && this.subject === 9;
},
//英语作文
isCompositionEN: function isCompositionEN() {
return this.topicConfigureData.topicType === 77 && this.subject === 8;
},
//带小问小题的题型
hasSmQuestionTopic: function hasSmQuestionTopic() {
return [5, 7, 17].includes(this.topicConfigureData.topicType);
},
//综合科目,文综理综
isZongHe: function isZongHe() {
return [18, 19].includes(this.subject);
}
}),
watch: {
// topicConfigureData: {
// handler(newVal) {
// if(this.isRunWatch){
// this.addTopicList(newVal);
// }else {
// this.$nextTick(()=>{
// if(!this.isRunWatch){
// this.isRunWatch=true;
// }
// })
// }
// },
// deep: true
// },
topicList: {
handler: function handler(newVal) {
// if(newVal.length>0&&this.isRunWatch){
// this.questionsChangeEdit(newVal)
// }else {
// this.$nextTick(()=>{
// if(!this.isRunWatch){
// this.isRunWatch=true;
// }
// })
// }
this.questionsChangeEdit(newVal);
},
deep: true
}
},
mounted: function mounted() {
this.getDefaultData();
},
methods: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_18__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_18__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_19__["mapMutations"])('answerSheet', {
setBigTopicArr: _store_constant__WEBPACK_IMPORTED_MODULE_20__["SET_BIG_TOPIC_ARR"],
setPaperListData: _store_constant__WEBPACK_IMPORTED_MODULE_20__["SET_PAPER_LIST_DATA"],
setBigTopicPageArr: _store_constant__WEBPACK_IMPORTED_MODULE_20__["SET_PAGETOPIC_ARR"],
setInitPageFlag: _store_constant__WEBPACK_IMPORTED_MODULE_20__["SET_INITPAGE_FLAG"],
setCardSetting: _store_constant__WEBPACK_IMPORTED_MODULE_20__["SET_CARD_SETTING"],
setChangeSomePageIndex: _store_constant__WEBPACK_IMPORTED_MODULE_20__["SET_CHANGE_SOMEPAGE_INDEX"]
})), {}, {
trimLR: function trimLR() {
this.topicConfigureData.name = this.topicConfigureData.name.replace(/\s/g, '');
},
getDefaultData: function getDefaultData() {
var _this2 = this;
this.errMsg = '';
if (this.isEdit) {
this.isRunWatch = false;
this.topicConfigureData = this.bigTopicArr[this.editModelId].topicConfigureData;
this.topicList = this.bigTopicArr[this.editModelId].topicList; // return false
} else {
this.topicConfigureData = JSON.parse(JSON.stringify(this.newTopicConfigureData));
this.topicList = [];
}
this.calcBigNo();
if (!this.isEdit) {
this.topicConfigureData.BigNo = this.bigQuestionNos[0].value;
if (this.isZongHe) {
if (this.subject === 18) {
this.topicConfigureData.subject = 12;
} else {
this.topicConfigureData.subject = 15;
}
} else {
this.topicConfigureData.subject = this.subject;
}
} //获取除当前大题外所有已使用题号
var bigTopics = Object.values(this.bigTopicArr);
this.topicNoArr = [];
bigTopics.forEach(function (module) {
if (module.topicConfigureData.BigNo != _this2.topicConfigureData.BigNo) {
module.topicList.forEach(function (topic) {
_this2.topicNoArr.push(topic.topicNo);
});
}
}); //根据科目过滤题型
this.topicTypeOptions = [];
this.topicTypes.forEach(function (opt) {
if (_this2.subject === 3) {
if (opt.value !== 11 && opt.value !== 77) {
if (opt.value !== 27) {
_this2.topicTypeOptions.push(opt);
}
}
} else if (_this2.subject === 8 || _this2.subject === 9) {
if (opt.value !== 2 && opt.value !== 27) {
_this2.topicTypeOptions.push(opt);
}
} else {
if (opt.value !== 2 && opt.value !== 77) {
if (opt.value !== 27) {
_this2.topicTypeOptions.push(opt);
}
}
}
});
},
//计算大题号,默认一~九十九
calcBigNo: function calcBigNo() {
var cacheQuesNos = [];
for (var i = 1; i < 100; i++) {
var chineseTitle = Object(_lib_util_js__WEBPACK_IMPORTED_MODULE_21__["SectionToChinese"])(i);
cacheQuesNos.push({
label: chineseTitle,
value: chineseTitle
});
}
var SelectBigNoArr = [];
for (var bigNo in this.bigTopicArr) {
SelectBigNoArr.push(this.bigTopicArr[bigNo].topicConfigureData.BigNo);
}
SelectBigNoArr.forEach(function (bigNo) {
cacheQuesNos.forEach(function (item, index) {
if (item.label == bigNo) {
cacheQuesNos.splice(index, 1);
}
});
});
this.bigQuestionNos = cacheQuesNos;
},
addTopicType: function addTopicType() {
var tempData = JSON.parse(JSON.stringify(this.defaultTopicConfig));
tempData.optionsNumber = tempData.optionsNumber || '4';
this.topicConfigureData.topicTypeArr.push(tempData);
},
delTopicType: function delTopicType(index) {
if (this.topicConfigureData.topicTypeArr.length > 1) {
this.topicConfigureData.topicTypeArr.splice(index, 1);
} else {
var defaultTopicConfig = JSON.parse(JSON.stringify(this.defaultTopicConfig));
this.topicConfigureData.topicTypeArr[0] = defaultTopicConfig; // this.questions = [];
}
this.addTopicList(this.topicConfigureData);
},
setQuestionNum: function setQuestionNum(num) {
//题号唯一
var arr = String(num).split('.');
var firstNum = null,
centerNum = null,
lastNum = null,
result = null;
if (arr.length == 1) {
// 不带小数点不作处理
result = arr[0];
} else {
if (arr[0].length == 1 || arr[0].length == 3) {
// 各位或者百位数,并且带小数的,加原数字,并且加999防止与三位数题重复
firstNum = arr[0].length == 1 ? 999 + arr[0] : arr[0];
} else if (arr[0].length == 2) {
// 十位数字并且带小数,第二位如果是0,给原数字前加原数字。非零加第一位数
if (arr[0].includes('0')) {
firstNum = arr[0];
} else {
firstNum = arr[0].substring(0, 1);
}
}
centerNum = arr[0];
lastNum = arr[1];
result = firstNum + centerNum + lastNum;
}
return parseInt(result);
},
addTopicList: function addTopicList(data) {
var _this3 = this;
// let data = this.topicConfigureData;
//试题配置校验
if (!this.addTopicListDataVerification(data)) {
this.topicList = [];
return false;
}
var _this = this;
this.topicList = [];
var selectSupItem = {};
if (this.isSelectType) {
selectSupItem = {
optionsCount: data.optionsNumber
};
if (this.isMoreSelectType) {
selectSupItem.halfScore = data.halfScore;
}
}
data.topicTypeArr.forEach(function (topicType) {
if (Number(topicType.startNo) < 1) {
return false;
}
if (_this3.isSelectType) {
selectSupItem = {
optionsCount: topicType.optionsNumber
};
if (_this3.isMoreSelectType) {
selectSupItem.halfScore = topicType.halfScore;
}
}
var topicLength = data.topicType == 17 ? topicType.chooseOption : Number(topicType.endNo) - Number(topicType.startNo) + 1;
for (var i = 0; i < topicLength; i++) {
var topic = Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_18__["default"])({
alias: Number(topicType.startNo) + i,
answer: "",
fullScore: topicType.score,
markQuestionType: 5,
markType: "0",
questionNo: Number(topicType.startNo) + i,
topicNo: Number(topicType.startNo) + i,
questionTypeId: data.topicType,
questionTypeText: '',
score: topicType.score,
subject: _this.subject,
smTopic: [],
smQuestion: [],
hasSmQuestion: false,
topicQues: ''
}, selectSupItem);
if (_this.isZongHe) {
if (data.topicType !== 17) {
if (_this.subject == 18) {
topic.subject = 12;
} else {
topic.subject = 15;
}
} else {
topic.subject = data.subject;
}
}
topic.questionTypeText = _this.getTopicTypeText(data.topicType);
_this.topicList.push(topic);
}
});
},
addTopicListDataVerification: function addTopicListDataVerification(data) {
var _this4 = this;
var _this = this;
var err = [];
data.topicTypeArr.forEach(function (obj) {
if (obj.endNo == '') {
err.push('题号格式错误');
return false;
}
var startNo = Number(obj.startNo);
var endNo = Number(obj.endNo);
if (startNo < 1) {
obj.startNo = '';
err.push('题号格式错误');
return false;
}
var isStartNo = _this4.topicNoArr.includes(startNo);
if (isStartNo) {
// obj.startNo = '';
_this.errMsg = '题号格式错误';
err.push('题号格式错误');
return false;
}
if (endNo < startNo) {
_this.errMsg = '题号格式错误';
err.push('题号格式错误');
return false;
}
var isEndNo = _this4.topicNoArr.includes(endNo);
if (isEndNo) {
obj.endNo = '';
_this.errMsg = '题号格式错误';
err.push('题号格式错误');
return false;
}
var topicLength = Number(obj.endNo) - Number(obj.startNo) + 1;
if (data.topicType === 17 && topicLength !== obj.chooseOption) {
obj.endNo = '';
_this.errMsg = '题号格式错误';
err.push('题号格式错误');
return false;
}
var moduleTopicNo = [];
for (var i = startNo; i < startNo + topicLength; i++) {
moduleTopicNo.push(i);
}
var _loop = function _loop(j) {
_this.topicNoArr.forEach(function (topicNo) {
if (topicNo == moduleTopicNo[j]) {
obj.startNo = '';
obj.endNo = '';
_this.errMsg = '题号格式错误';
err.push('题号格式错误');
return false;
}
});
};
for (var j = 0; j < moduleTopicNo.length; j++) {
_loop(j);
}
}); // 当前弹窗内题号是否重复
if (data.topicTypeArr.length > 1) {
var theTopicNoAll = [];
data.topicTypeArr.forEach(function (topicConfig) {
var s = Number(topicConfig.startNo);
var e = Number(topicConfig.endNo);
var l = e - s + 1;
for (var i = s; i < s + l; i++) {
theTopicNoAll.push(i);
}
});
if (Object(_lib_util_js__WEBPACK_IMPORTED_MODULE_21__["isRepeat"])(theTopicNoAll)) {
_this.errMsg = '题号格式错误';
err.push('题号格式错误');
return false;
}
}
if (err.length === 0) {
_this.errMsg = '';
return true;
} else {
return false;
}
},
getTopicTypeText: function getTopicTypeText(type) {
var text = '';
this.topicTypes.forEach(function (item) {
if (type == item.value) {
text = item.label;
}
});
return text;
},
cancel: function cancel() {
this.$emit("cancel", false);
},
saveBigTopicVerification: function saveBigTopicVerification() {
var _this = this;
if (this.topicConfigureData.name == '') {
this.$message.error('大题名称不能为空!');
return false;
} // this.topicList.forEach(topic=>{
//
// })
if (this.topicConfigureData.topicType == '') {
_this.errMsg = '题型没有选择';
return false;
}
if (this.topicList.length == 0) {
_this.errMsg = '试题数量不能为空';
return false;
}
var isScore = false;
this.topicList.forEach(function (t) {
if (t.fullScore == '' || t.fullScore == 0) {
isScore = true;
}
});
if (isScore) {
_this.errMsg = '分数设置不正确';
return false;
}
var errType = false;
this.topicList.forEach(function (topic) {
var smTopicScore = 0;
if ([1, 2, 11].includes(topic.questionTypeId)) {
if (Number(topic.optionsCount) < 2) {
_this.errMsg = '选项设置错误';
errType = true;
return false;
}
}
if (topic.smQuestion.length > 0) {
var smQuestionScoreAll = 0;
topic.smQuestion.forEach(function (smQuestion) {
if (Number(smQuestion.score) < 1) {
_this.errMsg = '小问分数设置错误';
errType = true;
return false;
}
smQuestionScoreAll = Number(smQuestionScoreAll) + Number(smQuestion.score);
});
if (Number(topic.fullScore) !== Number(smQuestionScoreAll)) {
_this.errMsg = '小问分数设置错误';
errType = true;
return false;
}
}
if (topic.smTopic.length > 0) {
topic.smTopic.forEach(function (smTopic) {
if (Number(smTopic.fullScore) < 1) {
_this.errMsg = '小问分数设置错误';
errType = true;
return false;
}
smTopicScore = smTopicScore + Number(smTopic.fullScore);
if (smTopic.smQuestion.length > 0) {
var smQuestionScore = 0;
smTopic.smQuestion.forEach(function (smQuestion) {
if (Number(smQuestion.fullScore) < 1) {
_this.errMsg = '小问分数设置错误';
errType = true;
return false;
}
smQuestionScore = smQuestionScore + Number(smQuestion.score);
});
if (Number(smTopic.fullScore) !== Number(smQuestionScore)) {
_this.errMsg = '小问分数设置错误';
errType = true;
return false;
}
}
});
if (Number(topic.fullScore) !== Number(smTopicScore)) {
_this.errMsg = '小题分数设置错误';
errType = true;
return false;
}
}
});
if (errType) {
return false;
}
_this.errMsg = '';
return true;
},
save: function save() {
var _PaperListData,
_this5 = this;
//大题保存校验
if (!this.saveBigTopicVerification()) {
return false;
}
var modelId = 0;
if (this.isEdit) {
modelId = this.editModelId;
} else {
modelId = 'modelId';
if (Object.keys(this.bigTopicArr).length == 0) {
var bigTopicArrLength = Object.keys(this.bigTopicArr).length;
modelId = 'modelId' + ++bigTopicArrLength;
} else {
var id = Object.keys(this.bigTopicArr).sort().pop();
modelId = 'modelId' + (Number(id.replace(/[^0-9]/ig, "")) + 1);
}
}
var saveData = this.bigTopicArr;
saveData[modelId] = {
modelId: modelId,
bigTitle: this.topicConfigureData.BigNo + '、' + this.topicConfigureData.name,
subtitle: '',
questionTypeId: this.topicConfigureData.topicType,
topicConfigureData: this.topicConfigureData,
topicList: this.topicList,
questions: []
}; //如果是带小问的题型数据格式化
saveData[modelId].questions = this.formatTopicList();
var theBigTopic = JSON.parse(JSON.stringify(saveData[modelId]));
this.setBigTopicArr(JSON.parse(JSON.stringify(saveData)));
var PaperListData = [];
PaperListData = (_PaperListData = PaperListData).concat.apply(_PaperListData, Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_17__["default"])(Object.values(saveData))); //选做题,根据配置显示答题区域数量,二选一,四选二
PaperListData.forEach(function (mod) {
if (mod.modelId == modelId && mod.questionTypeId === 17) {
var chooseTopicList = JSON.parse(JSON.stringify(mod.questions));
var showPaperChooseTopic = chooseTopicList[0];
showPaperChooseTopic.contentHtml = chooseTopicList[0].alias + '~' + chooseTopicList[chooseTopicList.length - 1].alias + '、';
if (mod.topicConfigureData.topicTypeArr[0].chooseSelectOption > 1) {
mod.questions = [];
for (var l = 0; l < mod.topicConfigureData.topicTypeArr[0].chooseSelectOption; l++) {
var newShowPaperChooseTopic = JSON.parse(JSON.stringify(showPaperChooseTopic)); //ChooseArea为选做题第几个答题区域
newShowPaperChooseTopic.ChooseArea = l + 1;
mod.questions.push(newShowPaperChooseTopic);
} // mod.questions=[showPaperChooseTopic,showPaperChooseTopic]
} else {
showPaperChooseTopic.ChooseArea = 1;
mod.questions = [showPaperChooseTopic];
}
theBigTopic = mod;
}
});
this.setPaperListData(PaperListData); //统计总分
var fullScore = 0;
PaperListData.forEach(function (bigTopic) {
bigTopic.questions.forEach(function (topic) {
fullScore = fullScore + topic.fullScore;
});
});
this.cardSetting.examInfoConfig.forEach(function (item) {
if (item.id === 1) {
item.text = fullScore;
}
}); //保存选题时,整合翻页数据
// this.setBigTopicPageArr([[...JSON.parse(JSON.stringify(PaperListData))]])
// this.setInitPageFlag(!this.initPageFlag);
if (this.isEdit) {
var pIndex = 0;
this.bigTopicPageArr.forEach(function (page, pageIndex) {
page.forEach(function (bigTopic, bIndex) {
if (bigTopic.modelId == modelId) {
if (bigTopic.isLast) {
page.splice(bIndex, 1);
} else {
// bigTopic = theBigTopic;
page.fill(theBigTopic, bIndex, bIndex + 1);
pIndex = pageIndex;
}
}
});
});
this.setSomePageReset(pIndex, false, this.bigTopicPageArr);
} else {
var l = this.bigTopicPageArr.length;
this.bigTopicPageArr[l - 1].push(theBigTopic);
this.setBigTopicPageArr(this.bigTopicPageArr);
this.$nextTick(function () {
_this5.setChangeSomePageIndex({
index: l - 1,
isToCurPage: false,
//是否回到指定试题
flag: !_this5.chageSomePageIndex.flag
}); //触发分页
});
}
this.cancel();
},
formatTopicList: function formatTopicList() {
var _this6 = this;
var questions = [];
this.topicList.forEach(function (topic, index) {
if (_this6.hasSmQuestionTopic) {
//小题展示的时候即为大题
if (topic.smTopic.length > 0) {
topic.smTopic.forEach(function (miniTopic) {
var questionItem = {
questionNum: _this6.setQuestionNum(miniTopic.alias),
questionTypeId: miniTopic.questionTypeId === 77 ? 7 : miniTopic.questionTypeId,
markType: miniTopic.questionTypeId === 77 ? 4 : 0,
fullScore: miniTopic.fullScore,
optionCount: miniTopic.optionsCount,
answer: "",
subject: topic.subject,
alias: miniTopic.alias,
scores: "",
TopicAreaHeight: 200,
contentHtml: miniTopic.alias + '、',
cutId: 1,
isShowArticleCn: true,
startPositionNumber: 1,
endPositionNumber: _this6.topicConfigureData.compositionNumber
};
if (miniTopic.smQuestion.length) {
questionItem.scores = miniTopic.smQuestion.map(function (item) {
return item.score;
}).join(',');
}
questions.push(questionItem);
});
} else {
var questionItem = {
questionNum: _this6.setQuestionNum(topic.alias),
questionTypeId: topic.questionTypeId === 77 ? 7 : topic.questionTypeId,
markType: topic.questionTypeId === 77 ? 4 : 0,
fullScore: topic.fullScore,
optionCount: topic.optionsCount,
answer: "",
subject: topic.subject,
alias: topic.alias,
scores: "",
TopicAreaHeight: 200,
contentHtml: topic.alias + '、',
cutId: 1,
isShowArticleCn: true,
startPositionNumber: 1,
endPositionNumber: _this6.topicConfigureData.compositionNumber
};
if (topic.questionTypeId === 17) {
questionItem.isChooseTopicFirst = index === 0 ? true : false;
} // 如果含有小问 拼接scores
questionItem.scores = topic.smQuestion.map(function (item) {
return item.score;
}).join(',');
questions.push(questionItem);
}
} else {
//不含小题和小问的题型
var _questionItem = {
questionNum: _this6.setQuestionNum(topic.alias),
questionTypeId: topic.questionTypeId === 77 ? 7 : topic.questionTypeId,
markType: topic.questionTypeId === 77 ? 4 : 0,
fullScore: topic.fullScore,
optionCount: topic.optionsCount,
answer: "",
subject: topic.subject,
alias: topic.alias,
scores: "",
TopicAreaHeight: 200,
contentHtml: topic.alias + '、',
cutId: 1,
isShowArticleCn: true,
startPositionNumber: 1,
endPositionNumber: _this6.topicConfigureData.compositionNumber
};
if (_this6.topicConfigureData.topicType === 77 && _this6.subject === 9) {
_questionItem.TopicAreaHeight = 30;
}
if (_this6.topicConfigureData.topicType === 77 && _this6.subject === 8) {
var ArticleEnHtml = ''; // if(this.topicConfigureData.compositionRows)
for (var i = 0; i < _this6.topicConfigureData.compositionRows; i++) {
var rowHtml = i === 0 ? '' + topic.alias + '、
' : '';
ArticleEnHtml = ArticleEnHtml + rowHtml;
}
ArticleEnHtml += '';
_questionItem.contentHtml = ArticleEnHtml;
}
if (_this6.topicConfigureData.topicType === 2 || _this6.topicConfigureData.topicType === 11) {
_questionItem.halfScore = topic.halfScore;
}
questions.push(_questionItem);
}
});
return questions;
},
setSomePageReset: function setSomePageReset(pageIndex, flag, bigTopicPageArr) {
var _this7 = this;
// 当前拖动页及后续页面数据重组
var baseArr = JSON.parse(JSON.stringify(bigTopicPageArr)).splice(0, pageIndex);
var resetArr = Object(_lib_resetPage__WEBPACK_IMPORTED_MODULE_24__["default"])(JSON.parse(JSON.stringify(bigTopicPageArr)).splice(pageIndex), false, true);
baseArr.push(resetArr); //删除最后一页最后一题时,删掉空白纸张
if (pageIndex == baseArr.length - 1 && baseArr[pageIndex].length == 1) {
if (!baseArr[pageIndex][0].questions || baseArr[pageIndex][0].questions.length == 0) {
baseArr.pop();
this.setBigTopicPageArr(baseArr);
return;
}
}
this.setBigTopicPageArr(baseArr);
this.$nextTick(function () {
_this7.setChangeSomePageIndex({
index: pageIndex,
isToCurPage: true,
//是否回到指定试题
flag: !_this7.chageSomePageIndex.flag
}); //触发分页
}); // this.setChangeSomePageIndex({
// index:this.pageIndex,
// flag:!this.chageSomePageIndex.flag
// })
},
questionsChangeEdit: function questionsChangeEdit(data) {
var _this8 = this;
// 试题题分数控制手写打分框
//获取所有小题分数
var topicArrScore = [];
data.forEach(function (topic) {
topicArrScore.push(topic.fullScore);
if (_this8.isMoreSelectType) {
//半对分判断
if (topic.halfScore > Number(topic.fullScore) - 0.5) {
if (Number(topic.fullScore) > 0) {
topic.halfScore = topic.fullScore - 0.5;
} else {
topic.halfScore = '';
topic.fullScore = '';
}
}
}
});
if (this.topicConfigureData.topicType === 5) {
//填空题打分框禁用
this.scoreOpt.forEach(function (opt) {
var isOk = true; //空白打分框保留
if (opt.value > 1) {
for (var i = 0; i < topicArrScore.length; i++) {
if (opt.label.indexOf(topicArrScore[i]) == -1) {
isOk = false;
}
if (opt.label == '') {
isOk = true;
}
}
}
if (isOk) {
opt.disabled = false;
} else {
opt.disabled = true;
}
}); //不是刚进编辑时
if (this.isRunWatch) {
//默认选项
for (var i = 0; i < this.scoreOpt.length; i++) {
if (!this.scoreOpt[i].disabled) {
this.topicConfigureData.scoreStyle = this.scoreOpt[i].value;
break;
}
}
if (this.topicConfigureData.scoreStyle != '') {
this.scoreOpt.forEach(function (opt) {
if (opt.value === _this8.topicConfigureData.scoreStyle) {
if (opt.disabled) {
_this8.topicConfigureData.scoreStyle = '';
}
}
});
}
}
} else if (this.isAnswer) {
//解答题手写打分上限
var maxValue = Math.max.apply(Math, topicArrScore);
this.scoreMaxOptions.forEach(function (opt) {
if (opt.value < maxValue) {
opt.disabled = true;
} else {
opt.disabled = false;
}
if (_this8.topicConfigureData.topicType == '77') {
if (opt.value === 16 || opt.value === 49) {
opt.disabled = true;
}
} else {
if (opt.value === 69) {
opt.disabled = true;
}
}
}); //默认上限
var opts = [];
this.scoreMaxOptions.forEach(function (opt) {
if (opt.value > maxValue || opt.value == maxValue) {
opts.push(opt);
}
}); //不是刚进编辑时
if (this.isRunWatch) {
this.topicConfigureData.scoreLimit = opts[0].value;
}
if (!this.isRunWatch) {
this.isRunWatch = true;
}
}
},
//数量校验
checkNumber: function checkNumber(data, type) {
var reg = /^([1-9]\d*|[0]{1,1})$/;
if (reg.test(data[type])) {
this.$nextTick(function () {
var newVal = Math.min(data[type], 200);
data[type] = newVal;
});
} else {
data[type] = "";
}
},
//选项校验
checkOptNumber: function checkOptNumber(data, type) {
var val = data[type].replace(/[^0-9 .]/g, '');
val = Math.round(val);
if (val > 7) {
val = 7;
} else if (val < 2) {
val = 2;
}
data[type] = val;
},
//0.5分判断
checkScore: function checkScore(data) {
var val = data.score.replace(/[^0-9 .]/g, '');
data.score = Math.round(val / 0.5) * 0.5 || '';
},
//半对分判断
checkHalfScore: function checkHalfScore(data) {
var val = data.halfScore.replace(/[^0-9 .]/g, '');
val = Math.round(val / 0.5) * 0.5;
if (val > data.score - 0.5) {
data.halfScore = data.score - 0.5;
} else {
data.halfScore = val;
}
},
//综合科目选做题科目修改
ChooseChangeSubject: function ChooseChangeSubject(val) {
this.topicConfigureData.subject = val;
this.addTopicList(this.topicConfigureData);
}
})
});
/***/ }),
/***/ "./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/answer-sheet/topic/MinTopicEditItem.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/answer-sheet/topic/MinTopicEditItem.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_find_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.find-index */ "./node_modules/core-js/modules/es.array.find-index.js");
/* harmony import */ var core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes */ "./node_modules/core-js/modules/es.array.includes.js");
/* harmony import */ var core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_3__ = __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_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.regexp.exec */ "./node_modules/core-js/modules/es.regexp.exec.js");
/* harmony import */ var core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.replace */ "./node_modules/core-js/modules/es.string.replace.js");
/* harmony import */ var core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_7__ = __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_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2 */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
/* harmony import */ var _common_SubjectSelect__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../common/SubjectSelect */ "./src/views/answer-sheet/common/SubjectSelect.vue");
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: "MinTopicEditItem",
components: {
SubjectSelect: _common_SubjectSelect__WEBPACK_IMPORTED_MODULE_10__["default"]
},
filters: {},
props: {
minTopicData: Object,
idx: Number
},
data: function data() {
return {// minTopicData:{
// isQuestion:false,
// topicQues:'',
// score:'',
// }
};
},
computed: Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_8__["default"])(Object(F_zcg_project_git_code_zsy_as2_web_nx_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_8__["default"])({}, Object(vuex__WEBPACK_IMPORTED_MODULE_9__["mapGetters"])('answerSheet', ['topicTypeObj', 'subject'])), {}, {
isSelectType: function isSelectType() {
return [1, 2, 11].includes(this.minTopicData.questionTypeId);
},
//多选,不定项选择和多选题
isMoreSelectType: function isMoreSelectType() {
return [2, 11].includes(this.minTopicData.questionTypeId);
},
//带小问小题的题型
hasSmQuestionTopic: function hasSmQuestionTopic() {
return [7, 17, 5].includes(this.minTopicData.questionTypeId);
},
//综合科目,文综理综
isZongHe: function isZongHe() {
return [18, 19].includes(this.subject);
}
}),
watch: {},
created: function created() {
if (this.minTopicData.smTopic && this.minTopicData.smTopic.length > 0) {
this.allScore();
}
},
mounted: function mounted() {},
methods: {
//添加小题
addMiniTopic: function addMiniTopic() {
if (this.minTopicData.smQuestion.length) {
this.$message({
message: '不能同时拥有小题和小问',
type: 'warning'
});
}
this.minTopicData.smQuestion = [];
var miniTopic = {
alias: this.minTopicData.topicNo + '.' + (this.minTopicData.smTopic.length + 1),
hasSmQuestion: false,
score: "",
fullScore: '',
smQuestion: [],
topicQues: '',
topicEditorIndex: this.minTopicData.topicNo + '_' + (this.minTopicData.smTopic.length + 1),
questionTypeId: this.minTopicData.questionTypeId
};
this.minTopicData.fullScore = '';
this.minTopicData.smTopic.push(miniTopic);
},
//添加小问
addQuestion: function addQuestion(obj) {
var val = obj.topicQues.replace(/[^0-9 .]/g, '');
obj.topicQues = Math.round(val);
obj.smQuestion = [];
for (var i = 0; i < obj.topicQues; i++) {
var question = {
alias: obj.alias + '(' + (obj.smQuestion.length + 1) + ')',
score: ""
};
obj.smQuestion.push(question);
}
},
topicTypeName: function topicTypeName(type) {
return this.topicTypeObj[type];
},
//数量校验
checkNumber: function checkNumber(data, type) {
var val = data[type].replace(/[^0-9 .]/g, '');
data[type] = Math.round(val);
},
//小题分数累加
allScore: function allScore() {
var fullScore = 0;
this.minTopicData.smTopic.forEach(function (minTopic) {
fullScore = fullScore + Number(minTopic.fullScore);
});
this.minTopicData.fullScore = fullScore;
},
//小问分数累加
allAsk: function allAsk(data) {
var fullScore = 0;
data.smQuestion.forEach(function (minTopic) {
fullScore = fullScore + Number(minTopic.score);
});
data.fullScore = fullScore;
if (this.minTopicData.smTopic.length > 0) {
this.allScore();
}
},
//选项校验
checkOptNumber: function checkOptNumber(data, type) {
var val = data[type].replace(/[^0-9 .]/g, '');
val = Math.round(val);
if (val > 7) {
val = 7;
} else if (val < 2) {
val = 2;
}
data[type] = val;
},
//0.5分判断
checkScore: function checkScore(data, type) {
var val = data[type].replace(/[^0-9 .]/g, '');
data[type] = Math.round(val / 0.5) * 0.5 || '';
},
//半对分判断
checkHalfScore: function checkHalfScore(data, type, score) {
var val = data[type].replace(/[^0-9 .]/g, '');
val = Math.round(val / 0.5) * 0.5;
if (val > score - 0.5) {
data[type] = score - 0.5;
} else {
data[type] = val;
}
},
ChangeSubject: function ChangeSubject(val) {
this.minTopicData.subject = val;
},
changeTopicQues: function changeTopicQues(data, type) {
if (type === false) {
data.topicQues = '';
data.smQuestion = [];
} else {
if (data.topicQues == '' || data.topicQues == undefined) {
data.topicQues = '2';
this.addQuestion(data);
}
}
},
delMiniTopic: function delMiniTopic(miniTopic) {
var delIndex = this.minTopicData.smTopic.findIndex(function (val) {
return val.alias == miniTopic.alias;
});
this.minTopicData.smTopic.splice(delIndex, 1);
}
}
});
/***/ }),
/***/ "./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/components/editor/UeCard.vue?vue&type=template&id=b4ab203c&":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/components/editor/UeCard.vue?vue&type=template&id=b4ab203c& ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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", { ref: "ueCard", staticClass: "ue ue-card" }, [
_c("script", { attrs: { id: _vm.randomId, type: "text/plain" } })
])
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/Index.vue?vue&type=template&id=db49e2e6&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/answer-sheet/Index.vue?vue&type=template&id=db49e2e6&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: "answer_sheet",
style: "height:" + _vm.answerSheetHeight + "px"
},
[
_c(
"div",
{ ref: "box", staticClass: "card_edit-wrap" },
_vm._l(_vm.bigTopicPageArr, function(val, index) {
return _c("paper", {
key: index,
class: "pageindex-" + index,
attrs: {
content: val,
totalPageNum: _vm.bigTopicPageArr.length,
pageIndex: index
},
on: { showEditBigTopic: _vm.showEditBigTopic, ueBlur: _vm.ueBlur }
})
}),
1
),
_c(
"div",
{ staticClass: "card_setting-wrap" },
[
_c("setting", {
on: {
showAddBigTopic: _vm.showAddBigTopic,
restAnswerSheet: _vm.restAnswerSheet
}
}),
!_vm.cardSetting.allowEdit
? _c("div", { staticClass: "set-disable" })
: _vm._e()
],
1
),
_c(
"button",
{ staticClass: "btn btn-go-back", on: { click: _vm.goBack } },
[_vm._v("返回")]
),
_c(
"el-dialog",
{
attrs: {
title: "设置",
visible: _vm.dialogVisibleIsAddTopic,
width: "915px",
"before-close": _vm.handleCloseAddTopic,
"close-on-click-modal": false
},
on: {
"update:visible": function($event) {
_vm.dialogVisibleIsAddTopic = $event
},
open: _vm.showBigTopicDialog
}
},
[
_c("AddTopic", {
ref: "AddTopic",
attrs: { "is-edit": _vm.isEdit, "edit-model-id": _vm.editNo },
on: {
cancel: function($event) {
_vm.dialogVisibleIsAddTopic = false
}
}
})
],
1
)
],
1
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/common/SubjectSelect.vue?vue&type=template&id=170a3c0e&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/answer-sheet/common/SubjectSelect.vue?vue&type=template&id=170a3c0e&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: "subjectSelect" },
[
_c(
"el-tooltip",
{
staticClass: "item",
attrs: { effect: "dark", content: this.tipsText, placement: "top" }
},
[_c("i", { staticClass: "el-icon-warning-outline" })]
),
_c(
"el-select",
{
staticClass: "select-subject",
attrs: { size: "mini", placeholder: "请选择" },
on: { change: _vm.subjectChange },
model: {
value: _vm.isSubject,
callback: function($$v) {
_vm.isSubject = $$v
},
expression: "isSubject"
}
},
_vm._l(_vm.options, function(item) {
return _c("el-option", {
key: item.id,
attrs: { label: item.label, value: item.id }
})
}),
1
)
],
1
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/Index.vue?vue&type=template&id=5057e78a&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/answer-sheet/paper/Index.vue?vue&type=template&id=5057e78a&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: "paper-item paper-item-js",
style: {
width: _vm.calcPaperSize.width + "mm",
height: _vm.calcPaperSize.height + "mm"
}
},
[
_vm.cardSetting.hasBindingLine && _vm.pageIndex == 0
? _c("paper-line", {
attrs: { PaperLineFlag: _vm.cardSetting.hasBindingLine }
})
: _vm._e(),
_c(
"paper-content",
_vm._g(
_vm._b(
{
attrs: {
PaperLineFlag: _vm.cardSetting.hasBindingLine,
content: _vm.content,
paperColumn: _vm.cardSetting.column,
pageIndex: _vm.pageIndex
}
},
"paper-content",
_vm.$attrs,
false
),
_vm.$listeners
)
),
_c("div", { staticClass: "page-num-cur" }, [
_vm._v(
"第" +
_vm._s(_vm.pageIndex + 1) +
"页 共" +
_vm._s(_vm.totalPageNum) +
"页"
)
]),
_c("div", { staticClass: "page-direction" }, [
_vm._v(
"第" +
_vm._s(
Math.ceil((_vm.pageIndex + 1) / (_vm.cardSetting.column * 2))
) +
"张纸" +
_vm._s(
Math.ceil((_vm.pageIndex + 1) / _vm.cardSetting.column) % 2 == 1
? "正面"
: "反面"
) +
" " +
_vm._s(Math.ceil((_vm.pageIndex % _vm.cardSetting.column) + 1))
)
]),
_c("span", {
class: [
"main-dot",
{
"unique-code": _vm.pageIndex == 0,
"unique-code-50":
_vm.cardSetting.hasBindingLine && _vm.pageIndex == 0
}
],
attrs: { "data-option": "bl" }
}),
!_vm.cardSetting.allowEdit
? _c("div", { staticClass: "set-disable" })
: _vm._e(),
_vm.content.length == 0 && _vm.totalPageNum == 1
? _c("div", { staticClass: "add-topic-tips" }, [_vm._v(" 请添加试题 ")])
: _vm._e()
],
1
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/PaperContent.vue?vue&type=template&id=53d3a045&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/answer-sheet/paper/PaperContent.vue?vue&type=template&id=53d3a045&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",
{
class: [
"paper-content",
{
"line-left": _vm.PaperLineFlag && _vm.pageIndex == 0,
"line-right":
_vm.PaperLineFlag && _vm.pageIndex == _vm.paperColumn * 2 - 1
}
]
},
[
_vm.pageIndex == 0 ? _c("paper-info") : _vm._e(),
_c(
"paper-topic",
_vm._g(
_vm._b(
{ attrs: { pageIndex: _vm.pageIndex } },
"paper-topic",
_vm.$attrs,
false
),
_vm.$listeners
)
)
],
1
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/PaperLine.vue?vue&type=template&id=1f29a758&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/answer-sheet/paper/PaperLine.vue?vue&type=template&id=1f29a758&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",
{
class: [
"paper-line",
{
"line-left": _vm.PaperLineFlag === 1,
"line-right": _vm.PaperLineFlag === 2
}
]
},
[
_vm.PaperLineFlag === 1
? _c("div", { staticClass: "examinee-info" }, [
!_vm.cardSetting.examinationNumberType.includes(1) &&
_vm.cardSetting.examinationNumberType.includes(2)
? _c("div", { staticClass: "item" }, [
_c("span", { staticClass: "red bineLineClassName" }),
_vm._m(0)
])
: _vm._e(),
_c("div", { staticClass: "item" }, [
_c(
"span",
{ staticClass: "red bindLineExamineeName" },
[
_vm.cardSetting.useQrCode
? _vm._l("系统自动生成姓名信息", function(val) {
return _c("b", { key: val }, [_vm._v(_vm._s(val))])
})
: _vm._e()
],
2
),
_vm._m(1)
]),
_c("div", { staticClass: "item" }, [
_c(
"span",
{ staticClass: "red bineLineClassName" },
[
_vm.cardSetting.useQrCode
? _vm._l("系统自动生成班级信息", function(val) {
return _c("b", { key: val }, [_vm._v(_vm._s(val))])
})
: _vm._e()
],
2
),
_vm._m(2)
])
])
: _vm._e(),
_vm._m(3)
]
)
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("em", [
_c("i", [_vm._v(":")]),
_c("i", [_vm._v("号")]),
_c("i", [_vm._v("考")])
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("em", [
_c("i", [_vm._v(":")]),
_c("i", [_vm._v("名")]),
_c("i", [_vm._v("姓")])
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("em", [
_c("i", [_vm._v(":")]),
_c("i", [_vm._v("级")]),
_c("i", [_vm._v("班")])
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "line" }, [
_c("span", [_vm._v("线")]),
_c("span", [_vm._v("订")]),
_c("span", [_vm._v("装")])
])
}
]
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-info/GradeAndName.vue?vue&type=template&id=13c50963&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/answer-sheet/paper/paper-info/GradeAndName.vue?vue&type=template&id=13c50963&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: "paper-grade clearfix" }, [
_c("div", { staticClass: "item" }, [
_c("em", [_vm._v("班级:")]),
_c("span", { staticClass: "red className" }, [
_vm._v(_vm._s(_vm.cardSetting.useQrCode ? "系统自动生成班级信息" : ""))
])
]),
_c("div", { staticClass: "item" }, [
_c("em", [_vm._v("姓名:")]),
_c("span", { staticClass: "red examineeName" }, [
_vm._v(_vm._s(_vm.cardSetting.useQrCode ? "系统自动生成姓名信息" : ""))
])
]),
!_vm.cardSetting.examinationNumberType.includes(1) &&
_vm.cardSetting.examinationNumberType.includes(2)
? _c("div", { staticClass: "item" }, [
_c("em", [_vm._v("考号:")]),
_c("span", { staticClass: "red examineeName" })
])
: _vm._e()
])
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-info/Index.vue?vue&type=template&id=7a934f4a&":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/answer-sheet/paper/paper-info/Index.vue?vue&type=template&id=7a934f4a& ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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: "paper-info-index" },
[
_c("PaperTitle"),
_vm.cardSetting.hasBindingLine == 0 ? _c("GradeAndName") : _vm._e(),
_vm.cardSetting.hasPaperMsg ? _c("PaperInfo") : _vm._e(),
_c("PaperAttention"),
_c("PaperCard")
],
1
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-info/PaperAttention.vue?vue&type=template&id=446134ac&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/answer-sheet/paper/paper-info/PaperAttention.vue?vue&type=template&id=446134ac&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: "paper-attention" }, [
_c(
"div",
{
class: [
"notice-info",
"page-width-" + (_vm.calcPaperSize.width > 165 ? "default" : "small")
]
},
[
_c("i", { staticClass: "simple-border right" }),
_c("i", { staticClass: "simple-border" }),
_c("div", { staticClass: "tips-info" }, [
_vm._m(0),
_c(
"div",
{ staticClass: "notice-detail" },
[
_vm.isShowAttention(0)
? _c("p", [
_vm._v(
"1、考生务必正确书写班级、姓名,请填涂系统准考证号。"
)
])
: _vm._e(),
_vm.isShowAttention(1)
? _c("p", [
_vm._v(
"1、考生务必正确书写班级、姓名,请填涂学校准考证号。"
)
])
: _vm._e(),
_vm._l(_vm.attentionList, function(val, index) {
return _c("p", { key: index }, [
_vm._v(
_vm._s(_vm.cardSetting.useQrCode ? index + 1 : index + 2) +
"、" +
_vm._s(val)
)
])
})
],
2
)
]),
_c("div", { staticClass: "warming-info" }, [
_c("div", { staticClass: "notice-ewm" }, [
_vm.cardSetting.useQrCode
? _c("i", { staticClass: "cover red" }, [
_vm._v("系统生成"),
_c("br"),
_vm._v("考生二维码")
])
: _vm._e(),
!_vm.cardSetting.useQrCode
? _c("img", {
staticClass: "dtk-ewm",
attrs: {
id: "dtk-ewm",
src: __webpack_require__(/*! ../../../../assets/images/code.png */ "./src/assets/images/code.png")
}
})
: _vm._e()
]),
_vm._m(1)
])
]
)
])
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("h3", { staticClass: "notice-title" }, [
_c("i", [_vm._v("注")]),
_c("i", [_vm._v("意")]),
_c("i", [_vm._v("事")]),
_c("i", [_vm._v("项")])
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "noticeLose" }, [
_c("h4", [_vm._v("缺考标记 "), _c("i", { staticClass: "absent-mark" })]),
_c("p", [_vm._v("考生禁止填涂缺考标记!")]),
_c("p", [_vm._v("只能由监考老师负责填涂。")])
])
}
]
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-info/PaperCard.vue?vue&type=template&id=22940c34&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/answer-sheet/paper/paper-info/PaperCard.vue?vue&type=template&id=22940c34&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: "paper-card" }, [
_vm.cardSetting.examinationNumberType.includes(1)
? _c("div", { staticClass: "exam-id card-flex" }, [
_c(
"div",
{ staticClass: "card-id clearfix" },
_vm._l(Number(_vm.cardSetting.cardLength), function(count) {
return _c("div", { key: "id_" + count, staticClass: "fl" }, [
_c("span", { staticClass: "square" }),
_c(
"ul",
_vm._l(10, function(num) {
return _c(
"li",
{
key: num,
class: { "unique-li": num == 1 && count == 1 }
},
[
_c("span", {
class: ["iconfont", "iconnum_" + (num - 1)]
})
]
)
}),
0
)
])
}),
0
),
_vm.cardSetting.examinationNumberType.includes(2) &&
([1, 2].includes(this.cardSetting.paperSize) ||
(_vm.cardSetting.cardLength < 13 &&
[3, 4, 5].includes(_vm.cardSetting.paperSize)))
? _c("div", { staticClass: "card-code clearfix" }, [_vm._m(0)])
: _vm._e()
])
: _vm._e(),
!_vm.cardSetting.examinationNumberType.includes(1) &&
_vm.cardSetting.examinationNumberType.includes(2)
? _c("div", { staticClass: "exam-code card-flex" }, [_vm._m(1)])
: _vm._e()
])
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "code-img fr" }, [
_c("div", { staticClass: "code-words" }, [
_c("i", [_vm._v("条")]),
_c("i", [_vm._v("形")]),
_c("i", [_vm._v("码")])
])
])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "card-code clearfix" }, [
_c("div", { staticClass: "code-img fl" }, [
_c("div", { staticClass: "code-words cross-code" }, [
_c("i", [_vm._v("条")]),
_c("i", [_vm._v("形")]),
_c("i", [_vm._v("码")])
])
])
])
}
]
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-info/PaperInfo.vue?vue&type=template&id=2dacf6d2&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/answer-sheet/paper/paper-info/PaperInfo.vue?vue&type=template&id=2dacf6d2&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: "paper-info clearfix" },
[
_vm._l(_vm.infoList, function(info) {
return _c("span", { key: info.id }, [
_vm._v(_vm._s(info.name) + ":"),
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: info.text,
expression: "info.text"
}
],
staticClass: "input-paper-info",
class: { number: info.id < 2 },
attrs: { readonly: info.id === 1, maxlength: "9" },
domProps: { value: info.text },
on: {
change: _vm.setInfoList,
input: function($event) {
if ($event.target.composing) {
return
}
_vm.$set(info, "text", $event.target.value)
}
}
}),
_vm._v(_vm._s(info.units))
])
}),
_c("div", {
staticClass: "btn-paper-info iconfont iconedit",
on: { click: _vm.editInfo }
}),
_c(
"el-dialog",
{
attrs: {
title: "设置",
visible: _vm.paperInfoDialog,
"close-on-click-modal": false,
"close-on-press-escape": false,
"show-close": false,
width: "400px",
center: ""
},
on: {
"update:visible": function($event) {
_vm.paperInfoDialog = $event
}
}
},
[
_vm._l(_vm.cardSettingTemp.examInfoConfig, function(item, key) {
return _c(
"el-checkbox",
{
key: key,
attrs: { size: "small", label: item.id },
model: {
value: item.isShow,
callback: function($$v) {
_vm.$set(item, "isShow", $$v)
},
expression: "item.isShow"
}
},
[_vm._v(_vm._s(item.name))]
)
}),
_c(
"span",
{
staticClass: "dialog-footer",
attrs: { slot: "footer" },
slot: "footer"
},
[
_c(
"el-button",
{ attrs: { type: "primary" }, on: { click: _vm.confirm } },
[_vm._v("确 定")]
),
_c("el-button", { on: { click: _vm.cancel } }, [_vm._v("取 消")])
],
1
)
],
2
)
],
2
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-info/PaperTitle.vue?vue&type=template&id=7c485838&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/answer-sheet/paper/paper-info/PaperTitle.vue?vue&type=template&id=7c485838&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: "paper-title" }, [
_c("textarea", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.cardSetting.title,
expression: "cardSetting.title"
}
],
attrs: { name: "name" },
domProps: { value: _vm.cardSetting.title },
on: {
change: _vm.setTitle,
input: function($event) {
if ($event.target.composing) {
return
}
_vm.$set(_vm.cardSetting, "title", $event.target.value)
}
}
})
])
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-topic/ArticleCh.vue?vue&type=template&id=47221792&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/answer-sheet/paper/paper-topic/ArticleCh.vue?vue&type=template&id=47221792&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: "article-chinese",
style: { padding: _vm.rectPadding / 2 + "px" }
},
[
_c(
"svg",
{
staticClass: "article-svg",
style: {
height:
(_vm.totalRowsArr.length / 2) * (_vm.squareSize.h + 10) -
_vm.squareSize.h -
10 +
"px"
},
attrs: { xmlns: "http://www.w3.org/2000/svg", version: "1.1" }
},
[
_c("rect", {
ref: "rect",
staticClass: "article-rect",
attrs: { width: "100%", height: "100%" }
}),
_vm._l(_vm.textArr, function(val, index) {
return _c(
"text",
{
key: "text_" + index,
attrs: { x: val.x, y: val.y, fill: "#000" }
},
[_vm._v(_vm._s(val.count))]
)
}),
_vm._l(_vm.totalRowsArr, function(val, index) {
return _c("line", {
directives: [
{
name: "show",
rawName: "v-show",
value: index != _vm.totalRowsArr.length - 1,
expression: "index!=totalRowsArr.length-1"
}
],
key: "total_" + index,
staticStyle: { stroke: "rgb(0,0,0)", "stroke-width": "0.8" },
attrs: { x1: val.x1, y1: val.y1, x2: val.x2, y2: val.y2 }
})
}),
_vm._l(_vm.lineArr, function(val, index) {
return _c("line", {
key: index,
staticStyle: { stroke: "rgb(0,0,0)", "stroke-width": "0.8" },
attrs: { x1: val.x1, y1: val.y1, x2: val.x2, y2: val.y2 }
})
})
],
2
)
]
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-topic/ChooseTopic.vue?vue&type=template&id=1ac7aaaf&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/answer-sheet/paper/paper-topic/ChooseTopic.vue?vue&type=template&id=1ac7aaaf&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: "choose-topic" },
_vm._l(_vm.topic, function(item) {
return _c("div", { key: item.alias, staticClass: "title" }, [
_c("span", { staticClass: "topic-no" }, [
_vm._v(_vm._s(item.alias) + "、")
]),
_c("div", {
staticClass: "title-content clearfix",
domProps: { innerHTML: _vm._s(item.queBody) }
})
])
}),
0
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-topic/Index.vue?vue&type=template&id=779ca469&":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/answer-sheet/paper/paper-topic/Index.vue?vue&type=template&id=779ca469& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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",
{},
_vm._l(_vm.content, function(val, index) {
return _c(
"div",
{
key: "topic_" + index,
class: ["content-" + index, "paper-topic-content"]
},
[
!val.isLast
? _c("TopicTitle", {
attrs: { titleInfo: _vm.setTopicTitle(val), txt: val }
})
: _vm._e(),
!val.isQuestionText
? [
[1, 2, 11].includes(val.questionTypeId)
? _c(
"TopicChoice",
_vm._g(
_vm._b(
{
class: "topic-" + val.questionTypeId,
attrs: {
topicInfo: val.questions,
modelId: val.modelId,
setConfig: val.topicConfigureData
}
},
"TopicChoice",
_vm.$attrs,
false
),
_vm.$listeners
)
)
: _vm._e(),
val.questionTypeId == 5
? _c(
"TopicFill",
_vm._g(
_vm._b(
{
attrs: {
topicInfo: val.questions,
modelId: val.modelId,
setConfig: val.topicConfigureData
}
},
"TopicFill",
_vm.$attrs,
false
),
_vm.$listeners
)
)
: _vm._e()
]
: _vm._e(),
[7, 17, 27].includes(val.questionTypeId)
? [
val.questionTypeId === 17 && val.QuestionTextList
? _c("ChooseTopic", {
attrs: { topic: val.QuestionTextList }
})
: _vm._e(),
_vm._l(val.questions, function(topic) {
return _c(
"TopicExplain",
_vm._g(
_vm._b(
{
key:
"" +
topic.alias +
topic.ChooseArea +
topic.cutId +
Math.random(),
class: { "choose-topic": val.questionTypeId === 17 },
attrs: { topicInfo: topic, setConfig: val }
},
"TopicExplain",
_vm.$attrs,
false
),
_vm.$listeners
)
)
})
]
: _vm._e(),
_vm.answerCardType === 1 && val.isQuestionText == 1
? _vm._l(val.questions, function(valT, indexT) {
return _c("Topic", {
key: indexT,
attrs: { topicContent: valT }
})
})
: _vm._e(),
[77].includes(val.questionTypeId) && _vm.subject == 9
? _vm._l(val.questions, function(topic) {
return _c(
"TopicExplain",
_vm._g(
_vm._b(
{
key: "" + topic.alias + topic.cutId + Math.random(),
staticClass: "article-topic",
attrs: { topicInfo: topic, setConfig: val }
},
"TopicExplain",
_vm.$attrs,
false
),
_vm.$listeners
)
)
})
: _vm._e(),
[77].includes(val.questionTypeId) && _vm.subject == 8
? _vm._l(val.questions, function(topic) {
return _c(
"TopicExplain",
_vm._g(
_vm._b(
{
key: "" + topic.alias + topic.cutId + Math.random(),
staticClass: "article-topic",
attrs: { topicInfo: topic, setConfig: val }
},
"TopicExplain",
_vm.$attrs,
false
),
_vm.$listeners
)
)
})
: _vm._e()
],
2
)
}),
0
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-topic/Topic.vue?vue&type=template&id=82365b74&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/answer-sheet/paper/paper-topic/Topic.vue?vue&type=template&id=82365b74&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: "topic topic-box-border",
style: {
"line-height": (_vm.topicContent.rowLineHeight || 30) + "px",
"font-size": (_vm.topicContent.fontSizeCount || 14) + "px"
}
},
[
_c("div", {
staticClass: "btn-paper-info iconfont iconedit",
on: {
click: function($event) {
_vm.topicSetDialog = true
}
}
}),
!_vm.topicContent.isOnlyShowOption
? _c(
"div",
{
staticClass: "title",
style: {
"line-height": (_vm.topicContent.rowLineHeight || 30) + "px"
}
},
[
_c("span", { staticClass: "topic-no" }, [
_vm._v(_vm._s(_vm.topicContent.alias) + "、")
]),
_c("div", {
staticClass: "title-content",
domProps: { innerHTML: _vm._s(_vm.topicContent.queBody) }
})
]
)
: _vm._e(),
[1, 2, 11].includes(_vm.topicContent.questionTypeId) &&
_vm.topicContent.queOptions.length > 0
? _c(
"ol",
{ staticClass: "options" },
_vm._l(_vm.topicContent.queOptions, function(val, index) {
return _c(
"li",
{
key: index,
class: [
"option-item",
"option-" + index,
"list-style-" + _vm.topicContent.listType
]
},
[
_c("span", { staticClass: "options-words" }, [
_vm._v(_vm._s(_vm.words[val.index]) + ".")
]),
_c("span", { domProps: { innerHTML: _vm._s(val.content) } })
]
)
}),
0
)
: _vm._e(),
_c(
"el-dialog",
{
attrs: {
title: "设置",
visible: _vm.topicSetDialog,
"close-on-click-modal": false,
"close-on-press-escape": false,
"show-close": false,
width: "30%",
center: ""
},
on: {
"update:visible": function($event) {
_vm.topicSetDialog = $event
}
}
},
[
_c(
"el-form",
{ ref: "form", attrs: { model: _vm.form, "label-width": "100px" } },
[
[1, 2, 11].includes(_vm.topicContent.questionTypeId)
? _c(
"el-form-item",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.topicContent.queOptions,
expression: "topicContent.queOptions"
}
],
attrs: { label: "选项每行列数" }
},
[
_c(
"el-select",
{
attrs: { placeholder: "请选择选项每行列数" },
model: {
value: _vm.form.columnCount,
callback: function($$v) {
_vm.$set(_vm.form, "columnCount", $$v)
},
expression: "form.columnCount"
}
},
_vm._l(_vm.form.columnCountArr, function(val) {
return _c("el-option", {
key: val.id,
attrs: { value: val.id, label: val.label }
})
}),
1
)
],
1
)
: _vm._e(),
_c(
"el-form-item",
{ attrs: { label: "行间距" } },
[
_c(
"el-select",
{
attrs: { placeholder: "请选择行间距" },
model: {
value: _vm.form.rowLineHeight,
callback: function($$v) {
_vm.$set(_vm.form, "rowLineHeight", $$v)
},
expression: "form.rowLineHeight"
}
},
_vm._l(_vm.form.rowHieightArr, function(val) {
return _c("el-option", {
key: val,
attrs: { value: val, label: val + "px" }
})
}),
1
)
],
1
),
_c(
"el-form-item",
{ attrs: { label: "字体大小" } },
[
_c(
"el-select",
{
attrs: { placeholder: "请选择字体大小" },
model: {
value: _vm.form.fontSizeCount,
callback: function($$v) {
_vm.$set(_vm.form, "fontSizeCount", $$v)
},
expression: "form.fontSizeCount"
}
},
_vm._l(_vm.form.fontSizeArr, function(val) {
return _c("el-option", {
key: val,
attrs: { value: val, label: val + "px" }
})
}),
1
)
],
1
)
],
1
),
_c(
"span",
{
staticClass: "dialog-footer",
attrs: { slot: "footer" },
slot: "footer"
},
[
_c(
"el-button",
{ attrs: { type: "primary" }, on: { click: _vm.confirm } },
[_vm._v("确 定")]
),
_c("el-button", { on: { click: _vm.cancel } }, [_vm._v("取 消")])
],
1
)
],
1
)
],
1
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-topic/TopicChoice.vue?vue&type=template&id=58a35907&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/answer-sheet/paper/paper-topic/TopicChoice.vue?vue&type=template&id=58a35907&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: "topic-choice clearfix",
class: [
"flex-direction-" + _vm.form.direction,
{ "topic-box-border": _vm.optionsArr.length > 0 }
]
},
[
_c("div", {
staticClass: "btn-paper-info iconfont iconedit",
on: { click: _vm.openSet }
}),
_vm.paperSource == 0
? _c("div", {
staticClass: "del-btn iconfont icondelete",
on: { click: _vm.delTopic }
})
: _vm._e(),
_vm._l(_vm.optionsArr, function(valUl, indexUl) {
return _c(
"ul",
{ key: indexUl, staticClass: "single-option clearfix" },
_vm._l(valUl, function(valOptions, indexOptions) {
return _c(
"li",
{
key: indexOptions,
staticClass: "clearfix option-li",
attrs: {
"data-pageIndex": _vm.pageIndex,
"data-modelId": _vm.modelId,
"data-type": valOptions.questionTypeId
}
},
[
_c("em", [_vm._v(_vm._s(valOptions.alias))]),
_vm._l(parseInt(valOptions.optionCount), function(val, index) {
return _c("span", {
key: index,
class: ["iconfont", "iconwords_" + index]
})
})
],
2
)
}),
0
)
}),
_c(
"el-dialog",
{
attrs: {
title: "设置",
visible: _vm.topicSetDialog,
"close-on-click-modal": false,
"close-on-press-escape": false,
"show-close": false,
width: "30%",
center: ""
},
on: {
"update:visible": function($event) {
_vm.topicSetDialog = $event
}
}
},
[
_c(
"el-form",
{ ref: "form", attrs: { model: _vm.form, "label-width": "100px" } },
[
_c(
"el-form-item",
{ attrs: { label: "选择排列方向" } },
[
_c(
"el-radio-group",
{
model: {
value: _vm.form.tempDirection,
callback: function($$v) {
_vm.$set(_vm.form, "tempDirection", $$v)
},
expression: "form.tempDirection"
}
},
_vm._l(_vm.form.infoList, function(item, key) {
return _c(
"el-radio",
{ key: key, attrs: { label: item.id } },
[_vm._v(_vm._s(item.name))]
)
}),
1
)
],
1
)
],
1
),
_c(
"span",
{
staticClass: "dialog-footer",
attrs: { slot: "footer" },
slot: "footer"
},
[
_c(
"el-button",
{ attrs: { type: "primary" }, on: { click: _vm.confirm } },
[_vm._v("确 定")]
),
_c("el-button", { on: { click: _vm.cancel } }, [_vm._v("取 消")])
],
1
)
],
1
)
],
2
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-topic/TopicExplain.vue?vue&type=template&id=d30766fe&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/answer-sheet/paper/paper-topic/TopicExplain.vue?vue&type=template&id=d30766fe&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: "topic-item topic-explain",
attrs: {
"data-pageIndex": _vm.pageIndex,
"data-type": _vm.setConfig.questionTypeId,
"data-modelId": _vm.setConfig.modelId
}
},
[
!_vm.isArticleChOver
? _c(
"div",
{ ref: "topicModule", staticClass: "module" },
[
_vm.topicInfo.cutId === 1
? _c(
"div",
{ staticClass: "scoring-box" },
[
_vm._l(_vm.topicScore, function(score, scoreIndex) {
return _c("span", { key: "score_" + scoreIndex }, [
_vm._v(_vm._s(score))
])
}),
_vm.isShowNoScoring
? _c(
"span",
{
staticClass: "no-scoring",
style: { width: _vm.noScoringW + "px" }
},
[_vm._v("禁打分区")]
)
: _vm._e()
],
2
)
: _vm._e(),
_c("div", { staticClass: "btn-edit-big-topic-box" }, [
_c("span", {
staticClass: "btn-drag",
on: { mousedown: _vm.moveTopicAreaHeight }
}),
_vm.topicInfo.cutId === 1
? _c("span", {
staticClass:
"btn-setting btn-paper-info iconfont iconedit",
on: { click: _vm.showEditBigTopic }
})
: _vm._e(),
_vm.topicInfo.cutId === 1 && _vm.paperSource === 0
? _c("span", {
staticClass: "btn-del del-btn iconfont icondelete",
on: { click: _vm.delTopic }
})
: _vm._e(),
_vm.topicInfo.cutId !== 1
? _c(
"span",
{
staticClass: "btn-del-topic-over",
on: {
click: function($event) {
$event.stopPropagation()
return _vm.delTopicOver($event)
}
}
},
[_c("i", { staticClass: "el-icon-close" })]
)
: _vm._e()
]),
_vm.topicInfo.questionTypeId === 17 && _vm.topicInfo.cutId === 1
? _c(
"div",
{ staticClass: "optional-box" },
_vm._l(_vm.ChooseOptData, function(opt, idx) {
return _c("span", {
key: "opt_" + opt,
class: ["iconfont", "optional-span", "iconwords_" + idx]
})
}),
0
)
: _vm._e(),
_c(
"div",
{
staticClass: "topic-answer-area",
style: { height: _vm.TopicAreaHeight + "px" }
},
[
_c(
"div",
{
staticClass: "topic-content",
on: {
"!mouseleave": function($event) {
return _vm.mouseEvent(0)
},
"!mouseenter": function($event) {
return _vm.mouseEvent(1)
}
}
},
[
_c("UeCard", {
ref: "ueCard",
attrs: { height: _vm.TopicAreaHeight },
on: { ready: _vm.ueReady, ueBlur: _vm.ueBlur },
model: {
value: _vm.topicInfo.contentHtml,
callback: function($$v) {
_vm.$set(_vm.topicInfo, "contentHtml", $$v)
},
expression: "topicInfo.contentHtml"
}
}),
_c("div", {
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.showUeTitle == false,
expression: "showUeTitle==false"
}
],
staticClass: "no-drug-shadow",
attrs: { "data-index": _vm.setConfig.questionTypeId }
})
],
1
)
]
),
_c(
"el-dialog",
{
attrs: {
title: "设置",
visible: _vm.dialogVisibleIsAddTopic,
width: "915px",
"before-close": _vm.handleCloseAddTopic,
"destroy-on-close": false
},
on: {
"update:visible": function($event) {
_vm.dialogVisibleIsAddTopic = $event
}
}
},
[
_c("AddTopic", {
ref: "AddTopic",
attrs: { "is-edit": true, "edit-model-id": _vm.modelId },
on: {
cancel: function($event) {
_vm.dialogVisibleIsAddTopic = false
}
}
})
],
1
),
_c(
"el-dialog",
{
attrs: {
title: "设置",
visible: _vm.topicSetDialog,
"close-on-click-modal": false,
"close-on-press-escape": false,
"show-close": false,
width: "30%",
center: ""
},
on: {
"update:visible": function($event) {
_vm.topicSetDialog = $event
}
}
},
[
_c(
"el-form",
{
ref: "form",
attrs: { model: _vm.form, "label-width": "100px" }
},
[
_c(
"el-form-item",
{ attrs: { label: "分值上限" } },
[
_c(
"el-select",
{
attrs: { placeholder: "请选择分数" },
model: {
value: _vm.form.scoreBoxCount,
callback: function($$v) {
_vm.$set(_vm.form, "scoreBoxCount", $$v)
},
expression: "form.scoreBoxCount"
}
},
_vm._l(_vm.form.scoreBoxArr, function(val, index) {
return _c("el-option", {
key: "index_" + index,
attrs: { value: val.id, label: val.label }
})
}),
1
)
],
1
),
_c(
"el-form-item",
{ attrs: { label: "" } },
[
_c(
"el-checkbox",
{
model: {
value: _vm.form.halfScore,
callback: function($$v) {
_vm.$set(_vm.form, "halfScore", $$v)
},
expression: "form.halfScore"
}
},
[_vm._v("加入0.5分")]
)
],
1
)
],
1
),
_c(
"span",
{
staticClass: "dialog-footer",
attrs: { slot: "footer" },
slot: "footer"
},
[
_c(
"el-button",
{
attrs: { type: "primary" },
on: { click: _vm.confirm }
},
[_vm._v("确 定")]
),
_c("el-button", { on: { click: _vm.cancel } }, [
_vm._v("取 消")
])
],
1
)
],
1
)
],
1
)
: _vm._e(),
_vm.setConfig.questionTypeId === 77 &&
_vm.topicInfo.subject === 9 &&
_vm.topicInfo.isShowArticleCn
? _c("ArticleCh", {
attrs: {
wordsCountCh: _vm.setWordsCountCh,
pageIndex: _vm.pageIndex
}
})
: _vm._e()
],
1
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-topic/TopicFill.vue?vue&type=template&id=3e8f2b69&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/answer-sheet/paper/paper-topic/TopicFill.vue?vue&type=template&id=3e8f2b69&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: "topic-fill",
class: [{ "topic-box-border": _vm.topicInfo.length > 0 }]
},
[
_c("div", {
staticClass: "btn-paper-info iconfont iconedit",
on: { click: _vm.openSet }
}),
_vm.paperSource == 0
? _c("div", {
staticClass: "del-btn iconfont icondelete",
on: { click: _vm.delTopic }
})
: _vm._e(),
_c(
"div",
{
staticClass: "subjectCol clearfix ",
class: ["", "col-" + (_vm.setConfig.columns || 1)]
},
_vm._l(_vm.topicInfo, function(val, index) {
return _c(
"div",
{
key: index,
staticClass: "fill-item clearfix",
style: { height: (_vm.setConfig.rowLineHeight || 40) + "px" },
attrs: {
"data-pageIndex": _vm.pageIndex,
"data-type": val.questionTypeId,
"data-modelId": _vm.modelId
}
},
[
_c("span", [_vm._v(_vm._s(val.alias) + "、")]),
_c("em", {
style: { height: (_vm.setConfig.rowLineHeight || 40) + "px" }
}),
_c(
"strong",
_vm._l(_vm.form.scoreArr, function(valScore) {
return _c("i", { key: valScore }, [_vm._v(_vm._s(valScore))])
}),
0
)
]
)
}),
0
),
_c(
"el-dialog",
{
attrs: {
title: "设置",
visible: _vm.topicSetDialog,
"close-on-click-modal": false,
"close-on-press-escape": false,
"show-close": false,
width: "30%",
center: ""
},
on: {
"update:visible": function($event) {
_vm.topicSetDialog = $event
}
}
},
[
_c(
"el-form",
{ ref: "form", attrs: { model: _vm.form, "label-width": "100px" } },
[
_c(
"el-form-item",
{ attrs: { label: "每行列数" } },
[
_c(
"el-select",
{
attrs: { placeholder: "请选择列数" },
model: {
value: _vm.form.columnCount,
callback: function($$v) {
_vm.$set(_vm.form, "columnCount", $$v)
},
expression: "form.columnCount"
}
},
_vm._l(_vm.form.columnCountArr, function(val) {
return _c("el-option", {
key: val,
attrs: { value: val, label: val }
})
}),
1
)
],
1
),
_c(
"el-form-item",
{ attrs: { label: "行间距" } },
[
_c(
"el-select",
{
attrs: { placeholder: "请选择间距" },
model: {
value: _vm.form.rowLineHeight,
callback: function($$v) {
_vm.$set(_vm.form, "rowLineHeight", $$v)
},
expression: "form.rowLineHeight"
}
},
_vm._l(_vm.form.rowHieightArr, function(val) {
return _c("el-option", {
key: val,
attrs: { value: val, label: val + "px" }
})
}),
1
)
],
1
),
_c(
"el-form-item",
{ attrs: { label: "手写打分" } },
[
_c(
"el-select",
{
attrs: { placeholder: "请选择分数" },
model: {
value: _vm.form.scoreBoxCount,
callback: function($$v) {
_vm.$set(_vm.form, "scoreBoxCount", $$v)
},
expression: "form.scoreBoxCount"
}
},
_vm._l(_vm.form.scoreBoxArr, function(val, index) {
return _c("el-option", {
key: index,
attrs: {
value: index,
label: val.label,
disabled:
val.id == 1 ||
val.id == _vm.scoreA ||
val.id == _vm.scoreB ||
val.id == _vm.scorec
? false
: true
}
})
}),
1
)
],
1
)
],
1
),
_c(
"span",
{
staticClass: "dialog-footer",
attrs: { slot: "footer" },
slot: "footer"
},
[
_c(
"el-button",
{ attrs: { type: "primary" }, on: { click: _vm.confirm } },
[_vm._v("确 定")]
),
_c("el-button", { on: { click: _vm.cancel } }, [_vm._v("取 消")])
],
1
)
],
1
)
],
1
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/paper/paper-topic/TopicTitle.vue?vue&type=template&id=592c85e2&":
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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/answer-sheet/paper/paper-topic/TopicTitle.vue?vue&type=template&id=592c85e2& ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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(
"h3",
{
staticClass: "topic-title big-topic-title",
staticStyle: { height: "auto" }
},
[
_vm._v(_vm._s(_vm.titleInfo.topicTitleText)),
_c("span", [_vm._v(_vm._s(_vm.titleInfo.topicSubTitleText))])
]
)
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/setting/Index.vue?vue&type=template&id=67dd6ae4&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/answer-sheet/setting/Index.vue?vue&type=template&id=67dd6ae4&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: "card_setting" },
[
_c(
"div",
{
directives: [
{
name: "show",
rawName: "v-show",
value: !_vm.isSetAnswer,
expression: "!isSetAnswer"
}
],
staticClass: "card_setting-topic"
},
[
_c("h3", { staticClass: "card_setting-title" }, [
_vm._v("选择答题卡布局")
]),
_c("div", { staticClass: "card_setting-box" }, [
_c("div", { staticClass: "card_setting-item" }, [
_c("div", { staticClass: "name" }, [_vm._v("纸张")]),
_c(
"div",
{ staticClass: "content" },
[
_c(
"el-radio-group",
{
on: { change: _vm.changePageSize },
model: {
value: _vm.cardSetting.paperSize,
callback: function($$v) {
_vm.$set(_vm.cardSetting, "paperSize", $$v)
},
expression: "cardSetting.paperSize"
}
},
[
_c("el-radio", { attrs: { label: 1 } }, [_vm._v("A3")]),
_c("el-radio", { attrs: { label: 2 } }, [_vm._v("A4")]),
_c("el-radio", { attrs: { label: 3 } }, [
_vm._v("16K(185*260)")
]),
_c("el-radio", { attrs: { label: 4 } }, [
_vm._v("8K(260*370)")
]),
_c("el-radio", { attrs: { label: 5 } }, [
_vm._v("8K(270*390)")
])
],
1
)
],
1
)
]),
_c("div", { staticClass: "card_setting-item" }, [
_c("div", { staticClass: "name" }, [_vm._v("方向")]),
_c(
"div",
{ staticClass: "content" },
[
_c(
"el-radio-group",
{
on: { change: _vm.changePageDirection },
model: {
value: _vm.cardSetting.direction,
callback: function($$v) {
_vm.$set(_vm.cardSetting, "direction", $$v)
},
expression: "cardSetting.direction"
}
},
[
_c(
"el-radio",
{
attrs: {
label: 1,
disabled: _vm.isDisabledDirection(1)
}
},
[_vm._v("横版")]
),
_c(
"el-radio",
{
attrs: {
label: 2,
disabled: _vm.isDisabledDirection(2)
}
},
[_vm._v("竖版")]
)
],
1
)
],
1
)
]),
_c("div", { staticClass: "card_setting-item border_b" }, [
_c("div", { staticClass: "name" }, [_vm._v("分栏")]),
_c("div", { staticClass: "content" }, [
_c("div", { staticClass: "layoutList" }, [
_c(
"div",
{
staticClass: "layoutItem",
class: _vm.cardColumnClass(1),
on: {
click: function($event) {
_vm.cardColumnClass(1) != "disabled"
? _vm.setCardColumn(1)
: ""
}
}
},
[
_vm._m(0),
_c("em", [_vm._v("一栏")]),
_c("b", { staticClass: "icon_current" })
]
),
_c(
"div",
{
staticClass: "layoutItem",
class: _vm.cardColumnClass(2),
on: {
click: function($event) {
_vm.cardColumnClass(2) != "disabled"
? _vm.setCardColumn(2)
: ""
}
}
},
[
_vm._m(1),
_c("em", [_vm._v("两栏")]),
_c("b", { staticClass: "icon_current" })
]
),
_c(
"div",
{
staticClass: "layoutItem",
class: _vm.cardColumnClass(3),
on: {
click: function($event) {
_vm.cardColumnClass(3) != "disabled"
? _vm.setCardColumn(3)
: ""
}
}
},
[
_vm._m(2),
_c("em", [_vm._v("三栏")]),
_c("b", { staticClass: "icon_current" })
]
)
])
])
]),
_c("div", { staticClass: "card_setting-item border_b" }, [
_c("div", { staticClass: "name" }, [_vm._v("装订线")]),
_c(
"div",
{ staticClass: "content" },
[
_c(
"el-radio-group",
{
on: { change: _vm.saveCardSetting },
model: {
value: _vm.cardSetting.hasBindingLine,
callback: function($$v) {
_vm.$set(_vm.cardSetting, "hasBindingLine", $$v)
},
expression: "cardSetting.hasBindingLine"
}
},
[
_c(
"el-radio",
{
attrs: {
label: 1,
disabled:
(_vm.cardSetting.cardLength > 12 &&
[3, 4, 5].includes(
_vm.cardSetting.paperSize
)) ||
(_vm.cardSetting.paperSize == 4 &&
_vm.cardSetting.column == 3)
}
},
[_vm._v("有")]
),
_c("el-radio", { attrs: { label: 0 } }, [_vm._v("无")])
],
1
)
],
1
)
]),
_c("div", { staticClass: "card_setting-item border_b" }, [
_c("div", { staticClass: "name" }, [_vm._v("信息栏")]),
_c(
"div",
{ staticClass: "content" },
[
_c(
"el-radio-group",
{
on: { change: _vm.setPaperInfoMsg },
model: {
value: _vm.cardSetting.hasPaperMsg,
callback: function($$v) {
_vm.$set(_vm.cardSetting, "hasPaperMsg", $$v)
},
expression: "cardSetting.hasPaperMsg"
}
},
[
_c("el-radio", { attrs: { label: true } }, [
_vm._v("有")
]),
_c("el-radio", { attrs: { label: false } }, [
_vm._v("无")
])
],
1
),
_c("div", { staticClass: "centerBox" }, [
_c(
"span",
{
staticClass: "iconfont icontishi1",
on: {
mouseenter: function($event) {
return _vm.enterLinesTips()
},
mouseleave: function($event) {
return _vm.leaveLinesTips()
}
}
},
[
_vm.tipsBox1
? _c("b", [
_vm._v(
"选择“有”,还可以在左侧答题卡编辑页进行内容修改配置!"
)
])
: _vm._e()
]
)
])
],
1
)
]),
_c("div", { staticClass: "card_setting-item border_b" }, [
_c("div", { staticClass: "name" }, [_vm._v("考号")]),
_c(
"div",
{ staticClass: "content" },
[
_c(
"el-checkbox-group",
{
attrs: { disabled: _vm.cardSetting.useQrCode },
on: { change: _vm.changePageExaminationNumberType },
model: {
value: _vm.cardSetting.examinationNumberType,
callback: function($$v) {
_vm.$set(
_vm.cardSetting,
"examinationNumberType",
$$v
)
},
expression: "cardSetting.examinationNumberType"
}
},
[
_c(
"el-checkbox",
{ attrs: { label: 1, disabled: _vm.setDisabled(1) } },
[_vm._v("填涂考号")]
),
_c(
"el-checkbox",
{ attrs: { label: 2, disabled: _vm.setDisabled(2) } },
[_vm._v("条形码")]
)
],
1
),
_vm.paperSource === 1
? _c("el-switch", {
staticStyle: { display: "block", "margin-top": "10px" },
attrs: {
"active-color": "#409EFF",
"inactive-color": "#bbb",
"active-text": "使用二维码"
},
on: { change: _vm.changePageUseQrCode },
model: {
value: _vm.cardSetting.useQrCode,
callback: function($$v) {
_vm.$set(_vm.cardSetting, "useQrCode", $$v)
},
expression: "cardSetting.useQrCode"
}
})
: _vm._e(),
_vm.paperSource === 1
? _c("div", { staticClass: "centerBox ewmCenterBox" }, [
_c(
"span",
{
staticClass: "iconfont icontishi1 ewmFont",
on: {
mouseenter: function($event) {
return _vm.enterEwmTips()
},
mouseleave: function($event) {
return _vm.leaveEwmTips()
}
}
},
[
_vm.tipsBox2
? _c("b", [
_vm._v(
"使用二维码,将给每个考生都生成一份定制答题卡,请慎重!"
)
])
: _vm._e()
]
)
])
: _vm._e()
],
1
)
])
]),
_c("div", { staticClass: "overBox" }, [
_c(
"div",
{ staticClass: "subject-list" },
_vm._l(_vm.bigTopicArr, function(bigTopic, index) {
return _c(
"div",
{ key: index, staticClass: "card_setting-item" },
[
_vm.isShowBigTopicNo(bigTopic)
? [
_c("div", { staticClass: "name" }, [
_vm._v(
_vm._s(
_vm.getTopicTypeText(bigTopic.questionTypeId)
)
)
]),
_c(
"div",
{ staticClass: "content" },
_vm._l(
bigTopic.topicConfigureData.topicTypeArr,
function(num, index) {
return _c(
"div",
{ key: index, staticClass: "s-num" },
[
_vm._v(
_vm._s(num.startNo) +
"~" +
_vm._s(num.endNo)
)
]
)
}
),
0
)
]
: _vm._e()
],
2
)
}),
0
),
_vm.paperSource === 0
? _c("div", { staticClass: "edit-topic-btn-box" }, [
_c(
"button",
{
staticClass: "btn btn-add-topic",
on: { click: _vm.showAddBigTopic }
},
[_vm._v("+ 添加试题")]
),
_c(
"span",
{
staticClass: "btn-set-answer",
on: { click: _vm.showSelectSetAnswer }
},
[_vm._v("设置客观题答案")]
)
])
: _vm._e()
]),
_c("div", { staticClass: "btn-card-box" }, [
_c(
"button",
{
staticClass: "btn btn-card-preview",
on: { click: _vm.goPreview }
},
[_vm._v("预览")]
),
_c(
"button",
{
staticClass: "btn btn-card-save",
class: { disabled: _vm.isAllowEdit },
attrs: { disabled: _vm.isAllowEdit },
on: { click: _vm.savePage }
},
[_vm._v(_vm._s(!_vm.cardSetting.allowEdit ? "编辑" : "保存"))]
),
_c(
"button",
{
staticClass: "btn btn-card-down",
class: { disabled: _vm.isDisabledBtnDown },
attrs: { disabled: _vm.isDisabledBtnDown },
on: { click: _vm.downPdfAll }
},
[_vm._v(_vm._s(_vm.cardSetting.useQrCode ? "生成" : "下载"))]
)
])
]
),
_c(
"div",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.isSetAnswer,
expression: "isSetAnswer"
}
],
staticClass: "card_setting-answer"
},
[
_c("SetAnswer", {
on: {
cancel: function($event) {
_vm.isSetAnswer = false
}
}
})
],
1
),
_c(
"div",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.isShowToPdfHtml,
expression: "isShowToPdfHtml"
}
],
staticClass: "to-pdf-html-box"
},
[_c("toPdfHtml", { ref: "toPdfHtml" })],
1
),
_c(
"el-dialog",
{
attrs: {
title: "提示",
visible: _vm.centerDialogVisible,
width: "30%",
center: ""
},
on: {
"update:visible": function($event) {
_vm.centerDialogVisible = $event
}
}
},
[
_c(
"p",
{
staticStyle: {
"text-align": "center",
"font-size": "16px",
color: "#000000"
}
},
[_vm._v(_vm._s(_vm.tipsContent))]
),
_c(
"span",
{
staticClass: "dialog-footer",
attrs: { slot: "footer" },
slot: "footer"
},
[
_c(
"el-button",
{
attrs: { type: "primary" },
on: {
click: function($event) {
_vm.cardSetting.title == ""
? (_vm.centerDialogVisible = false)
: _vm.showSelectSetAnswer()
}
}
},
[_vm._v("去设置")]
),
_c(
"el-button",
{
on: {
click: function($event) {
_vm.centerDialogVisible = false
}
}
},
[_vm._v("关闭")]
)
],
1
)
]
)
],
1
)
}
var staticRenderFns = [
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("span", [_c("i")])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("span", [_c("i"), _c("i")])
},
function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("span", [_c("i"), _c("i"), _c("i")])
}
]
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/setting/SetAnswer.vue?vue&type=template&id=75214108&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/answer-sheet/setting/SetAnswer.vue?vue&type=template&id=75214108&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: "set-select-answer" }, [
_c("h3", { staticClass: "card_setting-title" }, [_vm._v("设置客观题答案")]),
_c(
"div",
{ staticClass: "set-select-list" },
_vm._l(_vm.topicList, function(topic) {
return _c("div", { key: topic.alias, staticClass: "answer-item" }, [
_c("span", { staticClass: "number" }, [_vm._v(_vm._s(topic.alias))]),
_c("span", { staticClass: "topic-type-name" }, [
_vm._v(_vm._s(topic.questionTypeText))
]),
_c(
"p",
{ staticClass: "option-box" },
_vm._l(topic.optionList, function(opt) {
return _c(
"i",
{
key: opt.value,
staticClass: "answer-option",
class: { active: opt.isAnswer },
on: {
click: function($event) {
return _vm.setAnswer(opt, topic)
}
}
},
[_vm._v(_vm._s(opt.value))]
)
}),
0
)
])
}),
0
),
_c("div", { staticClass: "btn-card-box" }, [
_c(
"button",
{
staticClass: "btn btn-card-save",
on: { click: _vm.saveSelectAnswer }
},
[_vm._v("保存")]
),
_c(
"button",
{ staticClass: "btn btn-card-go_back", on: { click: _vm.cancel } },
[_vm._v("返回")]
)
])
])
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/topic/AddTopic.vue?vue&type=template&id=4aaf48c3&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/answer-sheet/topic/AddTopic.vue?vue&type=template&id=4aaf48c3&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: "add-topic" }, [
_c("div", { staticClass: "edit-topic-content" }, [
_c(
"div",
{ staticClass: "top" },
[
_c("div", { staticClass: "topic-title" }, [
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("大题号")]),
_c(
"el-select",
{
staticClass: "select-big_topic-number",
attrs: { size: "mini", placeholder: "请选择" },
model: {
value: _vm.topicConfigureData.BigNo,
callback: function($$v) {
_vm.$set(_vm.topicConfigureData, "BigNo", $$v)
},
expression: "topicConfigureData.BigNo"
}
},
_vm._l(_vm.bigQuestionNos, function(item) {
return _c("el-option", {
key: item.value,
attrs: { label: item.label, value: item.value }
})
}),
1
)
],
1
),
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("题型标题")]),
_c("el-input", {
staticClass: "input-big_topic-name",
attrs: {
size: "mini",
maxlength: "10",
placeholder: "请输入题型标题名称"
},
nativeOn: {
keyup: function($event) {
return _vm.trimLR($event)
}
},
model: {
value: _vm.topicConfigureData.name,
callback: function($$v) {
_vm.$set(_vm.topicConfigureData, "name", $$v)
},
expression: "topicConfigureData.name"
}
})
],
1
),
_c("span", { staticClass: "color-red" }, [
_vm._v(_vm._s(_vm.errMsg))
])
]),
_vm._l(_vm.topicConfigureData.topicTypeArr, function(
topicConfig,
index
) {
return _c(
"div",
{ key: index, staticClass: "topic-type" },
[
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("题类")]),
_c(
"el-select",
{
staticClass: "select-topic-topicType",
attrs: { size: "mini", placeholder: "请选择题类" },
on: {
change: function($event) {
return _vm.addTopicList(_vm.topicConfigureData)
}
},
model: {
value: _vm.topicConfigureData.topicType,
callback: function($$v) {
_vm.$set(_vm.topicConfigureData, "topicType", $$v)
},
expression: "topicConfigureData.topicType"
}
},
_vm._l(_vm.topicTypeOptions, function(item) {
return _c("el-option", {
key: item.value,
attrs: { label: item.label, value: item.value }
})
}),
1
)
],
1
),
_c(
"span",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.topicConfigureData.topicType == 17,
expression: "topicConfigureData.topicType==17"
}
],
staticClass: "topic-edit-item"
},
[
_c(
"el-select",
{
staticClass: "select-choose_topic",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
return _vm.addTopicList(_vm.topicConfigureData)
}
},
model: {
value: topicConfig.chooseOption,
callback: function($$v) {
_vm.$set(topicConfig, "chooseOption", $$v)
},
expression: "topicConfig.chooseOption"
}
},
_vm._l(_vm.chooseOptions, function(item) {
return _c("el-option", {
key: item.value,
attrs: { label: item.label, value: item.value }
})
}),
1
),
_vm._v(" 选 "),
_c(
"el-select",
{
staticClass: "select-choose_topic",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
return _vm.addTopicList(_vm.topicConfigureData)
}
},
model: {
value: topicConfig.chooseSelectOption,
callback: function($$v) {
_vm.$set(topicConfig, "chooseSelectOption", $$v)
},
expression: "topicConfig.chooseSelectOption"
}
},
_vm._l(_vm.chooseSelectOptions, function(item) {
return _c("el-option", {
key: item.value,
attrs: { label: item.label, value: item.value }
})
}),
1
)
],
1
),
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_vm._v(" 从"),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "题号" },
on: {
change: function($event) {
_vm.checkNumber(topicConfig, "startNo")
_vm.addTopicList(_vm.topicConfigureData)
},
input: function($event) {
return _vm.checkNumber(topicConfig, "startNo")
}
},
model: {
value: topicConfig.startNo,
callback: function($$v) {
_vm.$set(topicConfig, "startNo", $$v)
},
expression: "topicConfig.startNo"
}
})
],
1
),
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_vm._v(" 到"),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "题号" },
on: {
change: function($event) {
_vm.checkNumber(topicConfig, "endNo")
_vm.addTopicList(_vm.topicConfigureData)
},
input: function($event) {
return _vm.checkNumber(topicConfig, "endNo")
}
},
model: {
value: topicConfig.endNo,
callback: function($$v) {
_vm.$set(topicConfig, "endNo", $$v)
},
expression: "topicConfig.endNo"
}
}),
_vm._v("题 ")
],
1
),
_c(
"span",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.isSelectType,
expression: "isSelectType"
}
],
staticClass: "topic-edit-item"
},
[
_vm._v(" 每题"),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
_vm.checkOptNumber(topicConfig, "optionsNumber")
_vm.addTopicList(_vm.topicConfigureData)
}
},
model: {
value: topicConfig.optionsNumber,
callback: function($$v) {
_vm.$set(topicConfig, "optionsNumber", $$v)
},
expression: "topicConfig.optionsNumber"
}
}),
_vm._v("个选项 ")
],
1
),
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_vm._v(" 每题"),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
_vm.checkScore(topicConfig)
_vm.addTopicList(_vm.topicConfigureData)
}
},
model: {
value: topicConfig.score,
callback: function($$v) {
_vm.$set(topicConfig, "score", $$v)
},
expression: "topicConfig.score"
}
}),
_vm._v("分 ")
],
1
),
_c(
"span",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.isMoreSelectType,
expression: "isMoreSelectType"
}
],
staticClass: "topic-edit-item"
},
[
_vm._v(" 半对"),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
_vm.checkHalfScore(topicConfig)
_vm.addTopicList(_vm.topicConfigureData)
}
},
model: {
value: topicConfig.halfScore,
callback: function($$v) {
_vm.$set(topicConfig, "halfScore", $$v)
},
expression: "topicConfig.halfScore"
}
}),
_vm._v("分 ")
],
1
),
_vm.isZongHe && _vm.topicConfigureData.topicType === 17
? _c("SubjectSelect", {
attrs: { "subject-id": _vm.topicConfigureData.subject },
on: { subjectChange: _vm.ChooseChangeSubject }
})
: _vm._e(),
_c(
"span",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.topicConfigureData.topicType != 17,
expression: "topicConfigureData.topicType!=17"
}
],
staticClass: "topic-edit-item"
},
[
_c("i", {
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.topicList.length > 0,
expression: "topicList.length>0"
}
],
staticClass:
"el-icon-circle-plus-outline btn-add-topic-type",
on: { click: _vm.addTopicType }
}),
_c("i", {
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.topicList.length == 0,
expression: "topicList.length==0"
}
],
staticClass:
"el-icon-circle-plus-outline btn-add-topic-type disabled"
})
]
),
_c(
"span",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.topicConfigureData.topicTypeArr.length > 1,
expression: "topicConfigureData.topicTypeArr.length>1"
}
],
staticClass: "topic-edit-item"
},
[
_c("i", {
staticClass: "el-icon-remove-outline btn-del-topic-type",
on: {
click: function($event) {
return _vm.delTopicType(index)
}
}
})
]
)
],
1
)
})
],
2
),
_vm.topicList.length > 0
? _c(
"div",
{ key: "topicList", staticClass: "topic-list" },
_vm._l(_vm.topicList, function(item, index) {
return _c(
"div",
{ key: item.alias, staticClass: "topic-list-item" },
[
_c("MinTopicEditItem", {
attrs: { "min-topic-data": item, idx: index }
})
],
1
)
}),
0
)
: _c("div", { key: "topicList", staticClass: "topic-list" }, [
_c("p", { staticClass: "msg" }, [_vm._v("请添加题目")])
]),
_vm.isSelectType
? _c("div", { staticClass: "topic-card-setting" }, [
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("选项排列方向")]),
_c(
"el-radio-group",
{
model: {
value: _vm.topicConfigureData.direction,
callback: function($$v) {
_vm.$set(_vm.topicConfigureData, "direction", $$v)
},
expression: "topicConfigureData.direction"
}
},
[
_c("el-radio", { attrs: { label: 0 } }, [_vm._v("横向")]),
_c("el-radio", { attrs: { label: 1 } }, [_vm._v("纵向")])
],
1
)
],
1
)
])
: _vm._e(),
_vm.isFillInBlank
? _c("div", { staticClass: "topic-card-setting" }, [
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("答题卡布局")]),
_vm._v(" 每行 "),
_c(
"el-select",
{
staticClass: "select-big_topic-number",
attrs: { size: "mini", placeholder: "请选择" },
model: {
value: _vm.topicConfigureData.columns,
callback: function($$v) {
_vm.$set(_vm.topicConfigureData, "columns", $$v)
},
expression: "topicConfigureData.columns"
}
},
_vm._l(_vm.columns, function(item) {
return _c("el-option", {
key: item.value,
attrs: { label: item.label, value: item.value }
})
}),
1
),
_vm._v(" 列 ")
],
1
),
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("行高")]),
_c(
"el-select",
{
staticClass: "select-big_topic-number",
attrs: { size: "mini", placeholder: "请选择" },
model: {
value: _vm.topicConfigureData.rowLineHeight,
callback: function($$v) {
_vm.$set(_vm.topicConfigureData, "rowLineHeight", $$v)
},
expression: "topicConfigureData.rowLineHeight"
}
},
_vm._l(_vm.lineHeights, function(item) {
return _c("el-option", {
key: item.value,
attrs: { label: item.label, value: item.value }
})
}),
1
)
],
1
),
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("手写打分")]),
_c(
"el-select",
{
staticClass: "select-big_topic-number",
attrs: { size: "mini", placeholder: "请选择" },
model: {
value: _vm.topicConfigureData.scoreStyle,
callback: function($$v) {
_vm.$set(_vm.topicConfigureData, "scoreStyle", $$v)
},
expression: "topicConfigureData.scoreStyle"
}
},
_vm._l(_vm.scoreOpt, function(item) {
return _c("el-option", {
key: item.value,
attrs: {
label: item.label,
value: item.value,
disabled: item.disabled
}
})
}),
1
),
_c("span", [_vm._v("仅对线下阅卷打分")])
],
1
)
])
: _vm._e(),
_vm.isAnswer
? _c("div", { staticClass: "topic-card-setting" }, [
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("手写打分")]),
_c(
"el-select",
{
staticClass: "select-big_topic-number",
attrs: { size: "mini", placeholder: "请选择" },
model: {
value: _vm.topicConfigureData.scoreLimit,
callback: function($$v) {
_vm.$set(_vm.topicConfigureData, "scoreLimit", $$v)
},
expression: "topicConfigureData.scoreLimit"
}
},
_vm._l(_vm.scoreMaxOptions, function(item) {
return _c("el-option", {
key: item.value,
attrs: {
label: item.label,
value: item.value,
disabled: item.disabled
}
})
}),
1
)
],
1
),
_c(
"span",
{ staticClass: "topic-edit-item" },
[
_c(
"el-checkbox",
{
model: {
value: _vm.topicConfigureData.hasHalfScore,
callback: function($$v) {
_vm.$set(_vm.topicConfigureData, "hasHalfScore", $$v)
},
expression: "topicConfigureData.hasHalfScore"
}
},
[_vm._v("加入0.5分")]
),
_c("span", [_vm._v("(仅对线下阅卷打分)")])
],
1
),
_vm.isCompositionZH
? _c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("作文字数")]),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini" },
model: {
value: _vm.topicConfigureData.compositionNumber,
callback: function($$v) {
_vm.$set(
_vm.topicConfigureData,
"compositionNumber",
$$v
)
},
expression: "topicConfigureData.compositionNumber"
}
})
],
1
)
: _vm._e(),
_vm.isCompositionEN
? _c(
"span",
{ staticClass: "topic-edit-item" },
[
_c("label", [_vm._v("英语作文横线行数")]),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini" },
model: {
value: _vm.topicConfigureData.compositionRows,
callback: function($$v) {
_vm.$set(
_vm.topicConfigureData,
"compositionRows",
$$v
)
},
expression: "topicConfigureData.compositionRows"
}
})
],
1
)
: _vm._e()
])
: _vm._e()
]),
_c("div", { staticClass: "btn-box" }, [
_c(
"button",
{ staticClass: "btn btn-topic-edit-save", on: { click: _vm.save } },
[_vm._v("保存")]
),
_c(
"button",
{ staticClass: "btn btn-topic-edit-cancel", on: { click: _vm.cancel } },
[_vm._v("取消")]
)
])
])
}
var staticRenderFns = []
render._withStripped = 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?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/topic/MinTopicEditItem.vue?vue&type=template&id=afe023e2&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/answer-sheet/topic/MinTopicEditItem.vue?vue&type=template&id=afe023e2&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: "min-topic-box" }, [
_c("div", { staticClass: "min-topic" }, [
_c("div", { staticClass: "left" }, [
_c("span", { staticClass: "number" }, [
_vm._v(_vm._s(_vm.minTopicData.alias))
]),
!_vm.isSelectType &&
_vm.minTopicData.questionTypeId !== 77 &&
_vm.minTopicData.questionTypeId !== 17
? _c(
"span",
{
staticClass: "btn-add-min-topic",
on: { click: _vm.addMiniTopic }
},
[_c("i", [_vm._v("+")]), _vm._v("添加小题 ")]
)
: _vm._e()
]),
_c("div", { staticClass: "con" }, [
_vm._v(_vm._s(_vm.minTopicData.questionTypeText))
]),
_vm.isSelectType
? _c(
"div",
{ staticClass: "right" },
[
this.isZongHe && _vm.minTopicData.questionTypeId !== 17
? _c("SubjectSelect", {
attrs: { "subject-id": _vm.minTopicData.subject },
on: { subjectChange: _vm.ChangeSubject }
})
: _vm._e(),
_c(
"span",
[
_vm._v(" 选项数 "),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
return _vm.checkOptNumber(
_vm.minTopicData,
"optionsCount"
)
}
},
model: {
value: _vm.minTopicData.optionsCount,
callback: function($$v) {
_vm.$set(_vm.minTopicData, "optionsCount", $$v)
},
expression: "minTopicData.optionsCount"
}
})
],
1
),
_c(
"span",
[
_vm._v(" 分数 "),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
return _vm.checkScore(_vm.minTopicData, "fullScore")
}
},
model: {
value: _vm.minTopicData.fullScore,
callback: function($$v) {
_vm.$set(_vm.minTopicData, "fullScore", $$v)
},
expression: "minTopicData.fullScore"
}
})
],
1
),
_vm.isMoreSelectType
? _c(
"span",
[
_vm._v(" 半分 "),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
return _vm.checkHalfScore(
_vm.minTopicData,
"halfScore",
_vm.minTopicData.fullScore
)
}
},
model: {
value: _vm.minTopicData.halfScore,
callback: function($$v) {
_vm.$set(_vm.minTopicData, "halfScore", $$v)
},
expression: "minTopicData.halfScore"
}
})
],
1
)
: _vm._e()
],
1
)
: _vm._e(),
_vm.hasSmQuestionTopic
? _c(
"div",
{ staticClass: "right" },
[
this.isZongHe && _vm.minTopicData.questionTypeId !== 17
? _c("SubjectSelect", {
attrs: { "subject-id": _vm.minTopicData.subject },
on: { subjectChange: _vm.ChangeSubject }
})
: _vm._e(),
_vm.minTopicData.questionTypeId !== 17 &&
_vm.minTopicData.smTopic.length == 0
? _c(
"div",
{ staticClass: "min-question-box" },
[
_c(
"el-tooltip",
{
staticClass: "item",
attrs: {
effect: "dark",
content:
"小问不需要单独设置模板区域但是每小问需批阅判分",
placement: "top"
}
},
[_c("i", { staticClass: "el-icon-warning-outline" })]
),
_c("el-switch", {
staticClass: "switch-is_question",
attrs: {
size: "mini",
"active-color": "#409EFF",
"inactive-color": "#bbb",
"active-text": "含小问"
},
on: {
change: function($event) {
return _vm.changeTopicQues(
_vm.minTopicData,
_vm.minTopicData.hasSmQuestion
)
}
},
model: {
value: _vm.minTopicData.hasSmQuestion,
callback: function($$v) {
_vm.$set(_vm.minTopicData, "hasSmQuestion", $$v)
},
expression: "minTopicData.hasSmQuestion"
}
}),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: {
disabled: !_vm.minTopicData.hasSmQuestion,
size: "mini",
placeholder: ""
},
on: {
change: function($event) {
return _vm.addQuestion(_vm.minTopicData)
}
},
model: {
value: _vm.minTopicData.topicQues,
callback: function($$v) {
_vm.$set(_vm.minTopicData, "topicQues", $$v)
},
expression: "minTopicData.topicQues"
}
})
],
1
)
: _vm._e(),
_vm._v(" 分数 "),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: {
disabled: _vm.minTopicData.questionTypeId == 17,
size: "mini",
placeholder: ""
},
on: {
change: function($event) {
return _vm.checkScore(_vm.minTopicData, "fullScore")
}
},
model: {
value: _vm.minTopicData.fullScore,
callback: function($$v) {
_vm.$set(_vm.minTopicData, "fullScore", $$v)
},
expression: "minTopicData.fullScore"
}
})
],
1
)
: _vm._e(),
_vm.minTopicData.questionTypeId == 77
? _c(
"div",
{ staticClass: "right" },
[
_vm._v(" 分数 "),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { disabled: true, size: "mini", placeholder: "" },
on: {
change: function($event) {
return _vm.checkScore(_vm.minTopicData, "fullScore")
}
},
model: {
value: _vm.minTopicData.fullScore,
callback: function($$v) {
_vm.$set(_vm.minTopicData, "fullScore", $$v)
},
expression: "minTopicData.fullScore"
}
})
],
1
)
: _vm._e()
]),
_c(
"div",
{ staticClass: "min-question" },
_vm._l(_vm.minTopicData.smQuestion, function(minQuestion) {
return _c(
"div",
{ key: minQuestion.alias, staticClass: "min-question-item" },
[
_c("div", { staticClass: "left" }, [
_c("span", { staticClass: "number" }, [
_vm._v(_vm._s(minQuestion.alias))
])
]),
_c(
"div",
{ staticClass: "right" },
[
_vm._v(" 分数 "),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
_vm.checkScore(minQuestion, "score")
_vm.allAsk(_vm.minTopicData)
}
},
model: {
value: minQuestion.score,
callback: function($$v) {
_vm.$set(minQuestion, "score", $$v)
},
expression: "minQuestion.score"
}
})
],
1
)
]
)
}),
0
),
_c(
"div",
{ staticClass: "mini-topic" },
_vm._l(_vm.minTopicData.smTopic, function(miniTopic) {
return _c(
"div",
{ key: miniTopic.topicEditorIndex, staticClass: "mini-topic-item" },
[
_c("div", { staticClass: "mini-topic-title" }, [
_c("div", { staticClass: "left" }, [
_c("i", {
staticClass: "el-icon-remove-outline btn-del-mini-topic",
on: {
click: function($event) {
return _vm.delMiniTopic(miniTopic)
}
}
}),
_c("span", { staticClass: "number" }, [
_vm._v(_vm._s(miniTopic.alias))
])
]),
_c("div", { staticClass: "con" }, [
_vm._v(_vm._s(_vm.topicTypeName(miniTopic.questionTypeId)))
]),
_c(
"div",
{ staticClass: "right" },
[
_c(
"el-tooltip",
{
staticClass: "item",
attrs: {
effect: "dark",
content:
"小问不需要单独设置模板区域但是每小问需批阅判分",
placement: "top"
}
},
[_c("i", { staticClass: "el-icon-warning-outline" })]
),
_c("el-switch", {
staticClass: "switch-is_question",
attrs: {
size: "mini",
"active-color": "#409EFF",
"inactive-color": "#bbb",
"active-text": "含小问"
},
on: {
change: function($event) {
return _vm.changeTopicQues(
miniTopic,
miniTopic.hasSmQuestion
)
}
},
model: {
value: miniTopic.hasSmQuestion,
callback: function($$v) {
_vm.$set(miniTopic, "hasSmQuestion", $$v)
},
expression: "miniTopic.hasSmQuestion"
}
}),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: {
disabled: !miniTopic.hasSmQuestion,
size: "mini",
placeholder: ""
},
on: {
change: function($event) {
return _vm.addQuestion(miniTopic)
}
},
model: {
value: miniTopic.topicQues,
callback: function($$v) {
_vm.$set(miniTopic, "topicQues", $$v)
},
expression: "miniTopic.topicQues"
}
}),
_vm._v(" 分数 "),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
return _vm.checkScore(miniTopic, "fullScore")
},
blur: function($event) {
return _vm.allScore()
}
},
model: {
value: miniTopic.fullScore,
callback: function($$v) {
_vm.$set(miniTopic, "fullScore", $$v)
},
expression: "miniTopic.fullScore"
}
})
],
1
)
]),
_c(
"div",
{ staticClass: "mini-question" },
_vm._l(miniTopic.smQuestion, function(miniQuestion) {
return _c(
"div",
{
key: miniQuestion.alias,
staticClass: "mini-question-item"
},
[
_c("div", { staticClass: "left" }, [
_c("span", { staticClass: "number" }, [
_vm._v(_vm._s(miniQuestion.alias))
])
]),
_c(
"div",
{ staticClass: "right" },
[
_vm._v(" 分数 "),
_c("el-input", {
staticClass: "input-min_topic-number",
attrs: { size: "mini", placeholder: "" },
on: {
change: function($event) {
return _vm.checkScore(miniQuestion, "score")
},
blur: function($event) {
return _vm.allAsk(miniTopic)
}
},
model: {
value: miniQuestion.score,
callback: function($$v) {
_vm.$set(miniQuestion, "score", $$v)
},
expression: "miniQuestion.score"
}
})
],
1
)
]
)
}),
0
)
]
)
}),
0
)
])
}
var staticRenderFns = []
render._withStripped = true
/***/ }),
/***/ "./node_modules/core-js/internals/collection-strong.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/collection-strong.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
var create = __webpack_require__(/*! ../internals/object-create */ "./node_modules/core-js/internals/object-create.js");
var redefineAll = __webpack_require__(/*! ../internals/redefine-all */ "./node_modules/core-js/internals/redefine-all.js");
var bind = __webpack_require__(/*! ../internals/function-bind-context */ "./node_modules/core-js/internals/function-bind-context.js");
var anInstance = __webpack_require__(/*! ../internals/an-instance */ "./node_modules/core-js/internals/an-instance.js");
var iterate = __webpack_require__(/*! ../internals/iterate */ "./node_modules/core-js/internals/iterate.js");
var defineIterator = __webpack_require__(/*! ../internals/define-iterator */ "./node_modules/core-js/internals/define-iterator.js");
var setSpecies = __webpack_require__(/*! ../internals/set-species */ "./node_modules/core-js/internals/set-species.js");
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js");
var fastKey = __webpack_require__(/*! ../internals/internal-metadata */ "./node_modules/core-js/internals/internal-metadata.js").fastKey;
var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
module.exports = {
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, CONSTRUCTOR_NAME);
setInternalState(that, {
type: CONSTRUCTOR_NAME,
index: create(null),
first: undefined,
last: undefined,
size: 0
});
if (!DESCRIPTORS) that.size = 0;
if (iterable != undefined) iterate(iterable, that[ADDER], that, IS_MAP);
});
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
var define = function (that, key, value) {
var state = getInternalState(that);
var entry = getEntry(that, key);
var previous, index;
// change existing entry
if (entry) {
entry.value = value;
// create new entry
} else {
state.last = entry = {
index: index = fastKey(key, true),
key: key,
value: value,
previous: previous = state.last,
next: undefined,
removed: false
};
if (!state.first) state.first = entry;
if (previous) previous.next = entry;
if (DESCRIPTORS) state.size++;
else that.size++;
// add to index
if (index !== 'F') state.index[index] = entry;
} return that;
};
var getEntry = function (that, key) {
var state = getInternalState(that);
// fast case
var index = fastKey(key);
var entry;
if (index !== 'F') return state.index[index];
// frozen object case
for (entry = state.first; entry; entry = entry.next) {
if (entry.key == key) return entry;
}
};
redefineAll(C.prototype, {
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
clear: function clear() {
var that = this;
var state = getInternalState(that);
var data = state.index;
var entry = state.first;
while (entry) {
entry.removed = true;
if (entry.previous) entry.previous = entry.previous.next = undefined;
delete data[entry.index];
entry = entry.next;
}
state.first = state.last = undefined;
if (DESCRIPTORS) state.size = 0;
else that.size = 0;
},
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
'delete': function (key) {
var that = this;
var state = getInternalState(that);
var entry = getEntry(that, key);
if (entry) {
var next = entry.next;
var prev = entry.previous;
delete state.index[entry.index];
entry.removed = true;
if (prev) prev.next = next;
if (next) next.previous = prev;
if (state.first == entry) state.first = next;
if (state.last == entry) state.last = prev;
if (DESCRIPTORS) state.size--;
else that.size--;
} return !!entry;
},
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
forEach: function forEach(callbackfn /* , that = undefined */) {
var state = getInternalState(this);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var entry;
while (entry = entry ? entry.next : state.first) {
boundFunction(entry.value, entry.key, this);
// revert to the last existing entry
while (entry && entry.removed) entry = entry.previous;
}
},
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
has: function has(key) {
return !!getEntry(this, key);
}
});
redefineAll(C.prototype, IS_MAP ? {
// 23.1.3.6 Map.prototype.get(key)
get: function get(key) {
var entry = getEntry(this, key);
return entry && entry.value;
},
// 23.1.3.9 Map.prototype.set(key, value)
set: function set(key, value) {
return define(this, key === 0 ? 0 : key, value);
}
} : {
// 23.2.3.1 Set.prototype.add(value)
add: function add(value) {
return define(this, value = value === 0 ? 0 : value, value);
}
});
if (DESCRIPTORS) defineProperty(C.prototype, 'size', {
get: function () {
return getInternalState(this).size;
}
});
return C;
},
setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
setInternalState(this, {
type: ITERATOR_NAME,
target: iterated,
state: getInternalCollectionState(iterated),
kind: kind,
last: undefined
});
}, function () {
var state = getInternalIteratorState(this);
var kind = state.kind;
var entry = state.last;
// revert to the last existing entry
while (entry && entry.removed) entry = entry.previous;
// get next entry
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
// or finish the iteration
state.target = undefined;
return { value: undefined, done: true };
}
// return step by kind
if (kind == 'keys') return { value: entry.key, done: false };
if (kind == 'values') return { value: entry.value, done: false };
return { value: [entry.key, entry.value], done: false };
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
// add [@@species], 23.1.2.2, 23.2.2.2
setSpecies(CONSTRUCTOR_NAME);
}
};
/***/ }),
/***/ "./node_modules/core-js/internals/collection.js":
/*!******************************************************!*\
!*** ./node_modules/core-js/internals/collection.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 global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
var isForced = __webpack_require__(/*! ../internals/is-forced */ "./node_modules/core-js/internals/is-forced.js");
var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
var InternalMetadataModule = __webpack_require__(/*! ../internals/internal-metadata */ "./node_modules/core-js/internals/internal-metadata.js");
var iterate = __webpack_require__(/*! ../internals/iterate */ "./node_modules/core-js/internals/iterate.js");
var anInstance = __webpack_require__(/*! ../internals/an-instance */ "./node_modules/core-js/internals/an-instance.js");
var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
var checkCorrectnessOfIteration = __webpack_require__(/*! ../internals/check-correctness-of-iteration */ "./node_modules/core-js/internals/check-correctness-of-iteration.js");
var setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ "./node_modules/core-js/internals/set-to-string-tag.js");
var inheritIfRequired = __webpack_require__(/*! ../internals/inherit-if-required */ "./node_modules/core-js/internals/inherit-if-required.js");
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
var ADDER = IS_MAP ? 'set' : 'add';
var NativeConstructor = global[CONSTRUCTOR_NAME];
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
var Constructor = NativeConstructor;
var exported = {};
var fixMethod = function (KEY) {
var nativeMethod = NativePrototype[KEY];
redefine(NativePrototype, KEY,
KEY == 'add' ? function add(value) {
nativeMethod.call(this, value === 0 ? 0 : value);
return this;
} : KEY == 'delete' ? function (key) {
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
} : KEY == 'get' ? function get(key) {
return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
} : KEY == 'has' ? function has(key) {
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
} : function set(key, value) {
nativeMethod.call(this, key === 0 ? 0 : key, value);
return this;
}
);
};
// eslint-disable-next-line max-len
if (isForced(CONSTRUCTOR_NAME, typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
new NativeConstructor().entries().next();
})))) {
// create collection constructor
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
InternalMetadataModule.REQUIRED = true;
} else if (isForced(CONSTRUCTOR_NAME, true)) {
var instance = new Constructor();
// early implementations not supports chaining
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
// most early implementations doesn't supports iterables, most modern - not close it correctly
// eslint-disable-next-line no-new
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
// for early implementations -0 and +0 not the same
var BUGGY_ZERO = !IS_WEAK && fails(function () {
// V8 ~ Chromium 42- fails only with 5+ elements
var $instance = new NativeConstructor();
var index = 5;
while (index--) $instance[ADDER](index, index);
return !$instance.has(-0);
});
if (!ACCEPT_ITERABLES) {
Constructor = wrapper(function (dummy, iterable) {
anInstance(dummy, Constructor, CONSTRUCTOR_NAME);
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
if (iterable != undefined) iterate(iterable, that[ADDER], that, IS_MAP);
return that;
});
Constructor.prototype = NativePrototype;
NativePrototype.constructor = Constructor;
}
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
fixMethod('delete');
fixMethod('has');
IS_MAP && fixMethod('get');
}
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
// weak collections should not contains .clear method
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
}
exported[CONSTRUCTOR_NAME] = Constructor;
$({ global: true, forced: Constructor != NativeConstructor }, exported);
setToStringTag(Constructor, CONSTRUCTOR_NAME);
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
return Constructor;
};
/***/ }),
/***/ "./node_modules/core-js/internals/correct-is-regexp-logic.js":
/*!*******************************************************************!*\
!*** ./node_modules/core-js/internals/correct-is-regexp-logic.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
var MATCH = wellKnownSymbol('match');
module.exports = function (METHOD_NAME) {
var regexp = /./;
try {
'/./'[METHOD_NAME](regexp);
} catch (e) {
try {
regexp[MATCH] = false;
return '/./'[METHOD_NAME](regexp);
} catch (f) { /* empty */ }
} return false;
};
/***/ }),
/***/ "./node_modules/core-js/internals/create-html.js":
/*!*******************************************************!*\
!*** ./node_modules/core-js/internals/create-html.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
var quot = /"/g;
// B.2.3.2.1 CreateHTML(string, tag, attribute, value)
// https://tc39.github.io/ecma262/#sec-createhtml
module.exports = function (string, tag, attribute, value) {
var S = String(requireObjectCoercible(string));
var p1 = '<' + tag;
if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"';
return p1 + '>' + S + '' + tag + '>';
};
/***/ }),
/***/ "./node_modules/core-js/internals/freezing.js":
/*!****************************************************!*\
!*** ./node_modules/core-js/internals/freezing.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
module.exports = !fails(function () {
return Object.isExtensible(Object.preventExtensions({}));
});
/***/ }),
/***/ "./node_modules/core-js/internals/internal-metadata.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/internal-metadata.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./node_modules/core-js/internals/hidden-keys.js");
var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
var has = __webpack_require__(/*! ../internals/has */ "./node_modules/core-js/internals/has.js");
var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f;
var uid = __webpack_require__(/*! ../internals/uid */ "./node_modules/core-js/internals/uid.js");
var FREEZING = __webpack_require__(/*! ../internals/freezing */ "./node_modules/core-js/internals/freezing.js");
var METADATA = uid('meta');
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
var setMetadata = function (it) {
defineProperty(it, METADATA, { value: {
objectID: 'O' + ++id, // object ID
weakData: {} // weak collections IDs
} });
};
var fastKey = function (it, create) {
// return a primitive with prefix
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if (!has(it, METADATA)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return 'F';
// not necessary to add metadata
if (!create) return 'E';
// add missing metadata
setMetadata(it);
// return object ID
} return it[METADATA].objectID;
};
var getWeakData = function (it, create) {
if (!has(it, METADATA)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return true;
// not necessary to add metadata
if (!create) return false;
// add missing metadata
setMetadata(it);
// return the store of weak collections IDs
} return it[METADATA].weakData;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);
return it;
};
var meta = module.exports = {
REQUIRED: false,
fastKey: fastKey,
getWeakData: getWeakData,
onFreeze: onFreeze
};
hiddenKeys[METADATA] = true;
/***/ }),
/***/ "./node_modules/core-js/internals/not-a-regexp.js":
/*!********************************************************!*\
!*** ./node_modules/core-js/internals/not-a-regexp.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isRegExp = __webpack_require__(/*! ../internals/is-regexp */ "./node_modules/core-js/internals/is-regexp.js");
module.exports = function (it) {
if (isRegExp(it)) {
throw TypeError("The method doesn't accept regular expressions");
} return it;
};
/***/ }),
/***/ "./node_modules/core-js/internals/same-value.js":
/*!******************************************************!*\
!*** ./node_modules/core-js/internals/same-value.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
// `SameValue` abstract operation
// https://tc39.github.io/ecma262/#sec-samevalue
module.exports = Object.is || function is(x, y) {
// eslint-disable-next-line no-self-compare
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};
/***/ }),
/***/ "./node_modules/core-js/internals/string-html-forced.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/internals/string-html-forced.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
// check the existence of a method, lowercase
// of a tag and escaping quotes in arguments
module.exports = function (METHOD_NAME) {
return fails(function () {
var test = ''[METHOD_NAME]('"');
return test !== test.toLowerCase() || test.split('"').length > 3;
});
};
/***/ }),
/***/ "./node_modules/core-js/internals/string-repeat.js":
/*!*********************************************************!*\
!*** ./node_modules/core-js/internals/string-repeat.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
// `String.prototype.repeat` method implementation
// https://tc39.github.io/ecma262/#sec-string.prototype.repeat
module.exports = ''.repeat || function repeat(count) {
var str = String(requireObjectCoercible(this));
var result = '';
var n = toInteger(count);
if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
return result;
};
/***/ }),
/***/ "./node_modules/core-js/internals/string-trim-forced.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/internals/string-trim-forced.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
var whitespaces = __webpack_require__(/*! ../internals/whitespaces */ "./node_modules/core-js/internals/whitespaces.js");
var non = '\u200B\u0085\u180E';
// check that a method works with the correct list
// of whitespaces and has a correct name
module.exports = function (METHOD_NAME) {
return fails(function () {
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
});
};
/***/ }),
/***/ "./node_modules/core-js/internals/this-number-value.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/internals/this-number-value.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js");
// `thisNumberValue` abstract operation
// https://tc39.github.io/ecma262/#sec-thisnumbervalue
module.exports = function (value) {
if (typeof value != 'number' && classof(value) != 'Number') {
throw TypeError('Incorrect invocation');
}
return +value;
};
/***/ }),
/***/ "./node_modules/core-js/modules/es.array.fill.js":
/*!*******************************************************!*\
!*** ./node_modules/core-js/modules/es.array.fill.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
var fill = __webpack_require__(/*! ../internals/array-fill */ "./node_modules/core-js/internals/array-fill.js");
var addToUnscopables = __webpack_require__(/*! ../internals/add-to-unscopables */ "./node_modules/core-js/internals/add-to-unscopables.js");
// `Array.prototype.fill` method
// https://tc39.github.io/ecma262/#sec-array.prototype.fill
$({ target: 'Array', proto: true }, {
fill: fill
});
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('fill');
/***/ }),
/***/ "./node_modules/core-js/modules/es.array.join.js":
/*!*******************************************************!*\
!*** ./node_modules/core-js/modules/es.array.join.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 IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "./node_modules/core-js/internals/indexed-object.js");
var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js");
var arrayMethodIsStrict = __webpack_require__(/*! ../internals/array-method-is-strict */ "./node_modules/core-js/internals/array-method-is-strict.js");
var nativeJoin = [].join;
var ES3_STRINGS = IndexedObject != Object;
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
// `Array.prototype.join` method
// https://tc39.github.io/ecma262/#sec-array.prototype.join
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
join: function join(separator) {
return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
}
});
/***/ }),
/***/ "./node_modules/core-js/modules/es.array.last-index-of.js":
/*!****************************************************************!*\
!*** ./node_modules/core-js/modules/es.array.last-index-of.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
var lastIndexOf = __webpack_require__(/*! ../internals/array-last-index-of */ "./node_modules/core-js/internals/array-last-index-of.js");
// `Array.prototype.lastIndexOf` method
// https://tc39.github.io/ecma262/#sec-array.prototype.lastindexof
$({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, {
lastIndexOf: lastIndexOf
});
/***/ }),
/***/ "./node_modules/core-js/modules/es.array.reduce.js":
/*!*********************************************************!*\
!*** ./node_modules/core-js/modules/es.array.reduce.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 $reduce = __webpack_require__(/*! ../internals/array-reduce */ "./node_modules/core-js/internals/array-reduce.js").left;
var arrayMethodIsStrict = __webpack_require__(/*! ../internals/array-method-is-strict */ "./node_modules/core-js/internals/array-method-is-strict.js");
var arrayMethodUsesToLength = __webpack_require__(/*! ../internals/array-method-uses-to-length */ "./node_modules/core-js/internals/array-method-uses-to-length.js");
var STRICT_METHOD = arrayMethodIsStrict('reduce');
var USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });
// `Array.prototype.reduce` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduce
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
reduce: function reduce(callbackfn /* , initialValue */) {
return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/***/ "./node_modules/core-js/modules/es.number.to-fixed.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/es.number.to-fixed.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 toInteger = __webpack_require__(/*! ../internals/to-integer */ "./node_modules/core-js/internals/to-integer.js");
var thisNumberValue = __webpack_require__(/*! ../internals/this-number-value */ "./node_modules/core-js/internals/this-number-value.js");
var repeat = __webpack_require__(/*! ../internals/string-repeat */ "./node_modules/core-js/internals/string-repeat.js");
var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
var nativeToFixed = 1.0.toFixed;
var floor = Math.floor;
var pow = function (x, n, acc) {
return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
};
var log = function (x) {
var n = 0;
var x2 = x;
while (x2 >= 4096) {
n += 12;
x2 /= 4096;
}
while (x2 >= 2) {
n += 1;
x2 /= 2;
} return n;
};
var FORCED = nativeToFixed && (
0.00008.toFixed(3) !== '0.000' ||
0.9.toFixed(0) !== '1' ||
1.255.toFixed(2) !== '1.25' ||
1000000000000000128.0.toFixed(0) !== '1000000000000000128'
) || !fails(function () {
// V8 ~ Android 4.3-
nativeToFixed.call({});
});
// `Number.prototype.toFixed` method
// https://tc39.github.io/ecma262/#sec-number.prototype.tofixed
$({ target: 'Number', proto: true, forced: FORCED }, {
// eslint-disable-next-line max-statements
toFixed: function toFixed(fractionDigits) {
var number = thisNumberValue(this);
var fractDigits = toInteger(fractionDigits);
var data = [0, 0, 0, 0, 0, 0];
var sign = '';
var result = '0';
var e, z, j, k;
var multiply = function (n, c) {
var index = -1;
var c2 = c;
while (++index < 6) {
c2 += n * data[index];
data[index] = c2 % 1e7;
c2 = floor(c2 / 1e7);
}
};
var divide = function (n) {
var index = 6;
var c = 0;
while (--index >= 0) {
c += data[index];
data[index] = floor(c / n);
c = (c % n) * 1e7;
}
};
var dataToString = function () {
var index = 6;
var s = '';
while (--index >= 0) {
if (s !== '' || index === 0 || data[index] !== 0) {
var t = String(data[index]);
s = s === '' ? t : s + repeat.call('0', 7 - t.length) + t;
}
} return s;
};
if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');
// eslint-disable-next-line no-self-compare
if (number != number) return 'NaN';
if (number <= -1e21 || number >= 1e21) return String(number);
if (number < 0) {
sign = '-';
number = -number;
}
if (number > 1e-21) {
e = log(number * pow(2, 69, 1)) - 69;
z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);
z *= 0x10000000000000;
e = 52 - e;
if (e > 0) {
multiply(0, z);
j = fractDigits;
while (j >= 7) {
multiply(1e7, 0);
j -= 7;
}
multiply(pow(10, j, 1), 0);
j = e - 1;
while (j >= 23) {
divide(1 << 23);
j -= 23;
}
divide(1 << j);
multiply(1, 1);
divide(2);
result = dataToString();
} else {
multiply(0, z);
multiply(1 << -e, 0);
result = dataToString() + repeat.call('0', fractDigits);
}
}
if (fractDigits > 0) {
k = result.length;
result = sign + (k <= fractDigits
? '0.' + repeat.call('0', fractDigits - k) + result
: result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));
} else {
result = sign + result;
} return result;
}
});
/***/ }),
/***/ "./node_modules/core-js/modules/es.set.js":
/*!************************************************!*\
!*** ./node_modules/core-js/modules/es.set.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var collection = __webpack_require__(/*! ../internals/collection */ "./node_modules/core-js/internals/collection.js");
var collectionStrong = __webpack_require__(/*! ../internals/collection-strong */ "./node_modules/core-js/internals/collection-strong.js");
// `Set` constructor
// https://tc39.github.io/ecma262/#sec-set-objects
module.exports = collection('Set', function (init) {
return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
}, collectionStrong);
/***/ }),
/***/ "./node_modules/core-js/modules/es.string.fontsize.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/es.string.fontsize.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 createHTML = __webpack_require__(/*! ../internals/create-html */ "./node_modules/core-js/internals/create-html.js");
var forcedStringHTMLMethod = __webpack_require__(/*! ../internals/string-html-forced */ "./node_modules/core-js/internals/string-html-forced.js");
// `String.prototype.fontsize` method
// https://tc39.github.io/ecma262/#sec-string.prototype.fontsize
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fontsize') }, {
fontsize: function fontsize(size) {
return createHTML(this, 'font', 'size', size);
}
});
/***/ }),
/***/ "./node_modules/core-js/modules/es.string.includes.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/modules/es.string.includes.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 notARegExp = __webpack_require__(/*! ../internals/not-a-regexp */ "./node_modules/core-js/internals/not-a-regexp.js");
var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
var correctIsRegExpLogic = __webpack_require__(/*! ../internals/correct-is-regexp-logic */ "./node_modules/core-js/internals/correct-is-regexp-logic.js");
// `String.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-string.prototype.includes
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
includes: function includes(searchString /* , position = 0 */) {
return !!~String(requireObjectCoercible(this))
.indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/***/ "./node_modules/core-js/modules/es.string.link.js":
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/es.string.link.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 createHTML = __webpack_require__(/*! ../internals/create-html */ "./node_modules/core-js/internals/create-html.js");
var forcedStringHTMLMethod = __webpack_require__(/*! ../internals/string-html-forced */ "./node_modules/core-js/internals/string-html-forced.js");
// `String.prototype.link` method
// https://tc39.github.io/ecma262/#sec-string.prototype.link
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {
link: function link(url) {
return createHTML(this, 'a', 'href', url);
}
});
/***/ }),
/***/ "./node_modules/core-js/modules/es.string.repeat.js":
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/es.string.repeat.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
var repeat = __webpack_require__(/*! ../internals/string-repeat */ "./node_modules/core-js/internals/string-repeat.js");
// `String.prototype.repeat` method
// https://tc39.github.io/ecma262/#sec-string.prototype.repeat
$({ target: 'String', proto: true }, {
repeat: repeat
});
/***/ }),
/***/ "./node_modules/core-js/modules/es.string.search.js":
/*!**********************************************************!*\
!*** ./node_modules/core-js/modules/es.string.search.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fixRegExpWellKnownSymbolLogic = __webpack_require__(/*! ../internals/fix-regexp-well-known-symbol-logic */ "./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js");
var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js");
var sameValue = __webpack_require__(/*! ../internals/same-value */ "./node_modules/core-js/internals/same-value.js");
var regExpExec = __webpack_require__(/*! ../internals/regexp-exec-abstract */ "./node_modules/core-js/internals/regexp-exec-abstract.js");
// @@search logic
fixRegExpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {
return [
// `String.prototype.search` method
// https://tc39.github.io/ecma262/#sec-string.prototype.search
function search(regexp) {
var O = requireObjectCoercible(this);
var searcher = regexp == undefined ? undefined : regexp[SEARCH];
return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
},
// `RegExp.prototype[@@search]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
function (regexp) {
var res = maybeCallNative(nativeSearch, regexp, this);
if (res.done) return res.value;
var rx = anObject(regexp);
var S = String(this);
var previousLastIndex = rx.lastIndex;
if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
var result = regExpExec(rx, S);
if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
return result === null ? -1 : result.index;
}
];
});
/***/ }),
/***/ "./node_modules/core-js/modules/es.string.trim.js":
/*!********************************************************!*\
!*** ./node_modules/core-js/modules/es.string.trim.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 $trim = __webpack_require__(/*! ../internals/string-trim */ "./node_modules/core-js/internals/string-trim.js").trim;
var forcedStringTrimMethod = __webpack_require__(/*! ../internals/string-trim-forced */ "./node_modules/core-js/internals/string-trim-forced.js");
// `String.prototype.trim` method
// https://tc39.github.io/ecma262/#sec-string.prototype.trim
$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
trim: function trim() {
return $trim(this);
}
});
/***/ }),
/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/editor/UeCard.vue?vue&type=style&index=0&lang=css&":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/editor/UeCard.vue?vue&type=style&index=0&lang=css& ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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, "\n.ue-card .edui-editor-toolbarbox{\r\n display: none;\r\n position: absolute !important;\r\n top: -56px;\n}\n.ue-card .edui-default .edui-editor{\r\n border: none;\n}\n#edui_fixedlayer{\r\n z-index: 1101!important;\n}\r\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/answer-sheet/setting/Index.vue?vue&type=style&index=1&lang=css&":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/answer-sheet/setting/Index.vue?vue&type=style&index=1&lang=css& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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, "\n.card_setting-item .el-radio{\r\n margin-right: 10px;\r\n /* margin-bottom: 10px; */\n}\r\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/Index.vue?vue&type=style&index=0&id=db49e2e6&scoped=true&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/answer-sheet/Index.vue?vue&type=style&index=0&id=db49e2e6&scoped=true&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, ".answer_sheet[data-v-db49e2e6] {\n display: flex;\n justify-content: center;\n padding-right: 330px;\n background: #e1e1e1;\n}\n.answer_sheet .card_edit-wrap[data-v-db49e2e6] {\n flex: 1;\n padding: 20px;\n overflow: auto;\n background: #e1e1e1;\n}\n.answer_sheet .card_setting-wrap[data-v-db49e2e6] {\n position: absolute;\n right: 0;\n top: 0;\n height: 100%;\n width: 330px;\n padding-bottom: 60px;\n background: #fff;\n box-sizing: border-box;\n overflow: auto;\n}\n.answer_sheet .btn-go-back[data-v-db49e2e6] {\n position: fixed;\n top: 20px;\n left: 20px;\n width: 80px;\n height: 40px;\n margin: 0 10px;\n text-align: center;\n line-height: 40px;\n background: #97b1c7;\n border-radius: 4px;\n color: #fff;\n font-size: 16px;\n cursor: pointer;\n border: 1px solid transparent;\n z-index: 2000;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/Index.vue?vue&type=style&index=1&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/answer-sheet/Index.vue?vue&type=style&index=1&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, ".set-disable {\n background: rgba(0, 0, 0, 0.4);\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n width: 100%;\n z-index: 1;\n}\n.paper-item .set-disable {\n z-index: 1999;\n background: rgba(0, 0, 0, 0);\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/common/SubjectSelect.vue?vue&type=style&index=0&id=170a3c0e&scoped=true&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/answer-sheet/common/SubjectSelect.vue?vue&type=style&index=0&id=170a3c0e&scoped=true&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, ".subjectSelect[data-v-170a3c0e] {\n display: inline-block;\n width: 110px;\n}\n.subjectSelect .select-subject[data-v-170a3c0e] {\n margin-left: 5px;\n margin-right: 5px;\n width: 80px;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/Index.vue?vue&type=style&index=0&id=5057e78a&scoped=true&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/answer-sheet/paper/Index.vue?vue&type=style&index=0&id=5057e78a&scoped=true&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, ".paper-item[data-v-5057e78a] {\n margin-bottom: 30px;\n font-family: 'Times New Roman', 'Microsoft YaHei';\n position: relative;\n background-color: #fff;\n margin: 0 auto;\n}\n.paper-item .page-direction[data-v-5057e78a],\n.paper-item .page-num-cur[data-v-5057e78a] {\n position: absolute;\n bottom: 20px;\n left: 50%;\n transform: translateX(-50%);\n line-height: 30px;\n font-size: 12px;\n color: #999;\n}\n.paper-item .page-direction[data-v-5057e78a] {\n padding: 0 5px;\n bottom: 5px;\n line-height: 20px;\n background: #666;\n color: #fff;\n}\n.paper-item-js .main-dot[data-v-5057e78a] {\n position: absolute;\n top: 20px;\n left: 30px;\n width: 10.58333333mm;\n height: 5.29166667mm;\n}\n.paper-item-js .unique-code-50[data-v-5057e78a] {\n left: 50px;\n}\n.add-topic-tips[data-v-5057e78a] {\n text-align: center;\n color: #999;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/PaperContent.vue?vue&type=style&index=0&id=53d3a045&scoped=true&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/answer-sheet/paper/PaperContent.vue?vue&type=style&index=0&id=53d3a045&scoped=true&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, ".paper-content[data-v-53d3a045] {\n padding: 50px 30px;\n}\n.paper-content.line-left[data-v-53d3a045] {\n padding-left: 50px;\n padding-right: 30px;\n}\n.paper-content.line-right[data-v-53d3a045] {\n padding-left: 30px;\n padding-right: 50px;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/PaperLine.vue?vue&type=style&index=0&id=1f29a758&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/answer-sheet/paper/PaperLine.vue?vue&type=style&index=0&id=1f29a758&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, ".paper-line[data-v-1f29a758] {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 38px;\n border-right: 2px dashed #bbb;\n display: none;\n}\n.paper-line img[data-v-1f29a758] {\n position: absolute;\n width: 2px;\n height: 100%;\n right: 0;\n top: 50%;\n margin-top: -560px;\n}\n.paper-line .line[data-v-1f29a758] {\n position: absolute;\n right: -8px;\n width: 16px;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n}\n.paper-line.line-left[data-v-1f29a758],\n.paper-line.line-right[data-v-1f29a758] {\n display: block;\n border: 0;\n}\n.paper-line.line-right[data-v-1f29a758] {\n left: auto;\n right: 0;\n border-left: 2px dashed #bbb;\n}\n.paper-line.line-right .line[data-v-1f29a758] {\n left: -8px;\n}\n.paper-line.line-left[data-v-1f29a758] {\n left: 0;\n border-right: 2px dashed #bbb;\n}\n.paper-line.line-left .line[data-v-1f29a758] {\n right: -8px;\n}\n.paper-line .line span[data-v-1f29a758] {\n display: block;\n font-size: 12px;\n color: #999;\n transform: rotate(-90deg);\n -webkit-transform: rotate(-90deg);\n /* Firefox */\n -moz-transform: rotate(-90deg);\n}\n.paper-line .examinee-info[data-v-1f29a758] {\n position: absolute;\n display: flex;\n justify-content: space-around;\n flex-direction: column;\n height: 100%;\n width: 40px;\n top: 50%;\n transform: translateY(-50%);\n left: 0;\n}\n.paper-line .examinee-info .item[data-v-1f29a758] {\n height: 270px;\n font-style: normal;\n}\n.paper-line .examinee-info .item em[data-v-1f29a758] {\n display: block;\n width: 14px;\n margin-left: 10px;\n font-size: 14px;\n font-style: normal;\n}\n.paper-line .examinee-info .item em i[data-v-1f29a758] {\n display: block;\n font-size: 14px;\n font-style: normal;\n transform: rotate(-90deg);\n -webkit-transform: rotate(-90deg);\n -ms-transform: rotate(-90deg);\n -o-transform: rotate(-90deg);\n -moz-transform: rotate(-90deg);\n}\n.paper-line .examinee-info .item span[data-v-1f29a758] {\n display: flex;\n flex-direction: column-reverse;\n justify-content: center;\n align-items: center;\n position: relative;\n width: 20px;\n height: 200px;\n margin-left: 10px;\n border-right: 2px solid #333;\n}\n.paper-line .examinee-info .item span b[data-v-1f29a758] {\n font-weight: normal;\n transform: rotate(-90deg);\n -webkit-transform: rotate(-90deg);\n display: block;\n font-size: 16px;\n}\n.paper-line .examinee-info .item span .red[data-v-1f29a758] {\n font-weight: normal;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/GradeAndName.vue?vue&type=style&index=0&id=13c50963&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/answer-sheet/paper/paper-info/GradeAndName.vue?vue&type=style&index=0&id=13c50963&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, ".paper-grade[data-v-13c50963] {\n display: flex;\n flex: 1;\n height: 22px;\n margin-bottom: 10px;\n}\n.paper-grade .item[data-v-13c50963] {\n display: flex;\n display: -webkit-flex;\n flex: 1;\n -webkit-flex: 1;\n padding: 0 5px;\n font-style: normal;\n}\n.paper-grade .item em[data-v-13c50963] {\n height: 22px;\n line-height: 22px;\n color: #333;\n font-style: normal;\n font-size: 16px;\n}\n.paper-grade .item span[data-v-13c50963] {\n flex: 1;\n -webkit-flex: 1;\n height: 20px;\n border-bottom: 2px solid #bbbbbb;\n display: flex;\n display: -webkit-flex;\n justify-content: center;\n}\n.paper-grade .item .red[data-v-13c50963] {\n font-weight: normal;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/PaperAttention.vue?vue&type=style&index=0&id=446134ac&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/answer-sheet/paper/paper-info/PaperAttention.vue?vue&type=style&index=0&id=446134ac&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, ".paper-attention[data-v-446134ac] {\n padding-bottom: 20px;\n}\n.notice-info[data-v-446134ac] {\n position: relative;\n display: flex;\n align-items: center;\n border: 2px solid #bbbbbb;\n border-radius: 4px;\n font-size: 12px;\n flex-wrap: wrap;\n min-height: 120px;\n}\n.notice-info .tips-info[data-v-446134ac] {\n width: 250px;\n height: 100%;\n min-height: 120px;\n}\n.notice-info .simple-border.right[data-v-446134ac] {\n left: 330px;\n}\n.notice-info .notice-ewm[data-v-446134ac] {\n position: relative;\n}\n.notice-info .notice-ewm .cover[data-v-446134ac] {\n position: absolute;\n width: 80px;\n height: 80px;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n align-items: center;\n justify-content: center;\n background: #fff;\n font-style: normal;\n text-align: center;\n border: 1px dashed #bbb;\n z-index: 10;\n}\n.notice-info .notice-ewm .dtk-ewm[data-v-446134ac] {\n width: 70px;\n height: 70px;\n}\n.notice-info .tips-info[data-v-446134ac] {\n display: flex;\n position: relative;\n width: 380px;\n}\n.notice-info .warming-info[data-v-446134ac] {\n display: flex;\n flex: 1;\n}\n.notice-info .simple-border[data-v-446134ac] {\n position: absolute;\n height: 100%;\n width: 2px;\n background: #bbb;\n left: 30px;\n top: 0;\n}\n.notice-info .simple-border.right[data-v-446134ac] {\n left: 470px;\n}\n.notice-info .notice-title[data-v-446134ac] {\n width: 30px;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n font-size: 14px;\n align-items: center;\n font-weight: bold;\n}\n.notice-info .notice-title i[data-v-446134ac] {\n font-style: normal;\n}\n.notice-info .notice-detail[data-v-446134ac] {\n flex: 1;\n padding: 5px;\n padding-right: 0;\n line-height: 16px;\n color: #333;\n border-right: 2px solid #bbb;\n}\n.notice-info .notice-detail p[data-v-446134ac] {\n line-height: 16px;\n}\n.notice-info .notice-ewm[data-v-446134ac] {\n width: 90px;\n min-height: 80px;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.notice-info .notice-ewm .dtk-ewm[data-v-446134ac] {\n width: 80px;\n height: 80px;\n}\n.notice-info .notice-ewm .dtk-ewm canvas[data-v-446134ac] {\n width: 100%;\n height: 100%;\n}\n.notice-info .noticeLose[data-v-446134ac] {\n flex: 1;\n padding: 5px;\n box-sizing: border-box;\n line-height: 12px;\n}\n.notice-info .noticeLose p[data-v-446134ac] {\n line-height: 16px;\n}\n.notice-info .noticeLose h4[data-v-446134ac] {\n display: flex;\n align-items: center;\n font-weight: normal;\n}\n.notice-info .noticeLose h4 i[data-v-446134ac] {\n width: 24px;\n height: 14px;\n margin-left: 10px;\n border: 2px solid #bbb;\n}\n.page-width-small .tips-info[data-v-446134ac] {\n width: 250px;\n}\n.page-width-small .simple-border.right[data-v-446134ac] {\n left: 340px;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/PaperCard.vue?vue&type=style&index=0&id=22940c34&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/answer-sheet/paper/paper-info/PaperCard.vue?vue&type=style&index=0&id=22940c34&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, ".paper-card[data-v-22940c34] {\n padding-bottom: 10px;\n}\n.card-flex[data-v-22940c34] {\n display: flex;\n align-items: center;\n}\n.card-flex .card-title[data-v-22940c34] {\n margin-right: 5px;\n line-height: 22px;\n}\n.card-flex .card-id[data-v-22940c34] {\n border: 1px solid #bbb;\n color: #555555;\n}\n.card-flex .card-id .square[data-v-22940c34] {\n display: block;\n width: 22px;\n height: 20px;\n border-right: 1px solid #bbb;\n}\n.card-flex .card-id .iconfont[data-v-22940c34] {\n width: 13px;\n height: 10px;\n line-height: 10px;\n font-size: 11px;\n color: #666;\n}\n.card-flex .card-id ul[data-v-22940c34] {\n border-top: 1px solid #bbb;\n}\n.card-flex .card-id > div:last-child .square[data-v-22940c34] {\n border-right: 0;\n}\n.card-flex .card-id > div:last-child li[data-v-22940c34] {\n border-right: 0;\n}\n.card-flex .card-id li[data-v-22940c34] {\n width: 22px;\n height: 20px;\n line-height: 20px;\n text-align: center;\n border-right: 1px solid #bbb;\n}\n.card-flex .card-id li img[data-v-22940c34] {\n width: 15px;\n height: 12px;\n}\n.card-flex .card-id.only-code[data-v-22940c34] {\n border: 0;\n}\n.card-flex .card-id.only-code > div[data-v-22940c34] {\n border: 1px solid #bbb;\n}\n.card-flex .card-id.only-code .square[data-v-22940c34] {\n border-right: 1px solid #bbb !important;\n}\n.card-flex .card-id.only-code .square[data-v-22940c34]:last-child {\n border: 0!important;\n}\n.card-flex .card-code[data-v-22940c34] {\n flex: 1;\n text-align: right;\n}\n.card-flex .card-code .code-img[data-v-22940c34] {\n padding: 10px;\n border: 1px dashed #bbb;\n border-radius: 3px;\n}\n.card-flex .card-code .code-img .code-words[data-v-22940c34] {\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n justify-content: space-around;\n width: 100px;\n height: 200px;\n border: 2px solid #bbb;\n border-radius: 3px;\n}\n.card-flex .card-code .code-img .code-words.cross-code[data-v-22940c34] {\n width: 200px;\n height: 100px!important;\n flex-direction: row;\n}\n.card-flex .card-code .code-img .code-words i[data-v-22940c34] {\n font-style: normal;\n color: #bbb;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/PaperInfo.vue?vue&type=style&index=0&id=2dacf6d2&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/answer-sheet/paper/paper-info/PaperInfo.vue?vue&type=style&index=0&id=2dacf6d2&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, ".paper-info[data-v-2dacf6d2] {\n position: relative;\n display: flex;\n height: 50px;\n justify-content: space-around;\n align-items: center;\n}\n.paper-info span[data-v-2dacf6d2] {\n font-size: 14px;\n color: #333;\n line-height: 50px;\n /* text-align: center; */\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n flex: 1;\n}\n.paper-info span[data-v-2dacf6d2]:nth-child(1) {\n min-width: 110px;\n}\n.paper-info span[data-v-2dacf6d2]:nth-child(2) {\n min-width: 110px;\n}\n.paper-info .input-paper-info[data-v-2dacf6d2] {\n width: 56px;\n background: #fff;\n}\n.paper-info .input-paper-info.number[data-v-2dacf6d2] {\n width: 25px;\n}\n.paper-info:hover .btn-paper-info[data-v-2dacf6d2] {\n display: block;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-info/PaperTitle.vue?vue&type=style&index=0&id=7c485838&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/answer-sheet/paper/paper-info/PaperTitle.vue?vue&type=style&index=0&id=7c485838&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, ".paper-title[data-v-7c485838] {\n height: 55px;\n font-size: 18px;\n margin-bottom: 10px;\n text-align: center;\n}\n.paper-title textarea[data-v-7c485838] {\n display: block;\n width: 100%;\n height: 55px;\n text-align: center;\n resize: none;\n outline: none;\n font-size: 18px;\n box-sizing: border-box;\n -webkit-box-sizing: border-box;\n border: 1px solid #bbbbbb;\n color: #000;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/ArticleCh.vue?vue&type=style&index=0&id=47221792&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/answer-sheet/paper/paper-topic/ArticleCh.vue?vue&type=style&index=0&id=47221792&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, ".article-chinese[data-v-47221792] {\n border: 1px solid #000;\n}\n.article-svg[data-v-47221792] {\n width: 100%;\n}\n.article-rect[data-v-47221792] {\n fill: #fff;\n stroke-width: 1;\n stroke: #000;\n box-sizing: border-box;\n}\ntext[data-v-47221792] {\n font-size: 12px;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/ChooseTopic.vue?vue&type=style&index=0&id=1ac7aaaf&scoped=true&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/answer-sheet/paper/paper-topic/ChooseTopic.vue?vue&type=style&index=0&id=1ac7aaaf&scoped=true&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, ".choose-topic .title[data-v-1ac7aaaf] {\n position: relative;\n line-height: 30px;\n}\n.choose-topic .title .topic-no[data-v-1ac7aaaf] {\n position: absolute;\n}\n.choose-topic .title .title-content[data-v-1ac7aaaf] {\n text-indent: 2em;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/Topic.vue?vue&type=style&index=0&id=82365b74&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/answer-sheet/paper/paper-topic/Topic.vue?vue&type=style&index=0&id=82365b74&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, ".topic[data-v-82365b74] {\n border: 0;\n}\n.title[data-v-82365b74] {\n position: relative;\n line-height: 22px;\n}\n.title .topic-no[data-v-82365b74] {\n position: absolute;\n}\n.title .title-content[data-v-82365b74] {\n text-indent: 1.5em;\n}\n.options[data-v-82365b74] {\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: left;\n flex-wrap: wrap;\n padding-left: 20px;\n}\n.options li[data-v-82365b74] {\n padding-right: 30px;\n width: 50%;\n display: flex;\n align-items: center;\n}\n.options li .options-words[data-v-82365b74] {\n margin-right: 2px;\n}\n.options li.list-style-0[data-v-82365b74] {\n width: 100%;\n}\n.options li.list-style-1[data-v-82365b74] {\n width: 25%;\n}\n.options li.list-style-2[data-v-82365b74] {\n width: 50%;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/TopicChoice.vue?vue&type=style&index=0&id=58a35907&scoped=true&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/answer-sheet/paper/paper-topic/TopicChoice.vue?vue&type=style&index=0&id=58a35907&scoped=true&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, ".flex-direction-1 .single-option[data-v-58a35907] {\n flex-direction: row;\n}\n.flex-direction-1 .single-option li[data-v-58a35907] {\n flex-direction: column;\n}\n.flex-direction-0 .single-option[data-v-58a35907] {\n flex-direction: column;\n}\n.flex-direction-0 .single-option li[data-v-58a35907] {\n flex-direction: row;\n}\n.single-option[data-v-58a35907] {\n position: relative;\n padding: 10px;\n display: flex;\n display: -webkit-flex;\n font-size: 12px;\n flex-wrap: wrap;\n -webkit-flex-wrap: wrap;\n align-content: flex-start;\n align-content: -webkit-flex-start;\n color: #555555;\n /* min-height: 100px; */\n}\n.single-option .iconfont[data-v-58a35907] {\n font-size: 12px;\n color: #666;\n}\n/* .single-option.more-option{\n width: 210px;\n} */\n.single-option li[data-v-58a35907] {\n display: flex;\n -webkit-display: flex;\n align-items: center;\n}\n.single-option li em[data-v-58a35907],\n.single-option li span[data-v-58a35907] {\n display: flex;\n -webkit-display: flex;\n width: 15px;\n height: 12px;\n text-align: center;\n margin: 3px 4px;\n font-style: normal;\n align-items: center;\n justify-content: center;\n}\n.single-option li em[data-v-58a35907] {\n width: 20px;\n margin: 3px 0;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/TopicExplain.vue?vue&type=style&index=0&id=d30766fe&scoped=true&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/answer-sheet/paper/paper-topic/TopicExplain.vue?vue&type=style&index=0&id=d30766fe&scoped=true&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");
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(/*! ../../../../assets/img-answer-sheet/img-drag.png */ "./src/assets/img-answer-sheet/img-drag.png");
exports = ___CSS_LOADER_API_IMPORT___(false);
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
// Module
exports.push([module.i, ".topic-item[data-v-d30766fe] {\n padding-top: 10px;\n}\n.module[data-v-d30766fe] {\n position: relative;\n font-size: 12px;\n border: 2px solid #bbbbbb;\n border-radius: 4px;\n background: #fff;\n}\n.module:hover .btn-paper-info[data-v-d30766fe],\n.module:hover .del-btn[data-v-d30766fe] {\n display: block;\n}\n.module .scoring-box[data-v-d30766fe] {\n width: 100%;\n display: flex;\n border-bottom: 1px solid #bbb;\n font-size: 10px;\n}\n.module .scoring-box span[data-v-d30766fe] {\n flex: 1;\n position: relative;\n height: 30px;\n text-align: center;\n line-height: 30px;\n border-right: 1px solid #bbb;\n}\n.module .scoring-box span[data-v-d30766fe]:last-child {\n border-right: 1px solid transparent;\n}\n.module .scoring-box .no-scoring[data-v-d30766fe] {\n flex: initial;\n min-width: 40px;\n color: #dddddd;\n}\n.module .optional-box[data-v-d30766fe] {\n position: absolute;\n right: 10px;\n top: 41px;\n height: 15px;\n z-index: 1100;\n background-color: #fff;\n}\n.module .optional-box span[data-v-d30766fe] {\n font-size: 14px;\n margin: 0 10px;\n text-align: center;\n box-sizing: border-box;\n}\n.module .btn-edit-big-topic-box .btn-drag[data-v-d30766fe] {\n position: absolute;\n bottom: 1px;\n right: 1px;\n width: 20px;\n height: 20px;\n background: #fff url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat center;\n cursor: pointer;\n z-index: 1100;\n}\n.module .btn-edit-big-topic-box .btn-del-topic-over[data-v-d30766fe] {\n position: absolute;\n top: 1px;\n right: -20px;\n width: 20px;\n height: 20px;\n line-height: 20px;\n text-align: center;\n background: #f2f2f2;\n cursor: pointer;\n z-index: 1100;\n border: 1px solid #ddd;\n}\n.topic-content[data-v-d30766fe] {\n position: relative;\n}\n.topic-content .no-drug-shadow[data-v-d30766fe] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0);\n z-index: 1004;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/TopicFill.vue?vue&type=style&index=0&id=3e8f2b69&scoped=true&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/answer-sheet/paper/paper-topic/TopicFill.vue?vue&type=style&index=0&id=3e8f2b69&scoped=true&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, ".topic-fill[data-v-3e8f2b69] {\n padding: 10px;\n}\n.subjectCol[data-v-3e8f2b69] {\n width: 100%;\n line-height: 40px;\n}\n.subjectCol.col-1 .fill-item[data-v-3e8f2b69] {\n width: 100%;\n}\n.subjectCol.col-2 .fill-item[data-v-3e8f2b69] {\n width: calc(50% - 10px);\n}\n.subjectCol.col-3 .fill-item[data-v-3e8f2b69] {\n width: calc(33% - 10px);\n}\n.subjectCol .fill-item[data-v-3e8f2b69] {\n float: left;\n align-items: flex-end;\n padding-right: 3px;\n padding-top: 10px;\n width: 100%;\n display: flex;\n}\n.subjectCol .fill-item span[data-v-3e8f2b69] {\n display: flex;\n width: 25px;\n align-items: flex-end;\n text-align: center;\n line-height: 25px;\n}\n.subjectCol .fill-item em[data-v-3e8f2b69] {\n position: relative;\n height: 40px;\n flex: 1;\n border-bottom: 1px solid #bbbbbb;\n}\n.subjectCol .fill-item strong[data-v-3e8f2b69] {\n display: flex;\n align-items: flex-end;\n}\n.subjectCol .fill-item strong i[data-v-3e8f2b69] {\n margin-left: -1px;\n width: 25px;\n height: 25px;\n font-style: normal;\n text-align: center;\n line-height: 25px;\n border: 1px solid #bbb;\n font-weight: normal;\n color: #999;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/paper/paper-topic/TopicTitle.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/answer-sheet/paper/paper-topic/TopicTitle.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, ".big-topic-title {\n font-family: 'MicroSoft YaHei';\n padding: 5px 0;\n font-size: 14px;\n color: #555555;\n line-height: 20px;\n font-weight: bold;\n text-align: justify;\n border: 2px solid transparent;\n border-radius: 3px;\n}\n.big-topic-title:focus {\n border-color: #333;\n}\n.big-topic-title span {\n font-size: 12px;\n font-weight: normal;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/setting/Index.vue?vue&type=style&index=0&id=67dd6ae4&scoped=true&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/answer-sheet/setting/Index.vue?vue&type=style&index=0&id=67dd6ae4&scoped=true&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, ".card_setting[data-v-67dd6ae4] {\n position: relative;\n}\n.card_setting .card_setting-title[data-v-67dd6ae4] {\n height: 40px;\n line-height: 40px;\n text-align: center;\n font-size: 16px;\n font-weight: 600;\n color: #233d4d;\n background: #eef0f0;\n}\n.card_setting .overBox[data-v-67dd6ae4] {\n height: 420px;\n padding-bottom: 30px;\n overflow: auto;\n}\n.card_setting .card_setting-item[data-v-67dd6ae4] {\n display: flex;\n padding-top: 15px;\n padding-bottom: 15px;\n}\n.card_setting .card_setting-item .name[data-v-67dd6ae4] {\n width: 80px;\n padding: 0 10px;\n font-size: 18px;\n text-align: justify;\n -moz-text-align-last: justify;\n text-align-last: justify;\n}\n.card_setting .card_setting-item .content[data-v-67dd6ae4] {\n flex: 1;\n align-items: center;\n font-size: 16px;\n flex-wrap: wrap;\n}\n.card_setting .card_setting-item .content .centerBox[data-v-67dd6ae4] {\n display: inline-block;\n vertical-align: -1px;\n}\n.card_setting .card_setting-item .content .centerBox .icontishi1[data-v-67dd6ae4] {\n position: relative;\n vertical-align: top;\n font-size: 16px;\n cursor: pointer;\n color: #bbb;\n display: inline-block;\n}\n.card_setting .card_setting-item .content .centerBox .icontishi1 b[data-v-67dd6ae4] {\n display: inline-block;\n width: 140px;\n position: absolute;\n left: -62px;\n top: -107px;\n background: rgba(0, 0, 0, 0.6);\n padding: 10px;\n border-radius: 10px;\n color: #fff;\n font-weight: normal;\n font-size: 14px;\n line-height: 20px;\n z-index: 1;\n}\n.card_setting .card_setting-item .content .ewmCenterBox[data-v-67dd6ae4] {\n display: inline-block;\n margin-top: 10px;\n height: 20px;\n margin-bottom: 0;\n vertical-align: middle;\n line-height: 20px;\n}\n.card_setting .card_setting-item .content .ewmCenterBox .ewmFont[data-v-67dd6ae4] {\n vertical-align: middle;\n margin-left: 10px;\n margin-bottom: 0!important;\n}\n.card_setting .card_setting-item .content .el-switch[data-v-67dd6ae4] {\n display: inline-block !important;\n}\n.card_setting .card_setting-item .content .el-switch__label[data-v-67dd6ae4] {\n display: inline-block;\n height: 20px;\n line-height: 20px;\n}\n.card_setting .card_setting-item .content .el-switch__label[data-v-67dd6ae4]:before {\n content: \"1111\";\n}\n.card_setting .subject-list .s-num[data-v-67dd6ae4] {\n margin-left: 5px;\n display: inline-block;\n}\n.card_setting .layoutList[data-v-67dd6ae4] {\n display: flex;\n width: 100%;\n align-items: center;\n}\n.card_setting .layoutList .layoutItem[data-v-67dd6ae4] {\n position: relative;\n display: flex;\n margin-right: 10px;\n flex-direction: column;\n align-items: center;\n cursor: pointer;\n}\n.card_setting .layoutList .layoutItem.current span[data-v-67dd6ae4] {\n border-color: #4e8ee9;\n}\n.card_setting .layoutList .layoutItem.current em[data-v-67dd6ae4] {\n color: #4e8ee9;\n}\n.card_setting .layoutList .layoutItem.current .icon_current[data-v-67dd6ae4] {\n display: block;\n}\n.card_setting .layoutList .layoutItem.current i[data-v-67dd6ae4] {\n background: #4e8ee9;\n}\n.card_setting .layoutList .layoutItem.disabled[data-v-67dd6ae4] {\n cursor: not-allowed;\n opacity: 0.3;\n background-color: #fff !important;\n}\n.card_setting .layoutList .layoutItem span[data-v-67dd6ae4] {\n width: 66px;\n height: 66px;\n padding: 0 5px;\n box-sizing: border-box;\n border: 2px solid #bbb;\n display: flex;\n align-items: center;\n justify-content: space-around;\n}\n.card_setting .layoutList .layoutItem i[data-v-67dd6ae4] {\n flex: 1;\n height: 55px;\n margin: 0 2px;\n background: #bbb;\n}\n.card_setting .layoutList .layoutItem em[data-v-67dd6ae4] {\n font-style: normal;\n font-size: 12px;\n line-height: 40px;\n}\n.card_setting .layoutList .layoutItem .icon_current[data-v-67dd6ae4] {\n display: none;\n position: absolute;\n width: 30px;\n height: 30px;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -95%);\n border-radius: 50%;\n border: 2px solid yellow;\n}\n.card_setting .layoutList .layoutItem .icon_current[data-v-67dd6ae4]:after,\n.card_setting .layoutList .layoutItem .icon_current[data-v-67dd6ae4]:before {\n content: \"\";\n position: absolute;\n width: 14px;\n height: 7px;\n border-bottom: 2px solid yellow;\n border-left: 2px solid yellow;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) rotate(-45deg);\n}\n.card_setting .border_b[data-v-67dd6ae4] {\n border-bottom: 1px solid #bbb;\n}\n.card_setting .edit-topic-btn-box .btn-add-topic[data-v-67dd6ae4] {\n display: block;\n margin: 20px auto;\n width: 100px;\n height: 40px;\n line-height: 40px;\n border-radius: 4px;\n text-align: center;\n font-size: 16px;\n color: #fff;\n background: #97b1c7;\n}\n.card_setting .edit-topic-btn-box .btn-set-answer[data-v-67dd6ae4] {\n display: block;\n font-size: 16px;\n text-align: center;\n color: #6A8296;\n cursor: pointer;\n}\n.card_setting .btn-card-box[data-v-67dd6ae4] {\n position: fixed;\n display: flex;\n width: 330px;\n right: 0;\n bottom: 0;\n z-index: 3;\n padding-bottom: 20px;\n padding-top: 20px;\n background: #fff;\n text-align: center;\n padding-left: 10px;\n}\n.card_setting .btn-card-box .btn[data-v-67dd6ae4] {\n margin: 0 10px;\n width: 80px;\n height: 40px;\n line-height: 40px;\n border-radius: 4px;\n text-align: center;\n font-size: 16px;\n color: #fff;\n background: #97b1c7;\n}\n.card_setting .btn-card-box .btn-card-save[data-v-67dd6ae4] {\n background: #85b3e7;\n}\n.card_setting .btn-card-box .btn-card-down[data-v-67dd6ae4] {\n background: #5bcf9a;\n}\n.card_setting .disabled[data-v-67dd6ae4] {\n background: #999 !important;\n cursor: not-allowed;\n}\n.to-pdf-html-box[data-v-67dd6ae4] {\n position: fixed;\n left: 0;\n top: 0;\n z-index: -99999;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/setting/SetAnswer.vue?vue&type=style&index=0&id=75214108&scoped=true&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/answer-sheet/setting/SetAnswer.vue?vue&type=style&index=0&id=75214108&scoped=true&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, ".card_setting-title[data-v-75214108] {\n height: 40px;\n line-height: 40px;\n text-align: center;\n font-size: 16px;\n font-weight: 600;\n color: #233d4d;\n background: #eef0f0;\n}\n.btn-card-box[data-v-75214108] {\n position: fixed;\n width: 330px;\n right: 0;\n bottom: 20px;\n text-align: center;\n}\n.btn-card-box .btn[data-v-75214108] {\n margin: 0 10px;\n width: 80px;\n height: 40px;\n line-height: 40px;\n border-radius: 4px;\n text-align: center;\n font-size: 16px;\n color: #fff;\n background: #97b1c7;\n}\n.btn-card-box .btn-card-save[data-v-75214108] {\n background: #85b3e7;\n}\n.set-select-list[data-v-75214108] {\n padding-bottom: 80px;\n}\n.set-select-list .answer-item[data-v-75214108] {\n display: flex;\n align-items: baseline;\n padding: 10px;\n font-size: 14px;\n border-bottom: 1px dashed #ddd;\n}\n.set-select-list .answer-item .number[data-v-75214108] {\n width: 25px;\n}\n.set-select-list .answer-item .topic-type-name[data-v-75214108] {\n width: 95px;\n}\n.set-select-list .answer-item .option-box[data-v-75214108] {\n flex: 1;\n display: flex;\n flex-wrap: wrap;\n}\n.set-select-list .answer-item .option-box .answer-option[data-v-75214108] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 30px;\n height: 30px;\n margin-right: 10px;\n margin-bottom: 10px;\n background: #FFFFFF;\n border: 1px solid #6A8296;\n font-style: normal;\n border-radius: 2px;\n color: #6A8296;\n cursor: pointer;\n}\n.set-select-list .answer-item .option-box .active[data-v-75214108] {\n background: #6A8296;\n color: #fff;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/topic/AddTopic.vue?vue&type=style&index=0&id=4aaf48c3&scoped=true&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/answer-sheet/topic/AddTopic.vue?vue&type=style&index=0&id=4aaf48c3&scoped=true&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, ".add-topic .topic-edit-item[data-v-4aaf48c3] {\n margin-right: 10px;\n}\n.add-topic .topic-edit-item .disabled[data-v-4aaf48c3] {\n color: #eee;\n cursor: not-allowed !important;\n}\n.add-topic .topic-edit-item label[data-v-4aaf48c3] {\n margin-right: 5px;\n}\n.add-topic .topic-edit-item .select-big_topic-number[data-v-4aaf48c3] {\n width: 120px;\n}\n.add-topic .topic-edit-item .input-big_topic-name[data-v-4aaf48c3] {\n width: 200px;\n}\n.add-topic .topic-edit-item .input-min_topic-number[data-v-4aaf48c3] {\n margin: 0 5px;\n width: 60px;\n}\n.add-topic .topic-type[data-v-4aaf48c3] {\n margin-top: 10px;\n}\n.add-topic .topic-type .select-topic-topicType[data-v-4aaf48c3] {\n width: 120px;\n margin-left: 14px;\n}\n.add-topic .topic-type .select-choose_topic[data-v-4aaf48c3] {\n width: 60px;\n}\n.add-topic .topic-type .btn-add-topic-type[data-v-4aaf48c3],\n.add-topic .topic-type .btn-del-topic-type[data-v-4aaf48c3] {\n font-size: 28px;\n vertical-align: middle;\n cursor: pointer;\n}\n.add-topic .topic-list[data-v-4aaf48c3] {\n margin-top: 20px;\n margin-bottom: 20px;\n min-height: 200px;\n max-height: 340px;\n overflow: auto;\n border: 1px solid #ddd;\n}\n.add-topic .topic-list .topic-list-item[data-v-4aaf48c3] {\n padding: 10px 20px;\n border-bottom: 1px dashed #ccc;\n}\n.add-topic .topic-list .topic-list-item[data-v-4aaf48c3]:last-child {\n border-bottom: none;\n}\n.add-topic .topic-card-setting[data-v-4aaf48c3] {\n padding-bottom: 20px;\n}\n.add-topic .btn-box[data-v-4aaf48c3] {\n padding-top: 30px;\n border-top: 1px solid #ddd;\n text-align: center;\n}\n.add-topic .btn-box .btn[data-v-4aaf48c3] {\n margin: 0 10px;\n width: 80px;\n height: 40px;\n line-height: 40px;\n border-radius: 4px;\n text-align: center;\n font-size: 16px;\n color: #fff;\n background: #97b1c7;\n}\n.add-topic .btn-box .btn-topic-edit-save[data-v-4aaf48c3] {\n background: #85b3e7;\n}\n.color-red[data-v-4aaf48c3] {\n color: red;\n}\n.msg[data-v-4aaf48c3] {\n line-height: 200px;\n text-align: center;\n color: #ccc;\n font-size: 16px;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./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/answer-sheet/topic/MinTopicEditItem.vue?vue&type=style&index=0&id=afe023e2&scoped=true&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/answer-sheet/topic/MinTopicEditItem.vue?vue&type=style&index=0&id=afe023e2&scoped=true&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, ".min-topic-box .input-min_topic-number[data-v-afe023e2] {\n width: 60px;\n}\n.min-topic[data-v-afe023e2] {\n overflow: hidden;\n line-height: 28px;\n}\n.min-topic .left[data-v-afe023e2] {\n float: left;\n width: 120px;\n}\n.min-topic .left .number[data-v-afe023e2] {\n display: inline-block;\n width: 30px;\n}\n.min-topic .left .btn-add-min-topic[data-v-afe023e2] {\n cursor: pointer;\n color: #409EFF;\n}\n.min-topic .left .btn-add-min-topic i[data-v-afe023e2] {\n font-style: normal;\n}\n.min-topic .con[data-v-afe023e2] {\n float: left;\n margin-left: 100px;\n color: #ccc;\n}\n.min-topic .right[data-v-afe023e2] {\n float: right;\n}\n.min-topic .right .switch-is_question[data-v-afe023e2] {\n margin-left: 5px;\n width: 100px;\n}\n.min-question-box[data-v-afe023e2] {\n display: inline-block;\n}\n.min-question[data-v-afe023e2] {\n padding-left: 30px;\n}\n.min-question .min-question-item[data-v-afe023e2] {\n padding: 20px 0;\n}\n.min-question .min-question-item .left[data-v-afe023e2] {\n float: left;\n}\n.min-question .min-question-item .right[data-v-afe023e2] {\n float: right;\n}\n.mini-topic .mini-topic-title[data-v-afe023e2] {\n overflow: hidden;\n}\n.mini-topic .mini-question-item[data-v-afe023e2] {\n padding: 10px 0;\n overflow: hidden;\n}\n.mini-topic-item[data-v-afe023e2] {\n padding: 10px 0;\n line-height: 28px;\n overflow: hidden;\n}\n.mini-topic-item .left[data-v-afe023e2] {\n float: left;\n width: 120px;\n}\n.mini-topic-item .left .btn-del-mini-topic[data-v-afe023e2] {\n margin-right: 5px;\n cursor: pointer;\n}\n.mini-topic-item .left .btn-add-min-topic[data-v-afe023e2] {\n color: #409EFF;\n}\n.mini-topic-item .left .btn-add-min-topic i[data-v-afe023e2] {\n font-style: normal;\n}\n.mini-topic-item .con[data-v-afe023e2] {\n float: left;\n margin-left: 100px;\n color: #ccc;\n}\n.mini-topic-item .right[data-v-afe023e2] {\n float: right;\n}\n.mini-topic-item .right .switch-is_question[data-v-afe023e2] {\n margin-left: 5px;\n width: 100px;\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/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/editor/UeCard.vue?vue&type=style&index=0&lang=css&":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-style-loader??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/editor/UeCard.vue?vue&type=style&index=0&lang=css& ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a
*
*
*
*
* ```
*/getComputedStyle:function getComputedStyle(element,styleName){//一下的属性单独处理
var pros='width height top left';if(pros.indexOf(styleName)>-1){return element['offset'+styleName.replace(/^\w/,function(s){return s.toUpperCase();})]+'px';}//忽略文本节点
if(element.nodeType==3){element=element.parentNode;}//ie下font-size若body下定义了font-size,则从currentStyle里会取到这个font-size. 取不到实际值,故此修改.
if(browser.ie&&browser.version<9&&styleName=='font-size'&&!element.style.fontSize&&!dtd.$empty[element.tagName]&&!dtd.$nonChild[element.tagName]){var span=element.ownerDocument.createElement('span');span.style.cssText='padding:0;border:0;font-family:simsun;';span.innerHTML='.';element.appendChild(span);var result=span.offsetHeight;element.removeChild(span);span=null;return result+'px';}try{var value=domUtils.getStyle(element,styleName)||(window.getComputedStyle?domUtils.getWindow(element).getComputedStyle(element,'').getPropertyValue(styleName):(element.currentStyle||element.style)[utils.cssStyleToDomStyle(styleName)]);}catch(e){return"";}return utils.transUnitToPx(utils.fixColor(styleName,value));},/**
* 删除元素element指定的className
* @method removeClasses
* @param { Element } ele 需要删除class的元素节点
* @param { String } classNames 需要删除的className, 多个className之间以空格分开
* @example
* ```html
* xxx
*
*
* ```
*/ /**
* 删除元素element指定的className
* @method removeClasses
* @param { Element } ele 需要删除class的元素节点
* @param { Array } classNames 需要删除的className数组
* @example
* ```html
* xxx
*
*
* ```
*/removeClasses:function removeClasses(elm,classNames){classNames=utils.isArray(classNames)?classNames:utils.trim(classNames).replace(/[ ]{2,}/g,' ').split(' ');for(var i=0,ci,cls=elm.className;ci=classNames[i++];){cls=cls.replace(new RegExp('\\b'+ci+'\\b'),'');}cls=utils.trim(cls).replace(/[ ]{2,}/g,' ');if(cls){elm.className=cls;}else{domUtils.removeAttributes(elm,['class']);}},/**
* 给元素element添加className
* @method addClass
* @param { Node } ele 需要增加className的元素
* @param { String } classNames 需要添加的className, 多个className之间以空格分割
* @remind 相同的类名不会被重复添加
* @example
* ```html
*
*
*
* ```
*/ /**
* 判断元素element是否包含给定的样式类名className
* @method hasClass
* @param { Node } ele 需要检测的元素
* @param { Array } classNames 需要检测的className数组
* @return { Boolean } 元素是否包含所有给定的className
* @example
* ```html
*
*
*
* ```
*/hasClass:function hasClass(element,className){if(utils.isRegExp(className)){return className.test(element.className);}className=utils.trim(className).replace(/[ ]{2,}/g,' ').split(' ');for(var i=0,ci,cls=element.className;ci=className[i++];){if(!new RegExp('\\b'+ci+'\\b','i').test(cls)){return false;}}return i-1==className.length;},/**
* 阻止事件默认行为
* @method preventDefault
* @param { Event } evt 需要阻止默认行为的事件对象
* @example
* ```javascript
* UE.dom.domUtils.preventDefault( evt );
* ```
*/preventDefault:function preventDefault(evt){evt.preventDefault?evt.preventDefault():evt.returnValue=false;},/**
* 删除元素element指定的样式
* @method removeStyle
* @param { Element } element 需要删除样式的元素
* @param { String } styleName 需要删除的样式名
* @example
* ```html
*
*
*
* ```
*/removeStyle:function removeStyle(element,name){if(browser.ie){//针对color先单独处理一下
if(name=='color'){name='(^|;)'+name;}element.style.cssText=element.style.cssText.replace(new RegExp(name+'[^:]*:[^;]+;?','ig'),'');}else{if(element.style.removeProperty){element.style.removeProperty(name);}else{element.style.removeAttribute(utils.cssStyleToDomStyle(name));}}if(!element.style.cssText){domUtils.removeAttributes(element,['style']);}},/**
* 获取元素element的style属性的指定值
* @method getStyle
* @param { Element } element 需要获取属性值的元素
* @param { String } styleName 需要获取的style的名称
* @warning 该方法仅获取元素style属性中所标明的值
* @return { String } 该元素包含指定的style属性值
* @example
* ```html
*
*
*
* ```
*/getStyle:function getStyle(element,name){var value=element.style[utils.cssStyleToDomStyle(name)];return utils.fixColor(name,value);},/**
* 为元素element设置样式属性值
* @method setStyle
* @param { Element } element 需要设置样式的元素
* @param { String } styleName 样式名
* @param { String } styleValue 样式值
* @example
* ```html
*
*
*
* ```
*/setStyle:function setStyle(element,name,value){element.style[utils.cssStyleToDomStyle(name)]=value;if(!utils.trim(element.style.cssText)){this.removeAttributes(element,'style');}},/**
* 为元素element设置多个样式属性值
* @method setStyles
* @param { Element } element 需要设置样式的元素
* @param { Object } styles 样式名值对
* @example
* ```html
*
*
*
* ```
*/setStyles:function setStyles(element,styles){for(var name in styles){if(styles.hasOwnProperty(name)){domUtils.setStyle(element,name,styles[name]);}}},/**
* 删除_moz_dirty属性
* @private
* @method removeDirtyAttr
*/removeDirtyAttr:function removeDirtyAttr(node){for(var i=0,ci,nodes=node.getElementsByTagName('*');ci=nodes[i++];){ci.removeAttribute('_moz_dirty');}node.removeAttribute('_moz_dirty');},/**
* 获取子节点的数量
* @method getChildCount
* @param { Element } node 需要检测的元素
* @return { Number } 给定的node元素的子节点数量
* @example
* ```html
*
*
*
*
*
* ```
*/ /**
* 根据给定的过滤规则, 获取符合条件的子节点的数量
* @method getChildCount
* @param { Element } node 需要检测的元素
* @param { Function } fn 过滤器, 要求对符合条件的子节点返回true, 反之则要求返回false
* @return { Number } 符合过滤条件的node元素的子节点数量
* @example
* ```html
*
*
*
*
*
* ```
*/getChildCount:function getChildCount(node,fn){var count=0,first=node.firstChild;fn=fn||function(){return 1;};while(first){if(fn(first)){count++;}first=first.nextSibling;}return count;},/**
* 判断给定节点是否为空节点
* @method isEmptyNode
* @param { Node } node 需要检测的节点对象
* @return { Boolean } 节点是否为空
* @example
* ```javascript
* UE.dom.domUtils.isEmptyNode( document.body );
* ```
*/isEmptyNode:function isEmptyNode(node){return!node.firstChild||domUtils.getChildCount(node,function(node){return!domUtils.isBr(node)&&!domUtils.isBookmarkNode(node)&&!domUtils.isWhitespace(node);})==0;},clearSelectedArr:function clearSelectedArr(nodes){var node;while(node=nodes.pop()){domUtils.removeAttributes(node,['class']);}},/**
* 将显示区域滚动到指定节点的位置
* @method scrollToView
* @param {Node} node 节点
* @param {window} win window对象
* @param {Number} offsetTop 距离上方的偏移量
*/scrollToView:function scrollToView(node,win,offsetTop){var getViewPaneSize=function getViewPaneSize(){var doc=win.document,mode=doc.compatMode=='CSS1Compat';return{width:(mode?doc.documentElement.clientWidth:doc.body.clientWidth)||0,height:(mode?doc.documentElement.clientHeight:doc.body.clientHeight)||0};},getScrollPosition=function getScrollPosition(win){if('pageXOffset'in win){return{x:win.pageXOffset||0,y:win.pageYOffset||0};}else{var doc=win.document;return{x:doc.documentElement.scrollLeft||doc.body.scrollLeft||0,y:doc.documentElement.scrollTop||doc.body.scrollTop||0};}};var winHeight=getViewPaneSize().height,offset=winHeight*-1+offsetTop;offset+=node.offsetHeight||0;var elementPosition=domUtils.getXY(node);offset+=elementPosition.y;var currentScroll=getScrollPosition(win).y;// offset += 50;
if(offset>currentScroll||offset
*
*
* ```
*/ /**
* 根据指定的判断规则判断给定的元素是否是一个空元素
* @method isEmptyBlock
* @param { Element } node 需要判断的元素
* @param { RegExp } reg 对内容执行判断的正则表达式对象
* @return { Boolean } 是否是空元素
*/isEmptyBlock:function isEmptyBlock(node,reg){// HaoChuan9421
if(!node){return;}if(node.nodeType!=1)return 0;reg=reg||new RegExp('[ \xa0\t\r\n'+domUtils.fillChar+']','g');if(node[browser.ie?'innerText':'textContent'].replace(reg,'').length>0){return 0;}for(var n in dtd.$isNotEmpty){if(node.getElementsByTagName(n).length){return 0;}}return 1;},/**
* 移动元素使得该元素的位置移动指定的偏移量的距离
* @method setViewportOffset
* @param { Element } element 需要设置偏移量的元素
* @param { Object } offset 偏移量, 形如{ left: 100, top: 50 }的一个键值对, 表示该元素将在
* 现有的位置上向水平方向偏移offset.left的距离, 在竖直方向上偏移
* offset.top的距离
* @example
* ```html
*
*
*
* ```
*/setViewportOffset:function setViewportOffset(element,offset){var left=parseInt(element.style.left)|0;var top=parseInt(element.style.top)|0;var rect=element.getBoundingClientRect();var offsetLeft=offset.left-rect.left;var offsetTop=offset.top-rect.top;if(offsetLeft){element.style.left=left+offsetLeft+'px';}if(offsetTop){element.style.top=top+offsetTop+'px';}},/**
* 用“填充字符”填充节点
* @method fillNode
* @private
* @param { DomDocument } doc 填充的节点所在的docment对象
* @param { Node } node 需要填充的节点对象
* @example
* ```html
*
*
*
* ```
*/fillNode:function fillNode(doc,node){var tmpNode=browser.ie?doc.createTextNode(domUtils.fillChar):doc.createElement('br');node.innerHTML='';node.appendChild(tmpNode);},/**
* 把节点src的所有子节点追加到另一个节点tag上去
* @method moveChild
* @param { Node } src 源节点, 该节点下的所有子节点将被移除
* @param { Node } tag 目标节点, 从源节点移除的子节点将被追加到该节点下
* @example
* ```html
*
*
*
*
*
*
* ```
*/ /**
* 把节点src的所有子节点移动到另一个节点tag上去, 可以通过dir参数控制附加的行为是“追加”还是“插入顶部”
* @method moveChild
* @param { Node } src 源节点, 该节点下的所有子节点将被移除
* @param { Node } tag 目标节点, 从源节点移除的子节点将被附加到该节点下
* @param { Boolean } dir 附加方式, 如果为true, 则附加进去的节点将被放到目标节点的顶部, 反之,则放到末尾
* @example
* ```html
*
*
*
*
*
*
* ```
*/moveChild:function moveChild(src,tag,dir){while(src.firstChild){if(dir&&tag.firstChild){tag.insertBefore(src.lastChild,tag.firstChild);}else{tag.appendChild(src.firstChild);}}},/**
* 判断节点的标签上是否不存在任何属性
* @method hasNoAttributes
* @private
* @param { Node } node 需要检测的节点对象
* @return { Boolean } 节点是否不包含任何属性
* @example
* ```html
* xxxx
*
*
* ```
*/hasNoAttributes:function hasNoAttributes(node){return browser.ie?/^<\w+\s*?>/.test(node.outerHTML):node.attributes.length==0;},/**
* 检测节点是否是UEditor所使用的辅助节点
* @method isCustomeNode
* @private
* @param { Node } node 需要检测的节点
* @remind 辅助节点是指编辑器要完成工作临时添加的节点, 在输出的时候将会从编辑器内移除, 不会影响最终的结果。
* @return { Boolean } 给定的节点是否是一个辅助节点
*/isCustomeNode:function isCustomeNode(node){return node.nodeType==1&&node.getAttribute('_ue_custom_node_');},/**
* 检测节点的标签是否是给定的标签
* @method isTagNode
* @param { Node } node 需要检测的节点对象
* @param { String } tagName 标签
* @return { Boolean } 节点的标签是否是给定的标签
* @example
* ```html
*
*
*
* ```
*/isTagNode:function isTagNode(node,tagNames){return node.nodeType==1&&new RegExp('\\b'+node.tagName+'\\b','i').test(tagNames);},/**
* 给定一个节点数组,在通过指定的过滤器过滤后, 获取其中满足过滤条件的第一个节点
* @method filterNodeList
* @param { Array } nodeList 需要过滤的节点数组
* @param { Function } fn 过滤器, 对符合条件的节点, 执行结果返回true, 反之则返回false
* @return { Node | NULL } 如果找到符合过滤条件的节点, 则返回该节点, 否则返回NULL
* @example
* ```javascript
* var divNodes = document.getElementsByTagName("div");
* divNodes = [].slice.call( divNodes, 0 );
*
* //output: null
* console.log( UE.dom.domUtils.filterNodeList( divNodes, function ( node ) {
* return node.tagName.toLowerCase() !== 'div';
* } ) );
* ```
*/ /**
* 给定一个节点数组nodeList和一组标签名tagNames, 获取其中能够匹配标签名的节点集合中的第一个节点
* @method filterNodeList
* @param { Array } nodeList 需要过滤的节点数组
* @param { String } tagNames 需要匹配的标签名, 多个标签名之间用空格分割
* @return { Node | NULL } 如果找到标签名匹配的节点, 则返回该节点, 否则返回NULL
* @example
* ```javascript
* var divNodes = document.getElementsByTagName("div");
* divNodes = [].slice.call( divNodes, 0 );
*
* //output: null
* console.log( UE.dom.domUtils.filterNodeList( divNodes, 'a span' ) );
* ```
*/ /**
* 给定一个节点数组,在通过指定的过滤器过滤后, 如果参数forAll为true, 则会返回所有满足过滤
* 条件的节点集合, 否则, 返回满足条件的节点集合中的第一个节点
* @method filterNodeList
* @param { Array } nodeList 需要过滤的节点数组
* @param { Function } fn 过滤器, 对符合条件的节点, 执行结果返回true, 反之则返回false
* @param { Boolean } forAll 是否返回整个节点数组, 如果该参数为false, 则返回节点集合中的第一个节点
* @return { Array | Node | NULL } 如果找到符合过滤条件的节点, 则根据参数forAll的值决定返回满足
* 过滤条件的节点数组或第一个节点, 否则返回NULL
* @example
* ```javascript
* var divNodes = document.getElementsByTagName("div");
* divNodes = [].slice.call( divNodes, 0 );
*
* //output: 3(假定有3个div)
* console.log( divNodes.length );
*
* var nodes = UE.dom.domUtils.filterNodeList( divNodes, function ( node ) {
* return node.tagName.toLowerCase() === 'div';
* }, true );
*
* //output: 3
* console.log( nodes.length );
*
* var node = UE.dom.domUtils.filterNodeList( divNodes, function ( node ) {
* return node.tagName.toLowerCase() === 'div';
* }, false );
*
* //output: div
* console.log( node.nodeName );
* ```
*/filterNodeList:function filterNodeList(nodelist,filter,forAll){var results=[];if(!utils.isFunction(filter)){var str=filter;filter=function filter(n){return utils.indexOf(utils.isArray(str)?str:str.split(' '),n.tagName.toLowerCase())!=-1;};}utils.each(nodelist,function(n){filter(n)&&results.push(n);});return results.length==0?null:results.length==1||!forAll?results[0]:results;},/**
* 查询给定的range选区是否在给定的node节点内,且在该节点的最末尾
* @method isInNodeEndBoundary
* @param { UE.dom.Range } rng 需要判断的range对象, 该对象的startContainer不能为NULL
* @param node 需要检测的节点对象
* @return { Number } 如果给定的选取range对象是在node内部的最末端, 则返回1, 否则返回0
*/isInNodeEndBoundary:function isInNodeEndBoundary(rng,node){var start=rng.startContainer;if(start.nodeType==3&&rng.startOffset!=start.nodeValue.length){return 0;}if(start.nodeType==1&&rng.startOffset!=start.childNodes.length){return 0;}while(start!==node){if(start.nextSibling){return 0;};start=start.parentNode;}return 1;},isBoundaryNode:function isBoundaryNode(node,dir){var tmp;while(!domUtils.isBody(node)){tmp=node;node=node.parentNode;if(tmp!==node[dir]){return false;}}return true;},fillHtml:browser.ie11below?' ':'
'};var fillCharReg=new RegExp(domUtils.fillChar,'g');// core/Range.js
/**
* Range封装
* @file
* @module UE.dom
* @class Range
* @since 1.2.6.1
*/ /**
* dom操作封装
* @unfile
* @module UE.dom
*/ /**
* Range实现类,本类是UEditor底层核心类,封装不同浏览器之间的Range操作。
* @unfile
* @module UE.dom
* @class Range
*/(function(){var guid=0,fillChar=domUtils.fillChar,fillData;/**
* 更新range的collapse状态
* @param {Range} range range对象
*/function updateCollapse(range){range.collapsed=range.startContainer&&range.endContainer&&range.startContainer===range.endContainer&&range.startOffset==range.endOffset;}function selectOneNode(rng){return!rng.collapsed&&rng.startContainer.nodeType==1&&rng.startContainer===rng.endContainer&&rng.endOffset-rng.startOffset==1;}function setEndPoint(toStart,node,offset,range){//如果node是自闭合标签要处理
if(node.nodeType==1&&(dtd.$empty[node.tagName]||dtd.$nonChild[node.tagName])){offset=domUtils.getNodeIndex(node)+(toStart?0:1);node=node.parentNode;}if(toStart){range.startContainer=node;range.startOffset=offset;if(!range.endContainer){range.collapse(true);}}else{range.endContainer=node;range.endOffset=offset;if(!range.startContainer){range.collapse(false);}}updateCollapse(range);return range;}function execContentsAction(range,action){//调整边界
//range.includeBookmark();
var start=range.startContainer,end=range.endContainer,startOffset=range.startOffset,endOffset=range.endOffset,doc=range.document,frag=doc.createDocumentFragment(),tmpStart,tmpEnd;if(start.nodeType==1){start=start.childNodes[startOffset]||(tmpStart=start.appendChild(doc.createTextNode('')));}if(end.nodeType==1){end=end.childNodes[endOffset]||(tmpEnd=end.appendChild(doc.createTextNode('')));}if(start===end&&start.nodeType==3){frag.appendChild(doc.createTextNode(start.substringData(startOffset,endOffset-startOffset)));//is not clone
if(action){start.deleteData(startOffset,endOffset-startOffset);range.collapse(true);}return frag;}var current,currentLevel,clone=frag,startParents=domUtils.findParents(start,true),endParents=domUtils.findParents(end,true);for(var i=0;startParents[i]==endParents[i];){i++;}for(var j=i,si;si=startParents[j];j++){current=si.nextSibling;if(si==start){if(!tmpStart){if(range.startContainer.nodeType==3){clone.appendChild(doc.createTextNode(start.nodeValue.slice(startOffset)));//is not clone
if(action){start.deleteData(startOffset,start.nodeValue.length-startOffset);}}else{clone.appendChild(!action?start.cloneNode(true):start);}}}else{currentLevel=si.cloneNode(false);clone.appendChild(currentLevel);}while(current){if(current===end||current===endParents[j]){break;}si=current.nextSibling;clone.appendChild(!action?current.cloneNode(true):current);current=si;}clone=currentLevel;}clone=frag;if(!startParents[i]){clone.appendChild(startParents[i-1].cloneNode(false));clone=clone.firstChild;}for(var j=i,ei;ei=endParents[j];j++){current=ei.previousSibling;if(ei==end){if(!tmpEnd&&range.endContainer.nodeType==3){clone.appendChild(doc.createTextNode(end.substringData(0,endOffset)));//is not clone
if(action){end.deleteData(0,endOffset);}}}else{currentLevel=ei.cloneNode(false);clone.appendChild(currentLevel);}//如果两端同级,右边第一次已经被开始做了
if(j!=i||!startParents[i]){while(current){if(current===start){break;}ei=current.previousSibling;clone.insertBefore(!action?current.cloneNode(true):current,clone.firstChild);current=ei;}}clone=currentLevel;}if(action){range.setStartBefore(!endParents[i]?endParents[i-1]:!startParents[i]?startParents[i-1]:endParents[i]).collapse(true);}tmpStart&&domUtils.remove(tmpStart);tmpEnd&&domUtils.remove(tmpEnd);return frag;}/**
* 创建一个跟document绑定的空的Range实例
* @constructor
* @param { Document } document 新建的选区所属的文档对象
*/ /**
* @property { Node } startContainer 当前Range的开始边界的容器节点, 可以是一个元素节点或者是文本节点
*/ /**
* @property { Node } startOffset 当前Range的开始边界容器节点的偏移量, 如果是元素节点,
* 该值就是childNodes中的第几个节点, 如果是文本节点就是文本内容的第几个字符
*/ /**
* @property { Node } endContainer 当前Range的结束边界的容器节点, 可以是一个元素节点或者是文本节点
*/ /**
* @property { Node } endOffset 当前Range的结束边界容器节点的偏移量, 如果是元素节点,
* 该值就是childNodes中的第几个节点, 如果是文本节点就是文本内容的第几个字符
*/ /**
* @property { Boolean } collapsed 当前Range是否闭合
* @default true
* @remind Range是闭合的时候, startContainer === endContainer && startOffset === endOffset
*/ /**
* @property { Document } document 当前Range所属的Document对象
* @remind 不同range的的document属性可以是不同的
*/var Range=dom.Range=function(document){var me=this;me.startContainer=me.startOffset=me.endContainer=me.endOffset=null;me.document=document;me.collapsed=true;};/**
* 删除fillData
* @param doc
* @param excludeNode
*/function removeFillData(doc,excludeNode){try{if(fillData&&domUtils.inDoc(fillData,doc)){if(!fillData.nodeValue.replace(fillCharReg,'').length){var tmpNode=fillData.parentNode;domUtils.remove(fillData);while(tmpNode&&domUtils.isEmptyInlineElement(tmpNode)&&(//safari的contains有bug
browser.safari?!(domUtils.getPosition(tmpNode,excludeNode)&domUtils.POSITION_CONTAINS):!tmpNode.contains(excludeNode))){fillData=tmpNode.parentNode;domUtils.remove(tmpNode);tmpNode=fillData;}}else{fillData.nodeValue=fillData.nodeValue.replace(fillCharReg,'');}}}catch(e){}}/**
* @param node
* @param dir
*/function mergeSibling(node,dir){var tmpNode;node=node[dir];while(node&&domUtils.isFillChar(node)){tmpNode=node[dir];domUtils.remove(node);node=tmpNode;}}Range.prototype={/**
* 克隆选区的内容到一个DocumentFragment里
* @method cloneContents
* @return { DocumentFragment | NULL } 如果选区是闭合的将返回null, 否则, 返回包含所clone内容的DocumentFragment元素
* @example
* ```html
*
*
* xx[xxx]x
*
*
*
* ```
*/cloneContents:function cloneContents(){return this.collapsed?null:execContentsAction(this,0);},/**
* 删除当前选区范围中的所有内容
* @method deleteContents
* @remind 执行完该操作后, 当前Range对象变成了闭合状态
* @return { UE.dom.Range } 当前操作的Range对象
* @example
* ```html
*
*
* xx[xxx]x
*
*
*
* ```
*/deleteContents:function deleteContents(){var txt;if(!this.collapsed){execContentsAction(this,1);}if(browser.webkit){txt=this.startContainer;if(txt.nodeType==3&&!txt.nodeValue.length){this.setStartBefore(txt).collapse(true);domUtils.remove(txt);}}return this;},/**
* 将当前选区的内容提取到一个DocumentFragment里
* @method extractContents
* @remind 执行该操作后, 选区将变成闭合状态
* @warning 执行该操作后, 原来选区所选中的内容将从dom树上剥离出来
* @return { DocumentFragment } 返回包含所提取内容的DocumentFragment对象
* @example
* ```html
*
*
* xx[xxx]x
*
*
*
*/extractContents:function extractContents(){return this.collapsed?null:execContentsAction(this,2);},/**
* 设置Range的开始容器节点和偏移量
* @method setStart
* @remind 如果给定的节点是元素节点,那么offset指的是其子元素中索引为offset的元素,
* 如果是文本节点,那么offset指的是其文本内容的第offset个字符
* @remind 如果提供的容器节点是一个不能包含子元素的节点, 则该选区的开始容器将被设置
* 为该节点的父节点, 此时, 其距离开始容器的偏移量也变成了该节点在其父节点
* 中的索引
* @param { Node } node 将被设为当前选区开始边界容器的节点对象
* @param { int } offset 选区的开始位置偏移量
* @return { UE.dom.Range } 当前range对象
* @example
* ```html
*
* xxxxxxxxxxxxx[xxx]
*
*
* ```
* @example
* ```html
*
* xxx[xx]x
*
*
* ```
*/setStart:function setStart(node,offset){return setEndPoint(true,node,offset,this);},/**
* 设置Range的结束容器和偏移量
* @method setEnd
* @param { Node } node 作为当前选区结束边界容器的节点对象
* @param { int } offset 结束边界的偏移量
* @see UE.dom.Range:setStart(Node,int)
* @return { UE.dom.Range } 当前range对象
*/setEnd:function setEnd(node,offset){return setEndPoint(false,node,offset,this);},/**
* 将Range开始位置设置到node节点之后
* @method setStartAfter
* @remind 该操作将会把给定节点的父节点作为range的开始容器, 且偏移量是该节点在其父节点中的位置索引+1
* @param { Node } node 选区的开始边界将紧接着该节点之后
* @return { UE.dom.Range } 当前range对象
* @example
* ```html
*
* xxxxxxx[xxxx]
*
*
* ```
*/setStartAfter:function setStartAfter(node){return this.setStart(node.parentNode,domUtils.getNodeIndex(node)+1);},/**
* 将Range开始位置设置到node节点之前
* @method setStartBefore
* @remind 该操作将会把给定节点的父节点作为range的开始容器, 且偏移量是该节点在其父节点中的位置索引
* @param { Node } node 新的选区开始位置在该节点之前
* @see UE.dom.Range:setStartAfter(Node)
* @return { UE.dom.Range } 当前range对象
*/setStartBefore:function setStartBefore(node){return this.setStart(node.parentNode,domUtils.getNodeIndex(node));},/**
* 将Range结束位置设置到node节点之后
* @method setEndAfter
* @remind 该操作将会把给定节点的父节点作为range的结束容器, 且偏移量是该节点在其父节点中的位置索引+1
* @param { Node } node 目标节点
* @see UE.dom.Range:setStartAfter(Node)
* @return { UE.dom.Range } 当前range对象
* @example
* ```html
*
* [xxxxxxx]xxxx
*
*
* ```
*/setEndAfter:function setEndAfter(node){return this.setEnd(node.parentNode,domUtils.getNodeIndex(node)+1);},/**
* 将Range结束位置设置到node节点之前
* @method setEndBefore
* @remind 该操作将会把给定节点的父节点作为range的结束容器, 且偏移量是该节点在其父节点中的位置索引
* @param { Node } node 目标节点
* @see UE.dom.Range:setEndAfter(Node)
* @return { UE.dom.Range } 当前range对象
*/setEndBefore:function setEndBefore(node){return this.setEnd(node.parentNode,domUtils.getNodeIndex(node));},/**
* 设置Range的开始位置到node节点内的第一个子节点之前
* @method setStartAtFirst
* @remind 选区的开始容器将变成给定的节点, 且偏移量为0
* @remind 如果给定的节点是元素节点, 则该节点必须是允许包含子节点的元素。
* @param { Node } node 目标节点
* @see UE.dom.Range:setStartBefore(Node)
* @return { UE.dom.Range } 当前range对象
* @example
* ```html
*
* xxxxx[xx]xxxx
*
*
* ```
*/setStartAtFirst:function setStartAtFirst(node){return this.setStart(node,0);},/**
* 设置Range的开始位置到node节点内的最后一个节点之后
* @method setStartAtLast
* @remind 选区的开始容器将变成给定的节点, 且偏移量为该节点的子节点数
* @remind 如果给定的节点是元素节点, 则该节点必须是允许包含子节点的元素。
* @param { Node } node 目标节点
* @see UE.dom.Range:setStartAtFirst(Node)
* @return { UE.dom.Range } 当前range对象
*/setStartAtLast:function setStartAtLast(node){return this.setStart(node,node.nodeType==3?node.nodeValue.length:node.childNodes.length);},/**
* 设置Range的结束位置到node节点内的第一个节点之前
* @method setEndAtFirst
* @param { Node } node 目标节点
* @remind 选区的结束容器将变成给定的节点, 且偏移量为0
* @remind node必须是一个元素节点, 且必须是允许包含子节点的元素。
* @see UE.dom.Range:setStartAtFirst(Node)
* @return { UE.dom.Range } 当前range对象
*/setEndAtFirst:function setEndAtFirst(node){return this.setEnd(node,0);},/**
* 设置Range的结束位置到node节点内的最后一个节点之后
* @method setEndAtLast
* @param { Node } node 目标节点
* @remind 选区的结束容器将变成给定的节点, 且偏移量为该节点的子节点数量
* @remind node必须是一个元素节点, 且必须是允许包含子节点的元素。
* @see UE.dom.Range:setStartAtFirst(Node)
* @return { UE.dom.Range } 当前range对象
*/setEndAtLast:function setEndAtLast(node){return this.setEnd(node,node.nodeType==3?node.nodeValue.length:node.childNodes.length);},/**
* 选中给定节点
* @method selectNode
* @remind 此时, 选区的开始容器和结束容器都是该节点的父节点, 其startOffset是该节点在父节点中的位置索引,
* 而endOffset为startOffset+1
* @param { Node } node 需要选中的节点
* @return { UE.dom.Range } 当前range对象,此时的range仅包含当前给定的节点对象
* @example
* ```html
*
* xxxxx[xx]xxxx
*
*
* ```
*/selectNode:function selectNode(node){return this.setStartBefore(node).setEndAfter(node);},/**
* 选中给定节点内部的所有节点
* @method selectNodeContents
* @remind 此时, 选区的开始容器和结束容器都是该节点, 其startOffset为0,
* 而endOffset是该节点的子节点数。
* @param { Node } node 目标节点, 当前range将包含该节点内的所有节点
* @return { UE.dom.Range } 当前range对象, 此时range仅包含给定节点的所有子节点
* @example
* ```html
*
* xxxxx[xx]xxxx
*
*
* ```
*/selectNodeContents:function selectNodeContents(node){return this.setStart(node,0).setEndAtLast(node);},/**
* clone当前Range对象
* @method cloneRange
* @remind 返回的range是一个全新的range对象, 其内部所有属性与当前被clone的range相同。
* @return { UE.dom.Range } 当前range对象的一个副本
*/cloneRange:function cloneRange(){var me=this;return new Range(me.document).setStart(me.startContainer,me.startOffset).setEnd(me.endContainer,me.endOffset);},/**
* 向当前选区的结束处闭合选区
* @method collapse
* @return { UE.dom.Range } 当前range对象
* @example
* ```html
*
* xxxxx[xx]xxxx
*
*
* ```
*/ /**
* 闭合当前选区,根据给定的toStart参数项决定是向当前选区开始处闭合还是向结束处闭合,
* 如果toStart的值为true,则向开始位置闭合, 反之,向结束位置闭合。
* @method collapse
* @param { Boolean } toStart 是否向选区开始处闭合
* @return { UE.dom.Range } 当前range对象,此时range对象处于闭合状态
* @see UE.dom.Range:collapse()
* @example
* ```html
*
* xxxxx[xx]xxxx
*
*
* ```
*/collapse:function collapse(toStart){var me=this;if(toStart){me.endContainer=me.startContainer;me.endOffset=me.startOffset;}else{me.startContainer=me.endContainer;me.startOffset=me.endOffset;}me.collapsed=true;return me;},/**
* 调整range的开始位置和结束位置,使其"收缩"到最小的位置
* @method shrinkBoundary
* @return { UE.dom.Range } 当前range对象
* @example
* ```html
* xxxx[xxxxx] => xxxx[xxxxx]
* ```
*
* @example
* ```html
*
* x[xx]xxx
*
*
* ```
*
* @example
* ```html
* [xxxxxxxxxxx] => [xxxxxxxxxxx]
* ```
*/ /**
* 调整range的开始位置和结束位置,使其"收缩"到最小的位置,
* 如果ignoreEnd的值为true,则忽略对结束位置的调整
* @method shrinkBoundary
* @param { Boolean } ignoreEnd 是否忽略对结束位置的调整
* @return { UE.dom.Range } 当前range对象
* @see UE.dom.domUtils.Range:shrinkBoundary()
*/shrinkBoundary:function shrinkBoundary(ignoreEnd){var me=this,child,collapsed=me.collapsed;function check(node){return node.nodeType==1&&!domUtils.isBookmarkNode(node)&&!dtd.$empty[node.tagName]&&!dtd.$nonChild[node.tagName];}while(me.startContainer.nodeType==1//是element
&&(child=me.startContainer.childNodes[me.startOffset])//子节点也是element
&&check(child)){me.setStart(child,0);}if(collapsed){return me.collapse(true);}if(!ignoreEnd){while(me.endContainer.nodeType==1//是element
&&me.endOffset>0//如果是空元素就退出 endOffset=0那么endOffst-1为负值,childNodes[endOffset]报错
&&(child=me.endContainer.childNodes[me.endOffset-1])//子节点也是element
&&check(child)){me.setEnd(child,child.childNodes.length);}}return me;},/**
* 获取离当前选区内包含的所有节点最近的公共祖先节点,
* @method getCommonAncestor
* @remind 返回的公共祖先节点一定不是range自身的容器节点, 但有可能是一个文本节点
* @return { Node } 当前range对象内所有节点的公共祖先节点
* @example
* ```html
* //选区示例
* xxxx[xxx]xxxxxx
*
* ```
*/ /**
* 获取当前选区所包含的所有节点的公共祖先节点, 可以根据给定的参数 includeSelf 决定获取到
* 的公共祖先节点是否可以是当前选区的startContainer或endContainer节点, 如果 includeSelf
* 的取值为true, 则返回的节点可以是自身的容器节点, 否则, 则不能是容器节点
* @method getCommonAncestor
* @param { Boolean } includeSelf 是否允许获取到的公共祖先节点是当前range对象的容器节点
* @return { Node } 当前range对象内所有节点的公共祖先节点
* @see UE.dom.Range:getCommonAncestor()
* @example
* ```html
*
*
*
* xxxxxxxxx[xxx]xxxxxxxx
*
*
*
*
* ```
*/ /**
* 获取当前选区所包含的所有节点的公共祖先节点, 可以根据给定的参数 includeSelf 决定获取到
* 的公共祖先节点是否可以是当前选区的startContainer或endContainer节点, 如果 includeSelf
* 的取值为true, 则返回的节点可以是自身的容器节点, 否则, 则不能是容器节点; 同时可以根据
* ignoreTextNode 参数的取值决定是否忽略类型为文本节点的祖先节点。
* @method getCommonAncestor
* @param { Boolean } includeSelf 是否允许获取到的公共祖先节点是当前range对象的容器节点
* @param { Boolean } ignoreTextNode 获取祖先节点的过程中是否忽略类型为文本节点的祖先节点
* @return { Node } 当前range对象内所有节点的公共祖先节点
* @see UE.dom.Range:getCommonAncestor()
* @see UE.dom.Range:getCommonAncestor(Boolean)
* @example
* ```html
*
*
*
* xxxxxxxx[x]xxxxxxxxxxx
*
*
*
*
* ```
*/getCommonAncestor:function getCommonAncestor(includeSelf,ignoreTextNode){var me=this,start=me.startContainer,end=me.endContainer;if(start===end){if(includeSelf&&selectOneNode(this)){start=start.childNodes[me.startOffset];if(start.nodeType==1)return start;}//只有在上来就相等的情况下才会出现是文本的情况
return ignoreTextNode&&start.nodeType==3?start.parentNode:start;}return domUtils.getCommonAncestor(start,end);},/**
* 调整当前Range的开始和结束边界容器,如果是容器节点是文本节点,就调整到包含该文本节点的父节点上
* @method trimBoundary
* @remind 该操作有可能会引起文本节点被切开
* @return { UE.dom.Range } 当前range对象
* @example
* ```html
*
* //选区示例
* xxx[xxxxx]xxx
*
*
* ```
*/ /**
* 调整当前Range的开始和结束边界容器,如果是容器节点是文本节点,就调整到包含该文本节点的父节点上,
* 可以根据 ignoreEnd 参数的值决定是否调整对结束边界的调整
* @method trimBoundary
* @param { Boolean } ignoreEnd 是否忽略对结束边界的调整
* @return { UE.dom.Range } 当前range对象
* @example
* ```html
*
* //选区示例
* xxx[xxxxx]xxx
*
*
* ```
*/trimBoundary:function trimBoundary(ignoreEnd){this.txtToElmBoundary();var start=this.startContainer,offset=this.startOffset,collapsed=this.collapsed,end=this.endContainer;if(start.nodeType==3){if(offset==0){this.setStartBefore(start);}else{if(offset>=start.nodeValue.length){this.setStartAfter(start);}else{var textNode=domUtils.split(start,offset);//跟新结束边界
if(start===end){this.setEnd(textNode,this.endOffset-offset);}else if(start.parentNode===end){this.endOffset+=1;}this.setStartBefore(textNode);}}if(collapsed){return this.collapse(true);}}if(!ignoreEnd){offset=this.endOffset;end=this.endContainer;if(end.nodeType==3){if(offset==0){this.setEndBefore(end);}else{offset=container.nodeValue.length){r['set'+c.replace(/(\w)/,function(a){return a.toUpperCase();})+'After'](container);}}}if(ignoreCollapsed||!this.collapsed){adjust(this,'start');adjust(this,'end');}return this;},/**
* 在当前选区的开始位置前插入节点,新插入的节点会被该range包含
* @method insertNode
* @param { Node } node 需要插入的节点
* @remind 插入的节点可以是一个DocumentFragment依次插入多个节点
* @return { UE.dom.Range } 当前range对象
*/insertNode:function insertNode(node){var first=node,length=1;if(node.nodeType==11){first=node.firstChild;length=node.childNodes.length;}this.trimBoundary(true);var start=this.startContainer,offset=this.startOffset;var nextNode=start.childNodes[offset];if(nextNode){start.insertBefore(node,nextNode);}else{start.appendChild(node);}if(first.parentNode===this.endContainer){this.endOffset=this.endOffset+length;}return this.setStartBefore(first);},/**
* 闭合选区到当前选区的开始位置, 并且定位光标到闭合后的位置
* @method setCursor
* @return { UE.dom.Range } 当前range对象
* @see UE.dom.Range:collapse()
*/ /**
* 闭合选区,可以根据参数toEnd的值控制选区是向前闭合还是向后闭合, 并且定位光标到闭合后的位置。
* @method setCursor
* @param { Boolean } toEnd 是否向后闭合, 如果为true, 则闭合选区时, 将向结束容器方向闭合,
* 反之,则向开始容器方向闭合
* @return { UE.dom.Range } 当前range对象
* @see UE.dom.Range:collapse(Boolean)
*/setCursor:function setCursor(toEnd,noFillData){return this.collapse(!toEnd).select(noFillData);},/**
* 创建当前range的一个书签,记录下当前range的位置,方便当dom树改变时,还能找回原来的选区位置
* @method createBookmark
* @param { Boolean } serialize 控制返回的标记位置是对当前位置的引用还是ID,如果该值为true,则
* 返回标记位置的ID, 反之则返回标记位置节点的引用
* @return { Object } 返回一个书签记录键值对, 其包含的key有: start => 开始标记的ID或者引用,
* end => 结束标记的ID或引用, id => 当前标记的类型, 如果为true,则表示
* 返回的记录的类型为ID, 反之则为引用
*/createBookmark:function createBookmark(serialize,same){var endNode,startNode=this.document.createElement('span');startNode.style.cssText='display:none;line-height:0px;';startNode.appendChild(this.document.createTextNode("\u200D"));startNode.id='_baidu_bookmark_start_'+(same?'':guid++);if(!this.collapsed){endNode=startNode.cloneNode(true);endNode.id='_baidu_bookmark_end_'+(same?'':guid++);}this.insertNode(startNode);if(endNode){this.collapse().insertNode(endNode).setEndBefore(endNode);}this.setStartAfter(startNode);return{start:serialize?startNode.id:startNode,end:endNode?serialize?endNode.id:endNode:null,id:serialize};},/**
* 调整当前range的边界到书签位置,并删除该书签对象所标记的位置内的节点
* @method moveToBookmark
* @param { BookMark } bookmark createBookmark所创建的标签对象
* @return { UE.dom.Range } 当前range对象
* @see UE.dom.Range:createBookmark(Boolean)
*/moveToBookmark:function moveToBookmark(bookmark){var start=bookmark.id?this.document.getElementById(bookmark.start):bookmark.start,end=bookmark.end&&bookmark.id?this.document.getElementById(bookmark.end):bookmark.end;this.setStartBefore(start);domUtils.remove(start);if(end){this.setEndBefore(end);domUtils.remove(end);}else{this.collapse(true);}return this;},/**
* 调整range的边界,使其"放大"到最近的父节点
* @method enlarge
* @remind 会引起选区的变化
* @return { UE.dom.Range } 当前range对象
*/ /**
* 调整range的边界,使其"放大"到最近的父节点,根据参数 toBlock 的取值, 可以
* 要求扩大之后的父节点是block节点
* @method enlarge
* @param { Boolean } toBlock 是否要求扩大之后的父节点必须是block节点
* @return { UE.dom.Range } 当前range对象
*/enlarge:function enlarge(toBlock,stopFn){var isBody=domUtils.isBody,pre,node,tmp=this.document.createTextNode('');if(toBlock){node=this.startContainer;if(node.nodeType==1){if(node.childNodes[this.startOffset]){pre=node=node.childNodes[this.startOffset];}else{node.appendChild(tmp);pre=node=tmp;}}else{pre=node;}while(1){if(domUtils.isBlockElm(node)){node=pre;while((pre=node.previousSibling)&&!domUtils.isBlockElm(pre)){node=pre;}this.setStartBefore(node);break;}pre=node;node=node.parentNode;}node=this.endContainer;if(node.nodeType==1){if(pre=node.childNodes[this.endOffset]){node.insertBefore(tmp,pre);}else{node.appendChild(tmp);}pre=node=tmp;}else{pre=node;}while(1){if(domUtils.isBlockElm(node)){node=pre;while((pre=node.nextSibling)&&!domUtils.isBlockElm(pre)){node=pre;}this.setEndAfter(node);break;}pre=node;node=node.parentNode;}if(tmp.parentNode===this.endContainer){this.endOffset--;}domUtils.remove(tmp);}// 扩展边界到最大
if(!this.collapsed){while(this.startOffset==0){if(stopFn&&stopFn(this.startContainer)){break;}if(isBody(this.startContainer)){break;}this.setStartBefore(this.startContainer);}while(this.endOffset==(this.endContainer.nodeType==1?this.endContainer.childNodes.length:this.endContainer.nodeValue.length)){if(stopFn&&stopFn(this.endContainer)){break;}if(isBody(this.endContainer)){break;}this.setEndAfter(this.endContainer);}}return this;},enlargeToBlockElm:function enlargeToBlockElm(ignoreEnd){while(!domUtils.isBlockElm(this.startContainer)){this.setStartBefore(this.startContainer);}if(!ignoreEnd){while(!domUtils.isBlockElm(this.endContainer)){this.setEndAfter(this.endContainer);}}return this;},/**
* 调整Range的边界,使其"缩小"到最合适的位置
* @method adjustmentBoundary
* @return { UE.dom.Range } 当前range对象
* @see UE.dom.Range:shrinkBoundary()
*/adjustmentBoundary:function adjustmentBoundary(){if(!this.collapsed){while(!domUtils.isBody(this.startContainer)&&this.startOffset==this.startContainer[this.startContainer.nodeType==3?'nodeValue':'childNodes'].length&&this.startContainer[this.startContainer.nodeType==3?'nodeValue':'childNodes'].length){this.setStartAfter(this.startContainer);}while(!domUtils.isBody(this.endContainer)&&!this.endOffset&&this.endContainer[this.endContainer.nodeType==3?'nodeValue':'childNodes'].length){this.setEndBefore(this.endContainer);}}return this;},/**
* 给range选区中的内容添加给定的inline标签
* @method applyInlineStyle
* @param { String } tagName 需要添加的标签名
* @example
* ```html
* xxxx[xxxx]x
==> range.applyInlineStyle("strong") ==> xxxx[xxxx]x
* ```
*/ /**
* 给range选区中的内容添加给定的inline标签, 并且为标签附加上一些初始化属性。
* @method applyInlineStyle
* @param { String } tagName 需要添加的标签名
* @param { Object } attrs 跟随新添加的标签的属性
* @return { UE.dom.Range } 当前选区
* @example
* ```html
* xxxx[xxxx]x
*
* ==>
*
*
* range.applyInlineStyle("strong",{"style":"font-size:12px"})
*
* ==>
*
* xxxx[xxxx]x
* ```
*/applyInlineStyle:function applyInlineStyle(tagName,attrs,list){if(this.collapsed)return this;this.trimBoundary().enlarge(false,function(node){return node.nodeType==1&&domUtils.isBlockElm(node);}).adjustmentBoundary();var bookmark=this.createBookmark(),end=bookmark.end,filterFn=function filterFn(node){return node.nodeType==1?node.tagName.toLowerCase()!='br':!domUtils.isWhitespace(node);},current=domUtils.getNextDomNode(bookmark.start,false,filterFn),node,pre,range=this.cloneRange();while(current&&domUtils.getPosition(current,end)&domUtils.POSITION_PRECEDING){if(current.nodeType==3||dtd[tagName][current.tagName]){range.setStartBefore(current);node=current;while(node&&(node.nodeType==3||dtd[tagName][node.tagName])&&node!==end){pre=node;node=domUtils.getNextDomNode(node,node.nodeType==1,null,function(parent){return dtd[tagName][parent.tagName];});}var frag=range.setEndAfter(pre).extractContents(),elm;if(list&&list.length>0){var level,top;top=level=list[0].cloneNode(false);for(var i=1,ci;ci=list[i++];){level.appendChild(ci.cloneNode(false));level=level.firstChild;}elm=level;}else{elm=range.document.createElement(tagName);}if(attrs){domUtils.setAttributes(elm,attrs);}elm.appendChild(frag);range.insertNode(list?top:elm);//处理下滑线在a上的情况
var aNode;if(tagName=='span'&&attrs.style&&/text\-decoration/.test(attrs.style)&&(aNode=domUtils.findParentByTagName(elm,'a',true))){domUtils.setAttributes(aNode,attrs);domUtils.remove(elm,true);elm=aNode;}else{domUtils.mergeSibling(elm);domUtils.clearEmptySibling(elm);}//去除子节点相同的
domUtils.mergeChild(elm,attrs);current=domUtils.getNextDomNode(elm,false,filterFn);domUtils.mergeToParent(elm);if(node===end){break;}}else{current=domUtils.getNextDomNode(current,true,filterFn);}}return this.moveToBookmark(bookmark);},/**
* 移除当前选区内指定的inline标签,但保留其中的内容
* @method removeInlineStyle
* @param { String } tagName 需要移除的标签名
* @return { UE.dom.Range } 当前的range对象
* @example
* ```html
* xx[xxxxyyyzz]z => range.removeInlineStyle(["em"]) => xx[xxxxyyyzz]z
* ```
*/ /**
* 移除当前选区内指定的一组inline标签,但保留其中的内容
* @method removeInlineStyle
* @param { Array } tagNameArr 需要移除的标签名的数组
* @return { UE.dom.Range } 当前的range对象
* @see UE.dom.Range:removeInlineStyle(String)
*/removeInlineStyle:function removeInlineStyle(tagNames){if(this.collapsed)return this;tagNames=utils.isArray(tagNames)?tagNames:[tagNames];this.shrinkBoundary().adjustmentBoundary();var start=this.startContainer,end=this.endContainer;while(1){if(start.nodeType==1){if(utils.indexOf(tagNames,start.tagName.toLowerCase())>-1){break;}if(start.tagName.toLowerCase()=='body'){start=null;break;}}start=start.parentNode;}while(1){if(end.nodeType==1){if(utils.indexOf(tagNames,end.tagName.toLowerCase())>-1){break;}if(end.tagName.toLowerCase()=='body'){end=null;break;}}end=end.parentNode;}var bookmark=this.createBookmark(),frag,tmpRange;if(start){tmpRange=this.cloneRange().setEndBefore(bookmark.start).setStartBefore(start);frag=tmpRange.extractContents();tmpRange.insertNode(frag);domUtils.clearEmptySibling(start,true);start.parentNode.insertBefore(bookmark.start,start);}if(end){tmpRange=this.cloneRange().setStartAfter(bookmark.end).setEndAfter(end);frag=tmpRange.extractContents();tmpRange.insertNode(frag);domUtils.clearEmptySibling(end,false,true);end.parentNode.insertBefore(bookmark.end,end.nextSibling);}var current=domUtils.getNextDomNode(bookmark.start,false,function(node){return node.nodeType==1;}),next;while(current&¤t!==bookmark.end){next=domUtils.getNextDomNode(current,true,function(node){return node.nodeType==1;});if(utils.indexOf(tagNames,current.tagName.toLowerCase())>-1){domUtils.remove(current,true);}current=next;}return this.moveToBookmark(bookmark);},/**
* 获取当前选中的自闭合的节点
* @method getClosedNode
* @return { Node | NULL } 如果当前选中的是自闭合节点, 则返回该节点, 否则返回NULL
*/getClosedNode:function getClosedNode(){var node;if(!this.collapsed){var range=this.cloneRange().adjustmentBoundary().shrinkBoundary();if(selectOneNode(range)){var child=range.startContainer.childNodes[range.startOffset];if(child&&child.nodeType==1&&(dtd.$empty[child.tagName]||dtd.$nonChild[child.tagName])){node=child;}}}return node;},/**
* 在页面上高亮range所表示的选区
* @method select
* @return { UE.dom.Range } 返回当前Range对象
*/ //这里不区分ie9以上,trace:3824
select:browser.ie?function(noFillData,textRange){var nativeRange;if(!this.collapsed)this.shrinkBoundary();var node=this.getClosedNode();if(node&&!textRange){try{nativeRange=this.document.body.createControlRange();nativeRange.addElement(node);nativeRange.select();}catch(e){}return this;}var bookmark=this.createBookmark(),start=bookmark.start,end;nativeRange=this.document.body.createTextRange();nativeRange.moveToElementText(start);nativeRange.moveStart('character',1);if(!this.collapsed){var nativeRangeEnd=this.document.body.createTextRange();end=bookmark.end;nativeRangeEnd.moveToElementText(end);nativeRange.setEndPoint('EndToEnd',nativeRangeEnd);}else{if(!noFillData&&this.startContainer.nodeType!=3){//使用|x固定住光标
var tmpText=this.document.createTextNode(fillChar),tmp=this.document.createElement('span');tmp.appendChild(this.document.createTextNode(fillChar));start.parentNode.insertBefore(tmp,start);start.parentNode.insertBefore(tmpText,start);//当点b,i,u时,不能清除i上边的b
removeFillData(this.document,tmpText);fillData=tmpText;mergeSibling(tmp,'previousSibling');mergeSibling(start,'nextSibling');nativeRange.moveStart('character',-1);nativeRange.collapse(true);}}this.moveToBookmark(bookmark);tmp&&domUtils.remove(tmp);//IE在隐藏状态下不支持range操作,catch一下
try{nativeRange.select();}catch(e){}return this;}:function(notInsertFillData){function checkOffset(rng){function check(node,offset,dir){if(node.nodeType==3&&node.nodeValue.length|xxxx
//xxxx|xxxx
//xxxx|
var start=this.startContainer,child=start;if(start.nodeType==1){child=start.childNodes[this.startOffset];}if(!(start.nodeType==3&&this.startOffset)&&(child?!child.previousSibling||child.previousSibling.nodeType!=3:!start.lastChild||start.lastChild.nodeType!=3)){txtNode=this.document.createTextNode(fillChar);//跟着前边走
this.insertNode(txtNode);removeFillData(this.document,txtNode);mergeSibling(txtNode,'previousSibling');mergeSibling(txtNode,'nextSibling');fillData=txtNode;this.setStart(txtNode,browser.webkit?1:0).collapse(true);}}var nativeRange=this.document.createRange();if(this.collapsed&&browser.opera&&this.startContainer.nodeType==1){var child=this.startContainer.childNodes[this.startOffset];if(!child){//往前靠拢
child=this.startContainer.lastChild;if(child&&domUtils.isBr(child)){this.setStartBefore(child).collapse(true);}}else{//向后靠拢
while(child&&domUtils.isBlockElm(child)){if(child.nodeType==1&&child.childNodes[0]){child=child.childNodes[0];}else{break;}}child&&this.setStartBefore(child).collapse(true);}}//是createAddress最后一位算的不准,现在这里进行微调
checkOffset(this);nativeRange.setStart(this.startContainer,this.startOffset);nativeRange.setEnd(this.endContainer,this.endOffset);sel.addRange(nativeRange);}return this;},/**
* 滚动到当前range开始的位置
* @method scrollToView
* @param { Window } win 当前range对象所属的window对象
* @return { UE.dom.Range } 当前Range对象
*/ /**
* 滚动到距离当前range开始位置 offset 的位置处
* @method scrollToView
* @param { Window } win 当前range对象所属的window对象
* @param { Number } offset 距离range开始位置处的偏移量, 如果为正数, 则向下偏移, 反之, 则向上偏移
* @return { UE.dom.Range } 当前Range对象
*/scrollToView:function scrollToView(win,offset){win=win?window:domUtils.getWindow(this.document);var me=this,span=me.document.createElement('span');//trace:717
span.innerHTML=' ';me.cloneRange().insertNode(span);domUtils.scrollToView(span,win,offset);domUtils.remove(span);return me;},/**
* 判断当前选区内容是否占位符
* @private
* @method inFillChar
* @return { Boolean } 如果是占位符返回true,否则返回false
*/inFillChar:function inFillChar(){var start=this.startContainer;if(this.collapsed&&start.nodeType==3&&start.nodeValue.replace(new RegExp('^'+domUtils.fillChar),'').length+1==start.nodeValue.length){return true;}return false;},/**
* 保存
* @method createAddress
* @private
* @return { Boolean } 返回开始和结束的位置
* @example
* ```html
*
*
* aaaa
*
*
* bbbb
*
*
*
*
*
*
* ```
*/createAddress:function createAddress(ignoreEnd,ignoreTxt){var addr={},me=this;function getAddress(isStart){var node=isStart?me.startContainer:me.endContainer;var parents=domUtils.findParents(node,true,function(node){return!domUtils.isBody(node);}),addrs=[];for(var i=0,ci;ci=parents[i++];){addrs.push(domUtils.getNodeIndex(ci,ignoreTxt));}var firstIndex=0;if(ignoreTxt){if(node.nodeType==3){var tmpNode=node.previousSibling;while(tmpNode&&tmpNode.nodeType==3){firstIndex+=tmpNode.nodeValue.replace(fillCharReg,'').length;tmpNode=tmpNode.previousSibling;}firstIndex+=isStart?me.startOffset:me.endOffset;// - (fillCharReg.test(node.nodeValue) ? 1 : 0 )
}else{node=node.childNodes[isStart?me.startOffset:me.endOffset];if(node){firstIndex=domUtils.getNodeIndex(node,ignoreTxt);}else{node=isStart?me.startContainer:me.endContainer;var first=node.firstChild;while(first){if(domUtils.isFillChar(first)){first=first.nextSibling;continue;}firstIndex++;if(first.nodeType==3){while(first&&first.nodeType==3){first=first.nextSibling;}}else{first=first.nextSibling;}}}}}else{firstIndex=isStart?domUtils.isFillChar(node)?0:me.startOffset:me.endOffset;}if(firstIndex<0){firstIndex=0;}addrs.push(firstIndex);return addrs;}addr.startAddress=getAddress(true);if(!ignoreEnd){addr.endAddress=me.collapsed?[].concat(addr.startAddress):getAddress();}return addr;},/**
* 保存
* @method createAddress
* @private
* @return { Boolean } 返回开始和结束的位置
* @example
* ```html
*
*
* aaaa
*
*
* bbbb
*
*
*
*
*
*
* ```
*/moveToAddress:function moveToAddress(addr,ignoreEnd){var me=this;function getNode(address,isStart){var tmpNode=me.document.body,parentNode,offset;for(var i=0,ci,l=address.length;i
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* ```
*/ /**
* 遍历range内的节点。
* 每当遍历一个节点时, 都会执行参数项 doFn 指定的函数, 该函数的接受当前遍历的节点
* 作为其参数。
* 可以通过参数项 filterFn 来指定一个过滤器, 只有符合该过滤器过滤规则的节点才会触
* 发doFn函数的执行
* @method traversal
* @param { Function } doFn 对每个遍历的节点要执行的方法, 该方法接受当前遍历的节点作为其参数
* @param { Function } filterFn 过滤器, 该函数接受当前遍历的节点作为参数, 如果该节点满足过滤
* 规则, 请返回true, 该节点会触发doFn, 否则, 请返回false, 则该节点不
* 会触发doFn。
* @return { UE.dom.Range } 当前range对象
* @see UE.dom.Range:traversal(Function)
* @example
* ```html
*
*
*
*
* ```
*/traversal:function traversal(doFn,filterFn){if(this.collapsed)return this;var bookmark=this.createBookmark(),end=bookmark.end,current=domUtils.getNextDomNode(bookmark.start,false,filterFn);while(current&¤t!==end&&domUtils.getPosition(current,end)&domUtils.POSITION_PRECEDING){var tmpNode=domUtils.getNextDomNode(current,false,filterFn);doFn(current);current=tmpNode;}return this.moveToBookmark(bookmark);}};})();// core/Selection.js
/**
* 选集
* @file
* @module UE.dom
* @class Selection
* @since 1.2.6.1
*/ /**
* 选区集合
* @unfile
* @module UE.dom
* @class Selection
*/(function(){function getBoundaryInformation(range,start){var getIndex=domUtils.getNodeIndex;range=range.duplicate();range.collapse(start);var parent=range.parentElement();//如果节点里没有子节点,直接退出
if(!parent.hasChildNodes()){return{container:parent,offset:0};}var siblings=parent.children,child,testRange=range.duplicate(),startIndex=0,endIndex=siblings.length-1,index=-1,distance;while(startIndex<=endIndex){index=Math.floor((startIndex+endIndex)/2);child=siblings[index];testRange.moveToElementText(child);var position=testRange.compareEndPoints('StartToStart',range);if(position>0){endIndex=index-1;}else if(position<0){startIndex=index+1;}else{//trace:1043
return{container:parent,offset:getIndex(child)};}}if(index==-1){testRange.moveToElementText(parent);testRange.setEndPoint('StartToStart',range);distance=testRange.text.replace(/(\r\n|\r)/g,'\n').length;siblings=parent.childNodes;if(!distance){child=siblings[siblings.length-1];return{container:child,offset:child.nodeValue.length};}var i=siblings.length;while(distance>0){distance-=siblings[--i].nodeValue.length;}return{container:siblings[i],offset:-distance};}testRange.collapse(position>0);testRange.setEndPoint(position>0?'StartToStart':'EndToStart',range);distance=testRange.text.replace(/(\r\n|\r)/g,'\n').length;if(!distance){return dtd.$empty[child.tagName]||dtd.$nonChild[child.tagName]?{container:parent,offset:getIndex(child)+(position>0?0:1)}:{container:child,offset:position>0?0:child.childNodes.length};}while(distance>0){try{var pre=child;child=child[position>0?'previousSibling':'nextSibling'];distance-=child.nodeValue.length;}catch(e){return{container:parent,offset:getIndex(pre)};}}return{container:child,offset:position>0?-distance:child.nodeValue.length+distance};}/**
* 将ieRange转换为Range对象
* @param {Range} ieRange ieRange对象
* @param {Range} range Range对象
* @return {Range} range 返回转换后的Range对象
*/function transformIERangeToRange(ieRange,range){if(ieRange.item){range.selectNode(ieRange.item(0));}else{var bi=getBoundaryInformation(ieRange,true);range.setStart(bi.container,bi.offset);if(ieRange.compareEndPoints('StartToEnd',ieRange)!=0){bi=getBoundaryInformation(ieRange,false);range.setEnd(bi.container,bi.offset);}}return range;}/**
* 获得ieRange
* @param {Selection} sel Selection对象
* @return {ieRange} 得到ieRange
*/function _getIERange(sel){var ieRange;//ie下有可能报错
try{ieRange=sel.getNative().createRange();}catch(e){return null;}var el=ieRange.item?ieRange.item(0):ieRange.parentElement();if((el.ownerDocument||el)===sel.document){return ieRange;}return null;}var Selection=dom.Selection=function(doc){var me=this,iframe;me.document=doc;if(browser.ie9below){iframe=domUtils.getWindow(doc).frameElement;domUtils.on(iframe,'beforedeactivate',function(){me._bakIERange=me.getIERange();});domUtils.on(iframe,'activate',function(){try{if(!_getIERange(me)&&me._bakIERange){me._bakIERange.select();}}catch(ex){}me._bakIERange=null;});}iframe=doc=null;};Selection.prototype={rangeInBody:function rangeInBody(rng,txtRange){var node=browser.ie9below||txtRange?rng.item?rng.item():rng.parentElement():rng.startContainer;return node===this.document.body||domUtils.inDoc(node,this.document);},/**
* 获取原生seleciton对象
* @method getNative
* @return { Object } 获得selection对象
* @example
* ```javascript
* editor.selection.getNative();
* ```
*/getNative:function getNative(){var doc=this.document;try{return!doc?null:browser.ie9below?doc.selection:domUtils.getWindow(doc).getSelection();}catch(e){return null;}},/**
* 获得ieRange
* @method getIERange
* @return { Object } 返回ie原生的Range
* @example
* ```javascript
* editor.selection.getIERange();
* ```
*/getIERange:function getIERange(){var ieRange=_getIERange(this);if(!ieRange){if(this._bakIERange){return this._bakIERange;}}return ieRange;},/**
* 缓存当前选区的range和选区的开始节点
* @method cache
*/cache:function cache(){this.clear();this._cachedRange=this.getRange();this._cachedStartElement=this.getStart();this._cachedStartElementPath=this.getStartElementPath();},/**
* 获取选区开始位置的父节点到body
* @method getStartElementPath
* @return { Array } 返回父节点集合
* @example
* ```javascript
* editor.selection.getStartElementPath();
* ```
*/getStartElementPath:function getStartElementPath(){if(this._cachedStartElementPath){return this._cachedStartElementPath;}var start=this.getStart();if(start){return domUtils.findParents(start,true,null,true);}return[];},/**
* 清空缓存
* @method clear
*/clear:function clear(){this._cachedStartElementPath=this._cachedRange=this._cachedStartElement=null;},/**
* 编辑器是否得到了选区
* @method isFocus
*/isFocus:function isFocus(){try{if(browser.ie9below){var nativeRange=_getIERange(this);return!!(nativeRange&&this.rangeInBody(nativeRange));}else{return!!this.getNative().rangeCount;}}catch(e){return false;}},/**
* 获取选区对应的Range
* @method getRange
* @return { Object } 得到Range对象
* @example
* ```javascript
* editor.selection.getRange();
* ```
*/getRange:function getRange(){var me=this;function optimze(range){var child=me.document.body.firstChild,collapsed=range.collapsed;while(child&&child.firstChild){range.setStart(child,0);child=child.firstChild;}if(!range.startContainer){range.setStart(me.document.body,0);}if(collapsed){range.collapse(true);}}if(me._cachedRange!=null){return this._cachedRange;}var range=new baidu.editor.dom.Range(me.document);if(browser.ie9below){var nativeRange=me.getIERange();if(nativeRange){//备份的_bakIERange可能已经实效了,dom树发生了变化比如从源码模式切回来,所以try一下,实效就放到body开始位置
try{transformIERangeToRange(nativeRange,range);}catch(e){optimze(range);}}else{optimze(range);}}else{var sel=me.getNative();if(sel&&sel.rangeCount){var firstRange=sel.getRangeAt(0);var lastRange=sel.getRangeAt(sel.rangeCount-1);range.setStart(firstRange.startContainer,firstRange.startOffset).setEnd(lastRange.endContainer,lastRange.endOffset);if(range.collapsed&&domUtils.isBody(range.startContainer)&&!range.startOffset){optimze(range);}}else{//trace:1734 有可能已经不在dom树上了,标识的节点
if(this._bakRange&&domUtils.inDoc(this._bakRange.startContainer,this.document)){return this._bakRange;}optimze(range);}}return this._bakRange=range;},/**
* 获取开始元素,用于状态反射
* @method getStart
* @return { Element } 获得开始元素
* @example
* ```javascript
* editor.selection.getStart();
* ```
*/getStart:function getStart(){if(this._cachedStartElement){return this._cachedStartElement;}var range=browser.ie9below?this.getIERange():this.getRange(),tmpRange,start,tmp,parent;if(browser.ie9below){if(!range){//todo 给第一个值可能会有问题
return this.document.body.firstChild;}//control元素
if(range.item){return range.item(0);}tmpRange=range.duplicate();//修正ie下x[xx] 闭合后 x|xx
tmpRange.text.length>0&&tmpRange.moveStart('character',1);tmpRange.collapse(1);start=tmpRange.parentElement();parent=tmp=range.parentElement();while(tmp=tmp.parentNode){if(tmp==start){start=parent;break;}}}else{range.shrinkBoundary();start=range.startContainer;if(start.nodeType==1&&start.hasChildNodes()){start=start.childNodes[Math.min(start.childNodes.length-1,range.startOffset)];}if(start.nodeType==3){return start.parentNode;}}return start;},/**
* 得到选区中的文本
* @method getText
* @return { String } 选区中包含的文本
* @example
* ```javascript
* editor.selection.getText();
* ```
*/getText:function getText(){var nativeSel,nativeRange;if(this.isFocus()&&(nativeSel=this.getNative())){nativeRange=browser.ie9below?nativeSel.createRange():nativeSel.getRangeAt(0);return browser.ie9below?nativeRange.text:nativeRange.toString();}return'';},/**
* 清除选区
* @method clearRange
* @example
* ```javascript
* editor.selection.clearRange();
* ```
*/clearRange:function clearRange(){this.getNative()[browser.ie9below?'empty':'removeAllRanges']();}};})();// core/Editor.js
/**
* 编辑器主类,包含编辑器提供的大部分公用接口
* @file
* @module UE
* @class Editor
* @since 1.2.6.1
*/ /**
* UEditor公用空间,UEditor所有的功能都挂载在该空间下
* @unfile
* @module UE
*/ /**
* UEditor的核心类,为用户提供与编辑器交互的接口。
* @unfile
* @module UE
* @class Editor
*/(function(){var uid=0,_selectionChangeTimer;/**
* 获取编辑器的html内容,赋值到编辑器所在表单的textarea文本域里面
* @private
* @method setValue
* @param { UE.Editor } editor 编辑器事例
*/function setValue(form,editor){var textarea;if(editor.textarea){if(utils.isString(editor.textarea)){for(var i=0,ti,tis=domUtils.getElementsByTagName(form,'textarea');ti=tis[i++];){if(ti.id=='ueditor_textarea_'+editor.options.textarea){textarea=ti;break;}}}else{textarea=editor.textarea;}}if(!textarea){form.appendChild(textarea=domUtils.createElement(document,'textarea',{'name':editor.options.textarea,'id':'ueditor_textarea_'+editor.options.textarea,'style':"display:none"}));//不要产生多个textarea
editor.textarea=textarea;}!textarea.getAttribute('name')&&textarea.setAttribute('name',editor.options.textarea);textarea.value=editor.hasContents()?editor.options.allHtmlEnabled?editor.getAllHtml():editor.getContent(null,null,true):'';}function loadPlugins(me){//初始化插件
for(var pi in UE.plugins){UE.plugins[pi].call(me);}}function checkCurLang(I18N){for(var lang in I18N){return lang;}}function langReadied(me){me.langIsReady=true;me.fireEvent("langReady");}/**
* 编辑器准备就绪后会触发该事件
* @module UE
* @class Editor
* @event ready
* @remind render方法执行完成之后,会触发该事件
* @remind
* @example
* ```javascript
* editor.addListener( 'ready', function( editor ) {
* editor.execCommand( 'focus' ); //编辑器家在完成后,让编辑器拿到焦点
* } );
* ```
*/ /**
* 执行destroy方法,会触发该事件
* @module UE
* @class Editor
* @event destroy
* @see UE.Editor:destroy()
*/ /**
* 执行reset方法,会触发该事件
* @module UE
* @class Editor
* @event reset
* @see UE.Editor:reset()
*/ /**
* 执行focus方法,会触发该事件
* @module UE
* @class Editor
* @event focus
* @see UE.Editor:focus(Boolean)
*/ /**
* 语言加载完成会触发该事件
* @module UE
* @class Editor
* @event langReady
*/ /**
* 运行命令之后会触发该命令
* @module UE
* @class Editor
* @event beforeExecCommand
*/ /**
* 运行命令之后会触发该命令
* @module UE
* @class Editor
* @event afterExecCommand
*/ /**
* 运行命令之前会触发该命令
* @module UE
* @class Editor
* @event firstBeforeExecCommand
*/ /**
* 在getContent方法执行之前会触发该事件
* @module UE
* @class Editor
* @event beforeGetContent
* @see UE.Editor:getContent()
*/ /**
* 在getContent方法执行之后会触发该事件
* @module UE
* @class Editor
* @event afterGetContent
* @see UE.Editor:getContent()
*/ /**
* 在getAllHtml方法执行时会触发该事件
* @module UE
* @class Editor
* @event getAllHtml
* @see UE.Editor:getAllHtml()
*/ /**
* 在setContent方法执行之前会触发该事件
* @module UE
* @class Editor
* @event beforeSetContent
* @see UE.Editor:setContent(String)
*/ /**
* 在setContent方法执行之后会触发该事件
* @module UE
* @class Editor
* @event afterSetContent
* @see UE.Editor:setContent(String)
*/ /**
* 每当编辑器内部选区发生改变时,将触发该事件
* @event selectionchange
* @warning 该事件的触发非常频繁,不建议在该事件的处理过程中做重量级的处理
* @example
* ```javascript
* editor.addListener( 'selectionchange', function( editor ) {
* console.log('选区发生改变');
* }
*/ /**
* 在所有selectionchange的监听函数执行之前,会触发该事件
* @module UE
* @class Editor
* @event beforeSelectionChange
* @see UE.Editor:selectionchange
*/ /**
* 在所有selectionchange的监听函数执行完之后,会触发该事件
* @module UE
* @class Editor
* @event afterSelectionChange
* @see UE.Editor:selectionchange
*/ /**
* 编辑器内容发生改变时会触发该事件
* @module UE
* @class Editor
* @event contentChange
*/ /**
* 以默认参数构建一个编辑器实例
* @constructor
* @remind 通过 改构造方法实例化的编辑器,不带ui层.需要render到一个容器,编辑器实例才能正常渲染到页面
* @example
* ```javascript
* var editor = new UE.Editor();
* editor.execCommand('blod');
* ```
* @see UE.Config
*/ /**
* 以给定的参数集合创建一个编辑器实例,对于未指定的参数,将应用默认参数。
* @constructor
* @remind 通过 改构造方法实例化的编辑器,不带ui层.需要render到一个容器,编辑器实例才能正常渲染到页面
* @param { Object } setting 创建编辑器的参数
* @example
* ```javascript
* var editor = new UE.Editor();
* editor.execCommand('blod');
* ```
* @see UE.Config
*/var Editor=UE.Editor=function(options){var me=this;me.uid=uid++;EventBase.call(me);me.commands={};me.options=utils.extend(utils.clone(options||{}),UEDITOR_CONFIG,true);me.shortcutkeys={};me.inputRules=[];me.outputRules=[];//设置默认的常用属性
me.setOpt(Editor.defaultOptions(me));/* 尝试异步加载后台配置 */me.loadServerConfig();if(!utils.isEmptyObject(UE.I18N)){//修改默认的语言类型
me.options.lang=checkCurLang(UE.I18N);UE.plugin.load(me);langReadied(me);}else{utils.loadFile(document,{src:me.options.langPath+me.options.lang+"/"+me.options.lang+".js",tag:"script",type:"text/javascript",defer:"defer"},function(){UE.plugin.load(me);langReadied(me);});}UE.instants['ueditorInstant'+me.uid]=me;};Editor.prototype={registerCommand:function registerCommand(name,obj){this.commands[name]=obj;},/**
* 编辑器对外提供的监听ready事件的接口, 通过调用该方法,达到的效果与监听ready事件是一致的
* @method ready
* @param { Function } fn 编辑器ready之后所执行的回调, 如果在注册事件之前编辑器已经ready,将会
* 立即触发该回调。
* @remind 需要等待编辑器加载完成后才能执行的代码,可以使用该方法传入
* @example
* ```javascript
* editor.ready( function( editor ) {
* editor.setContent('初始化完毕');
* } );
* ```
* @see UE.Editor.event:ready
*/ready:function ready(fn){var me=this;if(fn){me.isReady?fn.apply(me):me.addListener('ready',fn);}},/**
* 该方法是提供给插件里面使用,设置配置项默认值
* @method setOpt
* @warning 三处设置配置项的优先级: 实例化时传入参数 > setOpt()设置 > config文件里设置
* @warning 该方法仅供编辑器插件内部和编辑器初始化时调用,其他地方不能调用。
* @param { String } key 编辑器的可接受的选项名称
* @param { * } val 该选项可接受的值
* @example
* ```javascript
* editor.setOpt( 'initContent', '欢迎使用编辑器' );
* ```
*/ /**
* 该方法是提供给插件里面使用,以{key:value}集合的方式设置插件内用到的配置项默认值
* @method setOpt
* @warning 三处设置配置项的优先级: 实例化时传入参数 > setOpt()设置 > config文件里设置
* @warning 该方法仅供编辑器插件内部和编辑器初始化时调用,其他地方不能调用。
* @param { Object } options 将要设置的选项的键值对对象
* @example
* ```javascript
* editor.setOpt( {
* 'initContent': '欢迎使用编辑器'
* } );
* ```
*/setOpt:function setOpt(key,val){var obj={};if(utils.isString(key)){obj[key]=val;}else{obj=key;}utils.extend(this.options,obj,true);},getOpt:function getOpt(key){return this.options[key];},/**
* 销毁编辑器实例,使用textarea代替
* @method destroy
* @example
* ```javascript
* editor.destroy();
* ```
*/destroy:function destroy(){var me=this;me.fireEvent('destroy');var container=me.container.parentNode;var textarea=me.textarea;if(!textarea){textarea=document.createElement('textarea');container.parentNode.insertBefore(textarea,container);}else{textarea.style.display='';}textarea.style.width=me.iframe.offsetWidth+'px';textarea.style.height=me.iframe.offsetHeight+'px';textarea.value=me.getContent();textarea.id=me.key;container.innerHTML='';domUtils.remove(container);var key=me.key;//trace:2004
for(var p in me){if(me.hasOwnProperty(p)){delete this[p];}}UE.delEditor(key);},/**
* 渲染编辑器的DOM到指定容器
* @method render
* @param { String } containerId 指定一个容器ID
* @remind 执行该方法,会触发ready事件
* @warning 必须且只能调用一次
*/ /**
* 渲染编辑器的DOM到指定容器
* @method render
* @param { Element } containerDom 直接指定容器对象
* @remind 执行该方法,会触发ready事件
* @warning 必须且只能调用一次
*/render:function render(container){var me=this,options=me.options,getStyleValue=function getStyleValue(attr){return parseInt(domUtils.getComputedStyle(container,attr));};if(utils.isString(container)){container=document.getElementById(container);}if(container){if(options.initialFrameWidth){options.minFrameWidth=options.initialFrameWidth;}else{options.minFrameWidth=options.initialFrameWidth=container.offsetWidth;}if(options.initialFrameHeight){options.minFrameHeight=options.initialFrameHeight;}else{options.initialFrameHeight=options.minFrameHeight=container.offsetHeight;}container.style.width=/%$/.test(options.initialFrameWidth)?'100%':options.initialFrameWidth-getStyleValue("padding-left")-getStyleValue("padding-right")+'px';container.style.height=/%$/.test(options.initialFrameHeight)?'100%':options.initialFrameHeight-getStyleValue("padding-top")-getStyleValue("padding-bottom")+'px';container.style.zIndex=options.zIndex;var html=(ie&&browser.version<9?'':'')+'