Commit 9b7be414 authored by wangqinghua's avatar wangqinghua

notice

parent 06aa8d0a
......@@ -27,13 +27,24 @@
</ion-calendar>
<div>
<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>
</div>
</ng-container>
<ng-container *ngIf="changeType == 2">
<div class="duty-content">
<ion-list>
<ion-list *ngIf="nowDuty.length > 0">
<ion-item *ngFor="let item of nowDuty">
<div >
<span>{{item.dutyDate | date:'yyyy-MM-dd'}}</span>
......@@ -46,6 +57,9 @@
</div>
</ion-item>
</ion-list>
<ion-list *ngIf="nowDuty.length == 0">
<p text-center>暂无数据</p>
</ion-list>
</div>
</ng-container>
</ion-content>
......
......@@ -22,8 +22,12 @@ export class DutyPage {
];
swiperIndex;
changeType = 1;
dayObj;
nightObj;
dayObj = {
name:''
};
nightObj = {
name:''
};
nowDuty;
historyDuty;
options: CalendarComponentOptions = {
......
......@@ -218,6 +218,9 @@ export class HomePage {
this.isWait = false;
}
onChange(e){
console.log(e);
}
go(item) {
if (item.type == 1) {
......
This diff is collapsed.
......@@ -11,6 +11,7 @@ import {AppService} from "../../../service/appHttpService";
})
export class NoticePage {
noticeList = [];
constructor(public navCtrl: NavController, public navParams: NavParams,
public appService:AppService) {
}
......@@ -19,7 +20,7 @@ export class NoticePage {
this.appService.ObserverHttpPost("/wisdomgroup/modules/message/findAllActivityForAppWithXQ",null)
.subscribe((res: Response) => {
let data = res.json();
this.noticeList = data;
}, error => {
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