|
@@ -78,7 +78,7 @@ class Home extends React.Component {
|
|
|
openLogin = (cache) => {
|
|
|
if (!cache) {
|
|
|
cache = {
|
|
|
- BASE_URL: 'http://10.1.42.29:8090',
|
|
|
+ BASE_URL: 'http://10.1.?.29:8090',
|
|
|
Address: '/bdhealth/',
|
|
|
room: '',
|
|
|
use: '',
|
|
@@ -113,7 +113,7 @@ class Home extends React.Component {
|
|
|
console.log('Room接收消息:',data );
|
|
|
data = JSON.parse(data);
|
|
|
if (data.callMsg) {
|
|
|
- const patList = [...data.callMsg.callPat, ...data.callMsg.waitPat.map(v => {
|
|
|
+ const patList = [...data.callMsg.callPat, ...data.callMsg.waitPat.map(v => {
|
|
|
return { ...v, status: 'waiting' };
|
|
|
})];
|
|
|
const { roomObj } = this.state;
|
|
@@ -170,7 +170,7 @@ class Home extends React.Component {
|
|
|
this.setState({
|
|
|
userData: data?.result[0] || {},
|
|
|
// https://172.16.1.6/images/hoslogo/H02.png 医院logo
|
|
|
- hosLogo: `/images/hoslogo/${data?.result[0]?.hospCode}.png`
|
|
|
+ hosLogo: `/images/hoslogo/${data?.result[0]?.hospCode}.png`
|
|
|
});
|
|
|
if (obj[data.code]) {
|
|
|
this.setState({
|
|
@@ -197,19 +197,19 @@ class Home extends React.Component {
|
|
|
deviceID={this.state.deviceID}
|
|
|
/>
|
|
|
{/* 医生诊室呼叫 */}
|
|
|
- {this.state.showType == 'doctor'
|
|
|
+ {this.state.showType == 'doctor'
|
|
|
? <DoctorScreen
|
|
|
userData={this.state.userData}
|
|
|
patList={this.state.patList}
|
|
|
hosLogo={this.state.hosLogo}
|
|
|
/>
|
|
|
: this.state.showType == 'operate'
|
|
|
- ? < OperateScreen
|
|
|
+ ? < OperateScreen
|
|
|
patList={this.state.waitPat}
|
|
|
userData={this.state.userData}
|
|
|
hosLogo={this.state.hosLogo}
|
|
|
/>
|
|
|
- : < BigScreen
|
|
|
+ : < BigScreen
|
|
|
userData={this.state.userData}
|
|
|
patListArea={this.state.patListArea}
|
|
|
delayPat={this.state.delayPat}
|