Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
regManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
regManage
Commits
ebac4760
Commit
ebac4760
authored
May 06, 2020
by
wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我第一次修改的文件
parent
c85709ed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
484 additions
and
133 deletions
+484
-133
README.md
README.md
+15
-2
交接.txt
doc/交接.txt
+2
-2
construction.png
src/assets/imgs/construction.png
+0
-0
normal.png
src/assets/imgs/normal.png
+0
-0
revocation.png
src/assets/imgs/revocation.png
+0
-0
search-filter.html
src/components/search-filter/search-filter.html
+34
-9
search-filter.ts
src/components/search-filter/search-filter.ts
+76
-72
auth.interceptor.ts
src/core/auth.interceptor.ts
+121
-2
deal-detail.html
src/pages/deal/deal-detail/deal-detail.html
+1
-1
deal-detail.ts
src/pages/deal/deal-detail/deal-detail.ts
+4
-1
contact-detail.html
src/pages/home/contact-detail/contact-detail.html
+2
-2
contact-role.ts
src/pages/home/contact-role/contact-role.ts
+3
-7
contact.ts
src/pages/home/contact/contact.ts
+1
-0
data-report.html
src/pages/home/data-report/data-report.html
+33
-0
data-report.ts
src/pages/home/data-report/data-report.ts
+10
-2
home.service.ts
src/pages/home/home.service.ts
+111
-2
home.ts
src/pages/home/home.ts
+3
-4
info-detail.html
src/pages/home/report-info/info-detail/info-detail.html
+18
-6
info-detail.ts
src/pages/home/report-info/info-detail/info-detail.ts
+1
-1
info-list.html
src/pages/home/report-info/info-list/info-list.html
+18
-10
info-list.scss
src/pages/home/report-info/info-list/info-list.scss
+25
-8
info-list.ts
src/pages/home/report-info/info-list/info-list.ts
+0
-0
person-info.html
src/pages/home/report-info/person-info/person-info.html
+0
-0
person-info.ts
src/pages/home/report-info/person-info/person-info.ts
+1
-0
tabs.ts
src/pages/tabs/tabs.ts
+5
-2
No files found.
README.md
View file @
ebac4760
npm install ionic serve ionic build --prod cordova build android --release cordova-hcp build jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk shreg shregshreg 显示的菜单代码,1通讯录,2审核审批,3办理督办,4数据报表,5信息查询,6审批,7审核,8事业单位,9机关群团,10行政执法 13321810809 qweasd123
\ No newline at end of file
npm install
ionic serve
ionic build --prod
cordova build android --release
cordova-hcp build
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk shreg
shregshreg
显示的菜单代码,1通讯录,2审核审批,3办理督办,4数据报表,5信息查询,6审批,7审核(待办),8事业单位,9机关群团,10行政执法
role: 0管理员, 4办领导, 1处领导, 2工作人员, 3其他人员
13321810809
qweasd123
doc/交接.txt
View file @
ebac4760
安装依赖
安装依赖
...
...
@@ -16,7 +16,7 @@ scp -r www/ root@10.250.199.29:/usr/local/nginx/html 上传文件命令
服务器上面的前端代码目录 /usr/local/nginx/www
vi nginx.conf
查看 nginx配置:
vi nginx.conf
打包部署
1、ionic build --prod
...
...
src/assets/imgs/construction.png
0 → 100644
View file @
ebac4760
4.35 KB
src/assets/imgs/normal.png
0 → 100644
View file @
ebac4760
2.04 KB
src/assets/imgs/revocation.png
0 → 100644
View file @
ebac4760
1.96 KB
src/components/search-filter/search-filter.html
View file @
ebac4760
...
...
@@ -5,22 +5,47 @@
<div>
<p>
隶属
</p>
<span
(
click
)="
selectArea
(
item
)"
*
ngFor=
"let item of areaList"
[
ngClass
]="{'
selectItem
'
:
areaObj
?.
code =
=
item
.
cod
e
}"
>
{{item.name}}
</span>
[
ngClass
]="{'
selectItem
'
:
item
.
activ
e
}"
>
{{item.name}}
</span>
</div>
<div>
<div
*
ngIf=
"unitType == '1'"
>
<p>
行业
</p>
<span
(
click
)="
selectIndustry
(
item
)"
*
ngFor=
"let item of industryList"
[
ngClass
]="{'
selectItem
'
:
industryObj
?.
code =
=
item
.
cod
e
}"
>
{{item.name}}
</span>
[
ngClass
]="{'
selectItem
'
:
item
.
activ
e
}"
>
{{item.name}}
</span>
</div>
<div>
<p>
经费来源
</p>
<div
*
ngIf=
"unitType == '0'"
>
<p>
行业
</p>
<span
(
click
)="
selectLawIndustry
(
item
)"
*
ngFor=
"let item of lawIndustryList"
[
ngClass
]="{'
selectItem
'
:lawIndustryObj
?.
code =
=
item
.
code
}"
>
{{item.name}}
</span>
</div>
<div
*
ngIf=
"unitType == '1'"
>
<p>
经费
</p>
<span
(
click
)="
selectFunding
(
item
)"
*
ngFor=
"let item of fundingList"
[
ngClass
]="{'
selectItem
'
:fundingObj
?.
code =
=
item
.
cod
e
}"
>
{{item.name}}
</span>
[
ngClass
]="{'
selectItem
'
:
item
.
activ
e
}"
>
{{item.name}}
</span>
</div>
<div>
<p>
单位
类别
</p>
<div
*
ngIf=
"unitType == '1'"
>
<p>
单位
</p>
<span
(
click
)="
selectCause
(
item
)"
*
ngFor=
"let item of causeList"
[
ngClass
]="{'
selectItem
'
:causeObj
?.
code =
=
item
.
code
}"
>
{{item.name}}
</span>
[
ngClass
]="{'
selectItem
'
:
item
.
active
}"
>
{{item.name}}
</span>
</div>
<div
*
ngIf=
"unitType == '1'"
>
<p>
参公
</p>
<span
(
click
)="
selectMale
(
item
)"
*
ngFor=
"let item of maleList"
[
ngClass
]="{'
selectItem
'
:maleObj
?.
code =
=
item
.
code
}"
>
{{item.name}}
</span>
</div>
<div
*
ngIf=
"unitType == '0'"
>
<p>
规格
</p>
<span
(
click
)="
selectSpecifications
(
item
)"
*
ngFor=
"let item of specificationsList"
[
ngClass
]="{'
selectItem
'
:
item
.
active
}"
>
{{item.name}}
</span>
</div>
<div
*
ngIf=
"unitType == '2'"
>
<p>
性质
</p>
<span
(
click
)="
selectNature
(
item
)"
*
ngFor=
"let item of natureList"
[
ngClass
]="{'
selectItem
'
:
item
.
active
}"
>
{{item.name}}
</span>
</div>
<div
*
ngIf=
"unitType == '2'"
>
<p>
类别
</p>
<span
(
click
)="
selectCategory
(
item
)"
*
ngFor=
"let item of categoryList"
[
ngClass
]="{'
selectItem
'
:
item
.
active
}"
>
{{item.name}}
</span>
</div>
</div>
<div
class=
"footer"
>
...
...
src/components/search-filter/search-filter.ts
View file @
ebac4760
...
...
@@ -4,124 +4,128 @@ import {LoginService} from "../../pages/login/login.service";
import
{
HomeService
}
from
"../../pages/home/home.service"
;
import
{
GlobalData
}
from
"../../core/GlobleData"
;
import
{
Storage
}
from
"@ionic/storage"
;
import
{
shiftInitState
}
from
'@angular/core/src/view'
;
@
Component
({
selector
:
'search-filter'
,
templateUrl
:
'search-filter.html'
})
export
class
SearchFilterComponent
{
text
:
string
;
areaObj
;
industryObj
;
fundingObj
;
causeObj
;
specificationsObj
;
natureObj
;
categoryObj
;
maleObj
;
lawIndustryObj
;
areaList
=
[];
industryList
=
[];
fundingList
=
[];
causeList
=
[];
specificationsList
=
[];
natureList
=
[]
categoryList
=
[]
maleList
=
[{
name
:
'全部'
,
code
:
''
},{
name
:
'是'
,
code
:
'1'
},{
name
:
'否'
,
code
:
'0'
}];
lawIndustryList
=
[{
code
:
'交通'
,
name
:
'交通'
},{
code
:
'环境'
,
name
:
'环境'
},{
code
:
'文化'
,
name
:
'文化'
},{
code
:
'旅游'
,
name
:
'旅游'
},{
code
:
'民政'
,
name
:
'民政'
}]
unitType
=
''
;
constructor
(
private
viewCtrl
:
ViewController
,
private
params
:
NavParams
,
private
globle
:
GlobalData
,
private
storage
:
Storage
,
private
loginSer
:
LoginService
,
private
HomeSer
:
HomeService
)
{
// this.areaObj = this.params.get("areaObj");
this
.
getInit
()
this
.
areaObj
=
this
.
params
.
get
(
"area"
);
this
.
industryObj
=
this
.
params
.
get
(
"industry"
);
this
.
fundingObj
=
this
.
params
.
get
(
"funding"
);
this
.
causeObj
=
this
.
params
.
get
(
"cause"
);
this
.
maleObj
=
this
.
params
.
get
(
"male"
);
this
.
lawIndustryObj
=
this
.
params
.
get
(
"lawIndustry"
);
this
.
areaList
=
this
.
params
.
get
(
"areaList"
);
this
.
industryList
=
this
.
params
.
get
(
"industryList"
);
this
.
fundingList
=
this
.
params
.
get
(
"fundingList"
);
this
.
causeList
=
this
.
params
.
get
(
"causeList"
);
this
.
specificationsList
=
this
.
params
.
get
(
"specificationsList"
);
this
.
natureList
=
this
.
params
.
get
(
"natureList"
);
this
.
categoryList
=
this
.
params
.
get
(
"categoryList"
);
this
.
unitType
=
this
.
params
.
get
(
"unitType"
);
console
.
log
(
this
.
areaList
,
this
.
industryList
,
this
.
fundingList
,
this
.
causeList
,
this
.
unitType
)
}
getInit
(){
this
.
getArea
()
this
.
getIndustryList
()
this
.
getFundingList
()
this
.
getCauseList
()
//区域选择
selectArea
(
item
)
{
item
.
active
=
!
item
.
active
}
//获取区属
getArea
()
{
const
data
=
{};
this
.
loginSer
.
getArea
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
.
list
)
{
this
.
areaList
=
res
.
list
;
this
.
areaList
.
unshift
({
code
:
""
,
name
:
"全市"
})
this
.
areaList
.
splice
(
2
,
0
,
{
code
:
"-1"
,
name
:
"区属"
})
}
}
)
//行业选择
selectIndustry
(
item
)
{
item
.
active
=
!
item
.
active
}
//获取行业
getIndustryList
()
{
const
data
=
{};
this
.
HomeSer
.
getIndustryList
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
.
list
)
{
this
.
industryList
=
res
.
list
;
this
.
industryList
=
this
.
industryList
.
filter
(
x
=>
x
.
code
==
'01'
||
x
.
code
==
'04'
||
x
.
code
==
'02'
||
x
.
code
==
'03'
||
x
.
code
==
'08'
)
this
.
industryList
.
push
({
code
:
"-1"
,
name
:
"其他"
})
}
}
)
//经费来源选择
selectFunding
(
item
)
{
item
.
active
=
!
item
.
active
}
//获取经费来源
getFundingList
()
{
const
data
=
{};
this
.
HomeSer
.
getFundingList
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
.
list
)
{
this
.
fundingList
=
res
.
list
;
}
}
)
//单位类别选择
selectCause
(
item
)
{
item
.
active
=
!
item
.
active
}
//获取单位类别
getCauseList
()
{
const
data
=
{};
this
.
HomeSer
.
getCauseList
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
.
list
)
{
this
.
causeList
=
res
.
list
;
this
.
causeList
=
this
.
causeList
.
filter
(
x
=>
x
.
code
==
'1'
||
x
.
code
==
'2'
||
x
.
code
==
'3'
||
x
.
code
==
'4'
||
x
.
code
==
'5'
||
x
.
code
==
'6'
||
x
.
code
==
'7'
||
x
.
code
==
'8'
)
}
}
)
//单位类别选择 --- 单选
selectMale
(
item
)
{
this
.
maleObj
=
item
}
//区域选择
selectArea
(
value
)
{
this
.
areaObj
=
value
;
//行业选择 --- 单选
selectLawIndustry
(
item
)
{
this
.
lawIndustryObj
=
item
}
//
行业
选择
select
Industry
(
value
)
{
this
.
industryObj
=
value
;
//
规格
选择
select
Specifications
(
item
)
{
item
.
active
=
!
item
.
active
}
//
经费来源
选择
select
Funding
(
value
)
{
this
.
fundingObj
=
value
;
//
机构性质
选择
select
Nature
(
item
)
{
item
.
active
=
!
item
.
active
}
//
单位
类别选择
selectCa
use
(
value
)
{
this
.
causeObj
=
value
;
//
机构
类别选择
selectCa
tegory
(
item
)
{
item
.
active
=
!
item
.
active
}
//重置
reset
()
{
this
.
areaObj
=
null
;
this
.
industryObj
=
null
;
this
.
fundingObj
=
null
;
this
.
causeObj
=
null
;
this
.
maleObj
=
{
code
:
''
}
this
.
lawIndustryObj
=
{
code
:
''
}
this
.
areaList
.
map
(
x
=>
x
.
active
=
true
)
this
.
industryList
.
map
(
x
=>
x
.
active
=
true
)
this
.
fundingList
.
map
(
x
=>
x
.
active
=
true
)
this
.
causeList
.
map
(
x
=>
x
.
active
=
true
)
this
.
specificationsList
.
map
(
x
=>
x
.
active
=
true
)
this
.
natureList
.
map
(
x
=>
x
.
active
=
true
)
this
.
categoryList
.
map
(
x
=>
x
.
active
=
true
)
}
//确定
confirm
()
{
this
.
areaObj
=
this
.
areaList
.
filter
(
x
=>
x
.
active
)
this
.
industryObj
=
this
.
industryList
.
filter
(
x
=>
x
.
active
)
this
.
fundingObj
=
this
.
fundingList
.
filter
(
x
=>
x
.
active
)
this
.
causeObj
=
this
.
causeList
.
filter
(
x
=>
x
.
active
)
this
.
specificationsObj
=
this
.
specificationsList
.
filter
(
x
=>
x
.
active
)
this
.
natureObj
=
this
.
natureList
.
filter
(
x
=>
x
.
active
)
this
.
categoryObj
=
this
.
categoryList
.
filter
(
x
=>
x
.
active
)
const
data
=
{
area
:
this
.
areaObj
,
industry
:
this
.
industryObj
,
funding
:
this
.
fundingObj
,
cause
:
this
.
causeObj
,
specifications
:
this
.
specificationsObj
,
nature
:
this
.
natureObj
,
category
:
this
.
categoryObj
,
male
:
this
.
maleObj
,
lawIndustry
:
this
.
lawIndustryObj
,
};
console
.
log
(
data
)
this
.
viewCtrl
.
dismiss
(
data
);
}
...
...
src/core/auth.interceptor.ts
View file @
ebac4760
import
{
AlertController
,
App
,
Events
}
from
'ionic-angular'
;
import
{
HttpEvent
,
HttpHandler
,
HttpInterceptor
,
HttpRequest
,
HttpResponse
}
from
'@angular/common/http'
;
import
{
Injectable
}
from
'@angular/core'
;
import
{
Storage
}
from
'@ionic/storage'
;
import
{
Observable
}
from
'rxjs'
;
import
{
_throw
}
from
'rxjs/observable/throw'
;
import
{
CommonService
}
from
"./common.service"
;
import
{
GlobalData
}
from
"./GlobleData"
;
/** * http拦截器 增加token信息 */
@
Injectable
()
export
class
InterceptorProvider
implements
HttpInterceptor
{
constructor
(
private
storage
:
Storage
,
private
alertCtrl
:
AlertController
,
private
events
:
Events
,
private
commonSer
:
CommonService
,
private
app
:
App
,
private
globle
:
GlobalData
)
{
}
// Intercepts all HTTP requests! intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { const data = this.storage.get(''); return Observable.fromPromise(data) .mergeMap(data => { let clonedReq = this.addToken(request, data); return next.handle(clonedReq).do(res => { if (res instanceof HttpResponse) { this.message(res.body); } }, (error) => { let msg = error.message; this.errorMessage(error); // Pass the error to the caller of the function return _throw(error); }, () => { }) }); } // Adds the token to your headers if it exists private addToken(request: HttpRequest<any>, token: any) { let body; if (request.method == "POST") { body = Object.assign(request.body, {}); if (this.globle.token) { body = Object.assign(body, {"token": this.globle.token}); } if (this.globle.userObj && this.globle.userObj.userid) { body = Object.assign(body, {"userid": this.globle.userObj.userid}); } } if (token) { let clone: HttpRequest<any>; if (request.method == "POST") { clone = request.clone({ setHeaders: { // "Accept": `application/json`, 'Content-Type': `application/json;charset=UTF-8`, }, body: body }); } else { clone = request.clone({ setHeaders: { // "Accept": `application/json`, 'Content-Type': `application/json;charset=UTF-8`, }, }); } return clone; } return request; } //code message message(data) { if (data.code) { let code = data.code; if (code == "401") { this.commonSer.toast("登录已过期"); this.storage.clear(); this.events.publish('toLogin'); } else if (code == "-1") { let alert = this.alertCtrl.create({ title: "提示", // message: `${data.msg}。`, message: `网络错误`, buttons: ['确定'] }); alert.present(); } if (code == 500) { let alert = this.alertCtrl.create({ title: "提示", message: `${data.msg}。`, buttons: ['确定'] }); alert.present(); } } } //error message errorMessage(data) { if (data.status) { let code = data.status; if (code != 200) { let alert = this.alertCtrl.create({ title: "错误", message: `错误码:${code}。`, buttons: ['确定'] }); alert.present(); } } } }
\ No newline at end of file
import
{
AlertController
,
App
,
Events
}
from
'ionic-angular'
;
import
{
HttpEvent
,
HttpHandler
,
HttpInterceptor
,
HttpRequest
,
HttpResponse
}
from
'@angular/common/http'
;
import
{
Injectable
}
from
'@angular/core'
;
import
{
Storage
}
from
'@ionic/storage'
;
import
{
Observable
}
from
'rxjs'
;
import
{
_throw
}
from
'rxjs/observable/throw'
;
import
{
CommonService
}
from
"./common.service"
;
import
{
GlobalData
}
from
"./GlobleData"
;
/**
* http拦截器 增加token信息
*/
@
Injectable
()
export
class
InterceptorProvider
implements
HttpInterceptor
{
constructor
(
private
storage
:
Storage
,
private
alertCtrl
:
AlertController
,
private
events
:
Events
,
private
commonSer
:
CommonService
,
private
app
:
App
,
private
globle
:
GlobalData
)
{
}
// Intercepts all HTTP requests!
intercept
(
request
:
HttpRequest
<
any
>
,
next
:
HttpHandler
):
Observable
<
HttpEvent
<
any
>>
{
const
data
=
this
.
storage
.
get
(
''
);
return
Observable
.
fromPromise
(
data
)
.
mergeMap
(
data
=>
{
let
clonedReq
=
this
.
addToken
(
request
,
data
);
return
next
.
handle
(
clonedReq
).
do
(
res
=>
{
if
(
res
instanceof
HttpResponse
)
{
this
.
message
(
res
.
body
);
}
},
(
error
)
=>
{
let
msg
=
error
.
message
;
this
.
errorMessage
(
error
);
// Pass the error to the caller of the function
return
_throw
(
error
);
},
()
=>
{
})
});
}
// Adds the token to your headers if it exists
private
addToken
(
request
:
HttpRequest
<
any
>
,
token
:
any
)
{
let
body
;
if
(
request
.
method
==
"POST"
)
{
body
=
Object
.
assign
(
request
.
body
,
{});
if
(
this
.
globle
.
token
)
{
body
=
Object
.
assign
(
body
,
{
"token"
:
this
.
globle
.
token
});
}
if
(
this
.
globle
.
userObj
&&
this
.
globle
.
userObj
.
userid
)
{
body
=
Object
.
assign
(
body
,
{
"userid"
:
this
.
globle
.
userObj
.
userid
});
}
}
if
(
token
)
{
let
clone
:
HttpRequest
<
any
>
;
if
(
request
.
method
==
"POST"
)
{
clone
=
request
.
clone
({
setHeaders
:
{
// "Accept": `application/json`,
'Content-Type'
:
`application/json;charset=UTF-8`
,
},
body
:
body
});
}
else
{
clone
=
request
.
clone
({
setHeaders
:
{
// "Accept": `application/json`,
'Content-Type'
:
`application/json;charset=UTF-8`
,
},
});
}
return
clone
;
}
return
request
;
}
//code message
message
(
data
)
{
if
(
data
.
code
)
{
let
code
=
data
.
code
;
if
(
code
==
"401"
)
{
this
.
commonSer
.
toast
(
"登录已过期"
);
this
.
storage
.
clear
();
this
.
events
.
publish
(
'toLogin'
);
}
else
if
(
code
==
"-1"
)
{
let
alert
=
this
.
alertCtrl
.
create
({
title
:
"提示"
,
message
:
`
${
data
.
msg
}
。`
,
// message: `网络错误`,
buttons
:
[
'确定'
]
});
alert
.
present
();
}
if
(
code
==
500
)
{
let
alert
=
this
.
alertCtrl
.
create
({
title
:
"提示"
,
message
:
`
${
data
.
msg
}
。`
,
buttons
:
[
'确定'
]
});
alert
.
present
();
}
}
}
//error message
errorMessage
(
data
)
{
if
(
data
.
status
)
{
let
code
=
data
.
status
;
if
(
code
!=
200
)
{
let
alert
=
this
.
alertCtrl
.
create
({
title
:
"错误"
,
message
:
`错误码:
${
code
}
。`
,
buttons
:
[
'确定'
]
});
alert
.
present
();
}
}
}
}
src/pages/deal/deal-detail/deal-detail.html
View file @
ebac4760
...
...
@@ -211,7 +211,7 @@
</div>
</div>
</div>
<button
class=
"submit-btn submit"
(
click
)="
sureSubmit
()"
>
确定
</button>
<button
class=
"submit-btn submit"
(
click
)="
sureSubmit
()"
*
ngIf=
"roles.indexOf('7') !== -1"
>
确定
</button>
</ng-container>
<ng-container
*
ngIf=
"!isShow"
>
<p
class=
"tips"
>
提示:请至PC端操作
</p>
...
...
src/pages/deal/deal-detail/deal-detail.ts
View file @
ebac4760
...
...
@@ -15,6 +15,7 @@ import {CommonService} from "../../../core/common.service";
import
{
AppService
}
from
"../../../app/app.service"
;
import
{
institutionalNature
}
from
"../../../app/app.constants"
;
import
{
Detail6Page
}
from
"../detail6/detail6"
;
import
{
Storage
}
from
"@ionic/storage"
;
@
Component
({
selector
:
'page-deal-detail'
,
...
...
@@ -28,6 +29,7 @@ export class DealDetailPage {
* flow : String (1-设立,2-变更 ,3-注销,4-补领,0-全部)
*/
itemInfo
;
roles
=
[];
obj
=
{
opinion
:
""
,
flag
:
0
,
//0-全部 1-督办 2-审核
...
...
@@ -69,9 +71,10 @@ export class DealDetailPage {
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
private
globle
:
GlobalData
,
private
appSer
:
AppService
,
private
commonSer
:
CommonService
,
private
commonSer
:
CommonService
,
private
storage
:
Storage
,
private
dealSer
:
DealService
,
private
modalCtrl
:
ModalController
)
{
this
.
itemInfo
=
this
.
navParams
.
get
(
"item"
);
this
.
storage
.
get
(
'roles'
).
then
(
value
=>
this
.
roles
=
value
||
[])
this
.
area
=
this
.
globle
.
area
;
if
(
this
.
itemInfo
.
status
==
'4'
||
this
.
itemInfo
.
status
==
'5'
)
{
this
.
isShow
=
false
;
...
...
src/pages/home/contact-detail/contact-detail.html
View file @
ebac4760
...
...
@@ -56,7 +56,7 @@
</ion-list>
<button
class=
"call-btn"
(
click
)="
call
(
personInfo
?.
telPhone
)"
>
拨打座机
</button>
<button
class=
"call-btn"
*
ngIf=
"personInfo.role != 4"
(
click
)="
call
(
personInfo
?.
telPhone
)"
>
拨打座机
</button>
<button
class=
"call-btn"
(
click
)="
call
(
personInfo
?.
mobilePhone
)"
>
拨打手机
</button>
<button
class=
"call-btn"
*
ngIf=
"personInfo.role != 4"
(
click
)="
call
(
personInfo
?.
mobilePhone
)"
>
拨打手机
</button>
</ion-content>
src/pages/home/contact-role/contact-role.ts
View file @
ebac4760
...
...
@@ -8,18 +8,14 @@ import {ContactListPage} from "../contact-list/contact-list";
})
export
class
ContactRolePage
{
roleList
=
[
{
value
:
0
,
label
:
'管理员'
},
{
value
:
4
,
label
:
'办领导'
},
{
value
:
1
,
label
:
'处领导'
},
{
value
:
2
,
label
:
'工作人员'
},
{
value
:
3
,
label
:
'其他人员'
},
];
roleList
=
[];
area
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
)
{
this
.
area
=
this
.
navParams
.
get
(
'area'
);
this
.
roleList
=
this
.
area
.
code
==
'310000'
?
[{
value
:
0
,
label
:
'管理员'
},{
value
:
4
,
label
:
'办领导'
},{
value
:
1
,
label
:
'处领导'
},{
value
:
2
,
label
:
'工作人员'
},{
value
:
3
,
label
:
'其他人员'
}]
:
[{
value
:
4
,
label
:
'办领导'
},{
value
:
2
,
label
:
'工作人员'
},{
value
:
3
,
label
:
'其他人员'
}]
console
.
log
(
'管理role权限:'
+
JSON
.
stringify
(
this
.
area
))
}
ionViewDidLoad
()
{
...
...
src/pages/home/contact/contact.ts
View file @
ebac4760
...
...
@@ -32,6 +32,7 @@ export class ContactPage {
(
res
)
=>
{
if
(
res
.
list
)
{
this
.
areaList
=
res
.
list
;
this
.
areaList
.
map
(
x
=>
{
if
(
x
.
code
==
'310000'
)
x
.
role
=
4
})
}
}
)
...
...
src/pages/home/data-report/data-report.html
View file @
ebac4760
...
...
@@ -96,6 +96,39 @@
<div
class=
"echart"
>
<div
#
echartPie
class=
"echart-pie"
></div>
</div>
<div
class=
"data"
>
<div
class=
"table"
>
<table
border=
"1"
>
<thead>
<tr>
<th>
隶属
</th>
<th>
全额拨款
</th>
<th>
差额拨款
</th>
<th>
自收自支
</th>
<th>
小计
</th>
</tr>
</thead>
<tbody>
<tr
*
ngFor=
"let item of unitsInfo"
>
<td>
{{item.geo}}
</td>
<td>
{{type == 'unit' ? item.unitCount1 : type == 'bzrs' ? item.bzrs1 : item.syrs1}}
</td>
<td>
{{type == 'unit' ? item.unitCount2 : type == 'bzrs' ? item.bzrs2 : item.syrs2}}
</td>
<td>
{{type == 'unit' ? item.unitCount3 : type == 'bzrs' ? item.bzrs3 : item.syrs3}}
</td>
<td>
{{type == 'unit' ? item.unitTotal : type == 'bzrs' ? item.bzrsTotal : item.syrsTotal}}
</td>
</tr>
<tr>
<td>
合计:
</td>
<td>
{{count.count1}}
</td>
<td>
{{count.count2}}
</td>
<td>
{{count.count3}}
</td>
<td>
{{count.countTotal}}
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</ng-container>
<ng-container
>
...
...
src/pages/home/data-report/data-report.ts
View file @
ebac4760
...
...
@@ -72,11 +72,17 @@ export class DataReportPage {
}
countInfo
()
{
this
.
count
=
{
count1
:
0
,
count2
:
0
,
count3
:
0
,
countTotal
:
0
,
};
if
(
this
.
type
==
'unit'
)
{
this
.
unitsInfo
.
forEach
(
e
=>
{
this
.
count
.
count1
+=
e
.
unitCount1
;
this
.
count
.
count2
+=
e
.
unitCount
1
;
this
.
count
.
count3
+=
e
.
unitCount
1
;
this
.
count
.
count2
+=
e
.
unitCount
2
;
this
.
count
.
count3
+=
e
.
unitCount
3
;
this
.
count
.
countTotal
+=
e
.
unitTotal
;
})
}
...
...
@@ -99,6 +105,7 @@ export class DataReportPage {
}
switchEchart
()
{
this
.
countInfo
();
this
.
echartData1
=
{
grid
:
{
left
:
"5%"
,
...
...
@@ -323,6 +330,7 @@ export class DataReportPage {
type
:
'pie'
,
radius
:
'55%'
,
center
:
[
'50%'
,
'60%'
],
color
:
[
'#d74e67'
,
'#0092ff'
,
'#21b6b9'
,
'#60a900'
,
'#01949b'
,
'#f17677'
,
'#eba954'
],
data
:
data
,
emphasis
:
{
itemStyle
:
{
...
...
src/pages/home/home.service.ts
View file @
ebac4760
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); } //年度报告 yearreportdetail(data): Observable<any> { return this.http.post(SERVER_API_WEB + '/infomation/yearreportdetail.do', data); } //事业单位查询 人员信息情况 statisticPerson(data): Observable<any> { return this.http.post(SERVER_API_URL + '/statis/statisticPerson.do', data); } //数据报表 statisticUnitcatetory(data): Observable<any> { return this.http.post(SERVER_API_URL + '/statis/statisticUnitcatetory.do', data); } //行业分类 getIndustryList(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/industry_classification.do', data); } //经费形式 getFundingList(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/jfxs.do', data); } //事业单位 getCauseList(data): Observable<any> { return this.http.post(SERVER_API_URL + '/user/unit_type.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
);
}
//年度报告
yearreportdetail
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_WEB
+
'/infomation/yearreportdetail.do'
,
data
);
}
//事业单位查询 人员信息情况
statisticPerson
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/statis/statisticPerson.do'
,
data
);
}
//数据报表
statisticUnitcatetory
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/statis/statisticUnitcatetory.do'
,
data
);
}
//行业分类
getIndustryList
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/user/industry_classification.do'
,
data
);
}
//经费形式
getFundingList
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/user/jfxs.do'
,
data
);
}
//事业单位
getCauseList
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/user/unit_type.do'
,
data
);
}
//规格
getSpecificationsList
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/user/jggg.do'
,
data
);
}
//机构性质
getNatureList
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/user/jgxz.do'
,
data
);
}
//机构类别
getCategoryList
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/user/jglb.do'
,
data
);
}
}
\ No newline at end of file
src/pages/home/home.ts
View file @
ebac4760
...
...
@@ -51,7 +51,8 @@ export class HomePage {
yearList
=
[];
isToggle
;
constructor
(
public
navCtrl
:
NavController
,
public
homeSer
:
HomeService
,
private
loadCtrl
:
LoadingController
,
constructor
(
public
navCtrl
:
NavController
,
public
homeSer
:
HomeService
,
private
loadCtrl
:
LoadingController
,
private
commonSer
:
CommonService
,
private
storage
:
Storage
,
private
appSer
:
AppService
,
public
statusBar
:
StatusBar
,
private
global
:
GlobalData
,
...
...
@@ -59,9 +60,7 @@ export class HomePage {
private
mineSer
:
MineService
,
private
tabSer
:
TabService
,
private
inAppBrowser
:
InAppBrowser
,
private
renderer
:
Renderer2
)
{
this
.
mineInfo
=
this
.
global
.
userObj
;
this
.
storage
.
get
(
'roles'
).
then
((
value
)
=>
{
this
.
roles
=
value
||
[];
});
this
.
storage
.
get
(
'roles'
).
then
(
value
=>
this
.
roles
=
value
||
[]);
const
yearmonth
=
new
Date
().
getFullYear
()
+
'-'
+
new
Date
().
getMonth
();
this
.
yearmonth
=
this
.
datePipe
.
transform
(
yearmonth
,
'yyyy-MM'
);
const
year
=
new
Date
().
getFullYear
();
...
...
src/pages/home/report-info/info-detail/info-detail.html
View file @
ebac4760
...
...
@@ -6,7 +6,7 @@
<ion-content>
<div
class=
"content"
>
<ng-container
*
ngIf=
"type == 1"
>
<ng-container
*
ngIf=
"type == 1
|| type == 0
"
>
<div
class=
"item-box"
>
<div
class=
"left"
>
统一社会信用代码:
</div>
<div
class=
"right"
>
...
...
@@ -32,18 +32,18 @@
</div>
</div>
<div
class=
"item-box"
>
<div
class=
"left"
>
法定代表人
:
</div>
<div
class=
"left"
>
{{type != 0 ? '法定代表人': '负责人'}}
:
</div>
<div
class=
"right"
>
<span>
{{ infoObj.frmc}}
</span>
</div>
</div>
<div
class=
"item-box"
>
<div
class=
"item-box"
*
ngIf=
"type != 0"
>
<div
class=
"left"
>
经费来源:
</div>
<div
class=
"right"
>
<span>
{{ infoObj.jfxsLabel}}
</span>
</div>
</div>
<div
class=
"item-box"
>
<div
class=
"item-box"
*
ngIf=
"type != 0"
>
<div
class=
"left"
>
开办资金:
</div>
<div
class=
"right"
>
<span>
{{ infoObj.kbzj}}万元
</span>
...
...
@@ -62,18 +62,24 @@
</div>
</div>
<div
class=
"item-box"
>
<div
class=
"left"
>
原事证号
:
</div>
<div
class=
"left"
>
{{type != 0 ? '原事证号' : '归档号'}}
:
</div>
<div
class=
"right"
>
<span>
{{ infoObj.zsh}}
</span>
</div>
</div>
<div
class=
"item-box"
>
<div
class=
"left"
>
批准
文号:
</div>
<div
class=
"left"
>
设立
文号:
</div>
<div
class=
"right"
>
<span>
{{ infoObj.pzwh}}
</span>
</div>
</div>
<div
class=
"item-box"
>
<div
class=
"left"
>
批准文号:
</div>
<div
class=
"right"
>
<span>
{{ infoObj.newpw}}
</span>
</div>
</div>
<div
class=
"item-box"
>
<div
class=
"left"
>
机构类别:
</div>
<div
class=
"right"
>
<span>
{{ infoObj.unitCatetory}}
</span>
...
...
@@ -245,6 +251,12 @@
<span>
{{infoObj?.issueDateStr || "-"}}
</span>
</div>
</div>
<div
class=
"item-box"
*
ngIf=
"infoObj?.jgxzStr == '事业单位非法人'"
>
<div
class=
"left"
>
有效期至:
</div>
<div
class=
"right"
>
<span>
{{infoObj?.endDateStr || "-"}}
</span>
</div>
</div>
<div
class=
"item-box"
>
<div
class=
"left"
>
联系人:
</div>
<div
class=
"right"
>
...
...
src/pages/home/report-info/info-detail/info-detail.ts
View file @
ebac4760
...
...
@@ -29,7 +29,7 @@ export class InfoDetailPage {
}
ionViewDidLoad
()
{
if
(
this
.
type
==
1
){
if
(
this
.
type
==
1
||
this
.
type
==
0
){
this
.
getPersonInfo
();
}
}
...
...
src/pages/home/report-info/info-list/info-list.html
View file @
ebac4760
...
...
@@ -24,37 +24,45 @@
</ion-item>
<!--input框-->
<ion-input
type=
"text"
placeholder=
"请输入"
[(
ngModel
)]="
info
.
search
"
></ion-input>
<span
class=
"clear search"
[
ngStyle
]="{'
right
'
:
option
.
type =
==
'
1
'
?
'
19
%'
:
'
7
%'}"
tappable
(
click
)="
getList
()"
></span>
<span
*
ngIf=
"option.type === '1'"
class=
"clear filter"
tappable
(
click
)="
filterConditions
()"
>
筛选
</span>
<span
*
ngIf=
"option.type != '3'"
class=
"clear search"
[
ngStyle
]="{'
right
'
:
option
.
type
!=
'
3
'
?
'
19
%'
:
'
7
%'}"
tappable
(
click
)="
getList
()"
>
<img
src=
"./assets/icon/search.png"
/>
</span>
<span
*
ngIf=
"option.type != '3'"
class=
"clear filter"
tappable
(
click
)="
filterConditions
()"
>
筛选
</span>
</div>
</ion-navbar>
<p
*
ngIf=
"searchState"
style=
"background: #fff;text-align: center;color: #999;padding: 10px 0;"
>
共查询到{{info.totalCount}}条
</p>
</ion-header>
<ion-content>
<ul
*
ngIf=
"!
info.search
"
class=
"history"
>
<ul
*
ngIf=
"!
searchState && option.type != '3'
"
class=
"history"
>
<h6>
历史记录
</h6>
<li
*
ngFor=
"let item of option.history"
(
click
)="
historyField
(
item
)"
>
{{item}}
</li>
</ul>
<div
*
ngIf=
"
info.search
"
>
<div
*
ngIf=
"
searchState || info.list && option.type != '3'
"
>
<ion-refresher
(
ionRefresh
)="
getList
($
event
)"
>
<ion-refresher-content
pullingText=
"下拉刷新"
refreshingSpinner=
"bubbles"
>
</ion-refresher-content>
<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>
<!-- <ion-icon *ngIf="option.type == '3'" name="build-outline" style="color:chartreuse;"></ion-icon>-->
<!--<ion-icon [name]="item.filenumber ? 'close-circle-outline' : 'checkmark-circle-outline'" ></ion-icon>-->
<span
[
ngStyle
]="{'
color
'
:
item
.
filenumber
?
'
gray
'
:
'
green
'}"
><img
[
src
]="
item
.
filenumber
?
'./
assets
/
imgs
/
revocation
.
png
'
:
'./
assets
/
imgs
/
normal
.
png
'"
style=
"width: 16px;height: 16px;margin-right: 4px;"
/>
{{item.filenumber ? '撤销' : '正常'}}
</span>
<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-content
loadingSpinner=
"bubbles"
loadingText=
"加载中"
></ion-infinite-scroll-content>
</ion-infinite-scroll>
</div>
<div
*
ngIf=
"option.type == '3'"
style=
"display: flex;width: 100%;height: 100%;align-items: center;justify-content: center;flex-direction: column;"
>
<img
src=
"./assets/imgs/construction.png"
style=
"width: 100px;height: 100px;"
/>
<p
style=
"font-size: 24px;color: #999;"
>
建设中...
</p>
</div>
</ion-content>
src/pages/home/report-info/info-list/info-list.scss
View file @
ebac4760
...
...
@@ -34,19 +34,25 @@ page-info-list {
ion-input
{
border-bottom
:
1px
solid
#ffffff
;
background-color
:
#fff
;
border-radius
:
0
15px
15px
0
;
//
border-radius: 0 15px 15px 0;
height
:
40px
;
padding-left
:
4px
;
margin-right
:
5px
;
//
margin-right: 5px;
}
// 搜索按钮
.search
{
background
:
url("../assets/icon/search.png")
no-repeat
;
background-size
:
100%
;
// width: 20px;
width
:
30px
;
height
:
40px
;
background
:
#fff
;
border-radius
:
0
15px
15px
0
;
display
:
flex
;
align-items
:
center
;
margin-right
:
10px
;
}
.search
img
{
width
:
20px
;
height
:
20px
;
position
:
fixed
;
//right: 19%;
}
// 筛选按钮
...
...
@@ -117,7 +123,7 @@ page-info-list {
.list
{
background-color
:
#fff
;
margin-top
:
40px
;
>
div
{
padding
:
20px
10px
;
}
...
...
@@ -132,6 +138,17 @@ page-info-list {
flex-direction
:
row
;
align-items
:
center
;
box-sizing
:
border-box
;
.inner-group
{
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
span
{
display
:
flex
;
white-space
:
nowrap
;
min-width
:
55px
;
align-items
:
center
;
}
}
}
.toolbar-signUp
{
...
...
src/pages/home/report-info/info-list/info-list.ts
View file @
ebac4760
This diff is collapsed.
Click to expand it.
src/pages/home/report-info/person-info/person-info.html
View file @
ebac4760
This diff is collapsed.
Click to expand it.
src/pages/home/report-info/person-info/person-info.ts
View file @
ebac4760
...
...
@@ -27,6 +27,7 @@ export class PersonInfoPage {
})
this
.
personInfo
.
age_segment
.
forEach
(
e
=>
{
this
.
list
.
age_segment
[
`
${
e
.
EDUCATION_CN
}
_
${
e
.
AGE_SEGMENT_CN
}
`
]
=
e
.
NUM
;
console
.
log
(
JSON
.
stringify
(
this
.
list
.
age_segment
))
})
this
.
personInfo
.
workage_segment
.
forEach
(
e
=>
{
this
.
list
.
workage_segment
[
`
${
e
.
EDUCATION_CN
}
_
${
e
.
WORKAGE_SEGMENT_CN
}
`
]
=
e
.
NUM
;
...
...
src/pages/tabs/tabs.ts
View file @
ebac4760
...
...
@@ -12,6 +12,7 @@ import {GlobalData} from "../../core/GlobleData";
import
{
DealService
}
from
"../deal/deal.service"
;
import
{
AppService
}
from
"../../app/app.service"
;
import
{
NewsService
}
from
"../news/news.service"
;
import
{
Storage
}
from
"@ionic/storage"
;
@
Component
({
templateUrl
:
'tabs.html'
...
...
@@ -22,6 +23,7 @@ export class TabsPage {
tabParams
=
{
test
:
'test'
};
roles
=
new
Array
()
tabRoots
=
[
{
...
...
@@ -64,8 +66,9 @@ export class TabsPage {
private
globle
:
GlobalData
,
private
dealSer
:
DealService
,
private
appSer
:
AppService
,
private
newSer
:
NewsService
,
private
newSer
:
NewsService
,
private
storage
:
Storage
,
private
events
:
Events
,
private
nav
:
NavController
,
private
tabSer
:
TabService
)
{
this
.
storage
.
get
(
'roles'
).
then
(
value
=>
this
.
roles
=
value
||
[])
this
.
searchDeal
(
"1"
);
this
.
searchNotice
();
this
.
platform
.
ready
().
then
(()
=>
{
...
...
@@ -103,7 +106,7 @@ export class TabsPage {
};
this
.
dealSer
.
searchSchedule
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
.
page
)
if
(
res
.
page
.
list
)
this
.
tabRoots
[
1
].
badge
=
res
.
page
.
totalCount
;
if
(
res
.
page
)
if
(
res
.
page
.
list
)
this
.
tabRoots
[
1
].
badge
=
this
.
roles
.
indexOf
(
'7'
)
!==
-
1
?
res
.
page
.
totalCount
:
""
;
}
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment