|
@@ -17,6 +17,7 @@ class BigScreen extends React.Component {
|
|
|
}
|
|
|
componentDidMount() {
|
|
|
this.initDate();
|
|
|
+ this.initRoom();
|
|
|
}
|
|
|
componentDidUpdate(prev) {
|
|
|
if (prev.patListArea != this.props.patListArea) {
|
|
@@ -25,6 +26,20 @@ class BigScreen extends React.Component {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+ // 叫号的诊室数据默认
|
|
|
+ initRoom = () => {
|
|
|
+ React.$fetchPost('04150020', {
|
|
|
+ params: [{
|
|
|
+ locID: '2068',
|
|
|
+ }],
|
|
|
+ }, true).then((data) => {
|
|
|
+ if (data) {
|
|
|
+ this.setState({
|
|
|
+ patList: data.result,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ };
|
|
|
initDate = () => {
|
|
|
this.setState({
|
|
|
dateStr: initDate(),
|