ai-question-pro 0.0.8 → 0.0.10
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 +8 -0
- package/components/demo/src/main.vue +17 -4
- package/dist/ai-question-pro.common.js +34 -14
- package/dist/ai-question-pro.common.js.map +1 -1
- package/dist/ai-question-pro.umd.js +34 -14
- 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
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
<!-- </el-checkbox>-->
|
|
20
20
|
<!-- </el-checkbox-group>-->
|
|
21
21
|
<el-radio-group v-model="form.questionType" size="medium">
|
|
22
|
-
<el-radio-button v-for="item in quesTypeList" :key="item.id" :label="item.id">{{ item.name }}</el-radio-button
|
|
22
|
+
<!-- <el-radio-button v-for="item in quesTypeList" :key="item.id" :label="item.id">{{ item.name }}</el-radio-button>-->
|
|
23
|
+
<el-radio v-for="item in quesTypeList"
|
|
24
|
+
style="margin-right: 8px; margin-bottom: 8px"
|
|
25
|
+
:key="item.id"
|
|
26
|
+
:label="item.id">{{ item.name }}</el-radio>
|
|
23
27
|
</el-radio-group>
|
|
24
28
|
</el-form-item>
|
|
25
29
|
<el-form-item label="题目数量" prop="count">
|
|
@@ -39,7 +43,11 @@
|
|
|
39
43
|
<!-- }}</el-checkbox>-->
|
|
40
44
|
<!-- </el-checkbox-group>-->
|
|
41
45
|
<el-radio-group v-model="form.difficulty" size="medium">
|
|
42
|
-
<el-radio-button v-for="item in difficultyList" :key="item.id" :label="item.id">{{ item.name }}</el-radio-button
|
|
46
|
+
<!-- <el-radio-button v-for="item in difficultyList" :key="item.id" :label="item.id">{{ item.name }}</el-radio-button>-->
|
|
47
|
+
<el-radio v-for="item in difficultyList"
|
|
48
|
+
style="margin-right: 8px; margin-bottom: 8px"
|
|
49
|
+
:key="item.id"
|
|
50
|
+
:label="item.id">{{ item.name }}</el-radio>
|
|
43
51
|
</el-radio-group>
|
|
44
52
|
</el-form-item>
|
|
45
53
|
<el-form-item label="自定义提示语">
|
|
@@ -77,7 +85,7 @@ import CyTreeSelect from './CyTreeSelect.vue'
|
|
|
77
85
|
// import {
|
|
78
86
|
// Button, Drawer, Form, FormItem, Checkbox, CheckboxGroup, Input, Cascader, Dialog, Loading, this.$message
|
|
79
87
|
// } from "element-ui"
|
|
80
|
-
import { getAiQuestion, agreeQuestion } from '../api/index'
|
|
88
|
+
import { getAiQuestion, agreeQuestion, createBurial } from '../api/index'
|
|
81
89
|
import Cookies from 'js-cookie';
|
|
82
90
|
export default {
|
|
83
91
|
name: 'aiQuestion',
|
|
@@ -207,7 +215,8 @@ export default {
|
|
|
207
215
|
},
|
|
208
216
|
methods: {
|
|
209
217
|
handleInput(value) {
|
|
210
|
-
value = parseFloat(value);
|
|
218
|
+
// value = parseFloat(value);
|
|
219
|
+
value = parseInt(value);
|
|
211
220
|
if (value < 1) {
|
|
212
221
|
this.form.count = 1;
|
|
213
222
|
} else if (value > 10) {
|
|
@@ -238,6 +247,10 @@ export default {
|
|
|
238
247
|
knowledge: []
|
|
239
248
|
}
|
|
240
249
|
this.addShow = !this.addShow
|
|
250
|
+
createBurial({
|
|
251
|
+
businessType: 3,
|
|
252
|
+
operatorType: 0
|
|
253
|
+
})
|
|
241
254
|
},
|
|
242
255
|
//生成题目
|
|
243
256
|
generate() {
|
|
@@ -1477,7 +1477,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tree-select__option.el-select-dropdow
|
|
|
1477
1477
|
|
|
1478
1478
|
/***/ }),
|
|
1479
1479
|
|
|
1480
|
-
/***/
|
|
1480
|
+
/***/ 4365:
|
|
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-
|
|
1499
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-2d32abea].ai_contain{display:inline-block}[data-v-2d32abea].ai_contain .el-drawer__header{padding-top:0;height:80px;background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");background-size:100% 100%}[data-v-2d32abea].ai_contain .el-drawer__body{padding:0 20px}[data-v-2d32abea].ai_contain .el-drawer__body{display:flex;flex-direction:column;justify-content:space-between}[data-v-2d32abea].ai_contain .el-form-item__label{font-weight:700}[data-v-2d32abea].ai_contain .el-input__inner{padding-right:0}[data-v-2d32abea].ai_contain .el-cascader{width:100%}[data-v-2d32abea].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-2d32abea].ai_contain .add_question_title{display:flex;align-items:center;font-size:23px;color:#333}[data-v-2d32abea].ai_contain .add_question_body .remind{font-size:14px;color:#9ba1ae}[data-v-2d32abea].ai_contain .add_question_footer{padding:20px 0;border-top:1px solid #e6e6e6;display:flex;justify-content:center;align-items:center}[data-v-2d32abea].ai_contain .el-loading-mask{border-radius:8px}[data-v-2d32abea].ai_contain .el-dialog{background:linear-gradient(327deg,#dbecfe,#f9fcff);border-radius:8px}[data-v-2d32abea].ai_contain .el-dialog .question_title{display:flex;align-items:center;font-weight:700;font-size:23px;color:#333}[data-v-2d32abea].ai_contain .el-dialog .question_title img{margin-right:10px;width:35px;height:40px}[data-v-2d32abea].ai_contain .el-dialog .question_body{padding:10px;min-height:500px;max-height:500px;overflow:auto}[data-v-2d32abea].ai_contain .el-dialog .question_body::-webkit-scrollbar{width:4px}[data-v-2d32abea].ai_contain .el-dialog .question_body::-webkit-scrollbar-button{display:none}[data-v-2d32abea].ai_contain .el-dialog .question_body::-webkit-scrollbar-track-piece{background-color:transparent}[data-v-2d32abea].ai_contain .el-dialog .question_body::-webkit-scrollbar-thumb{border-radius:3px;background:rgba(0,0,0,.5)}[data-v-2d32abea].ai_contain .el-dialog .question_footer{display:flex;justify-content:space-between}[data-v-2d32abea].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
|
-
/***/
|
|
32987
|
+
/***/ 51:
|
|
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__(
|
|
32993
|
+
var content = __webpack_require__(4365);
|
|
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("
|
|
32999
|
+
var update = add("66236a0d", 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=
|
|
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=2d32abea&scoped=true
|
|
33514
33514
|
var render = function render() {
|
|
33515
33515
|
var _vm = this,
|
|
33516
33516
|
_c = _vm._self._c;
|
|
@@ -33570,8 +33570,12 @@ var render = function render() {
|
|
|
33570
33570
|
expression: "form.questionType"
|
|
33571
33571
|
}
|
|
33572
33572
|
}, _vm._l(_vm.quesTypeList, function (item) {
|
|
33573
|
-
return _c('el-radio
|
|
33573
|
+
return _c('el-radio', {
|
|
33574
33574
|
key: item.id,
|
|
33575
|
+
staticStyle: {
|
|
33576
|
+
"margin-right": "8px",
|
|
33577
|
+
"margin-bottom": "8px"
|
|
33578
|
+
},
|
|
33575
33579
|
attrs: {
|
|
33576
33580
|
"label": item.id
|
|
33577
33581
|
}
|
|
@@ -33637,8 +33641,12 @@ var render = function render() {
|
|
|
33637
33641
|
expression: "form.difficulty"
|
|
33638
33642
|
}
|
|
33639
33643
|
}, _vm._l(_vm.difficultyList, function (item) {
|
|
33640
|
-
return _c('el-radio
|
|
33644
|
+
return _c('el-radio', {
|
|
33641
33645
|
key: item.id,
|
|
33646
|
+
staticStyle: {
|
|
33647
|
+
"margin-right": "8px",
|
|
33648
|
+
"margin-bottom": "8px"
|
|
33649
|
+
},
|
|
33642
33650
|
attrs: {
|
|
33643
33651
|
"label": item.id
|
|
33644
33652
|
}
|
|
@@ -33731,7 +33739,7 @@ var render = function render() {
|
|
|
33731
33739
|
};
|
|
33732
33740
|
var staticRenderFns = [];
|
|
33733
33741
|
|
|
33734
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=
|
|
33742
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=template&id=2d32abea&scoped=true
|
|
33735
33743
|
|
|
33736
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
|
|
33737
33745
|
var questionItemvue_type_template_id_a8488d3c_scoped_true_render = function render() {
|
|
@@ -37841,6 +37849,13 @@ const agreeQuestion = data => {
|
|
|
37841
37849
|
data: data
|
|
37842
37850
|
});
|
|
37843
37851
|
};
|
|
37852
|
+
const createBurial = data => {
|
|
37853
|
+
return request({
|
|
37854
|
+
url: `/visit/create`,
|
|
37855
|
+
method: 'post',
|
|
37856
|
+
data: data
|
|
37857
|
+
});
|
|
37858
|
+
};
|
|
37844
37859
|
;// 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
|
|
37845
37860
|
|
|
37846
37861
|
|
|
@@ -38008,7 +38023,8 @@ const agreeQuestion = data => {
|
|
|
38008
38023
|
},
|
|
38009
38024
|
methods: {
|
|
38010
38025
|
handleInput(value) {
|
|
38011
|
-
value = parseFloat(value);
|
|
38026
|
+
// value = parseFloat(value);
|
|
38027
|
+
value = parseInt(value);
|
|
38012
38028
|
if (value < 1) {
|
|
38013
38029
|
this.form.count = 1;
|
|
38014
38030
|
} else if (value > 10) {
|
|
@@ -38039,6 +38055,10 @@ const agreeQuestion = data => {
|
|
|
38039
38055
|
knowledge: []
|
|
38040
38056
|
};
|
|
38041
38057
|
this.addShow = !this.addShow;
|
|
38058
|
+
createBurial({
|
|
38059
|
+
businessType: 3,
|
|
38060
|
+
operatorType: 0
|
|
38061
|
+
});
|
|
38042
38062
|
},
|
|
38043
38063
|
//生成题目
|
|
38044
38064
|
generate() {
|
|
@@ -38215,9 +38235,9 @@ const agreeQuestion = data => {
|
|
|
38215
38235
|
});
|
|
38216
38236
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=script&lang=js
|
|
38217
38237
|
/* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
38218
|
-
// 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=
|
|
38219
|
-
var
|
|
38220
|
-
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=
|
|
38238
|
+
// 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=2d32abea&prod&lang=scss&scoped=true
|
|
38239
|
+
var mainvue_type_style_index_0_id_2d32abea_prod_lang_scss_scoped_true = __webpack_require__(51);
|
|
38240
|
+
;// CONCATENATED MODULE: ./components/demo/src/main.vue?vue&type=style&index=0&id=2d32abea&prod&lang=scss&scoped=true
|
|
38221
38241
|
|
|
38222
38242
|
;// CONCATENATED MODULE: ./components/demo/src/main.vue
|
|
38223
38243
|
|
|
@@ -38234,7 +38254,7 @@ var main_component = normalizeComponent(
|
|
|
38234
38254
|
staticRenderFns,
|
|
38235
38255
|
false,
|
|
38236
38256
|
null,
|
|
38237
|
-
"
|
|
38257
|
+
"2d32abea",
|
|
38238
38258
|
null
|
|
38239
38259
|
|
|
38240
38260
|
)
|