ai-question-pro 0.0.4 → 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/components/demo/src/main.vue +12 -11
- 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
|
@@ -32,7 +32,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tree-select__option.el-select-dropdow
|
|
|
32
32
|
|
|
33
33
|
/***/ }),
|
|
34
34
|
|
|
35
|
-
/***/
|
|
35
|
+
/***/ 983:
|
|
36
36
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
37
37
|
|
|
38
38
|
"use strict";
|
|
@@ -51,7 +51,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
51
51
|
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()));
|
|
52
52
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
53
53
|
// Module
|
|
54
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
54
|
+
___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}", ""]);
|
|
55
55
|
// Exports
|
|
56
56
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
57
57
|
|
|
@@ -232,19 +232,19 @@ var update = add("431be548", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
232
232
|
|
|
233
233
|
/***/ }),
|
|
234
234
|
|
|
235
|
-
/***/
|
|
235
|
+
/***/ 619:
|
|
236
236
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
237
237
|
|
|
238
238
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
239
239
|
|
|
240
240
|
// load the styles
|
|
241
|
-
var content = __webpack_require__(
|
|
241
|
+
var content = __webpack_require__(983);
|
|
242
242
|
if(content.__esModule) content = content.default;
|
|
243
243
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
244
244
|
if(content.locals) module.exports = content.locals;
|
|
245
245
|
// add the styles to the DOM
|
|
246
246
|
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
247
|
-
var update = add("
|
|
247
|
+
var update = add("22c85ae1", content, true, {"sourceMap":false,"shadowMode":false});
|
|
248
248
|
|
|
249
249
|
/***/ }),
|
|
250
250
|
|
|
@@ -548,7 +548,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4
|
|
|
548
548
|
|
|
549
549
|
/***/ }),
|
|
550
550
|
|
|
551
|
-
/***/
|
|
551
|
+
/***/ 398:
|
|
552
552
|
/***/ (function(module) {
|
|
553
553
|
|
|
554
554
|
"use strict";
|
|
@@ -721,7 +721,7 @@ if (typeof window !== 'undefined') {
|
|
|
721
721
|
// Indicate to webpack that this file can be concatenated
|
|
722
722
|
/* harmony default export */ var setPublicPath = (null);
|
|
723
723
|
|
|
724
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
724
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
725
725
|
var render = function render() {
|
|
726
726
|
var _vm = this,
|
|
727
727
|
_c = _vm._self._c;
|
|
@@ -860,9 +860,12 @@ var render = function render() {
|
|
|
860
860
|
}
|
|
861
861
|
}, [_c('el-input', {
|
|
862
862
|
attrs: {
|
|
863
|
-
"
|
|
864
|
-
"
|
|
865
|
-
"
|
|
863
|
+
"placeholder": "这里可以写对于题目的要求和补充,比如:“出题内容请围绕一下知识内容:智能水利物联网是指利用物联网技术和智能化手段,对水利工程设施进行实时监测、数据采集、远程控制和智能分析,以实现对水资源的高效利用、水利设施的智能运营和管理。通过传感器、无线通信技术、云计算平台和大数据分析等技术手段,实现对水利系统各个环节的智能监测和管理,提高水资源利用效率,降低水利工程运行成本,保障水利工程安全稳定运行。”",
|
|
864
|
+
"type": "textarea",
|
|
865
|
+
"autosize": {
|
|
866
|
+
minRows: 10,
|
|
867
|
+
maxRows: 10
|
|
868
|
+
}
|
|
866
869
|
},
|
|
867
870
|
model: {
|
|
868
871
|
value: _vm.form.prompt,
|
|
@@ -874,10 +877,6 @@ var render = function render() {
|
|
|
874
877
|
})], 1)], 1)], 1), _c('div', {
|
|
875
878
|
staticClass: "add_question_footer"
|
|
876
879
|
}, [_c('el-button', {
|
|
877
|
-
staticStyle: {
|
|
878
|
-
"background-color": "#3E7BFA",
|
|
879
|
-
"border": "none"
|
|
880
|
-
},
|
|
881
880
|
attrs: {
|
|
882
881
|
"type": "primary"
|
|
883
882
|
},
|
|
@@ -932,12 +931,9 @@ var render = function render() {
|
|
|
932
931
|
}, [_c('span', {
|
|
933
932
|
staticClass: "question_remind"
|
|
934
933
|
}, [_vm._v("题目内容由人工智能大模型生成,请您审慎核查,确认内容准确,无不妥后再使用")]), _c('el-button', {
|
|
935
|
-
staticStyle: {
|
|
936
|
-
"background-color": "#3E7BFA",
|
|
937
|
-
"border": "none"
|
|
938
|
-
},
|
|
939
934
|
attrs: {
|
|
940
|
-
"type": "primary"
|
|
935
|
+
"type": "primary",
|
|
936
|
+
"disabled": _vm.rebuildFlag
|
|
941
937
|
},
|
|
942
938
|
on: {
|
|
943
939
|
"click": _vm.rebuild
|
|
@@ -946,7 +942,7 @@ var render = function render() {
|
|
|
946
942
|
};
|
|
947
943
|
var staticRenderFns = [];
|
|
948
944
|
|
|
949
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=
|
|
945
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=4c012d22&scoped=true
|
|
950
946
|
|
|
951
947
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
952
948
|
var questionItemvue_type_template_id_a8488d3c_scoped_true_render = function render() {
|
|
@@ -986,7 +982,7 @@ var questionItemvue_type_template_id_a8488d3c_scoped_true_render = function rend
|
|
|
986
982
|
}
|
|
987
983
|
}) : _vm._e(), _vm.detail.evaluate == 2 ? _c('img', {
|
|
988
984
|
attrs: {
|
|
989
|
-
"src": __webpack_require__(
|
|
985
|
+
"src": __webpack_require__(398)
|
|
990
986
|
}
|
|
991
987
|
}) : _vm._e()])]), _vm.detail.type == 'single' || _vm.detail.type == 'multiple' ? _c('div', {
|
|
992
988
|
staticClass: "question_contain_question"
|
|
@@ -5124,6 +5120,7 @@ const agreeQuestion = data => {
|
|
|
5124
5120
|
addShow: false,
|
|
5125
5121
|
generateCount: 0,
|
|
5126
5122
|
direction: 'rtl',
|
|
5123
|
+
rebuildFlag: true,
|
|
5127
5124
|
form: {
|
|
5128
5125
|
questionTypes: [],
|
|
5129
5126
|
questionType: null,
|
|
@@ -5280,6 +5277,7 @@ const agreeQuestion = data => {
|
|
|
5280
5277
|
this.generateCount++;
|
|
5281
5278
|
if (this.generateCount == this.form.count) {
|
|
5282
5279
|
this.$message.success('题目(' + this.form.count + '道)全部生成完毕!');
|
|
5280
|
+
this.rebuildFlag = false;
|
|
5283
5281
|
} else {
|
|
5284
5282
|
this.$message.success('生成' + this.generateCount + '道题目成功');
|
|
5285
5283
|
}
|
|
@@ -5319,21 +5317,22 @@ const agreeQuestion = data => {
|
|
|
5319
5317
|
this.$set(res.data.questions[0], 'evaluate', 0);
|
|
5320
5318
|
this.showGenerateResult();
|
|
5321
5319
|
} else {
|
|
5322
|
-
this.$message.warning('
|
|
5320
|
+
this.$message.warning('题目获取失败,重新生成中...');
|
|
5323
5321
|
return this.reSend();
|
|
5324
5322
|
}
|
|
5325
5323
|
} else {
|
|
5326
5324
|
this.loading && this.loading.close();
|
|
5327
|
-
this.$message.warning('
|
|
5325
|
+
this.$message.warning('题目获取失败');
|
|
5328
5326
|
}
|
|
5329
5327
|
}).catch(error => {
|
|
5330
5328
|
console.log("error:" + error);
|
|
5331
5329
|
this.loading && this.loading.close();
|
|
5332
|
-
this.$message.warning('
|
|
5330
|
+
this.$message.warning('题目获取失败');
|
|
5333
5331
|
});
|
|
5334
5332
|
},
|
|
5335
5333
|
//发送请求
|
|
5336
5334
|
sendPost() {
|
|
5335
|
+
this.rebuildFlag = true;
|
|
5337
5336
|
this.generateCount = 0;
|
|
5338
5337
|
this.aiResponse = {};
|
|
5339
5338
|
this.loading && this.loading.close();
|
|
@@ -5374,17 +5373,17 @@ const agreeQuestion = data => {
|
|
|
5374
5373
|
this.$set(res.data.questions[0], 'evaluate', 0);
|
|
5375
5374
|
this.showGenerateResult();
|
|
5376
5375
|
} else {
|
|
5377
|
-
this.$message.warning('
|
|
5376
|
+
this.$message.warning('题目获取失败');
|
|
5378
5377
|
return this.reSend();
|
|
5379
5378
|
}
|
|
5380
5379
|
} else {
|
|
5381
5380
|
this.loading && this.loading.close();
|
|
5382
|
-
this.$message.warning('
|
|
5381
|
+
this.$message.warning('题目获取失败');
|
|
5383
5382
|
}
|
|
5384
5383
|
}).catch(error => {
|
|
5385
5384
|
console.log("error:" + error);
|
|
5386
5385
|
this.loading && this.loading.close();
|
|
5387
|
-
this.$message.warning('
|
|
5386
|
+
this.$message.warning('题目获取失败');
|
|
5388
5387
|
});
|
|
5389
5388
|
}
|
|
5390
5389
|
},
|
|
@@ -5420,9 +5419,9 @@ const agreeQuestion = data => {
|
|
|
5420
5419
|
});
|
|
5421
5420
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
|
|
5422
5421
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
5423
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
5424
|
-
var
|
|
5425
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=
|
|
5422
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
5423
|
+
var mainvue_type_style_index_0_id_4c012d22_prod_lang_scss_scoped_true = __webpack_require__(619);
|
|
5424
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=4c012d22&prod&lang=scss&scoped=true
|
|
5426
5425
|
|
|
5427
5426
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue
|
|
5428
5427
|
|
|
@@ -5439,7 +5438,7 @@ var main_component = normalizeComponent(
|
|
|
5439
5438
|
staticRenderFns,
|
|
5440
5439
|
false,
|
|
5441
5440
|
null,
|
|
5442
|
-
"
|
|
5441
|
+
"4c012d22",
|
|
5443
5442
|
null
|
|
5444
5443
|
|
|
5445
5444
|
)
|