Browse Source

再次识别语音

Signed-off-by: liuboyan <632697560@qq.com>
liuboyan 3 years ago
parent
commit
4f7d40a04a
6 changed files with 8 additions and 9 deletions
  1. 0 1
      .env.development
  2. 0 1
      .env.production
  3. 1 2
      README.md
  4. 3 3
      src/api/danger.js
  5. 2 0
      src/components/danger/editFormCurrency.js
  6. 2 2
      vite.config.js

+ 0 - 1
.env.development

@@ -1,4 +1,3 @@
 VITE_BASE_API = "https://ebeitest.wuyeface.com:1188/"
 VITE_TIME_OUT = 5000
-VITE_CATEGORY = "8"
 VITE_MENUCODE = "RoomManageSystem"

+ 0 - 1
.env.production

@@ -1,4 +1,3 @@
 VITE_BASE_API = "https://ebeitest.wuyeface.com:1188/"
 VITE_TIME_OUT = 5000
-VITE_CATEGORY = "8"
 VITE_MENUCODE = "RoomManageSystem"

+ 1 - 2
README.md

@@ -167,7 +167,6 @@ JavaScript
 
 3. 其他环节变量
     VITE_TIME_OUT为请求超时时限
-    VITE_CATEGORY为项目类型
     VITE_MENUCODE为菜单目录字典
 ```
 开发
@@ -183,7 +182,7 @@ JavaScript
     使用 驼峰 命名法命名各文件及其对应文件夹
 
 4. 拦截器
-    拦截器分为 request 与 download 两部分,并强制传入VITE_CATEGORY参数
+    拦截器分为 request 与 download 两部分
     request
         当 api 文件传入对象中的 type 为 JSON 时,为正常请求
         当 api 文件传入对象中的 type 为 FORM 时,为表单式请求,请求头 Content-type 为 application/x-www-form-urlencoded

+ 3 - 3
src/api/danger.js

@@ -170,9 +170,9 @@ export function submitReportProgressFormOfDanger (object) {
 //  通用--提交语音识别表单
 export function submitSpeechAudioFormOfDanger (object) {
   return request({
-    url: '/hospital/htrouble/voice',
-    method: 'post',
-    data: object,
+    url: `/hospital/htrouble/voice`,
+    method: 'get',
+    params: object,
     type: 'JSON'
   })
 }

+ 2 - 0
src/components/danger/editFormCurrency.js

@@ -39,6 +39,7 @@ const editFormCurrency = {
           troubleId: this.detailForm.id
         }).then(res => {
           if (res.code == 200) {
+            this.getTableList()
             this.detailForm.voiceState = 2
             this.detailForm.descriptionVoice = res.data
             ElNotification({
@@ -74,6 +75,7 @@ const editFormCurrency = {
             }).then(res => {
               this.buttonLoading = false
               if (res.code == 200) {
+                this.getTableList()
                 this.detailFormShow = false
                 this.detailFormEdit = false
                 ElNotification({

+ 2 - 2
vite.config.js

@@ -39,8 +39,8 @@ export default ({ command, mode }) => {
             rewrite: (path) => path.replace(/^\/device/, '/device')
           },
           '/hospital': {
-            target: 'http://172.18.0.23/',
-            // target: 'http://172.18.0.78:9090/',
+            // target: 'http://172.18.0.23/',
+            target: 'http://172.18.0.78:9090/',
             // target: 'https://ebeitests.wuyeface.com:1188/',
             changeOrigin: true,
             ws: true,