Commit 9b7be414 authored by wangqinghua's avatar wangqinghua

notice

parent 06aa8d0a
...@@ -27,13 +27,24 @@ ...@@ -27,13 +27,24 @@
</ion-calendar> </ion-calendar>
<div> <div>
<ion-item> <ion-item>
<span></span> <p>
<span>白班</span>
<span *ngIf="dayObj.name" float-right>{{dayObj.name}}</span>
<span *ngIf="!dayObj.name" float-right>暂无</span>
</p>
</ion-item>
<ion-item>
<p>
<span>夜班</span>
<span *ngIf="nightObj.name" float-right>{{nightObj.name}}</span>
<span *ngIf="!nightObj.name" float-right>暂无</span>
</p>
</ion-item> </ion-item>
</div> </div>
</ng-container> </ng-container>
<ng-container *ngIf="changeType == 2"> <ng-container *ngIf="changeType == 2">
<div class="duty-content"> <div class="duty-content">
<ion-list> <ion-list *ngIf="nowDuty.length > 0">
<ion-item *ngFor="let item of nowDuty"> <ion-item *ngFor="let item of nowDuty">
<div > <div >
<span>{{item.dutyDate | date:'yyyy-MM-dd'}}</span> <span>{{item.dutyDate | date:'yyyy-MM-dd'}}</span>
...@@ -46,6 +57,9 @@ ...@@ -46,6 +57,9 @@
</div> </div>
</ion-item> </ion-item>
</ion-list> </ion-list>
<ion-list *ngIf="nowDuty.length == 0">
<p text-center>暂无数据</p>
</ion-list>
</div> </div>
</ng-container> </ng-container>
</ion-content> </ion-content>
......
...@@ -22,8 +22,12 @@ export class DutyPage { ...@@ -22,8 +22,12 @@ export class DutyPage {
]; ];
swiperIndex; swiperIndex;
changeType = 1; changeType = 1;
dayObj; dayObj = {
nightObj; name:''
};
nightObj = {
name:''
};
nowDuty; nowDuty;
historyDuty; historyDuty;
options: CalendarComponentOptions = { options: CalendarComponentOptions = {
......
...@@ -218,6 +218,9 @@ export class HomePage { ...@@ -218,6 +218,9 @@ export class HomePage {
this.isWait = false; this.isWait = false;
} }
onChange(e){
console.log(e);
}
go(item) { go(item) {
if (item.type == 1) { if (item.type == 1) {
......
This diff is collapsed.
...@@ -11,6 +11,7 @@ import {AppService} from "../../../service/appHttpService"; ...@@ -11,6 +11,7 @@ import {AppService} from "../../../service/appHttpService";
}) })
export class NoticePage { export class NoticePage {
noticeList = [];
constructor(public navCtrl: NavController, public navParams: NavParams, constructor(public navCtrl: NavController, public navParams: NavParams,
public appService:AppService) { public appService:AppService) {
} }
...@@ -19,7 +20,7 @@ export class NoticePage { ...@@ -19,7 +20,7 @@ export class NoticePage {
this.appService.ObserverHttpPost("/wisdomgroup/modules/message/findAllActivityForAppWithXQ",null) this.appService.ObserverHttpPost("/wisdomgroup/modules/message/findAllActivityForAppWithXQ",null)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
this.noticeList = data;
}, error => { }, error => {
this.appService.alert('网络异常!'); this.appService.alert('网络异常!');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment