ai-question-pro 0.0.5 → 0.0.6
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/dist/ai-question-pro.common.js +28 -29
- package/dist/ai-question-pro.common.js.map +1 -1
- package/dist/ai-question-pro.umd.js +30 -31
- package/dist/ai-question-pro.umd.js.map +1 -1
- package/dist/ai-question-pro.umd.min.js +2 -2
- package/dist/ai-question-pro.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tree-select__option.el-select-dropdow
|
|
|
22
22
|
|
|
23
23
|
/***/ }),
|
|
24
24
|
|
|
25
|
-
/***/
|
|
25
|
+
/***/ 975:
|
|
26
26
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27
27
|
|
|
28
28
|
"use strict";
|
|
@@ -41,7 +41,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
41
41
|
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()));
|
|
42
42
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
43
43
|
// Module
|
|
44
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
44
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-4c012d22].ai_contain{display:inline-block}[data-v-4c012d22].ai_contain .el-drawer__header{padding-top:0;height:80px;background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");background-size:100% 100%}[data-v-4c012d22].ai_contain .el-drawer__body{padding:0 20px}[data-v-4c012d22].ai_contain .el-drawer__body{display:flex;flex-direction:column;justify-content:space-between}[data-v-4c012d22].ai_contain .el-form-item__label{font-weight:700}[data-v-4c012d22].ai_contain .el-input__inner{padding-right:0}[data-v-4c012d22].ai_contain .el-cascader{width:100%}[data-v-4c012d22].ai_contain .ai_button{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}[data-v-4c012d22].ai_contain .add_question_title{display:flex;align-items:center;font-size:23px;color:#333}[data-v-4c012d22].ai_contain .add_question_body .remind{font-size:14px;color:#9ba1ae}[data-v-4c012d22].ai_contain .add_question_footer{padding:20px 0;border-top:1px solid #e6e6e6;display:flex;justify-content:center;align-items:center}[data-v-4c012d22].ai_contain .el-loading-mask{border-radius:8px}[data-v-4c012d22].ai_contain .el-dialog{background:linear-gradient(327deg,#dbecfe,#f9fcff);border-radius:8px}[data-v-4c012d22].ai_contain .el-dialog .question_title{display:flex;align-items:center;font-weight:700;font-size:23px;color:#333}[data-v-4c012d22].ai_contain .el-dialog .question_title img{margin-right:10px;width:35px;height:40px}[data-v-4c012d22].ai_contain .el-dialog .question_body{padding:10px;min-height:500px;max-height:500px;overflow:auto}[data-v-4c012d22].ai_contain .el-dialog .question_body::-webkit-scrollbar{width:4px}[data-v-4c012d22].ai_contain .el-dialog .question_body::-webkit-scrollbar-button{display:none}[data-v-4c012d22].ai_contain .el-dialog .question_body::-webkit-scrollbar-track-piece{background-color:transparent}[data-v-4c012d22].ai_contain .el-dialog .question_body::-webkit-scrollbar-thumb{border-radius:3px;background:rgba(0,0,0,.5)}[data-v-4c012d22].ai_contain .el-dialog .question_footer{display:flex;justify-content:space-between}[data-v-4c012d22].ai_contain .el-dialog .question_footer .question_remind{align-self:flex-end;font-size:14px;color:#9ba1ae}", ""]);
|
|
45
45
|
// Exports
|
|
46
46
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
47
47
|
|
|
@@ -222,19 +222,19 @@ var update = add("29901a48", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
222
222
|
|
|
223
223
|
/***/ }),
|
|
224
224
|
|
|
225
|
-
/***/
|
|
225
|
+
/***/ 933:
|
|
226
226
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
227
227
|
|
|
228
228
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
229
229
|
|
|
230
230
|
// load the styles
|
|
231
|
-
var content = __webpack_require__(
|
|
231
|
+
var content = __webpack_require__(975);
|
|
232
232
|
if(content.__esModule) content = content.default;
|
|
233
233
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
234
234
|
if(content.locals) module.exports = content.locals;
|
|
235
235
|
// add the styles to the DOM
|
|
236
236
|
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
237
|
-
var update = add("
|
|
237
|
+
var update = add("6d9f0fe1", content, true, {"sourceMap":false,"shadowMode":false});
|
|
238
238
|
|
|
239
239
|
/***/ }),
|
|
240
240
|
|
|
@@ -711,7 +711,7 @@ if (typeof window !== 'undefined') {
|
|
|
711
711
|
// Indicate to webpack that this file can be concatenated
|
|
712
712
|
/* harmony default export */ var setPublicPath = (null);
|
|
713
713
|
|
|
714
|
-
;// 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=
|
|
714
|
+
;// 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=4c012d22&scoped=true
|
|
715
715
|
var render = function render() {
|
|
716
716
|
var _vm = this,
|
|
717
717
|
_c = _vm._self._c;
|
|
@@ -850,9 +850,12 @@ var render = function render() {
|
|
|
850
850
|
}
|
|
851
851
|
}, [_c('el-input', {
|
|
852
852
|
attrs: {
|
|
853
|
-
"
|
|
854
|
-
"
|
|
855
|
-
"
|
|
853
|
+
"placeholder": "这里可以写对于题目的要求和补充,比如:“出题内容请围绕一下知识内容:智能水利物联网是指利用物联网技术和智能化手段,对水利工程设施进行实时监测、数据采集、远程控制和智能分析,以实现对水资源的高效利用、水利设施的智能运营和管理。通过传感器、无线通信技术、云计算平台和大数据分析等技术手段,实现对水利系统各个环节的智能监测和管理,提高水资源利用效率,降低水利工程运行成本,保障水利工程安全稳定运行。”",
|
|
854
|
+
"type": "textarea",
|
|
855
|
+
"autosize": {
|
|
856
|
+
minRows: 10,
|
|
857
|
+
maxRows: 10
|
|
858
|
+
}
|
|
856
859
|
},
|
|
857
860
|
model: {
|
|
858
861
|
value: _vm.form.prompt,
|
|
@@ -864,10 +867,6 @@ var render = function render() {
|
|
|
864
867
|
})], 1)], 1)], 1), _c('div', {
|
|
865
868
|
staticClass: "add_question_footer"
|
|
866
869
|
}, [_c('el-button', {
|
|
867
|
-
staticStyle: {
|
|
868
|
-
"background-color": "#3E7BFA",
|
|
869
|
-
"border": "none"
|
|
870
|
-
},
|
|
871
870
|
attrs: {
|
|
872
871
|
"type": "primary"
|
|
873
872
|
},
|
|
@@ -922,12 +921,9 @@ var render = function render() {
|
|
|
922
921
|
}, [_c('span', {
|
|
923
922
|
staticClass: "question_remind"
|
|
924
923
|
}, [_vm._v("题目内容由人工智能大模型生成,请您审慎核查,确认内容准确,无不妥后再使用")]), _c('el-button', {
|
|
925
|
-
staticStyle: {
|
|
926
|
-
"background-color": "#3E7BFA",
|
|
927
|
-
"border": "none"
|
|
928
|
-
},
|
|
929
924
|
attrs: {
|
|
930
|
-
"type": "primary"
|
|
925
|
+
"type": "primary",
|
|
926
|
+
"disabled": _vm.rebuildFlag
|
|
931
927
|
},
|
|
932
928
|
on: {
|
|
933
929
|
"click": _vm.rebuild
|
|
@@ -936,7 +932,7 @@ var render = function render() {
|
|
|
936
932
|
};
|
|
937
933
|
var staticRenderFns = [];
|
|
938
934
|
|
|
939
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=
|
|
935
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=4c012d22&scoped=true
|
|
940
936
|
|
|
941
937
|
;// 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=a8488d3c&scoped=true
|
|
942
938
|
var questionItemvue_type_template_id_a8488d3c_scoped_true_render = function render() {
|
|
@@ -5114,6 +5110,7 @@ const agreeQuestion = data => {
|
|
|
5114
5110
|
addShow: false,
|
|
5115
5111
|
generateCount: 0,
|
|
5116
5112
|
direction: 'rtl',
|
|
5113
|
+
rebuildFlag: true,
|
|
5117
5114
|
form: {
|
|
5118
5115
|
questionTypes: [],
|
|
5119
5116
|
questionType: null,
|
|
@@ -5270,6 +5267,7 @@ const agreeQuestion = data => {
|
|
|
5270
5267
|
this.generateCount++;
|
|
5271
5268
|
if (this.generateCount == this.form.count) {
|
|
5272
5269
|
this.$message.success('题目(' + this.form.count + '道)全部生成完毕!');
|
|
5270
|
+
this.rebuildFlag = false;
|
|
5273
5271
|
} else {
|
|
5274
5272
|
this.$message.success('生成' + this.generateCount + '道题目成功');
|
|
5275
5273
|
}
|
|
@@ -5309,21 +5307,22 @@ const agreeQuestion = data => {
|
|
|
5309
5307
|
this.$set(res.data.questions[0], 'evaluate', 0);
|
|
5310
5308
|
this.showGenerateResult();
|
|
5311
5309
|
} else {
|
|
5312
|
-
this.$message.warning('
|
|
5310
|
+
this.$message.warning('题目获取失败,重新生成中...');
|
|
5313
5311
|
return this.reSend();
|
|
5314
5312
|
}
|
|
5315
5313
|
} else {
|
|
5316
5314
|
this.loading && this.loading.close();
|
|
5317
|
-
this.$message.warning('
|
|
5315
|
+
this.$message.warning('题目获取失败');
|
|
5318
5316
|
}
|
|
5319
5317
|
}).catch(error => {
|
|
5320
5318
|
console.log("error:" + error);
|
|
5321
5319
|
this.loading && this.loading.close();
|
|
5322
|
-
this.$message.warning('
|
|
5320
|
+
this.$message.warning('题目获取失败');
|
|
5323
5321
|
});
|
|
5324
5322
|
},
|
|
5325
5323
|
//发送请求
|
|
5326
5324
|
sendPost() {
|
|
5325
|
+
this.rebuildFlag = true;
|
|
5327
5326
|
this.generateCount = 0;
|
|
5328
5327
|
this.aiResponse = {};
|
|
5329
5328
|
this.loading && this.loading.close();
|
|
@@ -5364,17 +5363,17 @@ const agreeQuestion = data => {
|
|
|
5364
5363
|
this.$set(res.data.questions[0], 'evaluate', 0);
|
|
5365
5364
|
this.showGenerateResult();
|
|
5366
5365
|
} else {
|
|
5367
|
-
this.$message.warning('
|
|
5366
|
+
this.$message.warning('题目获取失败');
|
|
5368
5367
|
return this.reSend();
|
|
5369
5368
|
}
|
|
5370
5369
|
} else {
|
|
5371
5370
|
this.loading && this.loading.close();
|
|
5372
|
-
this.$message.warning('
|
|
5371
|
+
this.$message.warning('题目获取失败');
|
|
5373
5372
|
}
|
|
5374
5373
|
}).catch(error => {
|
|
5375
5374
|
console.log("error:" + error);
|
|
5376
5375
|
this.loading && this.loading.close();
|
|
5377
|
-
this.$message.warning('
|
|
5376
|
+
this.$message.warning('题目获取失败');
|
|
5378
5377
|
});
|
|
5379
5378
|
}
|
|
5380
5379
|
},
|
|
@@ -5410,9 +5409,9 @@ const agreeQuestion = data => {
|
|
|
5410
5409
|
});
|
|
5411
5410
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
|
|
5412
5411
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
5413
|
-
// 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=
|
|
5414
|
-
var
|
|
5415
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=
|
|
5412
|
+
// 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=4c012d22&prod&lang=scss&scoped=true
|
|
5413
|
+
var mainvue_type_style_index_0_id_4c012d22_prod_lang_scss_scoped_true = __webpack_require__(933);
|
|
5414
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=4c012d22&prod&lang=scss&scoped=true
|
|
5416
5415
|
|
|
5417
5416
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue
|
|
5418
5417
|
|
|
@@ -5429,7 +5428,7 @@ var main_component = normalizeComponent(
|
|
|
5429
5428
|
staticRenderFns,
|
|
5430
5429
|
false,
|
|
5431
5430
|
null,
|
|
5432
|
-
"
|
|
5431
|
+
"4c012d22",
|
|
5433
5432
|
null
|
|
5434
5433
|
|
|
5435
5434
|
)
|