From 0f36b2367e646bab8046c88ad76a49b894ce4ae5 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Wed, 7 Jun 2023 14:16:56 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20ai=E8=AF=AD=E9=9F=B3=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=20=20=20=20=20-=20=E5=A2=9E=E5=8A=A0=20=E4=B8=80?= =?UTF-8?q?=E4=B8=AAai=E8=AF=AD=E9=9F=B3=E5=91=BC=E5=8F=AB=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E9=A1=B5=20=20=20=20=20-=20=E5=A2=9E=E5=8A=A0=20?= =?UTF-8?q?=E8=8E=B7=E5=8F=96long=5Flink=E7=9A=84=E6=8E=A5=E5=8F=A3=20-=20?= =?UTF-8?q?vue.config.js=20=20=20=20=20-=20=E5=A2=9E=E5=8A=A0=20=E5=85=B3?= =?UTF-8?q?=E4=BA=8Eai=E6=B0=B4=E5=9F=9F=E5=91=8A=E8=AD=A6=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=B7=A8=E5=9F=9F=E4=BB=A3=E7=90=86=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=20=20=20=20=20-=20=E5=9B=A0=E9=A1=B9=E7=9B=AE=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=9C=B0=E5=9D=80=E4=B8=8D=E5=90=8C=EF=BC=8C=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E7=BA=BF=E4=B8=8A=E6=97=B6=E5=8F=96=E6=B6=88ai?= =?UTF-8?q?=E6=B0=B4=E5=9F=9F=E5=91=8A=E8=AD=A6=E6=8E=A5=E5=8F=A3=E8=B7=A8?= =?UTF-8?q?=E5=9F=9F=E4=BB=A3=E7=90=86=EF=BC=8C=E4=BB=85=E5=9C=A8=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E8=B0=83=E8=AF=95=E5=BC=80=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 +++++- src/config/models.js | 4 +- src/router/index.js | 10 ++++ src/views/ai-call-alarm/index.vue | 77 +++++++++++++++++++++++++++++++ vue.config.js | 23 +++++++-- 5 files changed, 121 insertions(+), 7 deletions(-) create mode 100644 src/views/ai-call-alarm/index.vue diff --git a/README.md b/README.md index 6774579..f66b61b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -467,4 +467,14 @@ feature update - 心理健康 - 建模进度查询,问卷调查,心理详情汇总和心理健康抑郁,压力和疲劳详情页面 - - 增加 接口请求时带上从随手精灵传过来的token \ No newline at end of file + - 增加 接口请求时带上从随手精灵传过来的token + +## v1.0.58 +`2023.6.7` +update +- ai语音告警 + - 增加 一个ai语音呼叫中间页 + - 增加 获取long_link的接口 +- vue.config.js + - 增加 关于ai水域告警接口跨域代理设置 + - 因项目接口地址不同,发布线上时取消ai水域告警接口跨域代理,仅在本地调试开启 \ No newline at end of file diff --git a/src/config/models.js b/src/config/models.js index fd39a14..c0cd22d 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -1,11 +1,11 @@ /* * @Date: 2021-11-20 10:26:39 * @LastEditors: JinxChen - * @LastEditTime: 2023-06-01 18:06:38 + * @LastEditTime: 2023-06-07 11:25:02 * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.57F'; //版本号 +export const VERSION_MODEL = '1.0.58F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', diff --git a/src/router/index.js b/src/router/index.js index 83e6896..56885cd 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,3 +1,10 @@ +/* + * @Date: 2023-06-01 18:41:50 + * @LastEditors: JinxChen + * @LastEditTime: 2023-06-07 10:40:03 + * @FilePath: \TelpoH5FrontendWeb\src\router\index.js + * @description: + */ /* * @Date: 2023-05-30 15:37:06 * @LastEditors: JinxChen @@ -47,6 +54,9 @@ const routes = [ { path: '/psychological', name: 'psychological', component: resolve => require(['@/views/health/psychological'], resolve) }, // 健康-抑郁,压力和疲劳汇总入口 { path: '/psychologicalMain', name: 'psychologicalMain', component: resolve => require(['@/views/health/psychological-main'], resolve) }, + + // 告警详情-中间页 + { path: '/aiCallAlarm', name: 'aiCallAlarm', component: resolve => require(['@/views/ai-call-alarm'], resolve) }, ]; const router = new VueRouter({ diff --git a/src/views/ai-call-alarm/index.vue b/src/views/ai-call-alarm/index.vue new file mode 100644 index 0000000..82c5e85 --- /dev/null +++ b/src/views/ai-call-alarm/index.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/vue.config.js b/vue.config.js index 9e5efb5..d23b1c6 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2020-04-15 10:00:32 - * @LastEditTime: 2023-02-26 09:19:56 + * @LastEditTime: 2023-06-07 11:21:38 * @LastEditors: JinxChen * @Description: In User Settings Edit * @FilePath: \TelpoH5FrontendWeb\vue.config.js @@ -14,7 +14,24 @@ const pxtorem = require('postcss-pxtorem'); // 把代码中px转为rem const CompressionPlugin = require("compression-webpack-plugin"); const port = process.env.port || process.env.npm_config_port || 8080;/* 7788 */ // dev port - +const proxy = process.env.NODE_ENV === 'development' ?{ + // 调试完毕需要把这个代理注释掉,否则发布到线上会有问题产生 + /* '/api/id': { + target: 'https://id.ssjlai.com/watersoutboundapi/', + changeOrigin: true, + pathRewrite: { + '^/api/id': '' + } + }, + '/api/ai': { + target: 'https://ai.ssjlai.com/watersoutboundapi/', + changeOrigin: true, + pathRewrite: { + '^/api/ai': '' + } + } */ +} +: null; module.exports = { // 注意: 多页面配置 不再使用全路径,单页面时可以开启 publicPath: './', @@ -29,7 +46,7 @@ module.exports = { warnings: false, errors: true }, - /* proxy: proxy, */ + proxy: proxy, /* host: '192.168.3.186', */// 原为: hotst: 'localhost', 可在同一ip局域网下通过网址生成二维码的方式调试h5, 注意:调试完毕请注释 //disableHostCheck: true, //真机调试开启 },