Commit 5a604482 authored by wangqinghua's avatar wangqinghua

信息查询

parent 35b9ac41
npm install ionic serve ionic build --prod cordova build android --release xxxx data-wow-duration: Change the animation duration data-wow-delay: Delay before the animation starts data-wow-offset: Distance to start the animation (related to the browser bottom) data-wow-iteration: Number of times the animation is repeated jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk shreg shregshreg
\ No newline at end of file
npm install ionic serve ionic build --prod cordova build android --release xxxx data-wow-duration: Change the animation duration data-wow-delay: Delay before the animation starts data-wow-offset: Distance to start the animation (related to the browser bottom) data-wow-iteration: Number of times the animation is repeated jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk shreg shregshreg 18521524378 qweasd123
\ No newline at end of file
......
......@@ -7,7 +7,11 @@
"proxies": [
{
"path": "/shfrdj",
"proxyUrl": "http://61.152.117.206/shfrdj"
"proxyUrl": "http://218.242.131.175/shfrdj"
},
{
"path": "/shfrdjweb",
"proxyUrl": "http://218.242.131.175/shfrdjweb"
}
]
}
import * as Mock from 'mockjs'; export const SERVER_API_URL = '/shfrdj';// export const SERVER_API_URL = 'http://61.152.117.206/shfrdj'; Mock.setup( { timeout:50, } ); export const institutionalNature = [ {label:'挂牌机构',value:'8'}, {label:'内设机构',value:'7'}, {label:'派驻机关',value:'6'}, {label:'派出机构',value:'5'}, {label:'分支机构',value:'4'}, {label:'临时机构',value:'3'}, {label:'议事协调机构',value:'2'}, {label:'挂靠机构',value:'1'}, ]
\ No newline at end of file
import * as Mock from 'mockjs'; // export const SERVER_API_URL = '/shfrdj'; export const SERVER_API_URL = 'http://218.242.131.175/shfrdj'; // export const SERVER_API_WEB = 'shfrdjweb'; export const SERVER_API_WEB = 'http://218.242.131.175/shfrdjweb'; Mock.setup( { timeout:50, } ); export const institutionalNature = [ {label:'挂牌机构',value:'8'}, {label:'内设机构',value:'7'}, {label:'派驻机关',value:'6'}, {label:'派出机构',value:'5'}, {label:'分支机构',value:'4'}, {label:'临时机构',value:'3'}, {label:'议事协调机构',value:'2'}, {label:'挂靠机构',value:'1'}, ]
\ No newline at end of file
......
......@@ -35,6 +35,10 @@
<img src="./assets/imgs/sjbb.png">
<p>数据报表</p>
</div>
<div class="card" (click)="goToInfo()">
<img src="./assets/imgs/sjbb.png">
<p>信息查询</p>
</div>
</div>
<div class="echart-data">
<div class="echart-title">
......
......@@ -8,6 +8,8 @@ import {ContactListPage} from "./contact-list/contact-list";
import {ContactDetailPage} from "./contact-detail/contact-detail";
import {DoSupervisePage} from "./do-supervise/do-supervise";
import {DoVerityPage} from "./do-verity/do-verity";
import {InfoDetailPage} from "./report-info/info-detail/info-detail";
import {InfoListPage} from "./report-info/info-list/info-list";
@NgModule({
declarations: [
......@@ -18,6 +20,8 @@ import {DoVerityPage} from "./do-verity/do-verity";
ContactDetailPage,
DoSupervisePage,
DoVerityPage,
InfoDetailPage,
InfoListPage,
],
imports: [
IonicPageModule.forChild(HomePage),
......@@ -30,6 +34,8 @@ import {DoVerityPage} from "./do-verity/do-verity";
ContactDetailPage,
DoSupervisePage,
DoVerityPage,
InfoDetailPage,
InfoListPage,
]
})
export class HomeModule {
......
......@@ -13,11 +13,13 @@ page-home {
display: flex;
align-items: center;
background-color: #fff;
flex-wrap: wrap;
padding: 10px 0;
> div {
width: 25%;
text-align: center;
padding: 25px 0;
padding-top: 25px;
img {
width: 30px;
......
import {HttpClient} from "@angular/common/http";import {Injectable} from "@angular/core";import {Observable} from "rxjs/Observable";import {SERVER_API_URL} from "../../app/app.constants";import {HTTP} from "@ionic-native/http";import {DataFormatService} from "../../core/dataFormat.service"; @Injectable()export class HomeService { constructor(private http: HttpClient, private nativeHttp: HTTP, private dataFormat: DataFormatService) { } //单位信息总揽 units(data): Observable<any> { return this.http.post(SERVER_API_URL + '/statis/units.do', data); } //通讯录 getOrgList(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/addressinfo.do',data); } //部门人员 getPersonList(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/getPersonList.do',data); } //事项督办 searchDb(data): Observable<any> { return this.http.post(SERVER_API_URL + '/schedule/search_db.do', data); } //督办操作 dbSuper(data): Observable<any> { return this.http.post(SERVER_API_URL + '/schedule/super.do', data); } //获取附件信息接口 fileAttach(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/Attach.do', data); } //获取系统中区划信息的接口 getArea(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/area.do', data); } //实名制上报率排行榜 shangbaolv(data): Observable<any> { return this.http.post(SERVER_API_URL + '/statis/shangbaolv.do', data); } }
\ No newline at end of file
import {HttpClient} from "@angular/common/http";import {Injectable} from "@angular/core";import {Observable} from "rxjs/Observable";import {SERVER_API_URL, SERVER_API_WEB} from "../../app/app.constants";import {HTTP} from "@ionic-native/http";import {DataFormatService} from "../../core/dataFormat.service"; @Injectable()export class HomeService { constructor(private http: HttpClient, private nativeHttp: HTTP, private dataFormat: DataFormatService) { } //单位信息总揽 units(data): Observable<any> { return this.http.post(SERVER_API_URL + '/statis/units.do', data); } //通讯录 getOrgList(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/addressinfo.do',data); } //部门人员 getPersonList(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/getPersonList.do',data); } //事项督办 searchDb(data): Observable<any> { return this.http.post(SERVER_API_URL + '/schedule/search_db.do', data); } //督办操作 dbSuper(data): Observable<any> { return this.http.post(SERVER_API_URL + '/schedule/super.do', data); } //获取附件信息接口 fileAttach(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/Attach.do', data); } //获取系统中区划信息的接口 getArea(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/area.do', data); } //实名制上报率排行榜 shangbaolv(data): Observable<any> { return this.http.post(SERVER_API_URL + '/statis/shangbaolv.do', data); } //事业单位信息查询 unitfind(data): Observable<any> { return this.http.post(SERVER_API_WEB + '/infomation/unitfind.do', data); } //机关群团信息查询 creditorgan(data): Observable<any> { return this.http.post(SERVER_API_WEB + '/infomation/creditorgan.do', data); } }
\ No newline at end of file
......
......@@ -15,6 +15,7 @@ import {DataReportPage} from "./data-report/data-report";
import {PersonPage} from "../mine/person/person";
import {GlobalData} from "../../core/GlobleData";
import {DatePipe} from "@angular/common";
import {InfoListPage} from "./report-info/info-list/info-list";
@Component({
selector: 'page-home',
......@@ -143,6 +144,11 @@ export class HomePage {
this.navCtrl.push(DataReportPage);
}
//信息查询
goToInfo() {
this.navCtrl.push(InfoListPage)
}
goToPersonInfo() {
this.navCtrl.push(PersonPage)
}
......
<ion-header>
<ion-navbar>
<ion-title>信息查询</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<div class="content">
<ng-container *ngIf="type == 1">
<div class="item-box">
<div class="left">统一社会信用代码:</div>
<div class="right">
<span>{{ infoObj.xydm || '-'}}</span>
</div>
</div>
<div class="item-box">
<div class="left">单位名称:</div>
<div class="right">
<span>{{ infoObj.mc || '-'}}</span>
</div>
</div>
<div class="item-box">
<div class="left">宗旨和业务范围:</div>
<div class="right">
<span>{{ infoObj.zzyw || '-'}}</span>
</div>
</div>
<div class="item-box">
<div class="left">住所:</div>
<div class="right">
<span>{{ infoObj.txdz || '-'}}</span>
</div>
</div>
<div class="item-box">
<div class="left">法定代表人:</div>
<div class="right">
<span>{{ infoObj.frmc || '-'}}</span>
</div>
</div>
<div class="item-box">
<div class="left">经费来源:</div>
<div class="right">
<span>{{ infoObj.jfxsLabel || '-'}}</span>
</div>
</div>
<div class="item-box">
<div class="left">开办资金:</div>
<div class="right">
<span>{{ infoObj.kbzj || '-'}}万元</span>
</div>
</div>
<div class="item-box">
<div class="left">举办单位:</div>
<div class="right">
<span>{{ infoObj.zgbm || '-'}}</span>
</div>
</div>
<div class="item-box">
<div class="left">证书有效期:</div>
<div class="right">
<span>{{ infoObj.printStartTimeStr }} -- {{ infoObj.printEndTimeStr }}</span>
</div>
</div>
<div class="item-box">
<div class="left">原事证号:</div>
<div class="right">
<span>{{ infoObj.zsh || '-'}}</span>
</div>
</div>
</ng-container>
<ng-container *ngIf="type == 2">
<div class="item-box">
<div class="left">机构名称:</div>
<div class="right">
<span>{{infoObj?.name || "-"}}</span>
</div>
</div>
<div class="item-box">
<div class="left">机构性质:</div>
<div class="right">
<span>{{infoObj?.jgxzStr || "-"}}</span>
</div>
</div>
<div class="item-box">
<div class="left">机构地址:</div>
<div class="right">
<span>{{infoObj?.jgdz || "-"}}</span>
</div>
</div>
<div class="item-box">
<div class="left">出生年月:</div>
<div class="right">
<span>{{infoObj?.birthday || "-"}}</span>
</div>
</div>
<div class="item-box">
<div class="left">负责人:</div>
<div class="right">
<span>{{infoObj?.fzr || "-"}}</span>
</div>
</div>
<div class="item-box">
<div class="left">统一社会信用代码:</div>
<div class="right">
<span>{{infoObj?.xydm || "-"}}</span>
</div>
</div>
<div class="item-box">
<div class="left">颁发日期:</div>
<div class="right">
<span>{{infoObj?.issueDateStr || "-"}}</span>
</div>
</div>
</ng-container>
</div>
</ion-content>
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {HomeService} from "../../home.service";
@Component({
selector: 'page-info-detail',
templateUrl: 'info-detail.html',
})
export class InfoDetailPage {
type = 1;
infoObj;
constructor(public navCtrl: NavController, public navParams: NavParams,
private homeSer: HomeService) {
this.infoObj = this.navParams.get('obj');
this.type = this.navParams.get('type');
}
ionViewDidLoad() {
console.log('ionViewDidLoad InfoDetailPage');
}
}
<ion-header>
<ion-navbar>
<ion-title>信息查询</ion-title>
<ion-buttons end>
<button ion-button icon-only class="toolbar-signUp">
<ion-select [(ngModel)]="option.type" cancelText="取消" okText="确定" placeholder="选择"
(ngModelChange)="getList()">
<ng-container *ngFor="let item of option.list">
<ion-option [value]="item.type">{{item.name}}</ion-option>
</ng-container>
</ion-select>
</button>
</ion-buttons>
</ion-navbar>
<ion-navbar class="input-search">
<div class="search-input">
<ion-input type="text" placeholder="请输入社会信用代码或者单位名称" [(ngModel)]="info.search"></ion-input>
<span class="clear" tappable (click)="getList()">搜索</span>
</div>
</ion-navbar>
</ion-header>
<ion-content>
<ion-refresher (ionRefresh)="getList($event)">
<ion-refresher-content pullingText="下拉刷新"
refreshingSpinner="bubbles">
</ion-refresher-content>
</ion-refresher>
<div class="list">
<div *ngFor="let item of info.list" (click)="goToDetail(item)">
<div class="group">
<div class="inner-group">
<p *ngIf="option.viewType == '1'" class="person-name">{{item?.mc}}</p>
<p *ngIf="option.viewType == '2'" class="person-name">{{item?.name}}</p>
</div>
</div>
</div>
</div>
<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
<ion-infinite-scroll-content
loadingSpinner="bubbles"
loadingText="加载中"></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-content>
page-info-list {
.infinite-loading {
}
.search-input {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 95%;
margin-left: 5px;
ion-input {
border-bottom: 1px solid #ffffff;
background-color: #fff;
border-radius: 5px;
height: 40px;
padding-left: 10px;
margin-right: 5px;
}
}
ion-select {
max-width: 100%;
position: relative;
color: #333333;
font-size: 14px;
z-index: 999;
.item-cover {
right: 0;
}
}
.searchbar-fixed {
display: flex;
align-items: center;
width: 100%;
background-color: #fff;
> div:first-child {
width: 60%;
}
> div:last-child {
width: 40%;
}
}
.list {
background-color: #fff;
> div {
padding: 20px 10px;
}
> div + div {
border-top: 1px solid #dddddd;
}
}
.group {
display: flex;
flex-direction: row;
align-items: center;
box-sizing: border-box;
}
.toolbar-signUp {
.signUp-span {
color: #fff;
font-size: 1.5rem;
padding: 2px 5px;
border-radius: 4px;
position: relative;
}
.signUp-span::after {
content: '';
position: absolute;
right: 0px;
top: 1px;
height: 15px;
width: 1px;
background-color: #fff;
}
ion-icon.iconfont {
color: #ffffff;
font-size: 1.5rem;
line-height: .1;
margin-right: -.3rem;
}
}
.header-ios .toolbar-ios:first-child .toolbar-background-ios {
background-color: #5991CA;
border: none;
}
.input-search > .toolbar-background-ios {
background-image: linear-gradient(to bottom, #5991CA, #d0e8fb);
}
}
import {Component} from '@angular/core';
import {IonicPage, LoadingController, NavController, NavParams} from 'ionic-angular';
import {HomeService} from "../../home.service";
import {InfoDetailPage} from "../info-detail/info-detail";
@Component({
selector: 'page-info-list',
templateUrl: 'info-list.html',
})
export class InfoListPage {
option = {
type: '1',
viewType: '1', //增加用户体验的
list: [ //默认事业单位
{name: "事业单位", type: '1'},
{name: "机关群团", type: '2'},
]
};
info = {
list: [],
page: 1,
limit: 20,
search: '',
totalCount: null
};
constructor(public navCtrl: NavController, public navParams: NavParams,
private loadCtrl: LoadingController, private homeSer: HomeService) {
}
ionViewDidLoad() {
this.getList();
}
getList(event?: any) {
this.option.type === '1' ? this.getUnit(event) : this.getCreditor(event);
}
//机关群团
getCreditor(event?: any) {
const loadCtrl = this.loadCtrl.create();
loadCtrl.present();
this.info.page = 1;
const data = {
search: this.info.search,
page: this.info.page,
limit: this.info.limit,
type: '2',
"areacode": "",
"openid": ""
};
this.homeSer.creditorgan(data).subscribe(
(res) => {
loadCtrl.dismiss();
if (event) event.complete();
this.option.viewType = '2';
this.info.list = res.page.list.object;
this.info.totalCount = res.page.totalCount;
}
)
}
//事业单位
getUnit(event?: any) {
const loadCtrl = this.loadCtrl.create();
loadCtrl.present();
this.info.page = 1;
const data = {
search: this.info.search,
page: this.info.page,
limit: this.info.limit,
type: '1',
"areacode": "",
"openid": ""
};
this.homeSer.unitfind(data).subscribe(
(res) => {
loadCtrl.dismiss();
if (event) event.complete();
this.option.viewType = '1';
this.info.list = res.page.list.object;
this.info.totalCount = res.page.totalCount;
}
)
}
//加载更多
doInfinite(event) {
this.option.type === '1' ? this.getMoreUnit(event) : this.getMoreCreditor(event);
}
getMoreUnit(event) {
if (this.info.totalCount == this.info.list.length) {
event.enable(false);
return false;
}
this.info.page++;
const data = {
search: this.info.search,
page: this.info.page,
limit: this.info.limit,
type: '1',
"areacode": "",
"openid": ""
};
this.homeSer.unitfind(data).subscribe(
(res) => {
if (event) event.complete();
this.info.list = this.info.list.concat(res.page.list.object);
this.info.totalCount = res.page.totalCount;
}
)
}
getMoreCreditor(event) {
if (this.info.totalCount == this.info.list.length) {
event.enable(false);
return false;
}
this.info.page++;
const data = {
search: this.info.search,
page: this.info.page,
limit: this.info.limit,
type: '2',
"areacode": "",
"openid": ""
};
this.homeSer.creditorgan(data).subscribe(
(res) => {
if (event) event.complete();
this.info.list = this.info.list.concat(res.page.list.object);
this.info.totalCount = res.page.totalCount;
}
)
}
//查询详情
goToDetail(item) {
this.navCtrl.push(InfoDetailPage, {obj: item, type: this.option.type});
}
}
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