ai-question-pro 0.0.7 → 0.0.9

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.
@@ -15,4 +15,12 @@ export const agreeQuestion = (data) => {
15
15
  method: 'post',
16
16
  data: data
17
17
  })
18
+ }
19
+
20
+ export const createBurial = (data) => {
21
+ return request({
22
+ url: `/visit/create`,
23
+ method: 'post',
24
+ data: data
25
+ })
18
26
  }
@@ -77,7 +77,7 @@ import CyTreeSelect from './CyTreeSelect.vue'
77
77
  // import {
78
78
  // Button, Drawer, Form, FormItem, Checkbox, CheckboxGroup, Input, Cascader, Dialog, Loading, this.$message
79
79
  // } from "element-ui"
80
- import { getAiQuestion, agreeQuestion } from '../api/index'
80
+ import { getAiQuestion, agreeQuestion, createBurial } from '../api/index'
81
81
  import Cookies from 'js-cookie';
82
82
  export default {
83
83
  name: 'aiQuestion',
@@ -238,6 +238,10 @@ export default {
238
238
  knowledge: []
239
239
  }
240
240
  this.addShow = !this.addShow
241
+ createBurial({
242
+ businessType: 3,
243
+ operatorType: 0
244
+ })
241
245
  },
242
246
  //生成题目
243
247
  generate() {
@@ -1,7 +1,7 @@
1
1
  import axios from 'axios'
2
2
  import Cookies from 'js-cookie'
3
3
  import cache from '../plugins/cache'
4
- // import { Message } from 'element-ui'
4
+ import { Message } from 'element-ui'
5
5
  const door = sessionStorage.getItem('AI_BASE_URL_FOR_TEST');
6
6
 
7
7
  axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
@@ -65,7 +65,7 @@ service.interceptors.response.use(res => {
65
65
  return res.data
66
66
  }
67
67
  if (res.data.code == 401) {
68
- // Message.warning(res.data.msg)
68
+ Message.warning(res.data.msg)
69
69
  }
70
70
  if (!res.data.success) {
71
71
  // Message.warning(res.data.errMessage)