Commit 84e92438 authored by wangqinghua's avatar wangqinghua

update

parent b7c48a38
...@@ -133,12 +133,44 @@ ...@@ -133,12 +133,44 @@
<span>根据{{infoObj.filenumber}}文事业单位建制撤销</span> <span>根据{{infoObj.filenumber}}文事业单位建制撤销</span>
</div> </div>
</div> </div>
<ion-item> <p>人员信息情况</p>
<ion-label class="item-left"> <div class="item-box">
人员信息情况 <div class="left">管理岗位(参公)</div>
</ion-label> <div (click)="openDetail('管理岗位(参公)')" class="choose right">
<ion-label (click)="openDetail()" class="choose">详情</ion-label> 详情
</ion-item> </div>
</div>
<div class="item-box">
<div class="left">管理岗位(非参公)</div>
<div (click)="openDetail('管理岗位(非参公)')" class="choose right">
详情
</div>
</div>
<div class="item-box">
<div class="left">专业技术岗位</div>
<div (click)="openDetail('专业技术岗位')" class="choose right">
详情
</div>
</div>
<div class="item-box">
<div class="left">工勤技能岗位</div>
<div (click)="openDetail('工勤技能岗位')" class="choose right">
详情
</div>
</div>
<div class="item-box">
<div class="left">按学历、年龄分布</div>
<div (click)="openDetail('按学历、年龄分布')" class="choose right">
详情
</div>
</div>
<div class="item-box">
<div class="left">工龄结构</div>
<div (click)="openDetail('工龄结构')" class="choose right">
详情
</div>
</div>
<p>年度报告情况</p> <p>年度报告情况</p>
<div> <div>
<ng-container *ngFor="let year of infoObj?.ndbgUnitList"> <ng-container *ngFor="let year of infoObj?.ndbgUnitList">
......
...@@ -51,8 +51,8 @@ export class InfoDetailPage { ...@@ -51,8 +51,8 @@ export class InfoDetailPage {
) )
} }
openDetail() { openDetail(title) {
let modalCtrl = this.modalCtrl.create(PersonInfoPage, {item: this.personInfo}, { let modalCtrl = this.modalCtrl.create(PersonInfoPage, {item: this.personInfo, title: title}, {
enterAnimation: 'modal-from-right-enter', enterAnimation: 'modal-from-right-enter',
leaveAnimation: 'modal-from-right-leave' leaveAnimation: 'modal-from-right-leave'
}); });
......
...@@ -4,6 +4,10 @@ page-person-info { ...@@ -4,6 +4,10 @@ page-person-info {
width: 80%; width: 80%;
} }
.data-list {
padding: 10px;
}
table { table {
width: 100%; width: 100%;
...@@ -15,7 +19,6 @@ page-person-info { ...@@ -15,7 +19,6 @@ page-person-info {
} }
.table { .table {
height: 177px;
overflow: hidden; overflow: hidden;
transition: all 1s; transition: all 1s;
} }
......
...@@ -7,26 +7,31 @@ import {IonicPage, NavController, NavParams} from 'ionic-angular'; ...@@ -7,26 +7,31 @@ import {IonicPage, NavController, NavParams} from 'ionic-angular';
}) })
export class PersonInfoPage { export class PersonInfoPage {
title;
personInfo; personInfo;
list = { list = {
age_segment: [ age_segment: {},
{POSTLEVEL_CN:"博士研究生",NUM:'0'}, postLevel: {},
{POSTLEVEL_CN:"硕士研究生",NUM:'0'}, postLevel_Leader: {},
{POSTLEVEL_CN:"本科",NUM:'0'}, workage_segment: {},
{POSTLEVEL_CN:"大专",NUM:'0'},
{POSTLEVEL_CN:"中专",NUM:'0'},
{POSTLEVEL_CN:"高中",NUM:'0'},
{POSTLEVEL_CN:"初中",NUM:'0'},
{POSTLEVEL_CN:"其他",NUM:'0'},
],
postLevel: [],
postLevel_Leader: [],
retiredPerson: [],
workage_segment: [],
} }
constructor(public navCtrl: NavController, public navParams: NavParams) { constructor(public navCtrl: NavController, public navParams: NavParams) {
this.personInfo = this.navParams.get('item'); this.personInfo = this.navParams.get('item');
this.title = this.navParams.get('title');
this.personInfo.postLevel.forEach(e => {
this.list.postLevel[e.POSTLEVEL_CN] = e.NUM;
})
this.personInfo.postLevel_Leader.forEach(e => {
this.list.postLevel_Leader[e.POSTLEVEL_LEADER_CN] = e.NUM;
})
this.personInfo.age_segment.forEach(e => {
this.list.age_segment[`${e.EDUCATION_CN}_${e.AGE_SEGMENT_CN}`] = e.NUM;
})
this.personInfo.workage_segment.forEach(e => {
this.list.workage_segment[`${e.EDUCATION_CN}_${e.WORKAGE_SEGMENT_CN}`] = e.NUM;
})
console.log(this.list);
} }
ionViewDidLoad() { ionViewDidLoad() {
......
...@@ -91,4 +91,9 @@ ...@@ -91,4 +91,9 @@
</ng-container> </ng-container>
</ng-container> </ng-container>
</div> </div>
<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
<ion-infinite-scroll-content
loadingSpinner="bubbles"
loadingText="加载中"></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-content> </ion-content>
...@@ -17,6 +17,12 @@ export class NewsPage { ...@@ -17,6 +17,12 @@ export class NewsPage {
dqtxList = []; dqtxList = [];
rgtxList = []; rgtxList = [];
dbPage = {
page: 1,
limit: 10
};
total = 0;
constructor(public navCtrl: NavController, public navParams: NavParams, constructor(public navCtrl: NavController, public navParams: NavParams,
private newSer: NewsService) { private newSer: NewsService) {
} }
...@@ -25,11 +31,12 @@ export class NewsPage { ...@@ -25,11 +31,12 @@ export class NewsPage {
this.getList(); this.getList();
const data = { const data = {
page: 1, page: 1,
limit: 10 limit: 1000
} }
this.newSer.dqtxList(data).subscribe( this.newSer.dqtxList(this.dbPage).subscribe(
(res) => { (res) => {
this.dqtxList = res.dqtxList; this.dqtxList = res.dqtxList;
this.total = res.pageable.totalSize;
} }
) )
this.newSer.rgtxList(data).subscribe( this.newSer.rgtxList(data).subscribe(
...@@ -63,8 +70,23 @@ export class NewsPage { ...@@ -63,8 +70,23 @@ export class NewsPage {
this.navCtrl.push(DealDetailPage, {"item": data}); this.navCtrl.push(DealDetailPage, {"item": data});
} }
switchType(){ switchType() {
}
doInfinite(event) {
if (this.total == this.dqtxList.length) {
event.enable(false);
return false;
}
this.dbPage.page++;
this.newSer.dqtxList(this.dbPage).subscribe(
(res) => {
if (event) event.complete();
this.dqtxList = this.dqtxList.concat(res.dqtxList);
this.total = res.pageable.totalSize;
}
)
} }
} }
...@@ -100,7 +100,7 @@ export class TabsPage { ...@@ -100,7 +100,7 @@ export class TabsPage {
"flow": "0", "flow": "0",
"areaCode": this.globle.userObj.area, "areaCode": this.globle.userObj.area,
"page": "1", "page": "1",
"limit": "10000" "limit": "10"
}; };
this.dealSer.searchSchedule(data).subscribe( this.dealSer.searchSchedule(data).subscribe(
(res) => { (res) => {
......
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