From e10372f5ab87277f27c3032ca10d19ef8bc84dae Mon Sep 17 00:00:00 2001 From: SHICHAO <17568097882@163.com> Date: Sat, 26 Aug 2023 11:07:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85ws=E6=9C=8D=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9ws=E5=9C=B0=E5=9D=80=E8=AF=B7=E5=88=B0utils?= =?UTF-8?q?=E4=B8=8B=E9=9D=A2=E7=9A=84websocketApi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 10 +- .env.prod | 14 +- src/utils/websocketApi.js | 3 + src/views/home/widget/callcenter.vue | 452 ++++++++++++------------- src/views/home/widget/fireclues.vue | 4 +- src/views/home/widget/reportlist.vue | 5 +- src/views/home/widget/socketdiabox.vue | 4 +- 7 files changed, 239 insertions(+), 253 deletions(-) create mode 100644 src/utils/websocketApi.js diff --git a/.env.dev b/.env.dev index bd4f016..06d322e 100644 --- a/.env.dev +++ b/.env.dev @@ -1,12 +1,10 @@ NODE_ENV = development # 正式服务器 -#VUE_APP_BASE_API =http://223.99.16.253:9001/api -#VUE_APP_BASE_IMG_URL =http://223.99.16.253:9001 -# APP_BASE_WS_URL = ws://221.2.83.254:9002/ws +VUE_APP_BASE_API =http://221.2.83.254:9001/api +VUE_APP_BASE_IMG_URL =http://221.2.83.254:9001 # 测试服务区 -VUE_APP_BASE_API = http://123.132.248.154:9224/api -VUE_APP_BASE_IMG_URL = http://123.132.248.154:9224 -APP_BASE_WS_URL = ws://123.132.248.154:9225/ws +# VUE_APP_BASE_API = http://123.132.248.154:9224/api +# VUE_APP_BASE_IMG_URL = http://123.132.248.154:9224 diff --git a/.env.prod b/.env.prod index 19b0857..7ce565b 100644 --- a/.env.prod +++ b/.env.prod @@ -1,10 +1,8 @@ NODE_ENV = production -#VUE_APP_BASE_API = http://192.168.10.123:9159/api -#VUE_APP_BASE_IMG_URL = http://192.168.10.123:9159 - -#VUE_APP_BASE_API = http://123.132.248.154:9224/api -#VUE_APP_BASE_IMG_URL = http://123.132.248.154:9224 - -VUE_APP_BASE_API = http://123.132.248.154:9223/api -VUE_APP_BASE_IMG_URL = http://123.132.248.154:9223 +# 正式服务器 +VUE_APP_BASE_API =http://221.2.83.254:9001/api +VUE_APP_BASE_IMG_URL =http://221.2.83.254:9001 +# 测试服务区 +# VUE_APP_BASE_API = http://123.132.248.154:9224/api +# VUE_APP_BASE_IMG_URL = http://123.132.248.154:9224 diff --git a/src/utils/websocketApi.js b/src/utils/websocketApi.js new file mode 100644 index 0000000..d8dd712 --- /dev/null +++ b/src/utils/websocketApi.js @@ -0,0 +1,3 @@ +const WS_URL_PRODUCTION = 'ws://221.2.83.254:9002/ws' +// const WS_URL_PRODUCTION = 'ws://123.132.248.154:9225/ws' +export const WS_URL = WS_URL_PRODUCTION diff --git a/src/views/home/widget/callcenter.vue b/src/views/home/widget/callcenter.vue index edcd068..f2ac531 100644 --- a/src/views/home/widget/callcenter.vue +++ b/src/views/home/widget/callcenter.vue @@ -1,274 +1,260 @@ \ No newline at end of file + diff --git a/src/views/home/widget/fireclues.vue b/src/views/home/widget/fireclues.vue index 7898792..b27ea56 100644 --- a/src/views/home/widget/fireclues.vue +++ b/src/views/home/widget/fireclues.vue @@ -25,7 +25,7 @@