Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-ces
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
wisdom-ces
Commits
0aef8abf
Commit
0aef8abf
authored
Oct 16, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
0e8167d2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
137 additions
and
107 deletions
+137
-107
config.xml
config.xml
+1
-1
add-block.html
src/pages/contact/add-block/add-block.html
+10
-1
add-block.ts
src/pages/contact/add-block/add-block.ts
+7
-7
block-list.scss
src/pages/contact/block-list/block-list.scss
+2
-2
block-list.ts
src/pages/contact/block-list/block-list.ts
+48
-48
contactList.html
src/pages/contact/contactList/contactList.html
+7
-3
contactList.scss
src/pages/contact/contactList/contactList.scss
+3
-2
contactList.ts
src/pages/contact/contactList/contactList.ts
+0
-0
contract-personinfo.html
...ages/contact/contract-personinfo/contract-personinfo.html
+1
-1
contract-personinfo.scss
...ages/contact/contract-personinfo/contract-personinfo.scss
+3
-2
person-list.html
src/pages/contact/person-list/person-list.html
+7
-4
person-list.scss
src/pages/contact/person-list/person-list.scss
+3
-2
person-list.ts
src/pages/contact/person-list/person-list.ts
+26
-24
search.html
src/pages/contact/search/search.html
+7
-3
search.scss
src/pages/contact/search/search.scss
+2
-2
list.html
src/pages/surveyManage/list/list.html
+5
-1
list.ts
src/pages/surveyManage/list/list.ts
+1
-1
contact.scss
src/pages/tabs/contact/contact.scss
+1
-1
home.ts
src/pages/tabs/home/home.ts
+1
-0
mine.scss
src/pages/tabs/mine/mine.scss
+1
-1
appHttpService.ts
src/service/appHttpService.ts
+1
-1
No files found.
config.xml
View file @
0aef8abf
<?xml version='1.0' encoding='utf-8'?>
<widget
id=
"io.ionic.starter"
version=
"1.1.
8
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<widget
id=
"io.ionic.starter"
version=
"1.1.
9
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<name>
智汇19号
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
...
...
src/pages/contact/add-block/add-block.html
View file @
0aef8abf
...
...
@@ -3,7 +3,16 @@
<ion-navbar>
<ion-title>
添加分组
</ion-title>
<span
(
click
)="
done
()"
float-right
class=
"margin-right-10 color-fff"
>
完成
</span>
<ion-buttons
start
>
<button
ion-button
(
click
)="
cancel
()"
>
<span
ion-text
class=
"color-fff"
>
取消
</span>
</button>
</ion-buttons>
<ion-buttons
end
>
<button
ion-button
(
click
)="
done
()"
>
<span
ion-text
class=
"color-fff"
>
完成
</span>
</button>
</ion-buttons>
</ion-navbar>
</ion-header>
...
...
src/pages/contact/add-block/add-block.ts
View file @
0aef8abf
...
...
@@ -26,23 +26,23 @@ export class AddBlockPage {
//创建分组
done
(){
if
(
!
this
.
groupName
){
this
.
appService
.
popToastView
(
'请填写分组名称'
,
'middle'
,
1500
);
}
const
data
=
{
groupName
:
this
.
groupName
};
this
.
appService
.
ObserverHttpPostData
(
"/wisdomgroup/modules/telpBook/"
,
data
)
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
let
toast
=
this
.
toastCtrl
.
create
({
message
:
'创建成功'
,
duration
:
2000
,
dismissOnPageChange
:
true
,
});
toast
.
present
();
this
.
navCtrl
.
pop
();
this
.
appService
.
popToastView
(
'创建成功!'
,
'middle'
,
1500
);
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
}
cancel
(){
this
.
navCtrl
.
pop
();
}
}
src/pages/contact/block-list/block-list.scss
View file @
0aef8abf
...
...
@@ -87,8 +87,8 @@ page-block-list {
}
.contact-img
{
width
:
3
rem
;
height
:
3
rem
;
width
:
4
rem
;
height
:
4
rem
;
}
.contact-name
{
...
...
src/pages/contact/block-list/block-list.ts
View file @
0aef8abf
import
{
Component
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
IonicPage
,
ModalController
,
NavController
,
NavParams
,
ToastController
}
from
'ionic-angular'
;
import
{
AppService
}
from
"../../../service/appHttpService"
;
import
{
ContactModalPage
}
from
"../contact-modal/contact-modal"
;
...
...
@@ -8,84 +8,84 @@ import {message} from "../../../app/main";
@
IonicPage
()
@
Component
({
selector
:
'page-block-list'
,
templateUrl
:
'block-list.html'
,
selector
:
'page-block-list'
,
templateUrl
:
'block-list.html'
,
})
export
class
BlockListPage
{
orgid
;
orgName
;
contactPersons
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
,
public
modalCtrl
:
ModalController
,
public
toastCtrl
:
ToastController
)
{
}
ionViewDidLoad
()
{
this
.
orgid
=
this
.
navParams
.
get
(
"orgid"
);
this
.
orgName
=
this
.
navParams
.
get
(
"orgName"
);
this
.
initList
();
}
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
,
public
modalCtrl
:
ModalController
,
public
toastCtrl
:
ToastController
)
{
}
initList
(){
const
data
=
{
'groupId'
:
this
.
orgid
}
this
.
appService
.
ObserverHttpGetOption
(
'/wisdomgroup/modules/telpBookPerson'
,
data
)
.
subscribe
((
res
)
=>
{
if
(
res
.
json
().
data
){
this
.
contactPersons
=
res
.
json
().
data
.
list
;
}
})
}
ionViewDidLoad
()
{
this
.
orgid
=
this
.
navParams
.
get
(
"orgid"
);
this
.
orgName
=
this
.
navParams
.
get
(
"orgName"
);
this
.
initList
();
}
showPersonModal
(){
initList
()
{
const
data
=
{
'groupId'
:
this
.
orgid
}
this
.
appService
.
ObserverHttpGetOption
(
'/wisdomgroup/modules/telpBookPerson'
,
data
)
.
subscribe
((
res
)
=>
{
if
(
res
.
json
().
data
)
{
this
.
contactPersons
=
res
.
json
().
data
.
list
;
}
})
}
showPersonModal
()
{
const
toast
=
this
.
toastCtrl
.
create
(
message
);
let
peoModal
=
this
.
modalCtrl
.
create
(
PersonListPage
);
peoModal
.
onDidDismiss
(
res
=>
{
if
(
res
)
{
peoModal
.
onDidDismiss
(
res
=>
{
if
(
res
)
{
const
data
=
{
'telpBookPersonList'
:[{
'telpbookId'
:
this
.
orgid
,
'linkUserid'
:
res
.
id
,
'linkUsername'
:
res
.
name
'telpBookPersonList'
:
[{
'telpbookId'
:
this
.
orgid
,
'linkUserid'
:
res
.
id
,
'linkUsername'
:
res
.
name
}]
};
this
.
appService
.
ObserverHttpPostData
(
'/wisdomgroup/modules/telpBook'
,
data
)
.
subscribe
((
res
)
=>
{
this
.
appService
.
ObserverHttpPostData
(
'/wisdomgroup/modules/telpBook'
,
data
)
.
subscribe
((
res
)
=>
{
console
.
log
(
res
.
json
());
if
(
res
.
json
().
apiResult
.
errcode
==
'0'
)
{
if
(
res
.
json
().
apiResult
.
errcode
==
'0'
)
{
toast
.
setMessage
(
'添加成功'
);
toast
.
present
();
this
.
initList
();
}
else
{
}
else
{
toast
.
setMessage
(
res
.
json
().
apiResult
.
data
);
toast
.
present
();
}
})
}
}
);
});
peoModal
.
present
();
}
removeItem
(
item
){
const
data
=
{
userId
:
item
.
id
};
this
.
appService
.
ObserverHttpDeteleteData
(
'/wisdomgroup/modules/telpBookPerson/'
,
this
.
orgid
,
data
)
.
subscribe
((
res
)
=>
{
if
(
res
.
json
().
errcode
==
'0'
){
this
.
initList
();
}
})
removeItem
(
item
)
{
const
data
=
{
userId
:
item
.
id
};
this
.
appService
.
ObserverHttpDeteleteData
(
'/wisdomgroup/modules/telpBookPerson/'
,
this
.
orgid
,
data
)
.
subscribe
((
res
)
=>
{
if
(
res
.
json
().
errcode
==
'0'
)
{
this
.
initList
();
}
})
}
//人员详情
contactPersonInfo
(
contactPerson
){
this
.
navCtrl
.
push
(
"ContractPersoninfoPage"
,
{
"id"
:
contactPerson
.
id
});
contactPersonInfo
(
contactPerson
)
{
this
.
navCtrl
.
push
(
"ContractPersoninfoPage"
,
{
"id"
:
contactPerson
.
id
});
}
}
src/pages/contact/contactList/contactList.html
View file @
0aef8abf
...
...
@@ -11,9 +11,13 @@
<ion-list>
<ion-item
*
ngFor=
"let contactPerson of contactPersons"
(
click
)="
contactPersonInfo
(
contactPerson
)"
>
<div
class=
"contact-box"
>
<img
src=
"./assets/imgs/man.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='1'||contactPerson.gender==null"
>
<img
src=
"./assets/imgs/woman.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='0'"
>
<ng-container
*
ngIf=
"contactPerson?.picUrl && contactPerson?.picUrl != ''"
>
<img
src=
"{{picture+contactPerson.picUrl}}"
class=
"contact-img"
>
</ng-container>
<ng-container
*
ngIf=
"!contactPerson?.picUrl || contactPerson?.picUrl == ''"
>
<img
src=
"./assets/imgs/man.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='1'||contactPerson.gender==null"
>
<img
src=
"./assets/imgs/woman.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='0'"
>
</ng-container>
<div
class=
"contact-box-right"
>
<div>
<span
class=
"contact-name"
>
{{contactPerson.name}}
</span>
...
...
src/pages/contact/contactList/contactList.scss
View file @
0aef8abf
...
...
@@ -30,8 +30,9 @@ page-contactList {
}
.contact-img
{
width
:
3rem
;
height
:
3rem
;
width
:
4rem
;
height
:
4rem
;
border-radius
:
2px
;
}
.contact-name
{
...
...
src/pages/contact/contactList/contactList.ts
View file @
0aef8abf
This diff is collapsed.
Click to expand it.
src/pages/contact/contract-personinfo/contract-personinfo.html
View file @
0aef8abf
...
...
@@ -26,7 +26,7 @@
<span
class=
"info-span"
>
头像
</span>
<div
class=
"info-item-content"
>
<ng-container
*
ngIf=
"contactPersonInfo?.picUrl && contactPersonInfo?.picUrl != ''"
>
<img
src=
"{{picture+contactPersonInfo.picUrl}}"
class=
"contact-img"
(
click
)="
go
(
item
)"
>
<img
src=
"{{picture+contactPersonInfo.picUrl}}"
class=
"contact-img"
>
</ng-container>
<ng-container
*
ngIf=
"!contactPersonInfo?.picUrl || contactPersonInfo?.picUrl == ''"
>
<img
src=
"./assets/imgs/head.png"
class=
"contact-img"
>
...
...
src/pages/contact/contract-personinfo/contract-personinfo.scss
View file @
0aef8abf
...
...
@@ -57,8 +57,9 @@ page-contract-personinfo {
}
.contact-img
{
width
:
3rem
;
height
:
3rem
;
width
:
4rem
;
height
:
4rem
;
border-radius
:
2px
;
}
.list-item
{
margin
:
-1px
0
0px
;
...
...
src/pages/contact/person-list/person-list.html
View file @
0aef8abf
...
...
@@ -23,14 +23,17 @@
<ion-item-sliding>
<ion-item
*
ngFor=
"let item of perList"
>
<div
class=
"contact-box"
(
click
)="
sure
(
item
)"
>
<img
src=
"./assets/imgs/man.png"
class=
"contact-img"
*
ngIf=
"item.gender =='1'||item.gender==null"
>
<img
src=
"./assets/imgs/woman.png"
class=
"contact-img"
*
ngIf=
"item.gender =='0'"
>
<ng-container
*
ngIf=
"item?.picUrl && item?.picUrl != ''"
>
<img
src=
"{{picture+item.picUrl}}"
class=
"contact-img"
>
</ng-container>
<ng-container
*
ngIf=
"!item?.picUrl || item?.picUrl == ''"
>
<img
src=
"./assets/imgs/man.png"
class=
"contact-img"
*
ngIf=
"item.gender =='1'||item.gender==null"
>
<img
src=
"./assets/imgs/woman.png"
class=
"contact-img"
*
ngIf=
"item.gender =='0'"
>
</ng-container>
<div
class=
"contact-box-right"
>
<div>
<span
class=
"contact-name"
>
{{item.name}}
</span>
<!--<ion-icon name="male" class="contact-sex male" *ngIf="item.gender =='1'||item.gender==null"></ion-icon>-->
<!--<ion-icon name="female" class="contact-sex female" *ngIf="item.gender =='0'"></ion-icon>-->
<span
class=
"contact-handphone"
>
{{item.mobile}}
</span>
</div>
<div
class=
"contact-organization"
>
{{item?.orgname}}
</div>
...
...
src/pages/contact/person-list/person-list.scss
View file @
0aef8abf
...
...
@@ -30,8 +30,9 @@ page-person-list {
}
.contact-img
{
width
:
3rem
;
height
:
3rem
;
width
:
4rem
;
height
:
4rem
;
border-radius
:
2px
;
}
.contact-name
{
...
...
src/pages/contact/person-list/person-list.ts
View file @
0aef8abf
import
{
Component
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
IonicPage
,
NavController
,
NavParams
,
ViewController
}
from
'ionic-angular'
;
import
{
AppService
}
from
"../../../service/appHttpService"
;
import
{
App
Global
,
App
Service
}
from
"../../../service/appHttpService"
;
@
Component
({
selector
:
'page-person-list'
,
templateUrl
:
'person-list.html'
,
selector
:
'page-person-list'
,
templateUrl
:
'person-list.html'
,
})
export
class
PersonListPage
{
perList
;
name
=
''
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
,
public
viewCtrl
:
ViewController
)
{
}
picture
:
string
=
AppGlobal
.
picture
;
perList
;
name
=
''
;
ionViewDidLoad
()
{
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
,
public
viewCtrl
:
ViewController
)
{
}
ionViewDidLoad
()
{
this
.
getList
();
}
getList
()
{
const
data
=
{
name
:
this
.
name
,
pageNumber
:
1
,
pageSize
:
100
,
};
this
.
appService
.
ObserverHttpNoForm
(
'/wisdomgroup/app/getUserByName'
,
data
)
.
subscribe
((
res
)
=>
{
this
.
perList
=
res
.
json
().
list
;
})
}
}
getList
()
{
const
data
=
{
name
:
this
.
name
,
pageNumber
:
1
,
pageSize
:
100
,
};
this
.
appService
.
ObserverHttpNoForm
(
'/wisdomgroup/app/getUserByName'
,
data
)
.
subscribe
((
res
)
=>
{
this
.
perList
=
res
.
json
().
list
;
})
}
dismiss
()
{
this
.
viewCtrl
.
dismiss
();
}
sure
(
item
){
sure
(
item
)
{
this
.
viewCtrl
.
dismiss
(
item
);
}
...
...
src/pages/contact/search/search.html
View file @
0aef8abf
...
...
@@ -15,16 +15,20 @@
<ion-list>
<ion-item
*
ngFor=
"let contactPerson of contactPersons"
(
click
)="
contactPersonInfo
(
contactPerson
)"
>
<div
class=
"contact-box"
>
<img
src=
"./assets/imgs/man.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='1'||contactPerson.gender==null"
>
<img
src=
"./assets/imgs/woman.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='0'"
>
<ng-container
*
ngIf=
"contactPersonInfo?.picUrl && contactPersonInfo?.picUrl != ''"
>
<img
src=
"{{picture+contactPersonInfo.picUrl}}"
class=
"contact-img"
(
click
)="
go
(
item
)"
>
</ng-container>
<ng-container
*
ngIf=
"!contactPersonInfo?.picUrl || contactPersonInfo?.picUrl == ''"
>
<img
src=
"./assets/imgs/man.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='1'||contactPerson.gender==null"
>
<img
src=
"./assets/imgs/woman.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='0'"
>
</ng-container>
<div
class=
"contact-box-right"
>
<div>
<span
class=
"contact-name"
>
{{contactPerson.name}}
</span>
</div>
<div
class=
"contact-organization"
>
{{contactPerson.orgName}}
</div>
<div>
<span
class=
"contact-telphone"
>
座机:{{contactPerson.telephone}}
</span>
<span
class=
"contact-handphone"
>
手机:{{contactPerson.mobile}}
</span>
</div>
</div>
...
...
src/pages/contact/search/search.scss
View file @
0aef8abf
...
...
@@ -78,8 +78,8 @@ page-search {
}
.contact-img
{
width
:
3
rem
;
height
:
3
rem
;
width
:
4
rem
;
height
:
4
rem
;
}
.contact-name
{
...
...
src/pages/surveyManage/list/list.html
View file @
0aef8abf
...
...
@@ -2,7 +2,11 @@
<ion-navbar>
<ion-title>
问卷管理
</ion-title>
<span
(
click
)="
create
()"
float-right
class=
"margin-right-10 color-fff"
>
创建
</span>
<ion-buttons
end
>
<button
ion-button
(
click
)="
create
()"
>
<span
(
click
)="
create
()"
ion-text
class=
"color-fff"
>
创建
</span>
</button>
</ion-buttons>
</ion-navbar>
<div
class=
"pageMenuSlides"
>
<div
class=
"swiper-container"
>
...
...
src/pages/surveyManage/list/list.ts
View file @
0aef8abf
...
...
@@ -100,7 +100,7 @@ export class ListPage {
//创建
create
(){
this
.
showOp
=
false
;
//
this.showOp = false;
this
.
navCtrl
.
push
(
'DesicrPage'
);
}
...
...
src/pages/tabs/contact/contact.scss
View file @
0aef8abf
...
...
@@ -8,7 +8,7 @@ page-contact {
.myItem
{
margin
:
0
;
.contact-img
{
width
:
3
rem
;
width
:
4
rem
;
margin-right
:
1rem
;
}
.item
{
...
...
src/pages/tabs/home/home.ts
View file @
0aef8abf
...
...
@@ -365,6 +365,7 @@ export class HomePage {
//日历
getCalendar
()
{
this
.
newArr
=
[];
let
date
=
new
Date
();
let
year
=
date
.
getFullYear
();
let
month
=
date
.
getMonth
()
+
1
;
...
...
src/pages/tabs/mine/mine.scss
View file @
0aef8abf
...
...
@@ -46,7 +46,7 @@ page-mine {
.head-photo
{
width
:
60px
;
height
:
60px
;
border-radius
:
60
px
;
border-radius
:
2
px
;
}
.group
{
...
...
src/service/appHttpService.ts
View file @
0aef8abf
...
...
@@ -362,7 +362,7 @@ export class AppService {
// return this.http.get(AppGlobal.domain + url + this.encode(params, "get")) //app
// }
//
//
// //get请求
// ObserverHttpGetData(url, params): Observable<any> {
// return this.http.get(AppGlobal.domain +url, params) //本地
...
...
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