ai-question-pro 0.0.13 → 0.0.14
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/api/index.js +5 -2
- package/components/demo/src/main.vue +13 -4
- package/components/demo/utils/request.js +6 -5
- package/dist/ai-question-pro.common.js +36 -23
- package/dist/ai-question-pro.common.js.map +1 -1
- package/dist/ai-question-pro.umd.js +36 -23
- package/dist/ai-question-pro.umd.js.map +1 -1
- package/dist/ai-question-pro.umd.min.js +3 -3
- package/dist/ai-question-pro.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1487,7 +1487,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tree-select__option.el-select-dropdow
|
|
|
1487
1487
|
|
|
1488
1488
|
/***/ }),
|
|
1489
1489
|
|
|
1490
|
-
/***/
|
|
1490
|
+
/***/ 191:
|
|
1491
1491
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1492
1492
|
|
|
1493
1493
|
"use strict";
|
|
@@ -1506,7 +1506,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
|
|
|
1506
1506
|
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()));
|
|
1507
1507
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
|
|
1508
1508
|
// Module
|
|
1509
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
1509
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-9303d3f2].ai_contain{display:inline-block}[data-v-9303d3f2].ai_contain .el-drawer__header{padding-top:0;height:80px;background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");background-size:100% 100%}[data-v-9303d3f2].ai_contain .el-drawer__body{padding:0 20px}[data-v-9303d3f2].ai_contain .el-drawer__body{display:flex;flex-direction:column;justify-content:space-between}[data-v-9303d3f2].ai_contain .el-form-item__label{font-weight:700}[data-v-9303d3f2].ai_contain .el-input__inner{padding-right:0}[data-v-9303d3f2].ai_contain .el-cascader{width:100%}[data-v-9303d3f2].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-9303d3f2].ai_contain .add_question_title{display:flex;align-items:center;font-size:23px;color:#333}[data-v-9303d3f2].ai_contain .add_question_body .remind{font-size:14px;color:#9ba1ae}[data-v-9303d3f2].ai_contain .add_question_footer{padding:20px 0;border-top:1px solid #e6e6e6;display:flex;justify-content:center;align-items:center}[data-v-9303d3f2].ai_contain .el-loading-mask{border-radius:8px}[data-v-9303d3f2].ai_contain .el-dialog{background:linear-gradient(327deg,#dbecfe,#f9fcff);border-radius:8px}[data-v-9303d3f2].ai_contain .el-dialog .question_title{display:flex;align-items:center;font-weight:700;font-size:23px;color:#333}[data-v-9303d3f2].ai_contain .el-dialog .question_title img{margin-right:10px;width:35px;height:40px}[data-v-9303d3f2].ai_contain .el-dialog .question_body{padding:10px;min-height:500px;max-height:500px;overflow:auto}[data-v-9303d3f2].ai_contain .el-dialog .question_body::-webkit-scrollbar{width:4px}[data-v-9303d3f2].ai_contain .el-dialog .question_body::-webkit-scrollbar-button{display:none}[data-v-9303d3f2].ai_contain .el-dialog .question_body::-webkit-scrollbar-track-piece{background-color:transparent}[data-v-9303d3f2].ai_contain .el-dialog .question_body::-webkit-scrollbar-thumb{border-radius:3px;background:rgba(0,0,0,.5)}[data-v-9303d3f2].ai_contain .el-dialog .question_footer{display:flex;justify-content:space-between}[data-v-9303d3f2].ai_contain .el-dialog .question_footer .question_remind{align-self:flex-end;font-size:14px;color:#9ba1ae}", ""]);
|
|
1510
1510
|
// Exports
|
|
1511
1511
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
1512
1512
|
|
|
@@ -32994,19 +32994,19 @@ var update = add("494ddf1a", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
32994
32994
|
|
|
32995
32995
|
/***/ }),
|
|
32996
32996
|
|
|
32997
|
-
/***/
|
|
32997
|
+
/***/ 5563:
|
|
32998
32998
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
32999
32999
|
|
|
33000
33000
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
33001
33001
|
|
|
33002
33002
|
// load the styles
|
|
33003
|
-
var content = __webpack_require__(
|
|
33003
|
+
var content = __webpack_require__(191);
|
|
33004
33004
|
if(content.__esModule) content = content.default;
|
|
33005
33005
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
33006
33006
|
if(content.locals) module.exports = content.locals;
|
|
33007
33007
|
// add the styles to the DOM
|
|
33008
33008
|
var add = (__webpack_require__(258)/* ["default"] */ .A)
|
|
33009
|
-
var update = add("
|
|
33009
|
+
var update = add("3eb9b477", content, true, {"sourceMap":false,"shadowMode":false});
|
|
33010
33010
|
|
|
33011
33011
|
/***/ }),
|
|
33012
33012
|
|
|
@@ -33520,7 +33520,7 @@ if (typeof window !== 'undefined') {
|
|
|
33520
33520
|
// Indicate to webpack that this file can be concatenated
|
|
33521
33521
|
/* harmony default export */ var setPublicPath = (null);
|
|
33522
33522
|
|
|
33523
|
-
;// 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=
|
|
33523
|
+
;// 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=9303d3f2&scoped=true
|
|
33524
33524
|
var render = function render() {
|
|
33525
33525
|
var _vm = this,
|
|
33526
33526
|
_c = _vm._self._c;
|
|
@@ -33749,7 +33749,7 @@ var render = function render() {
|
|
|
33749
33749
|
};
|
|
33750
33750
|
var staticRenderFns = [];
|
|
33751
33751
|
|
|
33752
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=
|
|
33752
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=9303d3f2&scoped=true
|
|
33753
33753
|
|
|
33754
33754
|
;// 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
|
|
33755
33755
|
var questionItemvue_type_template_id_a8488d3c_scoped_true_render = function render() {
|
|
@@ -37836,11 +37836,12 @@ service.interceptors.response.use(res => {
|
|
|
37836
37836
|
if (res.data.code == 401) {
|
|
37837
37837
|
element_ui_common.Message.warning(res.data.msg);
|
|
37838
37838
|
}
|
|
37839
|
-
if (!res.data.success) {
|
|
37840
|
-
|
|
37841
|
-
} else {
|
|
37842
|
-
|
|
37843
|
-
}
|
|
37839
|
+
// if (!res.data.success) {
|
|
37840
|
+
// // Message.warning(res.data.errMessage)
|
|
37841
|
+
// } else {
|
|
37842
|
+
// return res.data
|
|
37843
|
+
// }
|
|
37844
|
+
return res.data;
|
|
37844
37845
|
});
|
|
37845
37846
|
/* harmony default export */ var request = (service);
|
|
37846
37847
|
;// CONCATENATED MODULE: ./components/demo/api/index.js
|
|
@@ -37859,10 +37860,13 @@ const agreeQuestion = data => {
|
|
|
37859
37860
|
data: data
|
|
37860
37861
|
});
|
|
37861
37862
|
};
|
|
37862
|
-
const checkVersion =
|
|
37863
|
+
const checkVersion = businessSource => {
|
|
37863
37864
|
return request({
|
|
37864
|
-
url: "/
|
|
37865
|
-
method: "post"
|
|
37865
|
+
url: "/xh/question/checkVersion",
|
|
37866
|
+
method: "post",
|
|
37867
|
+
params: {
|
|
37868
|
+
businessSource: businessSource
|
|
37869
|
+
}
|
|
37866
37870
|
});
|
|
37867
37871
|
};
|
|
37868
37872
|
const createBurial = data => {
|
|
@@ -37935,6 +37939,10 @@ const createBurial = data => {
|
|
|
37935
37939
|
label: 'label',
|
|
37936
37940
|
children: 'children'
|
|
37937
37941
|
})
|
|
37942
|
+
},
|
|
37943
|
+
businessSource: {
|
|
37944
|
+
type: String,
|
|
37945
|
+
default: "0" // 默认值为空字符串
|
|
37938
37946
|
}
|
|
37939
37947
|
},
|
|
37940
37948
|
data() {
|
|
@@ -38073,7 +38081,8 @@ const createBurial = data => {
|
|
|
38073
38081
|
this.addShow = !this.addShow;
|
|
38074
38082
|
createBurial({
|
|
38075
38083
|
businessType: 3,
|
|
38076
|
-
operatorType: 0
|
|
38084
|
+
operatorType: 0,
|
|
38085
|
+
businessSource: this.businessSource
|
|
38077
38086
|
});
|
|
38078
38087
|
},
|
|
38079
38088
|
//生成题目
|
|
@@ -38131,7 +38140,8 @@ const createBurial = data => {
|
|
|
38131
38140
|
difficultys: this.form.difficultys,
|
|
38132
38141
|
prompt: this.form.prompt
|
|
38133
38142
|
},
|
|
38134
|
-
sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : ''
|
|
38143
|
+
sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : '',
|
|
38144
|
+
businessSource: this.businessSource
|
|
38135
38145
|
};
|
|
38136
38146
|
getAiQuestion(obj).then(res => {
|
|
38137
38147
|
if (res.success) {
|
|
@@ -38162,13 +38172,15 @@ const createBurial = data => {
|
|
|
38162
38172
|
},
|
|
38163
38173
|
//发送请求
|
|
38164
38174
|
sendPost() {
|
|
38165
|
-
checkVersion().then(res => {
|
|
38175
|
+
checkVersion(this.businessSource).then(res => {
|
|
38176
|
+
console.log(res);
|
|
38166
38177
|
if (res.errCode === '403') {
|
|
38167
38178
|
this.$message.warning(res.errMessage);
|
|
38168
38179
|
} else {
|
|
38169
38180
|
this.postQuestion();
|
|
38170
38181
|
}
|
|
38171
38182
|
});
|
|
38183
|
+
// this.postQuestion();
|
|
38172
38184
|
},
|
|
38173
38185
|
postQuestion() {
|
|
38174
38186
|
this.rebuildFlag = true;
|
|
@@ -38191,7 +38203,8 @@ const createBurial = data => {
|
|
|
38191
38203
|
difficultys: this.form.difficultys,
|
|
38192
38204
|
prompt: this.form.prompt
|
|
38193
38205
|
},
|
|
38194
|
-
sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : ''
|
|
38206
|
+
sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : '',
|
|
38207
|
+
businessSource: this.businessSource
|
|
38195
38208
|
};
|
|
38196
38209
|
getAiQuestion(obj).then(res => {
|
|
38197
38210
|
// console.log("questions obj is :" + JSON.stringify(res.data.questions));
|
|
@@ -38260,9 +38273,9 @@ const createBurial = data => {
|
|
|
38260
38273
|
});
|
|
38261
38274
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
|
|
38262
38275
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
38263
|
-
// 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=
|
|
38264
|
-
var
|
|
38265
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=
|
|
38276
|
+
// 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=9303d3f2&prod&lang=scss&scoped=true
|
|
38277
|
+
var mainvue_type_style_index_0_id_9303d3f2_prod_lang_scss_scoped_true = __webpack_require__(5563);
|
|
38278
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=9303d3f2&prod&lang=scss&scoped=true
|
|
38266
38279
|
|
|
38267
38280
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue
|
|
38268
38281
|
|
|
@@ -38279,7 +38292,7 @@ var main_component = normalizeComponent(
|
|
|
38279
38292
|
staticRenderFns,
|
|
38280
38293
|
false,
|
|
38281
38294
|
null,
|
|
38282
|
-
"
|
|
38295
|
+
"9303d3f2",
|
|
38283
38296
|
null
|
|
38284
38297
|
|
|
38285
38298
|
)
|