This commit is contained in:
2023-11-13 11:50:42 +08:00
parent ac8d8ed292
commit 82cbe35f26
6 changed files with 29 additions and 3 deletions

11
api/socketurl.js Normal file
View File

@ -0,0 +1,11 @@
var socketurl = "ws://8.131.93.145:54010/webSocket/";
var dzsocketurl = "ws://112.6.122.71:8009/fd/webSocket/"; // SN码设备德州
var dysocketurl = "ws://218.58.213.15:8009/fd/webSocket/"; // SN码设备东营
export {
socketurl,
dzsocketurl,
dysocketurl
}

View File

@ -31,6 +31,10 @@
import { import {
savehr savehr
} from '@/api/examinationapi/add.js' } from '@/api/examinationapi/add.js'
import {
dzsocketurl,
dysocketurl
} from '@/api/socketurl.js'
export default { export default {
data() { data() {
return { return {

View File

@ -52,6 +52,10 @@
import { import {
bound, bound,
} from '@/api/examinationapi/add.js' } from '@/api/examinationapi/add.js'
import {
dzsocketurl,
dysocketurl
} from '@/api/socketurl.js'
export default { export default {
data() { data() {
return { return {

View File

@ -48,6 +48,10 @@
import { import {
bound, bound,
} from '@/api/examinationapi/add.js' } from '@/api/examinationapi/add.js'
import {
dzsocketurl,
dysocketurl
} from '@/api/socketurl.js'
export default { export default {
data() { data() {
return { return {

View File

@ -83,12 +83,15 @@
markRead markRead
} from '@/api/pagesC/seekadvicefrom/seekadvicefrom.js'; } from '@/api/pagesC/seekadvicefrom/seekadvicefrom.js';
import baseurl from '@/api/baseurl.js' import baseurl from '@/api/baseurl.js'
import {
socketurl
} from '@/api/socketurl.js'
export default { export default {
data() { data() {
return { return {
baseurl: '', baseurl: '',
title: '', title: '',
SOCKETURL: 'ws://8.131.93.145:54010/webSocket/', SOCKETURL: '',
socketOpen: false, socketOpen: false,
sendInfo: {}, sendInfo: {},
currentItem: '', currentItem: '',
@ -157,7 +160,7 @@
this.currentItem = JSON.parse(options.item) this.currentItem = JSON.parse(options.item)
this.title = this.currentItem.doctorName // this.title = this.currentItem.doctorName //
this.userName = this.currentItem.patientName this.userName = this.currentItem.patientName
this.SOCKETURL = this.SOCKETURL + this.currentItem.patientId this.SOCKETURL = socketurl + this.currentItem.patientId
this.getPageHistory() this.getPageHistory()
this.scoket() this.scoket()
}, },