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.
@@ -17,10 +17,13 @@ export const agreeQuestion = (data) => {
17
17
  })
18
18
  }
19
19
 
20
- export const checkVersion = () => {
20
+ export const checkVersion = (businessSource) => {
21
21
  return request({
22
- url:"/video/checkVersion",
22
+ url:"/xh/question/checkVersion",
23
23
  method: "post",
24
+ params:{
25
+ businessSource:businessSource
26
+ }
24
27
  });
25
28
  };
26
29
 
@@ -154,6 +154,10 @@ export default {
154
154
  children: 'children'
155
155
  })
156
156
  },
157
+ businessSource: {
158
+ type: String,
159
+ default: "0", // 默认值为空字符串
160
+ },
157
161
  },
158
162
  data() {
159
163
  return {
@@ -249,7 +253,8 @@ export default {
249
253
  this.addShow = !this.addShow
250
254
  createBurial({
251
255
  businessType: 3,
252
- operatorType: 0
256
+ operatorType: 0,
257
+ businessSource:this.businessSource
253
258
  })
254
259
  },
255
260
  //生成题目
@@ -307,7 +312,8 @@ export default {
307
312
  difficultys: this.form.difficultys,
308
313
  prompt: this.form.prompt
309
314
  },
310
- sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : ''
315
+ sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : '',
316
+ businessSource:this.businessSource
311
317
  }
312
318
  getAiQuestion(obj).then(res => {
313
319
  if (res.success) {
@@ -338,13 +344,15 @@ export default {
338
344
  },
339
345
  //发送请求
340
346
  sendPost() {
341
- checkVersion().then((res) => {
347
+ checkVersion(this.businessSource).then(res => {
348
+ console.log(res);
342
349
  if (res.errCode === '403') {
343
350
  this.$message.warning(res.errMessage)
344
351
  } else {
345
352
  this.postQuestion();
346
353
  }
347
354
  });
355
+ // this.postQuestion();
348
356
  },
349
357
  postQuestion() {
350
358
  this.rebuildFlag = true;
@@ -367,7 +375,8 @@ export default {
367
375
  difficultys: this.form.difficultys,
368
376
  prompt: this.form.prompt
369
377
  },
370
- sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : ''
378
+ sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : '',
379
+ businessSource:this.businessSource
371
380
  }
372
381
  getAiQuestion(obj).then(res => {
373
382
  // console.log("questions obj is :" + JSON.stringify(res.data.questions));
@@ -67,11 +67,12 @@ service.interceptors.response.use(res => {
67
67
  if (res.data.code == 401) {
68
68
  Message.warning(res.data.msg)
69
69
  }
70
- if (!res.data.success) {
71
- // Message.warning(res.data.errMessage)
72
- } else {
73
- return res.data
74
- }
70
+ // if (!res.data.success) {
71
+ // // Message.warning(res.data.errMessage)
72
+ // } else {
73
+ // return res.data
74
+ // }
75
+ return res.data
75
76
  })
76
77
 
77
78
  export default service
@@ -1477,7 +1477,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tree-select__option.el-select-dropdow
1477
1477
 
1478
1478
  /***/ }),
1479
1479
 
1480
- /***/ 8573:
1480
+ /***/ 7183:
1481
1481
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1482
1482
 
1483
1483
  "use strict";
@@ -1496,7 +1496,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
1496
1496
  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()));
1497
1497
  var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
1498
1498
  // Module
1499
- ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-2eb1564c].ai_contain{display:inline-block}[data-v-2eb1564c].ai_contain .el-drawer__header{padding-top:0;height:80px;background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");background-size:100% 100%}[data-v-2eb1564c].ai_contain .el-drawer__body{padding:0 20px}[data-v-2eb1564c].ai_contain .el-drawer__body{display:flex;flex-direction:column;justify-content:space-between}[data-v-2eb1564c].ai_contain .el-form-item__label{font-weight:700}[data-v-2eb1564c].ai_contain .el-input__inner{padding-right:0}[data-v-2eb1564c].ai_contain .el-cascader{width:100%}[data-v-2eb1564c].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-2eb1564c].ai_contain .add_question_title{display:flex;align-items:center;font-size:23px;color:#333}[data-v-2eb1564c].ai_contain .add_question_body .remind{font-size:14px;color:#9ba1ae}[data-v-2eb1564c].ai_contain .add_question_footer{padding:20px 0;border-top:1px solid #e6e6e6;display:flex;justify-content:center;align-items:center}[data-v-2eb1564c].ai_contain .el-loading-mask{border-radius:8px}[data-v-2eb1564c].ai_contain .el-dialog{background:linear-gradient(327deg,#dbecfe,#f9fcff);border-radius:8px}[data-v-2eb1564c].ai_contain .el-dialog .question_title{display:flex;align-items:center;font-weight:700;font-size:23px;color:#333}[data-v-2eb1564c].ai_contain .el-dialog .question_title img{margin-right:10px;width:35px;height:40px}[data-v-2eb1564c].ai_contain .el-dialog .question_body{padding:10px;min-height:500px;max-height:500px;overflow:auto}[data-v-2eb1564c].ai_contain .el-dialog .question_body::-webkit-scrollbar{width:4px}[data-v-2eb1564c].ai_contain .el-dialog .question_body::-webkit-scrollbar-button{display:none}[data-v-2eb1564c].ai_contain .el-dialog .question_body::-webkit-scrollbar-track-piece{background-color:transparent}[data-v-2eb1564c].ai_contain .el-dialog .question_body::-webkit-scrollbar-thumb{border-radius:3px;background:rgba(0,0,0,.5)}[data-v-2eb1564c].ai_contain .el-dialog .question_footer{display:flex;justify-content:space-between}[data-v-2eb1564c].ai_contain .el-dialog .question_footer .question_remind{align-self:flex-end;font-size:14px;color:#9ba1ae}", ""]);
1499
+ ___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}", ""]);
1500
1500
  // Exports
1501
1501
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
1502
1502
 
@@ -32984,19 +32984,19 @@ var update = add("7c65751a", content, true, {"sourceMap":false,"shadowMode":fals
32984
32984
 
32985
32985
  /***/ }),
32986
32986
 
32987
- /***/ 2563:
32987
+ /***/ 2001:
32988
32988
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
32989
32989
 
32990
32990
  // style-loader: Adds some css to the DOM by adding a <style> tag
32991
32991
 
32992
32992
  // load the styles
32993
- var content = __webpack_require__(8573);
32993
+ var content = __webpack_require__(7183);
32994
32994
  if(content.__esModule) content = content.default;
32995
32995
  if(typeof content === 'string') content = [[module.id, content, '']];
32996
32996
  if(content.locals) module.exports = content.locals;
32997
32997
  // add the styles to the DOM
32998
32998
  var add = (__webpack_require__(8459)/* ["default"] */ .A)
32999
- var update = add("4d5e1891", content, true, {"sourceMap":false,"shadowMode":false});
32999
+ var update = add("ecdf2d12", content, true, {"sourceMap":false,"shadowMode":false});
33000
33000
 
33001
33001
  /***/ }),
33002
33002
 
@@ -33510,7 +33510,7 @@ if (typeof window !== 'undefined') {
33510
33510
  // Indicate to webpack that this file can be concatenated
33511
33511
  /* harmony default export */ var setPublicPath = (null);
33512
33512
 
33513
- ;// 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=2eb1564c&scoped=true
33513
+ ;// 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=9303d3f2&scoped=true
33514
33514
  var render = function render() {
33515
33515
  var _vm = this,
33516
33516
  _c = _vm._self._c;
@@ -33739,7 +33739,7 @@ var render = function render() {
33739
33739
  };
33740
33740
  var staticRenderFns = [];
33741
33741
 
33742
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=2eb1564c&scoped=true
33742
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=9303d3f2&scoped=true
33743
33743
 
33744
33744
  ;// 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
33745
33745
  var questionItemvue_type_template_id_a8488d3c_scoped_true_render = function render() {
@@ -37826,11 +37826,12 @@ service.interceptors.response.use(res => {
37826
37826
  if (res.data.code == 401) {
37827
37827
  element_ui_common.Message.warning(res.data.msg);
37828
37828
  }
37829
- if (!res.data.success) {
37830
- // Message.warning(res.data.errMessage)
37831
- } else {
37832
- return res.data;
37833
- }
37829
+ // if (!res.data.success) {
37830
+ // // Message.warning(res.data.errMessage)
37831
+ // } else {
37832
+ // return res.data
37833
+ // }
37834
+ return res.data;
37834
37835
  });
37835
37836
  /* harmony default export */ var request = (service);
37836
37837
  ;// CONCATENATED MODULE: ./components/demo/api/index.js
@@ -37849,10 +37850,13 @@ const agreeQuestion = data => {
37849
37850
  data: data
37850
37851
  });
37851
37852
  };
37852
- const checkVersion = () => {
37853
+ const checkVersion = businessSource => {
37853
37854
  return request({
37854
- url: "/video/checkVersion",
37855
- method: "post"
37855
+ url: "/xh/question/checkVersion",
37856
+ method: "post",
37857
+ params: {
37858
+ businessSource: businessSource
37859
+ }
37856
37860
  });
37857
37861
  };
37858
37862
  const createBurial = data => {
@@ -37925,6 +37929,10 @@ const createBurial = data => {
37925
37929
  label: 'label',
37926
37930
  children: 'children'
37927
37931
  })
37932
+ },
37933
+ businessSource: {
37934
+ type: String,
37935
+ default: "0" // 默认值为空字符串
37928
37936
  }
37929
37937
  },
37930
37938
  data() {
@@ -38063,7 +38071,8 @@ const createBurial = data => {
38063
38071
  this.addShow = !this.addShow;
38064
38072
  createBurial({
38065
38073
  businessType: 3,
38066
- operatorType: 0
38074
+ operatorType: 0,
38075
+ businessSource: this.businessSource
38067
38076
  });
38068
38077
  },
38069
38078
  //生成题目
@@ -38121,7 +38130,8 @@ const createBurial = data => {
38121
38130
  difficultys: this.form.difficultys,
38122
38131
  prompt: this.form.prompt
38123
38132
  },
38124
- sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : ''
38133
+ sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : '',
38134
+ businessSource: this.businessSource
38125
38135
  };
38126
38136
  getAiQuestion(obj).then(res => {
38127
38137
  if (res.success) {
@@ -38152,13 +38162,15 @@ const createBurial = data => {
38152
38162
  },
38153
38163
  //发送请求
38154
38164
  sendPost() {
38155
- checkVersion().then(res => {
38165
+ checkVersion(this.businessSource).then(res => {
38166
+ console.log(res);
38156
38167
  if (res.errCode === '403') {
38157
38168
  this.$message.warning(res.errMessage);
38158
38169
  } else {
38159
38170
  this.postQuestion();
38160
38171
  }
38161
38172
  });
38173
+ // this.postQuestion();
38162
38174
  },
38163
38175
  postQuestion() {
38164
38176
  this.rebuildFlag = true;
@@ -38181,7 +38193,8 @@ const createBurial = data => {
38181
38193
  difficultys: this.form.difficultys,
38182
38194
  prompt: this.form.prompt
38183
38195
  },
38184
- sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : ''
38196
+ sessionId: this.aiResponse.sessionId ? this.aiResponse.sessionId : '',
38197
+ businessSource: this.businessSource
38185
38198
  };
38186
38199
  getAiQuestion(obj).then(res => {
38187
38200
  // console.log("questions obj is :" + JSON.stringify(res.data.questions));
@@ -38250,9 +38263,9 @@ const createBurial = data => {
38250
38263
  });
38251
38264
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
38252
38265
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
38253
- // 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=2eb1564c&prod&lang=scss&scoped=true
38254
- var mainvue_type_style_index_0_id_2eb1564c_prod_lang_scss_scoped_true = __webpack_require__(2563);
38255
- ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=2eb1564c&prod&lang=scss&scoped=true
38266
+ // 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=9303d3f2&prod&lang=scss&scoped=true
38267
+ var mainvue_type_style_index_0_id_9303d3f2_prod_lang_scss_scoped_true = __webpack_require__(2001);
38268
+ ;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=9303d3f2&prod&lang=scss&scoped=true
38256
38269
 
38257
38270
  ;// CONCATENATED MODULE: ./components/demo/src/main.vue
38258
38271
 
@@ -38269,7 +38282,7 @@ var main_component = normalizeComponent(
38269
38282
  staticRenderFns,
38270
38283
  false,
38271
38284
  null,
38272
- "2eb1564c",
38285
+ "9303d3f2",
38273
38286
  null
38274
38287
 
38275
38288
  )