ai-question-pro 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/demo/src/CyTreeSelect.vue +4 -0
- package/components/demo/src/main.vue +1119 -465
- package/components/demo/src/questionItem.vue +172 -28
- package/components/demo/static/aiBot-icon.png +0 -0
- package/components/demo/static/check-icon.png +0 -0
- package/components/demo/static/generate-question-icon.png +0 -0
- package/components/demo/static/link-icon.png +0 -0
- package/components/demo/static/warning-icon.png +0 -0
- package/dist/ai-question-pro.common.js +691 -311
- package/dist/ai-question-pro.common.js.map +1 -1
- package/dist/ai-question-pro.umd.js +691 -311
- package/dist/ai-question-pro.umd.js.map +1 -1
- package/dist/ai-question-pro.umd.min.js +4 -4
- package/dist/ai-question-pro.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1456,7 +1456,7 @@ for (var i = 0; i < DOMIterables.length; i++) {
|
|
|
1456
1456
|
|
|
1457
1457
|
/***/ }),
|
|
1458
1458
|
|
|
1459
|
-
/***/
|
|
1459
|
+
/***/ 8469:
|
|
1460
1460
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1461
1461
|
|
|
1462
1462
|
"use strict";
|
|
@@ -1470,14 +1470,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1470
1470
|
|
|
1471
1471
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
1472
1472
|
// Module
|
|
1473
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".tree-select__option.el-select-dropdown__item{height:auto;line-height:1;padding:0;background-color:#fff}.tree-select__tree{padding:4px 20px;font-weight:400}.tree-select__tree.tree-select__tree--radio .el-tree-node.is-current>.el-tree-node__content{color:#000;font-weight:700}", ""]);
|
|
1473
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".tree-select__option.el-select-dropdown__item{height:auto;line-height:1;padding:0;background-color:#fff}.tree-select__tree{padding:4px 20px;font-weight:400}.tree-select__tree.tree-select__tree--radio .el-tree-node.is-current>.el-tree-node__content{color:#000;font-weight:700}.el-select .el-input__suffix{display:none!important}", ""]);
|
|
1474
1474
|
// Exports
|
|
1475
1475
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1476
1476
|
|
|
1477
1477
|
|
|
1478
1478
|
/***/ }),
|
|
1479
1479
|
|
|
1480
|
-
/***/
|
|
1480
|
+
/***/ 4199:
|
|
1481
1481
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1482
1482
|
|
|
1483
1483
|
"use strict";
|
|
@@ -1491,14 +1491,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1491
1491
|
|
|
1492
1492
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
1493
1493
|
// Module
|
|
1494
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".ai_contain[data-v-489221b9]{display:inline-block}.ai_contain[data-v-489221b9] .el-drawer.rtl{border-radius:15px 0 0 15px}.ai_contain[data-v-489221b9] .el-icon-close:before{color:#0e0e0e;font-weight:700;font-size:16px}.ai_contain[data-v-489221b9] .el-drawer__header{padding-top:0;height:64px;background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff),linear-gradient(90deg,#bcb9f4,#d5c6f8,#e6c6f9)}.ai_contain[data-v-489221b9] .el-drawer__body{padding:0 20px;display:flex;flex-direction:column;justify-content:space-between}.ai_contain[data-v-489221b9] .el-form-item__label{font-weight:700}.ai_contain[data-v-489221b9] .el-input__inner{padding-right:0;border-radius:25px}.ai_contain[data-v-489221b9] .el-cascader{width:100%}.ai_contain[data-v-489221b9] .el-radio__inner{width:24px;height:24px}.ai_contain[data-v-489221b9] .el-radio__input.is-checked+.el-radio__label{color:#606266}.ai_contain[data-v-489221b9] .el-radio__input.is-checked .el-radio__inner{border-color:#7050d0;background:#7050d0}.ai_contain[data-v-489221b9] .el-radio__input.is-checked .el-radio__inner:after{display:none}.ai_contain[data-v-489221b9] .el-radio__input.is-checked .el-radio__inner:before{font-family:element-icons,serif;content:\"\";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:12px;color:#fff}.ai_contain[data-v-489221b9] .el-select .el-input__inner{border-radius:25px}.ai_contain[data-v-489221b9] .el-textarea__inner{border-radius:16px}.ai_contain[data-v-489221b9] .el-loading-mask{border-radius:8px}.ai_contain .button-handle[data-v-489221b9]{width:168px;height:48px;font-size:14px;border-radius:25px;border:none;color:#fff;cursor:pointer}.ai_contain .button-generate-question[data-v-489221b9]{background:linear-gradient(180deg,#7050d0,#2828e0)}.ai_contain .button-cancel[data-v-489221b9]{border:1px solid #2828e0;background:transparent;color:#3030c0}.ai_contain .ai_button[data-v-489221b9]{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:9px 6px;position:relative;color:#fff;background-color:#456bea;border-radius:4px;border:1px solid #456bea}.ai_contain .add_question_title[data-v-489221b9]{display:flex;align-items:center;font-size:18px;color:#333;font-weight:700;gap:5px}.ai_contain .add_question_body .remind[data-v-489221b9]{font-size:14px;color:#9ba1ae}.ai_contain .add_question_footer[data-v-489221b9]{padding:20px 0;border-top:1px solid #e6e6e6;display:flex;justify-content:center;align-items:center;gap:30px}", ""]);
|
|
1494
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".ai_contain[data-v-598246f8]{display:inline-block;font-family:Microsoft YaHei,微软雅黑,sans-serif}.ai_contain[data-v-598246f8] .el-drawer.rtl{border-radius:15px 0 0 15px;width:720px!important}.ai_contain[data-v-598246f8] .el-icon-close:before{color:#0e0e0e;font-weight:700;font-size:24px}.ai_contain[data-v-598246f8] .el-drawer__header{padding-top:0;height:64px;background:linear-gradient(180deg,hsla(0,0%,100%,0),#fff),linear-gradient(90deg,#bcb9f4,#d5c6f8,#e6c6f9);margin-bottom:0}.ai_contain[data-v-598246f8] .el-drawer__body{padding:0 30px;display:flex;flex-direction:column;justify-content:space-between}.ai_contain[data-v-598246f8] .el-checkbox__inner{width:20px;height:20px;border-radius:4px}.ai_contain[data-v-598246f8] .el-checkbox__input.is-checked .el-checkbox__inner{background-color:#7c4dff;border-color:#7c4dff}.ai_contain[data-v-598246f8] .el-checkbox__inner:after{width:4px;height:9px;border:3px solid #fff;border-left:0;border-top:0;left:6px;top:2px}.ai_contain[data-v-598246f8] .el-slider__runway{height:6px;background-color:#e5e5e5;border-radius:3px}.ai_contain[data-v-598246f8] .el-slider__button{width:20px;height:20px;border:1px solid #7c4dff;background-color:#7c4dff}.ai_contain[data-v-598246f8] .el-slider__bar{background-color:#7c4dff}.ai_contain[data-v-598246f8] .el-input__inner{border-radius:12px;height:48px;border:1px solid #e0e0e0}.ai_contain[data-v-598246f8] .el-textarea__inner{border-radius:16px;border:1px solid #e0e0e0;font-family:Microsoft YaHei,微软雅黑,sans-serif}.ai_contain[data-v-598246f8] .el-loading-mask{border-radius:8px}.ai_contain .ai_button[data-v-598246f8]{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:9px 6px;position:relative;color:#fff;background-color:#456bea;border-radius:4px;border:1px solid #456bea}.ai_contain .add_question_title[data-v-598246f8]{display:flex;align-items:center;font-size:18px;color:#333;font-weight:700;gap:7px}.ai_contain .add_question_body .question-type-header[data-v-598246f8]{margin-bottom:20px}.ai_contain .add_question_body .question-type-header .required-mark[data-v-598246f8]{color:#f45;margin-right:4px}.ai_contain .add_question_body .question-type-header .section-title[data-v-598246f8]{font-size:14px;color:#303040}.ai_contain .add_question_body .question-type-header .tip-text[data-v-598246f8]{font-size:12px;color:#999;margin-left:20px}.ai_contain .add_question_body .question-type-list[data-v-598246f8]{margin-bottom:30px}.ai_contain .add_question_body .question-type-list .question-type-item[data-v-598246f8]{display:flex;align-items:center;padding:5px 10px;margin-bottom:12px;transition:all .3s ease}.ai_contain .add_question_body .question-type-list .question-type-item .type-left[data-v-598246f8]{display:flex;align-items:center}.ai_contain .add_question_body .question-type-list .question-type-item .type-left .type-checkbox[data-v-598246f8]{margin-right:12px}.ai_contain .add_question_body .question-type-list .question-type-item .type-left .type-name[data-v-598246f8]{font-size:14px;font-weight:700;border-radius:54px;color:#fff;height:40px;width:80px;display:flex;align-items:center;justify-content:center}.ai_contain .add_question_body .question-type-list .question-type-item .type-left .type-name.type-single[data-v-598246f8]{background:rgba(128,96,240,.161);color:#6040f0}.ai_contain .add_question_body .question-type-list .question-type-item .type-left .type-name.type-multiple[data-v-598246f8]{background:rgba(0,144,240,.161);color:#0090ff}.ai_contain .add_question_body .question-type-list .question-type-item .type-left .type-name.type-gapfilling[data-v-598246f8]{background:rgba(96,192,144,.161);color:#60c090}.ai_contain .add_question_body .question-type-list .question-type-item .type-left .type-name.type-judge[data-v-598246f8]{background:rgba(240,160,0,.161);color:#f0a000}.ai_contain .add_question_body .question-type-list .question-type-item .type-left .type-name.type-shortanswer[data-v-598246f8]{background:rgba(224,96,192,.161);color:#e060c0}.ai_contain .add_question_body .question-type-list .question-type-item .type-right[data-v-598246f8]{display:flex;align-items:center;gap:20px}.ai_contain .add_question_body .question-type-list .question-type-item .type-right .count-input[data-v-598246f8]{width:160px;margin-left:20px}.ai_contain .add_question_body .question-type-list .question-type-item .type-right .count-input[data-v-598246f8] .el-input__inner{height:42px;border-radius:56px;text-align:center;font-size:12px}.ai_contain .add_question_body .question-type-list .question-type-item .type-right .slider-container[data-v-598246f8]{width:240px;margin-left:10px}.ai_contain .add_question_body .question-type-list .question-type-item .type-right .slider-container.disabled[data-v-598246f8] .el-slider__button{background-color:#fff;border:1px solid #797979}.ai_contain .add_question_body .question-type-list .question-type-item .type-right .difficulty-label[data-v-598246f8]{font-size:14px;color:#6040e0;min-width:80px;font-weight:700}.ai_contain .add_question_body .question-type-list .question-type-item .type-right .difficulty-label.disabled[data-v-598246f8]{color:#ccc}.ai_contain .add_question_body .question-type-list .question-type-item .type-right .placeholder-text[data-v-598246f8]{font-size:12px;color:#dddde0;width:160px;border:1px solid #dddde0;border-radius:56px;height:40px;text-align:center;margin-left:20px;display:flex;align-items:center;justify-content:center}.ai_contain .add_question_body .knowledge-section[data-v-598246f8],.ai_contain .add_question_body .prompt-section[data-v-598246f8]{margin-bottom:24px}.ai_contain .add_question_body .knowledge-section .section-header[data-v-598246f8],.ai_contain .add_question_body .prompt-section .section-header[data-v-598246f8]{margin-bottom:12px}.ai_contain .add_question_body .knowledge-section .section-header .required-mark[data-v-598246f8],.ai_contain .add_question_body .prompt-section .section-header .required-mark[data-v-598246f8]{color:#f45;margin-right:4px}.ai_contain .add_question_body .knowledge-section .section-header .section-title[data-v-598246f8],.ai_contain .add_question_body .prompt-section .section-header .section-title[data-v-598246f8]{font-size:14px;color:#303040}.ai_contain .add_question_body .knowledge-section .section-header .tip-text[data-v-598246f8],.ai_contain .add_question_body .prompt-section .section-header .tip-text[data-v-598246f8]{font-size:12px;color:#999;margin-left:20px}.ai_contain .add_question_body .knowledge-section .knowledge-input[data-v-598246f8],.ai_contain .add_question_body .prompt-section .knowledge-input[data-v-598246f8]{position:relative}.ai_contain .add_question_body .knowledge-section .knowledge-input .knowledge-icon[data-v-598246f8],.ai_contain .add_question_body .prompt-section .knowledge-input .knowledge-icon[data-v-598246f8]{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#999;font-size:16px;width:24px;height:24px}.ai_contain .add_question_body .prompt-textarea .el-textarea__inner[data-v-598246f8]{min-height:120px!important;font-family:Microsoft YaHei,微软雅黑,sans-serif}.ai_contain .add_question_footer[data-v-598246f8]{padding-bottom:30px;display:flex;justify-content:center;align-items:center;gap:30px}.ai_contain .add_question_footer .button-handle[data-v-598246f8]{width:168px;height:48px;font-size:14px;border-radius:25px;border:none;color:#fff;cursor:pointer;transition:all .3s ease}.ai_contain .add_question_footer .button-handle[data-v-598246f8]:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.15)}.ai_contain .add_question_footer .button-generate-question[data-v-598246f8]{background:linear-gradient(180deg,#7050d0 0,#2828e0);width:280px;display:flex;justify-content:center;align-items:center;gap:10px}.ai_contain .add_question_footer .button-cancel[data-v-598246f8]{border:1px solid #7050d0;background:transparent;color:#3030c0}.ai_contain .ai-bot-switch[data-v-598246f8]{display:flex;align-items:center;background:transparent;justify-content:center;border-radius:49px;-webkit-user-select:none;-moz-user-select:none;user-select:none;height:40px;width:144px;cursor:pointer;z-index:2;border:1px solid rgba(96,64,224,.639);font-size:12px;color:#182028}.ai_contain .ai-bot-label[data-v-598246f8]{font-weight:500;margin-right:2px;margin-left:5px;width:72px}.ai_contain .ai-bot-dropdown[data-v-598246f8]{background:#fff;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.08);border:1px solid #e0e0ff;padding:4px 0}.ai_contain .ai-bot-dropdown-item[data-v-598246f8]{padding:8px 20px;cursor:pointer;font-size:14px;color:#333;transition:background .2s}.ai_contain .ai-bot-dropdown-item.active[data-v-598246f8],.ai_contain .ai-bot-dropdown-item[data-v-598246f8]:hover{background:#f0f2f8;color:#3830e0}.ai_contain .question-result-drawer[data-v-598246f8] .el-drawer__body{padding:0;height:100%;display:flex;flex-direction:column}.ai_contain .question-result-drawer .drawer_content_wrapper[data-v-598246f8]{display:flex;flex-direction:column;height:100%;padding:0 20px}.ai_contain .question-result-drawer .question_summary_warp[data-v-598246f8]{display:flex;justify-content:space-between;margin-bottom:20px}.ai_contain .question-result-drawer .question_summary_warp .question_summary .summary_text[data-v-598246f8]{color:#6040e0;font-size:14px;font-weight:700}.ai_contain .question-result-drawer .question_summary_warp .question_summary .question_types_summary .type_item[data-v-598246f8]{font-size:12px;color:rgba(24,32,40,.639)}.ai_contain .question-result-drawer .question_summary_warp .question_summary_button[data-v-598246f8]{display:flex;gap:15px;margin-right:15px}.ai_contain .question-result-drawer .question_summary_warp .question_summary_button .button-handle[data-v-598246f8]{width:96px;height:40px;font-size:14px;border-radius:25px;border:none;color:#fff;cursor:pointer;transition:all .3s ease}.ai_contain .question-result-drawer .question_summary_warp .question_summary_button .button-generate-question[data-v-598246f8]{background:linear-gradient(180deg,#7050d0 0,#2828e0);display:flex;justify-content:center;align-items:center;gap:10px}.ai_contain .question-result-drawer .question_summary_warp .question_summary_button .button-cancel[data-v-598246f8]{border:1px solid #7050d0;background:transparent;color:#3030c0}.ai_contain .question-result-drawer .question_body[data-v-598246f8]{flex:1;overflow-y:auto;padding-right:10px}.ai_contain .question-result-drawer .question_body[data-v-598246f8]::-webkit-scrollbar{width:6px}.ai_contain .question-result-drawer .question_body[data-v-598246f8]::-webkit-scrollbar-track{background:hsla(0,0%,100%,.3);border-radius:3px}.ai_contain .question-result-drawer .question_body[data-v-598246f8]::-webkit-scrollbar-thumb{background:rgba(124,77,255,.3);border-radius:3px}.ai_contain .question-result-drawer .question_body[data-v-598246f8]::-webkit-scrollbar-thumb:hover{background:rgba(124,77,255,.5)}.ai_contain .question-result-drawer .question_footer_fixed[data-v-598246f8]{flex-shrink:0;padding:0 0 10px 0;background:hsla(0,0%,100%,.9);border-top:1px solid hsla(0,0%,100%,.3);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.ai_contain .question-result-drawer .question_footer_fixed .footer_warning[data-v-598246f8]{display:flex;align-items:center;gap:8px}.ai_contain .question-result-drawer .question_footer_fixed .footer_warning .el-icon-info[data-v-598246f8]{width:24px;height:24px;flex-shrink:0}.ai_contain .question-result-drawer .question_footer_fixed .footer_warning .question_remind[data-v-598246f8]{font-size:12px;color:#797979;line-height:1.4}", ""]);
|
|
1495
1495
|
// Exports
|
|
1496
1496
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1497
1497
|
|
|
1498
1498
|
|
|
1499
1499
|
/***/ }),
|
|
1500
1500
|
|
|
1501
|
-
/***/
|
|
1501
|
+
/***/ 7328:
|
|
1502
1502
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1503
1503
|
|
|
1504
1504
|
"use strict";
|
|
@@ -1512,14 +1512,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1512
1512
|
|
|
1513
1513
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
1514
1514
|
// Module
|
|
1515
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".ai-custom-dialog.el-dialog{background:linear-gradient(327deg,#dbecfe,#f9fcff);border-radius:8px}.ai-custom-dialog.el-dialog .question_title{display:flex;align-items:center;font-weight:700;font-size:23px;color:#
|
|
1515
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".ai-custom-dialog.el-dialog{background:linear-gradient(327deg,#dbecfe,#f9fcff);border-radius:8px}.ai-custom-dialog.el-dialog .question_title{display:flex;align-items:center;font-weight:700;font-size:23px;color:#181820}.ai-custom-dialog.el-dialog .question_title img{margin-right:10px;width:35px;height:40px}.ai-custom-dialog.el-dialog .question_body{padding:10px;min-height:500px;max-height:500px;overflow:auto}.ai-custom-dialog.el-dialog .question_body::-webkit-scrollbar{width:4px}.ai-custom-dialog.el-dialog .question_body::-webkit-scrollbar-button{display:none}.ai-custom-dialog.el-dialog .question_body::-webkit-scrollbar-track-piece{background-color:transparent}.ai-custom-dialog.el-dialog .question_body::-webkit-scrollbar-thumb{border-radius:3px;background:rgba(0,0,0,.5)}.ai-custom-dialog.el-dialog .question_footer{display:flex;justify-content:space-between;align-items:center}.ai-custom-dialog.el-dialog .question_footer .footer_warning{display:flex;align-items:center;gap:8px;flex:1}.ai-custom-dialog.el-dialog .question_footer .footer_warning .el-icon-info{color:#7c4dff;font-size:16px;flex-shrink:0}.ai-custom-dialog.el-dialog .question_footer .footer_warning .question_remind{font-size:14px;color:#9ba1ae;line-height:1.4}", ""]);
|
|
1516
1516
|
// Exports
|
|
1517
1517
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1518
1518
|
|
|
1519
1519
|
|
|
1520
1520
|
/***/ }),
|
|
1521
1521
|
|
|
1522
|
-
/***/
|
|
1522
|
+
/***/ 2536:
|
|
1523
1523
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1524
1524
|
|
|
1525
1525
|
"use strict";
|
|
@@ -1533,7 +1533,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1533
1533
|
|
|
1534
1534
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
1535
1535
|
// Module
|
|
1536
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".ai_question_contain[data-v-
|
|
1536
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".ai_question_contain[data-v-088e6bea]{margin-bottom:20px;padding:20px;background:hsla(0,0%,100%,.6);border:1px solid #dadce0;border-radius:24px;font-family:Microsoft YaHei,微软雅黑,sans-serif}.ai_question_contain .question_header[data-v-088e6bea]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.ai_question_contain .question_header .question_header_left[data-v-088e6bea]{display:flex;align-items:center;gap:12px}.ai_question_contain .question_contain_title[data-v-088e6bea]{margin-bottom:15px;display:flex;justify-content:space-between}.ai_question_contain .question_contain_title .question_contain_title_left[data-v-088e6bea]{color:#333;font-weight:700;font-size:16px;width:100%;line-height:28px}.ai_question_contain .question_contain_title .question_contain_title_left .difficult[data-v-088e6bea]{margin:0 6px;font-weight:700;padding:5px 7px;color:#333;font-size:12px;border-radius:24px;border:1px solid rgba(40,40,224,.478);background:transparent}.ai_question_contain .question_contain_title .question_contain_title_reght[data-v-088e6bea]{display:flex;align-items:center}.ai_question_contain .question_contain_title .question_contain_title_reght img[data-v-088e6bea]{margin:0 5px;cursor:pointer}.ai_question_contain .question_contain_question[data-v-088e6bea]{margin-bottom:16px;font-size:14px;padding-left:5px}.ai_question_contain .question_contain_question div[data-v-088e6bea]{margin:5px 0}.ai_question_contain .question_answer_info[data-v-088e6bea]{border-radius:15px;padding:20px;background-color:rgba(64,48,240,.08)}.ai_question_contain .question_contain_answer[data-v-088e6bea]{margin-bottom:16px;font-size:13px;color:#6040e0;font-weight:700}.ai_question_contain .question_contain_parse[data-v-088e6bea]{margin-bottom:16px;display:flex;justify-content:space-between}.ai_question_contain .question_contain_parse .question_contain_parse_analysis[data-v-088e6bea]{width:100%;font-size:13px;color:#262626}.ai_question_contain .type-name[data-v-088e6bea]{font-size:14px;font-weight:700;border-radius:54px;color:#fff;height:40px;width:72px;display:flex;align-items:center;justify-content:center}.ai_question_contain .type-name.type-single[data-v-088e6bea]{background:rgba(128,96,240,.161);color:#6040f0}.ai_question_contain .type-name.type-multiple[data-v-088e6bea]{background:rgba(0,144,240,.161);color:#0090ff}.ai_question_contain .type-name.type-gapfilling[data-v-088e6bea]{background:rgba(96,192,144,.161);color:#60c090}.ai_question_contain .type-name.type-judge[data-v-088e6bea]{background:rgba(240,160,0,.161);color:#f0a000}.ai_question_contain .type-name.type-shortanswer[data-v-088e6bea]{background:rgba(224,96,192,.161);color:#e060c0}.ai_question_contain .join[data-v-088e6bea]{align-self:self-end;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;font-weight:700;color:#6040e0;font-size:14px;line-height:32px}.ai_question_contain .ai_warning_tip[data-v-088e6bea]{margin-top:16px;padding:12px 16px;background:rgba(124,77,255,.05);border:1px solid rgba(124,77,255,.15);border-radius:12px;display:flex;align-items:center;gap:8px}.ai_question_contain .ai_warning_tip .el-icon-info[data-v-088e6bea]{color:#7c4dff;font-size:14px;flex-shrink:0}.ai_question_contain .ai_warning_tip span[data-v-088e6bea]{font-size:12px;color:#666;line-height:1.4}", ""]);
|
|
1537
1537
|
// Exports
|
|
1538
1538
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1539
1539
|
|
|
@@ -32951,67 +32951,67 @@ module.exports = function (delay, noTrailing, callback, debounceMode) {
|
|
|
32951
32951
|
|
|
32952
32952
|
/***/ }),
|
|
32953
32953
|
|
|
32954
|
-
/***/
|
|
32954
|
+
/***/ 5711:
|
|
32955
32955
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
32956
32956
|
|
|
32957
32957
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
32958
32958
|
|
|
32959
32959
|
// load the styles
|
|
32960
|
-
var content = __webpack_require__(
|
|
32960
|
+
var content = __webpack_require__(8469);
|
|
32961
32961
|
if(content.__esModule) content = content.default;
|
|
32962
32962
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
32963
32963
|
if(content.locals) module.exports = content.locals;
|
|
32964
32964
|
// add the styles to the DOM
|
|
32965
32965
|
var add = (__webpack_require__(8459)/* ["default"] */ .A)
|
|
32966
|
-
var update = add("
|
|
32966
|
+
var update = add("f22f6454", content, true, {"sourceMap":false,"shadowMode":false});
|
|
32967
32967
|
|
|
32968
32968
|
/***/ }),
|
|
32969
32969
|
|
|
32970
|
-
/***/
|
|
32970
|
+
/***/ 49:
|
|
32971
32971
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
32972
32972
|
|
|
32973
32973
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
32974
32974
|
|
|
32975
32975
|
// load the styles
|
|
32976
|
-
var content = __webpack_require__(
|
|
32976
|
+
var content = __webpack_require__(4199);
|
|
32977
32977
|
if(content.__esModule) content = content.default;
|
|
32978
32978
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
32979
32979
|
if(content.locals) module.exports = content.locals;
|
|
32980
32980
|
// add the styles to the DOM
|
|
32981
32981
|
var add = (__webpack_require__(8459)/* ["default"] */ .A)
|
|
32982
|
-
var update = add("
|
|
32982
|
+
var update = add("0b58a6f1", content, true, {"sourceMap":false,"shadowMode":false});
|
|
32983
32983
|
|
|
32984
32984
|
/***/ }),
|
|
32985
32985
|
|
|
32986
|
-
/***/
|
|
32986
|
+
/***/ 913:
|
|
32987
32987
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
32988
32988
|
|
|
32989
32989
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
32990
32990
|
|
|
32991
32991
|
// load the styles
|
|
32992
|
-
var content = __webpack_require__(
|
|
32992
|
+
var content = __webpack_require__(7328);
|
|
32993
32993
|
if(content.__esModule) content = content.default;
|
|
32994
32994
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
32995
32995
|
if(content.locals) module.exports = content.locals;
|
|
32996
32996
|
// add the styles to the DOM
|
|
32997
32997
|
var add = (__webpack_require__(8459)/* ["default"] */ .A)
|
|
32998
|
-
var update = add("
|
|
32998
|
+
var update = add("f3dc38b2", content, true, {"sourceMap":false,"shadowMode":false});
|
|
32999
32999
|
|
|
33000
33000
|
/***/ }),
|
|
33001
33001
|
|
|
33002
|
-
/***/
|
|
33002
|
+
/***/ 3846:
|
|
33003
33003
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
33004
33004
|
|
|
33005
33005
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
33006
33006
|
|
|
33007
33007
|
// load the styles
|
|
33008
|
-
var content = __webpack_require__(
|
|
33008
|
+
var content = __webpack_require__(2536);
|
|
33009
33009
|
if(content.__esModule) content = content.default;
|
|
33010
33010
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
33011
33011
|
if(content.locals) module.exports = content.locals;
|
|
33012
33012
|
// add the styles to the DOM
|
|
33013
33013
|
var add = (__webpack_require__(8459)/* ["default"] */ .A)
|
|
33014
|
-
var update = add("
|
|
33014
|
+
var update = add("4fe405bc", content, true, {"sourceMap":false,"shadowMode":false});
|
|
33015
33015
|
|
|
33016
33016
|
/***/ }),
|
|
33017
33017
|
|
|
@@ -33283,19 +33283,43 @@ function applyToTag (styleElement, obj) {
|
|
|
33283
33283
|
|
|
33284
33284
|
/***/ }),
|
|
33285
33285
|
|
|
33286
|
-
/***/
|
|
33286
|
+
/***/ 4314:
|
|
33287
33287
|
/***/ (function(module) {
|
|
33288
33288
|
|
|
33289
33289
|
"use strict";
|
|
33290
|
-
module.exports = "data:image/png;base64,
|
|
33290
|
+
module.exports = "data:image/png;base64,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";
|
|
33291
|
+
|
|
33292
|
+
/***/ }),
|
|
33293
|
+
|
|
33294
|
+
/***/ 9281:
|
|
33295
|
+
/***/ (function(module) {
|
|
33296
|
+
|
|
33297
|
+
"use strict";
|
|
33298
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAKRJREFUOE+lkr0RwjAMRr9soQ7RaQzYJEwCTEI2gTFUqtQYoLvAkTiOlYtLW+/px+qw83Q1nlh6Nx1a/kUBsTwAsJueNwtG+OSmxxYc75MKtsITwQj3n8tbJrOb3ueCa/SdgQFYIUiCRVj1G7PCn4BY9rUQiwPg0MgcM4q4wU0vxTeuwcQScCwY/hcsNYManK6AWJ7zzN9qsxXEar+WWkwJ1mbzBjfENBFJwidNAAAAAElFTkSuQmCC";
|
|
33299
|
+
|
|
33300
|
+
/***/ }),
|
|
33301
|
+
|
|
33302
|
+
/***/ 8831:
|
|
33303
|
+
/***/ (function(module) {
|
|
33304
|
+
|
|
33305
|
+
"use strict";
|
|
33306
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAArhJREFUaEPtmdt12zAMhoFNkk2aSZJM0mSSJpPEnaTeBNWvQ/pQNEASJGXVp+GjzQs+3AhCTHc++M7lp/8bQER+EdEPIvogok9mPt/aokMWEBFJBP5g5td/CkBEoN2zplkReSEiWCCOJ2Y+tQKEvavTa3uaFggHfAGAiCDcxj2C+wBiHczcbM1k7yqAdf7lXG0H5YArCBH5s/j+Q1jvch8nAI6AFzxqsqpaExEIFgM0rttABAtgHtzslZkRyE2jAwD7qi5aciEN4krTgPVmn6CgFlhYuRhjRb/NLHFi5ifD5VZX8oKUCMLZYwA4IGz0vATpuyH8z+X3t/Af3AxWUue2qDzOmQZQ0RKyFGIgH2+jELsDiIglfIQZghgCiG4TJPmdXyaK8HAdXGKXeyGs7YboAlhKA/gzhIj5HXJsMo8hPNLoSbmdsb4Lwg2gLLjk/3iJ5LdvuCVX4ZPgy0uMLgg3QMg4uV+vWSVWmlnxhv82ws+E6AWA9p6DP2/KY2XDYvlgBHmzO4XzLq5sFXXNBZhhIVWgSoZqhmi5N7wAyPlws3RsBDKCPE0KXTFhwbgAghXMINWERwKYmZ1yEDdAAQJBnWp6UwLvBdEFUIC4Sr2pxvaA6AYoQZReZ7MhhgBqMWEF3kyIYYCjIaYAHAkxDeAoiFpbZXXjWm9mNNOMxITVlchv3EfPe7dHoJ41q3K1TKG0PVwAt3Sn3QAmQ5h9p10BJkKYLZ3dAQYg0seVu7U4FMRGXDU/NZWnq/l4uokFPE9NRXgsN1v3NwWouZNXeE8aRU+0+Plowj2Bzkbe5at+NCm119PGqlVYpr9XD2u4sd37lUqJWuswh3IBVB5FzXt5vw+ULNF8aGYJPEPREVy/xy3Vwbun9qpWo3l/xiLwHNrij61zqgCtGx017xvgKM3Hc78tcLQF/gK0fQ1P5CQzMAAAAABJRU5ErkJggg==";
|
|
33291
33307
|
|
|
33292
33308
|
/***/ }),
|
|
33293
33309
|
|
|
33294
|
-
/***/
|
|
33310
|
+
/***/ 7353:
|
|
33295
33311
|
/***/ (function(module) {
|
|
33296
33312
|
|
|
33297
33313
|
"use strict";
|
|
33298
|
-
module.exports = "data:image/png;base64,
|
|
33314
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAqdJREFUaEPtWdFxgzAMFVmkMEndSepO0naSupPUm4QsEnoCkyiOZcvGkMsd3OUnAfOenp4kOw08+dU8OX7YCTxawV2BXYGFEXhICml1bAEO7wCDAgD84NVPn+HX2M5IeW1OQKvTJ8DwlQDYAzTG2JfvFJHNCExRb35IxFPYRCQ2IRABbwEaC3A+ARxeXUq1hBmm1IexneXYrk6AAR8ERrxBU6w3tu0eQoADHwOEQO99MqoQNPZqCpSCnwjc+cUa276FVFiFwBLwM0hPBTaNqhOoAd6poF3VGjkZ2waxrkCg//NKZdSEnDm1Ov0ADHr+fRMCWtUB74xMCayfQlodbyTHsSBVbfjoHxVAg0q6a+zKH6uaWKt+uH3B0Bnb4XyTdTkPIXjS0Pi1qnjgPvp83b6mx/nbJxguAHz0ca1KBPwBjY8Y8clNijHVi63/l+TK0pe5WVox/PsAhjecc0rBFyng5pVPgGsK+K2fK3kO6JHEYYxwIO+TkS9SwIsUDmQYwV4rv2pMkQ0J5pXaSxoREvhdcGxYVIViMgciy5bQmFq4Tm7lEps41aQ8YGwK+BWLSzepN0UEUuDJBIn1O5oCUsNXI5DTYVMpcO+VeI2XkEgqoFWPVYN2RdagsReGPcSbXQI+WUZzO2xktgls6JdHv4RA9nyzpElJVIimkLRB5UUexE2qNoGs8XjtyIs6cU6HpdHaCrzEA2g+Mrukjbcl+CSBqUH528Tmizuz3Bq8kMB4RkMnSHzOAgy4IRkHNuZEbbwvZzCTmNa/J9nIHEB/vzuvg1tGepZJ118dvEiBGZHwWHy+fRPwWQRIquD5/uW8xpNUdCRekircM6IU8h+ecn7+Z+XwMv1+xn9Wsk8hlpIpIrD0pTWf3wnUjGbJWrsCJVGr+czTK/APigCeQFm1pzUAAAAASUVORK5CYII=";
|
|
33315
|
+
|
|
33316
|
+
/***/ }),
|
|
33317
|
+
|
|
33318
|
+
/***/ 5014:
|
|
33319
|
+
/***/ (function(module) {
|
|
33320
|
+
|
|
33321
|
+
"use strict";
|
|
33322
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAAoCAYAAABdGbwdAAAEWUlEQVR4XsWaS6iNURTHPfJMHoVCKDGQYuaRkRkyEDEw2uXVHWBAKaaUoVeJiJSBYuiRYigUISYY0L0pRLd0kXCs/z3fd1vnv9f37e+xv3MGv9tp7/X/r7VX57tn733OqFarNSoLt3kwFlOFbcIl4aXwIwGvMYY5xLCuUZI19gl/hRaBsT6vKQ00aKNwX/jn/CJSMIcYxLK+MZI19ju/npR+rykRGzRZOCR8c37iLBALDbTsF51kjUPOryNlyGtKpAaNF44KP52fNAQ00MKDfaPSywbtEr46P2FRoIUH+0alVw1aKbx2frKywANe7B+NXjRognAuMY8BvODJeaLQiwadUOaxgCfniUK3G7RK+KXMYwFPeHO+2nSzQWOFW2Qek9uunYPz1qKbDdppmFucFRYpHV5jjOMson+qdatB84V3hrkGj8lBQ5uCudDjiRzIxdrKdKtBZwxj5qIw0dCmYA4xrGOQi7WV6UaD1gl/DGPNXUOXBWJZr0Eu5GRdJZpu0CThiWHakUBYamizQGxewQA5kZu1pWm6QUcMQ+a4oQtxTOmzwFmNdaVpskErhI+Goea5MMfQgukJPA6ggZb9NMiNGlhbiqYaNFq4ZphpcL+zw9CmrE3g8RRorUssDWoYY2gL01SDthhGzE1DpzmQwOMaeLAvg1pYV5gmGjRDeGsYaXDptdjQaq4m8LgGHqHLNtSCmlhbiCYadNIwYULvDDwWzxJCj8h+5/szpwxdIWI3CPuPQcNE80CYRjpmk2vvZwBe87wGXvDkPBrUVGlvFLNBuCO+Yxh0mAnrlcYCB84rSnM5GeM4DTzzFgFQW+l77JgN2mOImfMqPovVrrMgvMYYxzHw5nwMamRdLrEatED4ZIg1H4TZSXwWeFyeGlqMhR5LeCMHazWoEbWyNpNYDQrteUDengfME+4ZuhTMIYZ1GuRgHYNaWZdJjAZtFX4bQs0NYZwzCkjAbeALQ8cgJu/mEDmQi3Ua1IqaWWtSq0EyOVN4ZIg0X5y9qLnCXtf+BCrz3RhioYEWHuyLbzk+GzrNY2GWofWo2yAcCFnA4GDpJXbNNQhEO8xWbpBMLBe+GwINHokpzkhMxHrEUpAz5IfasQbWdlCnQbgk52BmgzOSZhDjn7QGeyP2YLA3Yl0HlRokg7uNQOaCMxIGqPMxb4Ea2IvBWlg3QukGufY+4o0RqMF+ZIkzEhag6kbRAofZ986vT4PD7EJDO0yVBp02gph9zkhWkCpHjTxQC9fHYE2sG6ZUg1z7wBfa8+ATJm/PU4Qyh9UQqCV0mMWazMNs4Qa59iX4QyNAg5/MrXFGopKUue4oAmrKWyTA2rzDbJkGHTYmmZg/IihyYVaGIj+awBo7dIUaJH+WufBh9JULH0bLUOTKtQyoDTVy3RqsEWsd0RVt0HVjgtnu/KLqELq0rwJq5LoZrHVEkzRowIhLGUBA6O0Z89FKyfvapw6l1pI0CD8Dtr4dxljff0coE06HenMRAAAAAElFTkSuQmCC";
|
|
33299
33323
|
|
|
33300
33324
|
/***/ }),
|
|
33301
33325
|
|
|
@@ -33315,6 +33339,14 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf
|
|
|
33315
33339
|
|
|
33316
33340
|
/***/ }),
|
|
33317
33341
|
|
|
33342
|
+
/***/ 1421:
|
|
33343
|
+
/***/ (function(module) {
|
|
33344
|
+
|
|
33345
|
+
"use strict";
|
|
33346
|
+
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAlBJREFUaEPtWetxwjAMVrpIk03KJDWTAJOgTtJ0koRFSE+OfYTEbwnS9PCf9jjb0Sd9sl4VbHxVG5cfXgDWtqC4BZTqagOK/tr/e/oNsWmlAYsAGIV++wQY1ERon6w9QNUCXL8kALEAKHU5AAxHhlYJDCK+n0rvKAKgVPcBUJ0TtJ0qVw8wnBAbTD1g92UDUOpyNlTJ/VbC/uqYa41kACPPtdY/EiThbCFr7BAb7fixlQGg/36C8FbeZBBJAJR6qvAWRItY79gWeCzno+LRC7UP7QpawLw2RJ0Vl/YHbwCMAGBRZ+6ENirnKqNHrBvfIS8ApTplXp3cD5r9N83xLTnsfTEiAKDveIFKEgB4reAEwNc+GUEUwN19U0p4AIhE26njTTPTQkq6o7QHAJc+hTKGjzlp5AMwCIjQAlSTl0in2sw1NPMUYwHA5DzkwMwl7QP3fmWFcwFgPp/26hcABwOW8WBrFlgENBcAqrYE8p/1KESFy1914s2/QnEA5DkyBYw8hRDrBeV9qQS3XfKAXEi3XxbFjS+ZE3BkaQu4C5utpNPgog/R/T8XNNw+kBiFykrK8TXSLcTSoCZUDzCK+hEEu4HLyGrdL0+0IptueGJLcQ5UprFlqETpBVGptDWSa4Ug77MsYDebIQYFOIHKKognSfPegiZ09WQSwxlqBD4R5/z8cFJzd37ItF0OgpSibjTl+tkztCIAN79Inov5tL7OiMlhETvko+FHbACihQa4/pRoXIRCcT/RO7YzZs19IyX3F/uApBCcu14AONqTOPsLjMpVQDtqSucAAAAASUVORK5CYII=";
|
|
33347
|
+
|
|
33348
|
+
/***/ }),
|
|
33349
|
+
|
|
33318
33350
|
/***/ 2356:
|
|
33319
33351
|
/***/ (function(module) {
|
|
33320
33352
|
|
|
@@ -33480,7 +33512,7 @@ if (typeof window !== 'undefined') {
|
|
|
33480
33512
|
// Indicate to webpack that this file can be concatenated
|
|
33481
33513
|
/* harmony default export */ var setPublicPath = (null);
|
|
33482
33514
|
|
|
33483
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=template&id=
|
|
33515
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=template&id=598246f8&scoped=true
|
|
33484
33516
|
var render = function render() {
|
|
33485
33517
|
var _vm = this,
|
|
33486
33518
|
_c = _vm._self._c;
|
|
@@ -33518,76 +33550,164 @@ var render = function render() {
|
|
|
33518
33550
|
"src": __webpack_require__(5014),
|
|
33519
33551
|
"alt": ""
|
|
33520
33552
|
}
|
|
33521
|
-
}), _c('span', [_vm._v("出题")])])
|
|
33522
|
-
staticClass: "
|
|
33523
|
-
|
|
33524
|
-
|
|
33525
|
-
|
|
33526
|
-
"model": _vm.form,
|
|
33527
|
-
"rules": _vm.rules,
|
|
33528
|
-
"label-width": "100px",
|
|
33529
|
-
"label-position": "left"
|
|
33553
|
+
}), _c('span', [_vm._v("出题")])]), _c('div', {
|
|
33554
|
+
staticClass: "ai-bot-switch-wrap",
|
|
33555
|
+
staticStyle: {
|
|
33556
|
+
"position": "absolute",
|
|
33557
|
+
"left": "120px"
|
|
33530
33558
|
}
|
|
33531
|
-
}, [_c('
|
|
33559
|
+
}, [_c('div', {
|
|
33560
|
+
staticClass: "ai-bot-switch",
|
|
33561
|
+
on: {
|
|
33562
|
+
"click": function ($event) {
|
|
33563
|
+
_vm.dropdownVisible = !_vm.dropdownVisible;
|
|
33564
|
+
}
|
|
33565
|
+
}
|
|
33566
|
+
}, [_c('img', {
|
|
33567
|
+
staticStyle: {
|
|
33568
|
+
"width": "24px",
|
|
33569
|
+
"height": "24px"
|
|
33570
|
+
},
|
|
33532
33571
|
attrs: {
|
|
33533
|
-
"
|
|
33534
|
-
"
|
|
33572
|
+
"src": __webpack_require__(4314),
|
|
33573
|
+
"alt": ""
|
|
33535
33574
|
}
|
|
33536
|
-
},
|
|
33537
|
-
|
|
33538
|
-
|
|
33539
|
-
|
|
33540
|
-
|
|
33541
|
-
|
|
33542
|
-
|
|
33575
|
+
}), _c('span', {
|
|
33576
|
+
staticClass: "ai-bot-label"
|
|
33577
|
+
}, [_vm._v(" " + _vm._s(_vm.currentBot === 'course' ? '课程智能体' : '通义千问') + " ")]), _c('img', {
|
|
33578
|
+
staticStyle: {
|
|
33579
|
+
"width": "12px",
|
|
33580
|
+
"height": "12px"
|
|
33581
|
+
},
|
|
33582
|
+
attrs: {
|
|
33583
|
+
"src": __webpack_require__(9281),
|
|
33584
|
+
"alt": ""
|
|
33543
33585
|
}
|
|
33544
|
-
}, _vm.
|
|
33545
|
-
|
|
33546
|
-
|
|
33547
|
-
|
|
33548
|
-
|
|
33549
|
-
|
|
33550
|
-
|
|
33551
|
-
|
|
33552
|
-
|
|
33586
|
+
})]), _vm.dropdownVisible ? _c('div', {
|
|
33587
|
+
staticClass: "ai-bot-dropdown",
|
|
33588
|
+
staticStyle: {
|
|
33589
|
+
"position": "absolute",
|
|
33590
|
+
"z-index": "1000",
|
|
33591
|
+
"min-width": "20%"
|
|
33592
|
+
},
|
|
33593
|
+
on: {
|
|
33594
|
+
"mousedown": function ($event) {
|
|
33595
|
+
$event.preventDefault();
|
|
33553
33596
|
}
|
|
33554
|
-
}, [_vm._v(_vm._s(item.name))]);
|
|
33555
|
-
}), 1)], 1), _c('el-form-item', {
|
|
33556
|
-
attrs: {
|
|
33557
|
-
"label": "题目难度",
|
|
33558
|
-
"prop": "difficulty"
|
|
33559
33597
|
}
|
|
33560
|
-
}, [_c('
|
|
33561
|
-
|
|
33562
|
-
|
|
33598
|
+
}, [_c('div', {
|
|
33599
|
+
staticClass: "ai-bot-dropdown-item",
|
|
33600
|
+
class: {
|
|
33601
|
+
active: _vm.currentBot === 'tongyi'
|
|
33563
33602
|
},
|
|
33564
|
-
|
|
33565
|
-
|
|
33566
|
-
|
|
33567
|
-
|
|
33568
|
-
},
|
|
33569
|
-
expression: "form.difficulty"
|
|
33603
|
+
on: {
|
|
33604
|
+
"click": function ($event) {
|
|
33605
|
+
return _vm.selectBot('tongyi');
|
|
33606
|
+
}
|
|
33570
33607
|
}
|
|
33571
|
-
}, _vm.
|
|
33572
|
-
|
|
33608
|
+
}, [_vm._v("通义千问 ")])]) : _vm._e()])]), _c('div', {
|
|
33609
|
+
staticClass: "add_question_body"
|
|
33610
|
+
}, [_c('div', {
|
|
33611
|
+
staticClass: "question-type-header"
|
|
33612
|
+
}, [_c('span', {
|
|
33613
|
+
staticClass: "required-mark"
|
|
33614
|
+
}, [_vm._v("*")]), _c('span', {
|
|
33615
|
+
staticClass: "section-title"
|
|
33616
|
+
}, [_vm._v("题目类型:")]), _c('span', {
|
|
33617
|
+
staticClass: "tip-text"
|
|
33618
|
+
}, [_vm._v("(为避免您等待时间过长,一次性最多生成10道题)")])]), _c('div', {
|
|
33619
|
+
staticClass: "question-type-list"
|
|
33620
|
+
}, _vm._l(_vm.quesTypeList, function (item, index) {
|
|
33621
|
+
return _c('div', {
|
|
33573
33622
|
key: item.id,
|
|
33574
|
-
|
|
33575
|
-
|
|
33576
|
-
|
|
33623
|
+
staticClass: "question-type-item",
|
|
33624
|
+
class: {
|
|
33625
|
+
'disabled': !_vm.form.selectedTypes[item.id]
|
|
33626
|
+
}
|
|
33627
|
+
}, [_c('div', {
|
|
33628
|
+
staticClass: "type-left"
|
|
33629
|
+
}, [_c('el-checkbox', {
|
|
33630
|
+
staticClass: "type-checkbox",
|
|
33631
|
+
on: {
|
|
33632
|
+
"change": function ($event) {
|
|
33633
|
+
return _vm.handleTypeChange(item.id);
|
|
33634
|
+
}
|
|
33577
33635
|
},
|
|
33636
|
+
model: {
|
|
33637
|
+
value: _vm.form.selectedTypes[item.id],
|
|
33638
|
+
callback: function ($$v) {
|
|
33639
|
+
_vm.$set(_vm.form.selectedTypes, item.id, $$v);
|
|
33640
|
+
},
|
|
33641
|
+
expression: "form.selectedTypes[item.id]"
|
|
33642
|
+
}
|
|
33643
|
+
}), _c('span', {
|
|
33644
|
+
staticClass: "type-name",
|
|
33645
|
+
class: _vm.getTypeClass(item.id)
|
|
33646
|
+
}, [_vm._v(_vm._s(item.name))])], 1), _c('div', {
|
|
33647
|
+
staticClass: "type-right"
|
|
33648
|
+
}, [_c('el-input', {
|
|
33649
|
+
staticClass: "count-input",
|
|
33578
33650
|
attrs: {
|
|
33579
|
-
"
|
|
33651
|
+
"size": "small",
|
|
33652
|
+
"placeholder": "请输入生成数量",
|
|
33653
|
+
"min": "1",
|
|
33654
|
+
"max": "10"
|
|
33655
|
+
},
|
|
33656
|
+
on: {
|
|
33657
|
+
"input": function ($event) {
|
|
33658
|
+
return _vm.handleCountInput(item.id);
|
|
33659
|
+
}
|
|
33660
|
+
},
|
|
33661
|
+
model: {
|
|
33662
|
+
value: _vm.form.typeCounts[item.id],
|
|
33663
|
+
callback: function ($$v) {
|
|
33664
|
+
_vm.$set(_vm.form.typeCounts, item.id, $$v);
|
|
33665
|
+
},
|
|
33666
|
+
expression: "form.typeCounts[item.id]"
|
|
33580
33667
|
}
|
|
33581
|
-
},
|
|
33582
|
-
|
|
33583
|
-
|
|
33584
|
-
|
|
33585
|
-
|
|
33586
|
-
}
|
|
33668
|
+
}), _c('div', {
|
|
33669
|
+
staticClass: "slider-container",
|
|
33670
|
+
class: {
|
|
33671
|
+
'disabled': !_vm.form.selectedTypes[item.id]
|
|
33672
|
+
}
|
|
33673
|
+
}, [_c('el-slider', {
|
|
33674
|
+
staticClass: "difficulty-slider",
|
|
33675
|
+
attrs: {
|
|
33676
|
+
"min": 0,
|
|
33677
|
+
"max": 4,
|
|
33678
|
+
"disabled": !_vm.form.selectedTypes[item.id],
|
|
33679
|
+
"show-tooltip": false
|
|
33680
|
+
},
|
|
33681
|
+
model: {
|
|
33682
|
+
value: _vm.form.typeDifficulties[item.id],
|
|
33683
|
+
callback: function ($$v) {
|
|
33684
|
+
_vm.$set(_vm.form.typeDifficulties, item.id, $$v);
|
|
33685
|
+
},
|
|
33686
|
+
expression: "form.typeDifficulties[item.id]"
|
|
33687
|
+
}
|
|
33688
|
+
})], 1), _c('span', {
|
|
33689
|
+
staticClass: "difficulty-label",
|
|
33690
|
+
class: {
|
|
33691
|
+
'disabled': !_vm.form.selectedTypes[item.id]
|
|
33692
|
+
}
|
|
33693
|
+
}, [_vm._v(" " + _vm._s(_vm.form.selectedTypes[item.id] ? _vm.getDifficultyLabel(_vm.form.typeDifficulties[item.id]) : '题目难度') + " ")])], 1)]);
|
|
33694
|
+
}), 0), _c('div', {
|
|
33695
|
+
staticClass: "knowledge-section"
|
|
33696
|
+
}, [_c('div', {
|
|
33697
|
+
staticClass: "section-header"
|
|
33698
|
+
}, [_c('span', {
|
|
33699
|
+
staticClass: "required-mark"
|
|
33700
|
+
}, [_vm._v("*")]), _c('span', {
|
|
33701
|
+
staticClass: "section-title"
|
|
33702
|
+
}, [_vm._v("关联知识点:")]), _c('span', {
|
|
33703
|
+
staticClass: "tip-text"
|
|
33704
|
+
}, [_vm._v("(最多可以关联1个知识点)")])]), _c('div', {
|
|
33705
|
+
staticClass: "knowledge-input"
|
|
33587
33706
|
}, [_c('cy-tree-select', {
|
|
33588
33707
|
attrs: {
|
|
33589
33708
|
"filterable": "",
|
|
33590
|
-
"data": _vm.knowledgeList
|
|
33709
|
+
"data": _vm.knowledgeList,
|
|
33710
|
+
"placeholder": "请选择"
|
|
33591
33711
|
},
|
|
33592
33712
|
model: {
|
|
33593
33713
|
value: _vm.form.knowledgeIds,
|
|
@@ -33596,45 +33716,33 @@ var render = function render() {
|
|
|
33596
33716
|
},
|
|
33597
33717
|
expression: "form.knowledgeIds"
|
|
33598
33718
|
}
|
|
33599
|
-
})
|
|
33600
|
-
|
|
33601
|
-
"label": "题目数量",
|
|
33602
|
-
"prop": "count"
|
|
33603
|
-
}
|
|
33604
|
-
}, [_c('el-input', {
|
|
33605
|
-
staticClass: "number_input",
|
|
33719
|
+
}), _c('img', {
|
|
33720
|
+
staticClass: "el-icon-link knowledge-icon",
|
|
33606
33721
|
attrs: {
|
|
33607
|
-
"
|
|
33608
|
-
"
|
|
33609
|
-
"type": "number",
|
|
33610
|
-
"placeholder": "请输入"
|
|
33611
|
-
},
|
|
33612
|
-
on: {
|
|
33613
|
-
"input": _vm.handleInput
|
|
33614
|
-
},
|
|
33615
|
-
model: {
|
|
33616
|
-
value: _vm.form.count,
|
|
33617
|
-
callback: function ($$v) {
|
|
33618
|
-
_vm.$set(_vm.form, "count", $$v);
|
|
33619
|
-
},
|
|
33620
|
-
expression: "form.count"
|
|
33722
|
+
"src": __webpack_require__(7353),
|
|
33723
|
+
"alt": ""
|
|
33621
33724
|
}
|
|
33622
|
-
}), _c('div', {
|
|
33623
|
-
staticClass: "
|
|
33624
|
-
}, [
|
|
33625
|
-
|
|
33626
|
-
|
|
33725
|
+
})], 1)]), _c('div', {
|
|
33726
|
+
staticClass: "prompt-section"
|
|
33727
|
+
}, [_c('div', {
|
|
33728
|
+
staticClass: "section-header"
|
|
33729
|
+
}, [_c('span', {
|
|
33730
|
+
staticClass: "section-title",
|
|
33731
|
+
staticStyle: {
|
|
33732
|
+
"margin-left": "15px"
|
|
33627
33733
|
}
|
|
33628
|
-
}, [_c('el-input', {
|
|
33734
|
+
}, [_vm._v("自定义提示语:")])]), _c('el-input', {
|
|
33735
|
+
staticClass: "prompt-textarea",
|
|
33629
33736
|
attrs: {
|
|
33630
|
-
"placeholder": "这里可以写对于题目的要求和补充,比如:“出题内容请围绕一下知识内容:智能水利物联网是指利用物联网技术和智能化手段,对水利工程设施进行实时监测、数据采集、远程控制和智能分析,以实现对水资源的高效利用、水利设施的智能运营和管理。通过传感器、无线通信技术、云计算平台和大数据分析等技术手段,实现对水利系统各个环节的智能监测和管理,提高水资源利用效率,降低水利工程运行成本,保障水利工程安全稳定运行。”",
|
|
33631
33737
|
"type": "textarea",
|
|
33632
33738
|
"autosize": {
|
|
33633
|
-
minRows:
|
|
33739
|
+
minRows: 8,
|
|
33634
33740
|
maxRows: 10
|
|
33635
33741
|
},
|
|
33636
33742
|
"maxlength": "200",
|
|
33637
|
-
"show-word-limit": ""
|
|
33743
|
+
"show-word-limit": "",
|
|
33744
|
+
"placeholder": "这里可以写对于题目的要求和补充,比如:出题内容请围绕以下知识内容:智能水利物联网是指利用物联网技术和智能化手段,对水利工程设施进行实时监测、数据采集、远程控制和智能分析,以实现对水资源的高效利用、水利设施的智能运营和管理。通过传感器、无线通信技术、云计算平台和大数据分析等技术手段,实现对水利系统各个环节的智能监测和管理,提高水资源利用效率,降低水利工程运行成本,保障水利工程安全稳定运行。",
|
|
33745
|
+
"resize": "none"
|
|
33638
33746
|
},
|
|
33639
33747
|
model: {
|
|
33640
33748
|
value: _vm.form.prompt,
|
|
@@ -33643,7 +33751,7 @@ var render = function render() {
|
|
|
33643
33751
|
},
|
|
33644
33752
|
expression: "form.prompt"
|
|
33645
33753
|
}
|
|
33646
|
-
})], 1)]
|
|
33754
|
+
})], 1)]), _c('div', {
|
|
33647
33755
|
staticClass: "add_question_footer"
|
|
33648
33756
|
}, [_c('button', {
|
|
33649
33757
|
staticClass: "button-handle button-cancel",
|
|
@@ -33657,10 +33765,21 @@ var render = function render() {
|
|
|
33657
33765
|
on: {
|
|
33658
33766
|
"click": _vm.generate
|
|
33659
33767
|
}
|
|
33660
|
-
}, [
|
|
33768
|
+
}, [_c('img', {
|
|
33769
|
+
staticStyle: {
|
|
33770
|
+
"width": "24px",
|
|
33771
|
+
"height": "24px"
|
|
33772
|
+
},
|
|
33773
|
+
attrs: {
|
|
33774
|
+
"src": __webpack_require__(8831),
|
|
33775
|
+
"alt": ""
|
|
33776
|
+
}
|
|
33777
|
+
}), _vm._v(" 生成题目 ")])])], 2), _c('el-drawer', {
|
|
33778
|
+
staticClass: "question-result-drawer",
|
|
33661
33779
|
attrs: {
|
|
33662
33780
|
"visible": _vm.showQues,
|
|
33663
|
-
"
|
|
33781
|
+
"wrapperClosable": false,
|
|
33782
|
+
"destroy-on-close": ""
|
|
33664
33783
|
},
|
|
33665
33784
|
on: {
|
|
33666
33785
|
"update:visible": function ($event) {
|
|
@@ -33670,55 +33789,115 @@ var render = function render() {
|
|
|
33670
33789
|
}, [_c('template', {
|
|
33671
33790
|
slot: "title"
|
|
33672
33791
|
}, [_c('div', {
|
|
33673
|
-
staticClass: "
|
|
33792
|
+
staticClass: "add_question_title"
|
|
33674
33793
|
}, [_c('img', {
|
|
33794
|
+
staticStyle: {
|
|
33795
|
+
"width": "32px",
|
|
33796
|
+
"height": "18px"
|
|
33797
|
+
},
|
|
33675
33798
|
attrs: {
|
|
33676
|
-
"src": __webpack_require__(
|
|
33799
|
+
"src": __webpack_require__(5014),
|
|
33800
|
+
"alt": ""
|
|
33801
|
+
}
|
|
33802
|
+
}), _c('span', [_vm._v("出题")])])]), _c('div', {
|
|
33803
|
+
staticClass: "drawer_content_wrapper"
|
|
33804
|
+
}, [_c('div', {
|
|
33805
|
+
staticClass: "question_summary_warp"
|
|
33806
|
+
}, [_c('div', {
|
|
33807
|
+
staticClass: "question_summary"
|
|
33808
|
+
}, [_c('span', {
|
|
33809
|
+
staticClass: "summary_text"
|
|
33810
|
+
}, [_vm._v("共为您生成了 " + _vm._s(_vm.aiResponse.questions ? _vm.aiResponse.questions.length : 0) + " 道题目")]), _c('div', {
|
|
33811
|
+
staticClass: "question_types_summary"
|
|
33812
|
+
}, _vm._l(_vm.getQuestionTypeSummary(), function (typeInfo) {
|
|
33813
|
+
return _c('span', {
|
|
33814
|
+
key: typeInfo.id,
|
|
33815
|
+
staticClass: "type_item"
|
|
33816
|
+
}, [_vm._v(" " + _vm._s(typeInfo.name) + " "), _c('span', {
|
|
33817
|
+
staticClass: "summary_text"
|
|
33818
|
+
}, [_vm._v(_vm._s(typeInfo.count))]), _vm._v(" 道 ")]);
|
|
33819
|
+
}), 0)]), _c('div', {
|
|
33820
|
+
staticClass: "question_summary_button"
|
|
33821
|
+
}, [_c('button', {
|
|
33822
|
+
staticClass: "button-handle button-cancel",
|
|
33823
|
+
on: {
|
|
33824
|
+
"click": _vm.rebuild
|
|
33677
33825
|
}
|
|
33678
|
-
}
|
|
33826
|
+
}, [_vm._v("重新生成")]), _c('button', {
|
|
33827
|
+
staticClass: "button-handle button-generate-question",
|
|
33828
|
+
on: {
|
|
33829
|
+
"click": _vm.addAllToBank
|
|
33830
|
+
}
|
|
33831
|
+
}, [_vm._v(" 加入题库 ")])])]), _c('div', {
|
|
33679
33832
|
ref: "generateDiv",
|
|
33680
33833
|
staticClass: "question_body"
|
|
33681
33834
|
}, _vm._l(_vm.aiResponse.questions, function (item, idx) {
|
|
33682
33835
|
return _vm.aiResponse.questions && _vm.aiResponse.questions.length > 0 ? _c('questionItem', {
|
|
33683
33836
|
key: idx,
|
|
33837
|
+
ref: `questionItem_${idx}`,
|
|
33838
|
+
refInFor: true,
|
|
33684
33839
|
attrs: {
|
|
33840
|
+
"isJoined": _vm.joinedQuestions.includes(idx),
|
|
33685
33841
|
"detail": item,
|
|
33686
33842
|
"index": idx
|
|
33687
33843
|
},
|
|
33688
33844
|
on: {
|
|
33689
33845
|
"agree": _vm.agree,
|
|
33690
|
-
"join": _vm.join
|
|
33846
|
+
"join": _vm.join,
|
|
33847
|
+
"selectionChange": _vm.handleQuestionSelection
|
|
33691
33848
|
}
|
|
33692
33849
|
}) : _vm._e();
|
|
33693
33850
|
}), 1), _c('div', {
|
|
33694
|
-
staticClass: "
|
|
33695
|
-
|
|
33696
|
-
|
|
33697
|
-
|
|
33698
|
-
|
|
33699
|
-
}, [_c('span', {
|
|
33700
|
-
staticClass: "question_remind"
|
|
33701
|
-
}, [_vm._v("题目内容由人工智能大模型生成,请您审慎核查,确认内容准确,无不妥后再使用")]), _c('el-button', {
|
|
33851
|
+
staticClass: "question_footer_fixed"
|
|
33852
|
+
}, [_c('div', {
|
|
33853
|
+
staticClass: "footer_warning"
|
|
33854
|
+
}, [_c('img', {
|
|
33855
|
+
staticClass: "el-icon-info",
|
|
33702
33856
|
attrs: {
|
|
33703
|
-
"
|
|
33704
|
-
"
|
|
33705
|
-
},
|
|
33706
|
-
on: {
|
|
33707
|
-
"click": _vm.rebuild
|
|
33857
|
+
"src": __webpack_require__(1421),
|
|
33858
|
+
"alt": ""
|
|
33708
33859
|
}
|
|
33709
|
-
},
|
|
33860
|
+
}), _c('span', {
|
|
33861
|
+
staticClass: "question_remind"
|
|
33862
|
+
}, [_vm._v("题目内容由人工智能大模型生成,请您审慎核查,确认内容准确,无不妥后再使用")])])])])], 2)], 2);
|
|
33710
33863
|
};
|
|
33711
33864
|
var staticRenderFns = [];
|
|
33712
33865
|
|
|
33713
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=
|
|
33866
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=598246f8&scoped=true
|
|
33714
33867
|
|
|
33715
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/questionItem.vue?vue&type=template&id=
|
|
33716
|
-
var
|
|
33868
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/questionItem.vue?vue&type=template&id=088e6bea&scoped=true
|
|
33869
|
+
var questionItemvue_type_template_id_088e6bea_scoped_true_render = function render() {
|
|
33717
33870
|
var _vm = this,
|
|
33718
33871
|
_c = _vm._self._c;
|
|
33719
33872
|
return _c('div', {
|
|
33720
33873
|
staticClass: "ai_question_contain"
|
|
33721
33874
|
}, [_c('div', {
|
|
33875
|
+
staticClass: "question_header"
|
|
33876
|
+
}, [_c('div', {
|
|
33877
|
+
staticClass: "question_header_left"
|
|
33878
|
+
}, [_c('el-checkbox', {
|
|
33879
|
+
attrs: {
|
|
33880
|
+
"disabled": _vm.isJoined || _vm.joined
|
|
33881
|
+
},
|
|
33882
|
+
on: {
|
|
33883
|
+
"change": _vm.handleSelectionChange
|
|
33884
|
+
},
|
|
33885
|
+
model: {
|
|
33886
|
+
value: _vm.isSelected,
|
|
33887
|
+
callback: function ($$v) {
|
|
33888
|
+
_vm.isSelected = $$v;
|
|
33889
|
+
},
|
|
33890
|
+
expression: "isSelected"
|
|
33891
|
+
}
|
|
33892
|
+
}), _c('span', {
|
|
33893
|
+
staticClass: "type-name",
|
|
33894
|
+
class: _vm.getTypeClass(_vm.detail.type)
|
|
33895
|
+
}, [_vm._v(_vm._s(_vm.getQuestionTypeName(_vm.detail.type)))])], 1), !_vm.joined && !_vm.isJoined ? _c('span', {
|
|
33896
|
+
staticClass: "join",
|
|
33897
|
+
on: {
|
|
33898
|
+
"click": _vm.join
|
|
33899
|
+
}
|
|
33900
|
+
}, [_vm._v("+ 加入题库")]) : _vm._e()]), _c('div', {
|
|
33722
33901
|
staticClass: "question_contain_title"
|
|
33723
33902
|
}, [_c('span', {
|
|
33724
33903
|
staticClass: "question_contain_title_left"
|
|
@@ -33759,6 +33938,8 @@ var questionItemvue_type_template_id_22783872_scoped_true_render = function rend
|
|
|
33759
33938
|
key: idx
|
|
33760
33939
|
}, [_c('span', [_vm._v(_vm._s(item))])]);
|
|
33761
33940
|
}), 0) : _vm._e(), _c('div', {
|
|
33941
|
+
staticClass: "question_answer_info"
|
|
33942
|
+
}, [_c('div', {
|
|
33762
33943
|
staticClass: "question_contain_answer"
|
|
33763
33944
|
}, [_vm._v("参考答案: "), _c('span', {
|
|
33764
33945
|
domProps: {
|
|
@@ -33768,16 +33949,15 @@ var questionItemvue_type_template_id_22783872_scoped_true_render = function rend
|
|
|
33768
33949
|
staticClass: "question_contain_parse"
|
|
33769
33950
|
}, [_c('span', {
|
|
33770
33951
|
staticClass: "question_contain_parse_analysis"
|
|
33771
|
-
}, [
|
|
33772
|
-
|
|
33773
|
-
|
|
33774
|
-
"click": _vm.join
|
|
33952
|
+
}, [_c('span', {
|
|
33953
|
+
staticStyle: {
|
|
33954
|
+
"font-weight": "bold"
|
|
33775
33955
|
}
|
|
33776
|
-
}, [_vm._v("
|
|
33956
|
+
}, [_vm._v("题目解析:")]), _vm._v(" " + _vm._s(_vm.detail.analysis))])])])]);
|
|
33777
33957
|
};
|
|
33778
|
-
var
|
|
33958
|
+
var questionItemvue_type_template_id_088e6bea_scoped_true_staticRenderFns = [];
|
|
33779
33959
|
|
|
33780
|
-
;// CONCATENATED MODULE: ./components/demo/src/questionItem.vue?vue&type=template&id=
|
|
33960
|
+
;// CONCATENATED MODULE: ./components/demo/src/questionItem.vue?vue&type=template&id=088e6bea&scoped=true
|
|
33781
33961
|
|
|
33782
33962
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/questionItem.vue?vue&type=script&lang=js
|
|
33783
33963
|
/* harmony default export */ var questionItemvue_type_script_lang_js = ({
|
|
@@ -33789,6 +33969,10 @@ var questionItemvue_type_template_id_22783872_scoped_true_staticRenderFns = [];
|
|
|
33789
33969
|
},
|
|
33790
33970
|
index: {
|
|
33791
33971
|
type: Number
|
|
33972
|
+
},
|
|
33973
|
+
isJoined: {
|
|
33974
|
+
type: Boolean,
|
|
33975
|
+
default: false
|
|
33792
33976
|
}
|
|
33793
33977
|
},
|
|
33794
33978
|
data() {
|
|
@@ -33837,24 +34021,64 @@ var questionItemvue_type_template_id_22783872_scoped_true_staticRenderFns = [];
|
|
|
33837
34021
|
name: 'I',
|
|
33838
34022
|
id: 8
|
|
33839
34023
|
}],
|
|
33840
|
-
joined: false
|
|
34024
|
+
joined: false,
|
|
34025
|
+
isSelected: false
|
|
33841
34026
|
};
|
|
33842
34027
|
},
|
|
33843
34028
|
methods: {
|
|
33844
34029
|
agree(e) {
|
|
33845
34030
|
this.$emit('agree', this.index, e);
|
|
33846
34031
|
},
|
|
33847
|
-
join(
|
|
34032
|
+
join() {
|
|
33848
34033
|
this.$emit('join', this.detail);
|
|
33849
34034
|
this.joined = true;
|
|
34035
|
+
// 当加入题库后,自动取消选中状态
|
|
34036
|
+
if (this.isSelected) {
|
|
34037
|
+
this.isSelected = false;
|
|
34038
|
+
this.handleSelectionChange(false);
|
|
34039
|
+
}
|
|
34040
|
+
},
|
|
34041
|
+
// 获取题目类型中文名称
|
|
34042
|
+
getQuestionTypeName(type) {
|
|
34043
|
+
const typeMap = {
|
|
34044
|
+
single: '单选题',
|
|
34045
|
+
multiple: '多选题',
|
|
34046
|
+
gapfilling: '填空题',
|
|
34047
|
+
judge: '判断题',
|
|
34048
|
+
shortanswer: '简答题'
|
|
34049
|
+
};
|
|
34050
|
+
return typeMap[type] || type;
|
|
34051
|
+
},
|
|
34052
|
+
// 获取题目类型样式类
|
|
34053
|
+
getTypeClass(type) {
|
|
34054
|
+
const classMap = {
|
|
34055
|
+
single: 'type-single',
|
|
34056
|
+
multiple: 'type-multiple',
|
|
34057
|
+
gapfilling: 'type-gapfilling',
|
|
34058
|
+
judge: 'type-judge',
|
|
34059
|
+
shortanswer: 'type-shortanswer'
|
|
34060
|
+
};
|
|
34061
|
+
return classMap[type] || '';
|
|
34062
|
+
},
|
|
34063
|
+
// 处理选择变化
|
|
34064
|
+
handleSelectionChange(value) {
|
|
34065
|
+
this.$emit('selectionChange', {
|
|
34066
|
+
index: this.index,
|
|
34067
|
+
selected: value,
|
|
34068
|
+
detail: this.detail
|
|
34069
|
+
});
|
|
34070
|
+
},
|
|
34071
|
+
// 清空选中状态 - 供父组件调用
|
|
34072
|
+
clearSelection() {
|
|
34073
|
+
this.isSelected = false;
|
|
33850
34074
|
}
|
|
33851
34075
|
}
|
|
33852
34076
|
});
|
|
33853
34077
|
;// CONCATENATED MODULE: ./components/demo/src/questionItem.vue?vue&type=script&lang=js
|
|
33854
34078
|
/* harmony default export */ var src_questionItemvue_type_script_lang_js = (questionItemvue_type_script_lang_js);
|
|
33855
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/questionItem.vue?vue&type=style&index=0&id=
|
|
33856
|
-
var
|
|
33857
|
-
;// CONCATENATED MODULE: ./components/demo/src/questionItem.vue?vue&type=style&index=0&id=
|
|
34079
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/questionItem.vue?vue&type=style&index=0&id=088e6bea&prod&lang=scss&scoped=true
|
|
34080
|
+
var questionItemvue_type_style_index_0_id_088e6bea_prod_lang_scss_scoped_true = __webpack_require__(3846);
|
|
34081
|
+
;// CONCATENATED MODULE: ./components/demo/src/questionItem.vue?vue&type=style&index=0&id=088e6bea&prod&lang=scss&scoped=true
|
|
33858
34082
|
|
|
33859
34083
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
33860
34084
|
/* globals __VUE_SSR_CONTEXT__ */
|
|
@@ -33965,18 +34189,18 @@ function normalizeComponent(
|
|
|
33965
34189
|
|
|
33966
34190
|
var component = normalizeComponent(
|
|
33967
34191
|
src_questionItemvue_type_script_lang_js,
|
|
33968
|
-
|
|
33969
|
-
|
|
34192
|
+
questionItemvue_type_template_id_088e6bea_scoped_true_render,
|
|
34193
|
+
questionItemvue_type_template_id_088e6bea_scoped_true_staticRenderFns,
|
|
33970
34194
|
false,
|
|
33971
34195
|
null,
|
|
33972
|
-
"
|
|
34196
|
+
"088e6bea",
|
|
33973
34197
|
null
|
|
33974
34198
|
|
|
33975
34199
|
)
|
|
33976
34200
|
|
|
33977
34201
|
/* harmony default export */ var questionItem = (component.exports);
|
|
33978
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/CyTreeSelect.vue?vue&type=template&id=
|
|
33979
|
-
var
|
|
34202
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/CyTreeSelect.vue?vue&type=template&id=2970df77
|
|
34203
|
+
var CyTreeSelectvue_type_template_id_2970df77_render = function render() {
|
|
33980
34204
|
var _vm = this,
|
|
33981
34205
|
_c = _vm._self._c;
|
|
33982
34206
|
return _c('el-select', {
|
|
@@ -34025,7 +34249,7 @@ var CyTreeSelectvue_type_template_id_401ae6ac_render = function render() {
|
|
|
34025
34249
|
}
|
|
34026
34250
|
})], 1)], 1);
|
|
34027
34251
|
};
|
|
34028
|
-
var
|
|
34252
|
+
var CyTreeSelectvue_type_template_id_2970df77_staticRenderFns = [];
|
|
34029
34253
|
|
|
34030
34254
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/CyTreeSelect.vue?vue&type=script&lang=js
|
|
34031
34255
|
/* harmony default export */ var CyTreeSelectvue_type_script_lang_js = ({
|
|
@@ -34176,9 +34400,9 @@ var CyTreeSelectvue_type_template_id_401ae6ac_staticRenderFns = [];
|
|
|
34176
34400
|
});
|
|
34177
34401
|
;// CONCATENATED MODULE: ./components/demo/src/CyTreeSelect.vue?vue&type=script&lang=js
|
|
34178
34402
|
/* harmony default export */ var src_CyTreeSelectvue_type_script_lang_js = (CyTreeSelectvue_type_script_lang_js);
|
|
34179
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/CyTreeSelect.vue?vue&type=style&index=0&id=
|
|
34180
|
-
var
|
|
34181
|
-
;// CONCATENATED MODULE: ./components/demo/src/CyTreeSelect.vue?vue&type=style&index=0&id=
|
|
34403
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/CyTreeSelect.vue?vue&type=style&index=0&id=2970df77&prod&lang=scss
|
|
34404
|
+
var CyTreeSelectvue_type_style_index_0_id_2970df77_prod_lang_scss = __webpack_require__(5711);
|
|
34405
|
+
;// CONCATENATED MODULE: ./components/demo/src/CyTreeSelect.vue?vue&type=style&index=0&id=2970df77&prod&lang=scss
|
|
34182
34406
|
|
|
34183
34407
|
;// CONCATENATED MODULE: ./components/demo/src/CyTreeSelect.vue
|
|
34184
34408
|
|
|
@@ -34191,8 +34415,8 @@ var CyTreeSelectvue_type_style_index_0_id_401ae6ac_prod_lang_scss = __webpack_re
|
|
|
34191
34415
|
|
|
34192
34416
|
var CyTreeSelect_component = normalizeComponent(
|
|
34193
34417
|
src_CyTreeSelectvue_type_script_lang_js,
|
|
34194
|
-
|
|
34195
|
-
|
|
34418
|
+
CyTreeSelectvue_type_template_id_2970df77_render,
|
|
34419
|
+
CyTreeSelectvue_type_template_id_2970df77_staticRenderFns,
|
|
34196
34420
|
false,
|
|
34197
34421
|
null,
|
|
34198
34422
|
null,
|
|
@@ -37842,23 +38066,12 @@ const createBurial = data => {
|
|
|
37842
38066
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=script&lang=js
|
|
37843
38067
|
|
|
37844
38068
|
|
|
37845
|
-
|
|
37846
|
-
// Button, Drawer, Form, FormItem, Checkbox, CheckboxGroup, Input, Cascader, Dialog, Loading, this.$message
|
|
37847
|
-
// } from "element-ui"
|
|
38069
|
+
|
|
37848
38070
|
|
|
37849
38071
|
|
|
37850
38072
|
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
37851
38073
|
name: 'aiQuestion',
|
|
37852
38074
|
components: {
|
|
37853
|
-
// 'el-button': Button,
|
|
37854
|
-
// 'el-drawer': Drawer,
|
|
37855
|
-
// 'el-form': Form,
|
|
37856
|
-
// 'el-form-item': FormItem,
|
|
37857
|
-
// 'el-checkbox': Checkbox,
|
|
37858
|
-
// 'el-checkbox-group': CheckboxGroup,
|
|
37859
|
-
// 'el-input': Input,
|
|
37860
|
-
// 'el-cascader': Cascader,
|
|
37861
|
-
// 'el-dialog': Dialog,
|
|
37862
38075
|
questionItem: questionItem,
|
|
37863
38076
|
CyTreeSelect: CyTreeSelect
|
|
37864
38077
|
},
|
|
@@ -37905,7 +38118,7 @@ const createBurial = data => {
|
|
|
37905
38118
|
},
|
|
37906
38119
|
businessSource: {
|
|
37907
38120
|
type: String,
|
|
37908
|
-
default: "0"
|
|
38121
|
+
default: "0"
|
|
37909
38122
|
},
|
|
37910
38123
|
courseId: {
|
|
37911
38124
|
type: String,
|
|
@@ -37920,14 +38133,31 @@ const createBurial = data => {
|
|
|
37920
38133
|
direction: 'rtl',
|
|
37921
38134
|
rebuildFlag: true,
|
|
37922
38135
|
form: {
|
|
37923
|
-
|
|
37924
|
-
|
|
37925
|
-
|
|
37926
|
-
|
|
38136
|
+
selectedTypes: {
|
|
38137
|
+
single: false,
|
|
38138
|
+
multiple: false,
|
|
38139
|
+
judge: false,
|
|
38140
|
+
gapfilling: false,
|
|
38141
|
+
shortanswer: false
|
|
38142
|
+
},
|
|
38143
|
+
typeCounts: {
|
|
38144
|
+
single: null,
|
|
38145
|
+
multiple: null,
|
|
38146
|
+
judge: null,
|
|
38147
|
+
gapfilling: null,
|
|
38148
|
+
shortanswer: null
|
|
38149
|
+
},
|
|
38150
|
+
typeDifficulties: {
|
|
38151
|
+
single: 0,
|
|
38152
|
+
multiple: 0,
|
|
38153
|
+
judge: 0,
|
|
38154
|
+
gapfilling: 0,
|
|
38155
|
+
shortanswer: 0
|
|
38156
|
+
},
|
|
37927
38157
|
knowledgeIds: '',
|
|
37928
|
-
|
|
37929
|
-
|
|
37930
|
-
|
|
38158
|
+
knowledgeId: [],
|
|
38159
|
+
knowledge: [],
|
|
38160
|
+
prompt: ''
|
|
37931
38161
|
},
|
|
37932
38162
|
quesTypeList: [{
|
|
37933
38163
|
name: '单选题',
|
|
@@ -37935,18 +38165,18 @@ const createBurial = data => {
|
|
|
37935
38165
|
}, {
|
|
37936
38166
|
name: '多选题',
|
|
37937
38167
|
id: 'multiple'
|
|
37938
|
-
}, {
|
|
37939
|
-
name: '判断题',
|
|
37940
|
-
id: 'judge'
|
|
37941
38168
|
}, {
|
|
37942
38169
|
name: '填空题',
|
|
37943
38170
|
id: 'gapfilling'
|
|
38171
|
+
}, {
|
|
38172
|
+
name: '判断题',
|
|
38173
|
+
id: 'judge'
|
|
37944
38174
|
}, {
|
|
37945
38175
|
name: '简答题',
|
|
37946
38176
|
id: 'shortanswer'
|
|
37947
38177
|
}],
|
|
37948
38178
|
difficultyList: [{
|
|
37949
|
-
name: '
|
|
38179
|
+
name: '超级简单',
|
|
37950
38180
|
id: 0
|
|
37951
38181
|
}, {
|
|
37952
38182
|
name: '简单',
|
|
@@ -37961,41 +38191,14 @@ const createBurial = data => {
|
|
|
37961
38191
|
name: '非常困难',
|
|
37962
38192
|
id: 4
|
|
37963
38193
|
}],
|
|
37964
|
-
rules: {
|
|
37965
|
-
questionTypes: [{
|
|
37966
|
-
required: true,
|
|
37967
|
-
message: '此项必填',
|
|
37968
|
-
trigger: 'change'
|
|
37969
|
-
}],
|
|
37970
|
-
questionType: [{
|
|
37971
|
-
required: true,
|
|
37972
|
-
message: '此项必填',
|
|
37973
|
-
trigger: 'change'
|
|
37974
|
-
}],
|
|
37975
|
-
count: [{
|
|
37976
|
-
required: true,
|
|
37977
|
-
message: '此项必填',
|
|
37978
|
-
trigger: 'blur'
|
|
37979
|
-
}],
|
|
37980
|
-
knowledgeIds: [{
|
|
37981
|
-
required: true,
|
|
37982
|
-
message: '此项必填',
|
|
37983
|
-
trigger: 'change'
|
|
37984
|
-
}],
|
|
37985
|
-
difficultys: [{
|
|
37986
|
-
required: true,
|
|
37987
|
-
message: '此项必填',
|
|
37988
|
-
trigger: 'change'
|
|
37989
|
-
}],
|
|
37990
|
-
difficulty: [{
|
|
37991
|
-
required: true,
|
|
37992
|
-
message: '此项必填',
|
|
37993
|
-
trigger: 'change'
|
|
37994
|
-
}]
|
|
37995
|
-
},
|
|
37996
38194
|
loading: null,
|
|
37997
38195
|
aiResponse: {},
|
|
37998
|
-
title: '单选题'
|
|
38196
|
+
title: '单选题',
|
|
38197
|
+
dropdownVisible: false,
|
|
38198
|
+
currentBot: 'tongyi',
|
|
38199
|
+
selectedQuestions: [],
|
|
38200
|
+
// 存储选中的题目
|
|
38201
|
+
joinedQuestions: [] // 存储已加入题库的题目索引
|
|
37999
38202
|
};
|
|
38000
38203
|
},
|
|
38001
38204
|
watch: {
|
|
@@ -38029,38 +38232,59 @@ const createBurial = data => {
|
|
|
38029
38232
|
}
|
|
38030
38233
|
},
|
|
38031
38234
|
methods: {
|
|
38032
|
-
|
|
38033
|
-
|
|
38034
|
-
|
|
38035
|
-
|
|
38036
|
-
|
|
38235
|
+
// 处理题目类型选择变化
|
|
38236
|
+
handleTypeChange(typeId) {
|
|
38237
|
+
// 可以在这里添加额外的逻辑
|
|
38238
|
+
},
|
|
38239
|
+
// 处理数量变化,自动选中题目类型
|
|
38240
|
+
handleCountChange(typeId) {
|
|
38241
|
+
if (this.form.typeCounts[typeId] && this.form.typeCounts[typeId] > 0) {
|
|
38242
|
+
this.form.selectedTypes[typeId] = true;
|
|
38243
|
+
}
|
|
38244
|
+
},
|
|
38245
|
+
// 处理难度变化,自动选中题目类型
|
|
38246
|
+
handleDifficultyChange(typeId) {
|
|
38247
|
+
this.form.selectedTypes[typeId] = true;
|
|
38248
|
+
},
|
|
38249
|
+
// 处理数量输入验证
|
|
38250
|
+
handleCountInput(typeId) {
|
|
38251
|
+
let inputValue = this.form.typeCounts[typeId];
|
|
38252
|
+
|
|
38253
|
+
// 如果输入为空,允许为空
|
|
38254
|
+
if (inputValue === '' || inputValue === null || inputValue === undefined) {
|
|
38255
|
+
return;
|
|
38256
|
+
}
|
|
38257
|
+
let value = parseInt(inputValue);
|
|
38258
|
+
if (isNaN(value) || value < 1) {
|
|
38259
|
+
this.form.typeCounts[typeId] = 1;
|
|
38037
38260
|
} else if (value > 10) {
|
|
38038
|
-
this.form.
|
|
38261
|
+
this.form.typeCounts[typeId] = 10;
|
|
38039
38262
|
} else {
|
|
38040
|
-
this.form.
|
|
38263
|
+
this.form.typeCounts[typeId] = value;
|
|
38041
38264
|
}
|
|
38042
38265
|
},
|
|
38043
|
-
|
|
38044
|
-
|
|
38045
|
-
|
|
38046
|
-
|
|
38047
|
-
|
|
38266
|
+
// 获取题目类型的样式类
|
|
38267
|
+
getTypeClass(typeId) {
|
|
38268
|
+
const classMap = {
|
|
38269
|
+
single: 'type-single',
|
|
38270
|
+
multiple: 'type-multiple',
|
|
38271
|
+
gapfilling: 'type-gapfilling',
|
|
38272
|
+
judge: 'type-judge',
|
|
38273
|
+
shortanswer: 'type-shortanswer'
|
|
38274
|
+
};
|
|
38275
|
+
return classMap[typeId] || '';
|
|
38276
|
+
},
|
|
38277
|
+
// 获取难度标签
|
|
38278
|
+
getDifficultyLabel(difficultyId) {
|
|
38279
|
+
const difficulty = this.difficultyList.find(item => item.id === difficultyId);
|
|
38280
|
+
return difficulty ? difficulty.name : '一般';
|
|
38048
38281
|
},
|
|
38049
38282
|
//展示右边弹框
|
|
38050
38283
|
showAddQuestion() {
|
|
38051
38284
|
if (!api.get("AiToken")) {
|
|
38052
38285
|
return this.$message.warning('未获取到登录信息,请重新登录');
|
|
38053
38286
|
}
|
|
38054
|
-
this.
|
|
38055
|
-
questionTypes: [],
|
|
38056
|
-
questionType: null,
|
|
38057
|
-
count: 1,
|
|
38058
|
-
knowledgeId: [],
|
|
38059
|
-
knowledgeIds: '',
|
|
38060
|
-
difficultys: [],
|
|
38061
|
-
difficulty: null,
|
|
38062
|
-
knowledge: []
|
|
38063
|
-
};
|
|
38287
|
+
this.resetForm();
|
|
38064
38288
|
this.addShow = !this.addShow;
|
|
38065
38289
|
createBurial({
|
|
38066
38290
|
businessType: 3,
|
|
@@ -38069,36 +38293,82 @@ const createBurial = data => {
|
|
|
38069
38293
|
courseId: this.courseId
|
|
38070
38294
|
});
|
|
38071
38295
|
},
|
|
38296
|
+
// 重置表单
|
|
38297
|
+
resetForm() {
|
|
38298
|
+
this.form = {
|
|
38299
|
+
selectedTypes: {
|
|
38300
|
+
single: false,
|
|
38301
|
+
multiple: false,
|
|
38302
|
+
judge: false,
|
|
38303
|
+
gapfilling: false,
|
|
38304
|
+
shortanswer: false
|
|
38305
|
+
},
|
|
38306
|
+
typeCounts: {
|
|
38307
|
+
single: null,
|
|
38308
|
+
multiple: null,
|
|
38309
|
+
judge: null,
|
|
38310
|
+
gapfilling: null,
|
|
38311
|
+
shortanswer: null
|
|
38312
|
+
},
|
|
38313
|
+
typeDifficulties: {
|
|
38314
|
+
single: 0,
|
|
38315
|
+
multiple: 0,
|
|
38316
|
+
judge: 0,
|
|
38317
|
+
gapfilling: 0,
|
|
38318
|
+
shortanswer: 0
|
|
38319
|
+
},
|
|
38320
|
+
knowledgeIds: '',
|
|
38321
|
+
knowledgeId: [],
|
|
38322
|
+
knowledge: [],
|
|
38323
|
+
prompt: ''
|
|
38324
|
+
};
|
|
38325
|
+
},
|
|
38072
38326
|
//生成题目
|
|
38073
38327
|
generate() {
|
|
38074
|
-
|
|
38075
|
-
|
|
38076
|
-
|
|
38077
|
-
|
|
38078
|
-
|
|
38079
|
-
|
|
38080
|
-
|
|
38081
|
-
|
|
38082
|
-
|
|
38083
|
-
|
|
38084
|
-
|
|
38085
|
-
|
|
38086
|
-
|
|
38087
|
-
|
|
38088
|
-
|
|
38089
|
-
this.sendPost();
|
|
38090
|
-
this.$emit("questionCount", this.form.count);
|
|
38091
|
-
}
|
|
38328
|
+
// 验证是否选择了题目类型
|
|
38329
|
+
const selectedTypes = Object.keys(this.form.selectedTypes).filter(key => this.form.selectedTypes[key]);
|
|
38330
|
+
if (selectedTypes.length === 0) {
|
|
38331
|
+
return this.$message.warning('请至少选择一种题目类型');
|
|
38332
|
+
}
|
|
38333
|
+
|
|
38334
|
+
// 验证是否选择了知识点
|
|
38335
|
+
if (!this.form.knowledgeIds) {
|
|
38336
|
+
return this.$message.warning('请选择关联知识点');
|
|
38337
|
+
}
|
|
38338
|
+
|
|
38339
|
+
// 处理知识点数据
|
|
38340
|
+
this.form.knowledgeId = this.form.knowledgeIds.split(',');
|
|
38341
|
+
this.form.knowledgeId.forEach(item => {
|
|
38342
|
+
this.getKnowledgeName(item, this.knowledgeList);
|
|
38092
38343
|
});
|
|
38344
|
+
|
|
38345
|
+
// 设置标题
|
|
38346
|
+
if (selectedTypes.length > 1) {
|
|
38347
|
+
this.title = '多类题';
|
|
38348
|
+
} else {
|
|
38349
|
+
this.title = this.quesTypeList.find(item => item.id === selectedTypes[0]).name;
|
|
38350
|
+
}
|
|
38351
|
+
this.showQues = true;
|
|
38352
|
+
this.addShow = !this.addShow;
|
|
38353
|
+
this.sendPost();
|
|
38354
|
+
|
|
38355
|
+
// 计算总题目数量
|
|
38356
|
+
const totalCount = selectedTypes.reduce((sum, type) => sum + this.form.typeCounts[type], 0);
|
|
38357
|
+
this.$emit("questionCount", totalCount);
|
|
38093
38358
|
},
|
|
38094
38359
|
//重新生成
|
|
38095
38360
|
rebuild() {
|
|
38361
|
+
// 重新生成时清空已加入题库的状态
|
|
38362
|
+
this.joinedQuestions = [];
|
|
38363
|
+
this.selectedQuestions = [];
|
|
38096
38364
|
this.sendPost();
|
|
38097
38365
|
},
|
|
38098
38366
|
showGenerateResult() {
|
|
38099
38367
|
this.generateCount++;
|
|
38100
|
-
|
|
38101
|
-
|
|
38368
|
+
const selectedTypes = Object.keys(this.form.selectedTypes).filter(key => this.form.selectedTypes[key]);
|
|
38369
|
+
const totalCount = selectedTypes.reduce((sum, type) => sum + this.form.typeCounts[type], 0);
|
|
38370
|
+
if (this.generateCount == totalCount) {
|
|
38371
|
+
this.$message.success('题目(' + totalCount + '道)全部生成完毕!');
|
|
38102
38372
|
this.rebuildFlag = false;
|
|
38103
38373
|
} else {
|
|
38104
38374
|
this.$message.success('生成' + this.generateCount + '道题目成功');
|
|
@@ -38114,19 +38384,22 @@ const createBurial = data => {
|
|
|
38114
38384
|
target: '.el-dialog',
|
|
38115
38385
|
text: 'AI生成中...'
|
|
38116
38386
|
});
|
|
38387
|
+
const selectedTypes = Object.keys(this.form.selectedTypes).filter(key => this.form.selectedTypes[key]);
|
|
38388
|
+
const questionTypes = selectedTypes;
|
|
38389
|
+
const difficultys = selectedTypes.map(type => this.form.typeDifficulties[type]);
|
|
38117
38390
|
let obj = {
|
|
38118
38391
|
modelType: 'aliyun',
|
|
38119
38392
|
questionAddCmd: {
|
|
38120
|
-
questionTypes:
|
|
38121
|
-
// count: this.form.count,
|
|
38393
|
+
questionTypes: questionTypes,
|
|
38122
38394
|
count: 1,
|
|
38123
38395
|
knowledge: this.form.knowledge.join(' '),
|
|
38124
38396
|
knowledgeId: this.form.knowledgeId[this.form.knowledgeId.length - 1],
|
|
38125
|
-
difficultys:
|
|
38397
|
+
difficultys: difficultys,
|
|
38126
38398
|
prompt: this.form.prompt
|
|
38127
38399
|
},
|
|
38128
38400
|
sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : '',
|
|
38129
|
-
businessSource: this.businessSource
|
|
38401
|
+
businessSource: this.businessSource,
|
|
38402
|
+
courseId: this.courseId
|
|
38130
38403
|
};
|
|
38131
38404
|
getAiQuestion(obj).then(res => {
|
|
38132
38405
|
if (res.success) {
|
|
@@ -38165,7 +38438,6 @@ const createBurial = data => {
|
|
|
38165
38438
|
this.postQuestion();
|
|
38166
38439
|
}
|
|
38167
38440
|
});
|
|
38168
|
-
// this.postQuestion();
|
|
38169
38441
|
},
|
|
38170
38442
|
postQuestion() {
|
|
38171
38443
|
this.rebuildFlag = true;
|
|
@@ -38176,55 +38448,61 @@ const createBurial = data => {
|
|
|
38176
38448
|
target: '.el-dialog',
|
|
38177
38449
|
text: 'AI生成中...'
|
|
38178
38450
|
});
|
|
38179
|
-
|
|
38180
|
-
|
|
38181
|
-
|
|
38182
|
-
|
|
38183
|
-
|
|
38184
|
-
|
|
38185
|
-
|
|
38186
|
-
|
|
38187
|
-
|
|
38188
|
-
|
|
38189
|
-
|
|
38190
|
-
|
|
38191
|
-
|
|
38192
|
-
|
|
38193
|
-
|
|
38194
|
-
|
|
38195
|
-
|
|
38196
|
-
|
|
38197
|
-
|
|
38198
|
-
|
|
38199
|
-
|
|
38200
|
-
|
|
38201
|
-
|
|
38202
|
-
|
|
38203
|
-
|
|
38204
|
-
|
|
38205
|
-
|
|
38206
|
-
|
|
38451
|
+
const selectedTypes = Object.keys(this.form.selectedTypes).filter(key => this.form.selectedTypes[key]);
|
|
38452
|
+
|
|
38453
|
+
// 按题型分别生成题目
|
|
38454
|
+
selectedTypes.forEach(type => {
|
|
38455
|
+
const count = this.form.typeCounts[type] || 1;
|
|
38456
|
+
const difficulty = this.form.typeDifficulties[type];
|
|
38457
|
+
|
|
38458
|
+
// 为每种题型生成指定数量的题目
|
|
38459
|
+
for (let i = 0; i < count; i++) {
|
|
38460
|
+
let obj = {
|
|
38461
|
+
modelType: 'aliyun',
|
|
38462
|
+
questionAddCmd: {
|
|
38463
|
+
questionTypes: [type],
|
|
38464
|
+
// 单个题型
|
|
38465
|
+
count: 1,
|
|
38466
|
+
knowledge: this.form.knowledge.join(' '),
|
|
38467
|
+
knowledgeId: this.form.knowledgeId[this.form.knowledgeId.length - 1],
|
|
38468
|
+
difficultys: [difficulty],
|
|
38469
|
+
// 对应的难度
|
|
38470
|
+
prompt: this.form.prompt
|
|
38471
|
+
},
|
|
38472
|
+
sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : '',
|
|
38473
|
+
businessSource: this.businessSource,
|
|
38474
|
+
courseId: this.courseId
|
|
38475
|
+
};
|
|
38476
|
+
getAiQuestion(obj).then(res => {
|
|
38477
|
+
if (res.success) {
|
|
38478
|
+
this.loading && this.loading.close();
|
|
38479
|
+
if (res.data && res.data.questions && res.data.questions.length > 0) {
|
|
38480
|
+
if (this.aiResponse.questions && this.aiResponse.questions.length > 0) {
|
|
38481
|
+
this.aiResponse.questions.push(res.data.questions[0]);
|
|
38482
|
+
} else {
|
|
38483
|
+
this.aiResponse = res.data;
|
|
38484
|
+
}
|
|
38485
|
+
this.$set(res.data.questions[0], 'evaluate', 0);
|
|
38486
|
+
// 设置题目类型,便于后续统计
|
|
38487
|
+
this.$set(res.data.questions[0], 'type', type);
|
|
38488
|
+
this.showGenerateResult();
|
|
38207
38489
|
} else {
|
|
38208
|
-
this.
|
|
38490
|
+
this.$message.warning('题目获取失败,重新生成中...');
|
|
38491
|
+
return this.reSend();
|
|
38209
38492
|
}
|
|
38210
|
-
this.$set(res.data.questions[0], 'evaluate', 0);
|
|
38211
|
-
this.showGenerateResult();
|
|
38212
38493
|
} else {
|
|
38213
|
-
this
|
|
38214
|
-
|
|
38494
|
+
this.loading && this.loading.close();
|
|
38495
|
+
this.$message.warning('题目获取失败');
|
|
38496
|
+
this.rebuildFlag = false;
|
|
38215
38497
|
}
|
|
38216
|
-
}
|
|
38498
|
+
}).catch(error => {
|
|
38499
|
+
console.log("error:" + error);
|
|
38217
38500
|
this.loading && this.loading.close();
|
|
38218
38501
|
this.$message.warning('题目获取失败');
|
|
38219
38502
|
this.rebuildFlag = false;
|
|
38220
|
-
}
|
|
38221
|
-
}
|
|
38222
|
-
|
|
38223
|
-
this.loading && this.loading.close();
|
|
38224
|
-
this.$message.warning('题目获取失败');
|
|
38225
|
-
this.rebuildFlag = false;
|
|
38226
|
-
});
|
|
38227
|
-
}
|
|
38503
|
+
});
|
|
38504
|
+
}
|
|
38505
|
+
});
|
|
38228
38506
|
},
|
|
38229
38507
|
//获取知识点名称
|
|
38230
38508
|
getKnowledgeName(e, array) {
|
|
@@ -38243,7 +38521,9 @@ const createBurial = data => {
|
|
|
38243
38521
|
modelType: 'aliyun',
|
|
38244
38522
|
...this.aiResponse
|
|
38245
38523
|
};
|
|
38246
|
-
agreeQuestion(obj).then(res => {
|
|
38524
|
+
agreeQuestion(obj).then(res => {
|
|
38525
|
+
// 处理响应
|
|
38526
|
+
}).catch(error => {
|
|
38247
38527
|
console.log(error);
|
|
38248
38528
|
});
|
|
38249
38529
|
},
|
|
@@ -38253,18 +38533,118 @@ const createBurial = data => {
|
|
|
38253
38533
|
...e,
|
|
38254
38534
|
knowledgePointsId: this.form.knowledgeId[this.form.knowledgeId.length - 1]
|
|
38255
38535
|
});
|
|
38536
|
+
|
|
38537
|
+
// 当单个题目加入题库后,从选中列表中移除该题目
|
|
38538
|
+
const questionIndex = this.aiResponse.questions.findIndex(q => q === e);
|
|
38539
|
+
if (questionIndex !== -1) {
|
|
38540
|
+
this.selectedQuestions = this.selectedQuestions.filter(q => q.index !== questionIndex);
|
|
38541
|
+
|
|
38542
|
+
// 将题目索引添加到已加入题库列表
|
|
38543
|
+
if (!this.joinedQuestions.includes(questionIndex)) {
|
|
38544
|
+
this.joinedQuestions.push(questionIndex);
|
|
38545
|
+
}
|
|
38546
|
+
}
|
|
38547
|
+
},
|
|
38548
|
+
selectBot(bot) {
|
|
38549
|
+
this.currentBot = bot;
|
|
38550
|
+
this.dropdownVisible = false;
|
|
38551
|
+
},
|
|
38552
|
+
// 处理题目选择变化
|
|
38553
|
+
handleQuestionSelection(data) {
|
|
38554
|
+
const {
|
|
38555
|
+
index,
|
|
38556
|
+
selected,
|
|
38557
|
+
detail
|
|
38558
|
+
} = data;
|
|
38559
|
+
if (selected) {
|
|
38560
|
+
// 添加到选中列表
|
|
38561
|
+
if (!this.selectedQuestions.find(q => q.index === index)) {
|
|
38562
|
+
this.selectedQuestions.push({
|
|
38563
|
+
index,
|
|
38564
|
+
detail
|
|
38565
|
+
});
|
|
38566
|
+
}
|
|
38567
|
+
} else {
|
|
38568
|
+
// 从选中列表移除
|
|
38569
|
+
this.selectedQuestions = this.selectedQuestions.filter(q => q.index !== index);
|
|
38570
|
+
}
|
|
38571
|
+
},
|
|
38572
|
+
// 获取题目类型统计
|
|
38573
|
+
getQuestionTypeSummary() {
|
|
38574
|
+
if (!this.aiResponse.questions || this.aiResponse.questions.length === 0) {
|
|
38575
|
+
return [];
|
|
38576
|
+
}
|
|
38577
|
+
const typeCounts = {};
|
|
38578
|
+
const typeNameMap = {
|
|
38579
|
+
single: '单选题',
|
|
38580
|
+
multiple: '多选题',
|
|
38581
|
+
gapfilling: '填空题',
|
|
38582
|
+
judge: '判断题',
|
|
38583
|
+
shortanswer: '简答题'
|
|
38584
|
+
};
|
|
38585
|
+
|
|
38586
|
+
// 统计各类型题目数量
|
|
38587
|
+
this.aiResponse.questions.forEach(question => {
|
|
38588
|
+
const type = question.type || 'single'; // 默认为单选题
|
|
38589
|
+
typeCounts[type] = (typeCounts[type] || 0) + 1;
|
|
38590
|
+
});
|
|
38591
|
+
|
|
38592
|
+
// 转换为显示格式
|
|
38593
|
+
return Object.keys(typeCounts).map(typeId => ({
|
|
38594
|
+
id: typeId,
|
|
38595
|
+
name: typeNameMap[typeId] || typeId,
|
|
38596
|
+
count: typeCounts[typeId]
|
|
38597
|
+
}));
|
|
38598
|
+
},
|
|
38599
|
+
// 批量加入题库
|
|
38600
|
+
addAllToBank() {
|
|
38601
|
+
if (this.selectedQuestions.length === 0) {
|
|
38602
|
+
return this.$message.warning('请先选择要加入题库的题目');
|
|
38603
|
+
}
|
|
38604
|
+
|
|
38605
|
+
// 批量加入选中的题目到题库
|
|
38606
|
+
this.selectedQuestions.forEach(({
|
|
38607
|
+
index,
|
|
38608
|
+
detail
|
|
38609
|
+
}) => {
|
|
38610
|
+
// 调用单个题目的加入题库方法
|
|
38611
|
+
this.$emit('joinQuestionBank', {
|
|
38612
|
+
...detail,
|
|
38613
|
+
knowledgePointsId: this.form.knowledgeId[this.form.knowledgeId.length - 1]
|
|
38614
|
+
});
|
|
38615
|
+
|
|
38616
|
+
// 将题目索引添加到已加入题库列表
|
|
38617
|
+
if (!this.joinedQuestions.includes(index)) {
|
|
38618
|
+
this.joinedQuestions.push(index);
|
|
38619
|
+
}
|
|
38620
|
+
|
|
38621
|
+
// 直接调用子组件方法清空选中状态
|
|
38622
|
+
this.$nextTick(() => {
|
|
38623
|
+
const questionItemRef = this.$refs[`questionItem_${index}`];
|
|
38624
|
+
if (questionItemRef) {
|
|
38625
|
+
// 如果是数组,取第一个元素;如果不是数组,直接使用
|
|
38626
|
+
const componentInstance = Array.isArray(questionItemRef) ? questionItemRef[0] : questionItemRef;
|
|
38627
|
+
if (componentInstance && componentInstance.clearSelection) {
|
|
38628
|
+
componentInstance.clearSelection();
|
|
38629
|
+
}
|
|
38630
|
+
}
|
|
38631
|
+
});
|
|
38632
|
+
});
|
|
38633
|
+
|
|
38634
|
+
// 清空选中状态
|
|
38635
|
+
this.selectedQuestions = [];
|
|
38256
38636
|
}
|
|
38257
38637
|
}
|
|
38258
38638
|
});
|
|
38259
38639
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
|
|
38260
38640
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
38261
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=
|
|
38262
|
-
var
|
|
38263
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=
|
|
38641
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=0&id=598246f8&prod&lang=scss&scoped=true
|
|
38642
|
+
var mainvue_type_style_index_0_id_598246f8_prod_lang_scss_scoped_true = __webpack_require__(49);
|
|
38643
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=598246f8&prod&lang=scss&scoped=true
|
|
38264
38644
|
|
|
38265
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=1&id=
|
|
38266
|
-
var
|
|
38267
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=1&id=
|
|
38645
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/demo/src/main.vue?vue&type=style&index=1&id=598246f8&prod&lang=scss
|
|
38646
|
+
var mainvue_type_style_index_1_id_598246f8_prod_lang_scss = __webpack_require__(913);
|
|
38647
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=1&id=598246f8&prod&lang=scss
|
|
38268
38648
|
|
|
38269
38649
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue
|
|
38270
38650
|
|
|
@@ -38282,7 +38662,7 @@ var main_component = normalizeComponent(
|
|
|
38282
38662
|
staticRenderFns,
|
|
38283
38663
|
false,
|
|
38284
38664
|
null,
|
|
38285
|
-
"
|
|
38665
|
+
"598246f8",
|
|
38286
38666
|
null
|
|
38287
38667
|
|
|
38288
38668
|
)
|