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
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
130 additions
and
98 deletions
+130
-98
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
+26
-26
contactList.html
src/pages/contact/contactList/contactList.html
+5
-1
contactList.scss
src/pages/contact/contactList/contactList.scss
+3
-2
contactList.ts
src/pages/contact/contactList/contactList.ts
+34
-32
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
+5
-2
person-list.scss
src/pages/contact/person-list/person-list.scss
+3
-2
person-list.ts
src/pages/contact/person-list/person-list.ts
+12
-10
search.html
src/pages/contact/search/search.html
+6
-2
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'?>
<?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>
<name>
智汇19号
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
<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 @@
...
@@ -3,7 +3,16 @@
<ion-navbar>
<ion-navbar>
<ion-title>
添加分组
</ion-title>
<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-navbar>
</ion-header>
</ion-header>
...
...
src/pages/contact/add-block/add-block.ts
View file @
0aef8abf
...
@@ -26,23 +26,23 @@ export class AddBlockPage {
...
@@ -26,23 +26,23 @@ export class AddBlockPage {
//创建分组
//创建分组
done
(){
done
(){
if
(
!
this
.
groupName
){
this
.
appService
.
popToastView
(
'请填写分组名称'
,
'middle'
,
1500
);
}
const
data
=
{
const
data
=
{
groupName
:
this
.
groupName
groupName
:
this
.
groupName
};
};
this
.
appService
.
ObserverHttpPostData
(
"/wisdomgroup/modules/telpBook/"
,
data
)
this
.
appService
.
ObserverHttpPostData
(
"/wisdomgroup/modules/telpBook/"
,
data
)
.
subscribe
((
res
:
Response
)
=>
{
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
let
data
=
res
.
json
();
let
toast
=
this
.
toastCtrl
.
create
({
this
.
appService
.
popToastView
(
'创建成功!'
,
'middle'
,
1500
);
message
:
'创建成功'
,
duration
:
2000
,
dismissOnPageChange
:
true
,
});
toast
.
present
();
this
.
navCtrl
.
pop
();
},
error
=>
{
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
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 {
...
@@ -87,8 +87,8 @@ page-block-list {
}
}
.contact-img
{
.contact-img
{
width
:
3
rem
;
width
:
4
rem
;
height
:
3
rem
;
height
:
4
rem
;
}
}
.contact-name
{
.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
{
IonicPage
,
ModalController
,
NavController
,
NavParams
,
ToastController
}
from
'ionic-angular'
;
import
{
AppService
}
from
"../../../service/appHttpService"
;
import
{
AppService
}
from
"../../../service/appHttpService"
;
import
{
ContactModalPage
}
from
"../contact-modal/contact-modal"
;
import
{
ContactModalPage
}
from
"../contact-modal/contact-modal"
;
...
@@ -16,8 +16,9 @@ export class BlockListPage {
...
@@ -16,8 +16,9 @@ export class BlockListPage {
orgid
;
orgid
;
orgName
;
orgName
;
contactPersons
;
contactPersons
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
,
public
modalCtrl
:
ModalController
,
public
appService
:
AppService
,
public
modalCtrl
:
ModalController
,
public
toastCtrl
:
ToastController
)
{
public
toastCtrl
:
ToastController
)
{
}
}
...
@@ -27,65 +28,64 @@ export class BlockListPage {
...
@@ -27,65 +28,64 @@ export class BlockListPage {
this
.
initList
();
this
.
initList
();
}
}
initList
()
{
initList
()
{
const
data
=
{
const
data
=
{
'groupId'
:
this
.
orgid
'groupId'
:
this
.
orgid
}
}
this
.
appService
.
ObserverHttpGetOption
(
'/wisdomgroup/modules/telpBookPerson'
,
data
)
this
.
appService
.
ObserverHttpGetOption
(
'/wisdomgroup/modules/telpBookPerson'
,
data
)
.
subscribe
((
res
)
=>
{
.
subscribe
((
res
)
=>
{
if
(
res
.
json
().
data
)
{
if
(
res
.
json
().
data
)
{
this
.
contactPersons
=
res
.
json
().
data
.
list
;
this
.
contactPersons
=
res
.
json
().
data
.
list
;
}
}
})
})
}
}
showPersonModal
(){
showPersonModal
()
{
const
toast
=
this
.
toastCtrl
.
create
(
message
);
const
toast
=
this
.
toastCtrl
.
create
(
message
);
let
peoModal
=
this
.
modalCtrl
.
create
(
PersonListPage
);
let
peoModal
=
this
.
modalCtrl
.
create
(
PersonListPage
);
peoModal
.
onDidDismiss
(
res
=>
{
peoModal
.
onDidDismiss
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
const
data
=
{
const
data
=
{
'telpBookPersonList'
:[{
'telpBookPersonList'
:
[{
'telpbookId'
:
this
.
orgid
,
'telpbookId'
:
this
.
orgid
,
'linkUserid'
:
res
.
id
,
'linkUserid'
:
res
.
id
,
'linkUsername'
:
res
.
name
'linkUsername'
:
res
.
name
}]
}]
};
};
this
.
appService
.
ObserverHttpPostData
(
'/wisdomgroup/modules/telpBook'
,
data
)
this
.
appService
.
ObserverHttpPostData
(
'/wisdomgroup/modules/telpBook'
,
data
)
.
subscribe
((
res
)
=>
{
.
subscribe
((
res
)
=>
{
console
.
log
(
res
.
json
());
console
.
log
(
res
.
json
());
if
(
res
.
json
().
apiResult
.
errcode
==
'0'
)
{
if
(
res
.
json
().
apiResult
.
errcode
==
'0'
)
{
toast
.
setMessage
(
'添加成功'
);
toast
.
setMessage
(
'添加成功'
);
toast
.
present
();
toast
.
present
();
this
.
initList
();
this
.
initList
();
}
else
{
}
else
{
toast
.
setMessage
(
res
.
json
().
apiResult
.
data
);
toast
.
setMessage
(
res
.
json
().
apiResult
.
data
);
toast
.
present
();
toast
.
present
();
}
}
})
})
}
}
}
);
});
peoModal
.
present
();
peoModal
.
present
();
}
}
removeItem
(
item
)
{
removeItem
(
item
){
const
data
=
{
const
data
=
{
userId
:
item
.
id
userId
:
item
.
id
};
};
this
.
appService
.
ObserverHttpDeteleteData
(
'/wisdomgroup/modules/telpBookPerson/'
,
this
.
orgid
,
data
)
this
.
appService
.
ObserverHttpDeteleteData
(
'/wisdomgroup/modules/telpBookPerson/'
,
this
.
orgid
,
data
)
.
subscribe
((
res
)
=>
{
.
subscribe
((
res
)
=>
{
if
(
res
.
json
().
errcode
==
'0'
)
{
if
(
res
.
json
().
errcode
==
'0'
)
{
this
.
initList
();
this
.
initList
();
}
}
})
})
}
}
//人员详情
//人员详情
contactPersonInfo
(
contactPerson
){
contactPersonInfo
(
contactPerson
)
{
this
.
navCtrl
.
push
(
"ContractPersoninfoPage"
,
{
"id"
:
contactPerson
.
id
});
this
.
navCtrl
.
push
(
"ContractPersoninfoPage"
,
{
"id"
:
contactPerson
.
id
});
}
}
}
}
src/pages/contact/contactList/contactList.html
View file @
0aef8abf
...
@@ -11,9 +11,13 @@
...
@@ -11,9 +11,13 @@
<ion-list>
<ion-list>
<ion-item
*
ngFor=
"let contactPerson of contactPersons"
(
click
)="
contactPersonInfo
(
contactPerson
)"
>
<ion-item
*
ngFor=
"let contactPerson of contactPersons"
(
click
)="
contactPersonInfo
(
contactPerson
)"
>
<div
class=
"contact-box"
>
<div
class=
"contact-box"
>
<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/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'"
>
<img
src=
"./assets/imgs/woman.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='0'"
>
</ng-container>
<div
class=
"contact-box-right"
>
<div
class=
"contact-box-right"
>
<div>
<div>
<span
class=
"contact-name"
>
{{contactPerson.name}}
</span>
<span
class=
"contact-name"
>
{{contactPerson.name}}
</span>
...
...
src/pages/contact/contactList/contactList.scss
View file @
0aef8abf
...
@@ -30,8 +30,9 @@ page-contactList {
...
@@ -30,8 +30,9 @@ page-contactList {
}
}
.contact-img
{
.contact-img
{
width
:
3rem
;
width
:
4rem
;
height
:
3rem
;
height
:
4rem
;
border-radius
:
2px
;
}
}
.contact-name
{
.contact-name
{
...
...
src/pages/contact/contactList/contactList.ts
View file @
0aef8abf
import
{
Component
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
IonicPage
,
NavController
,
NavParams
,
ToastController
,
Content
}
from
'ionic-angular'
;
import
{
IonicPage
,
NavController
,
NavParams
,
ToastController
,
Content
}
from
'ionic-angular'
;
import
{
Response
}
from
'@angular/http'
;
import
{
Response
}
from
'@angular/http'
;
import
{
Storage
}
from
'@ionic/storage'
;
import
{
Storage
}
from
'@ionic/storage'
;
import
{
AppService
}
from
'../../../service/appHttpService'
;
import
{
AppGlobal
,
AppService
}
from
'../../../service/appHttpService'
;
import
{
ContractPersoninfoPage
}
from
'../contract-personinfo/contract-personinfo'
;
import
{
ContractPersoninfoPage
}
from
'../contract-personinfo/contract-personinfo'
;
@
IonicPage
()
@
IonicPage
()
...
@@ -20,14 +20,14 @@ export class ContactListPage {
...
@@ -20,14 +20,14 @@ export class ContactListPage {
contactPersons
:
Array
<
string
>
[];
contactPersons
:
Array
<
string
>
[];
//常用联系人列表(只存联系人id)
//常用联系人列表(只存联系人id)
generalContactPersons
:
Array
<
string
>
=
[];
picture
:
string
=
AppGlobal
.
picture
;
generalContactPersons
:
Array
<
string
>
=
[];
//部门id
//部门id
orgid
:
string
;
orgid
:
string
;
orgName
:
string
;
orgName
:
string
;
constructor
(
constructor
(
public
navCtrl
:
NavController
,
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
navParams
:
NavParams
,
public
storage
:
Storage
,
public
storage
:
Storage
,
public
appService
:
AppService
,
public
appService
:
AppService
,
...
@@ -35,33 +35,33 @@ export class ContactListPage {
...
@@ -35,33 +35,33 @@ export class ContactListPage {
}
}
ionViewDidEnter
():
void
{
ionViewDidEnter
():
void
{
this
.
orgid
=
this
.
navParams
.
get
(
"orgid"
);
this
.
orgid
=
this
.
navParams
.
get
(
"orgid"
);
this
.
orgName
=
this
.
navParams
.
get
(
"orgName"
);
this
.
orgName
=
this
.
navParams
.
get
(
"orgName"
);
//加载联系人(常用联系人,部门下人员)
//加载联系人(常用联系人,部门下人员)
if
(
this
.
orgid
!=
null
&&
this
.
orgid
!=
''
)
{
if
(
this
.
orgid
!=
null
&&
this
.
orgid
!=
''
)
{
this
.
getGeneralContactPersons
();
//常用联系人ids数组
this
.
getGeneralContactPersons
();
//常用联系人ids数组
this
.
initOrganizationPersons
();
//加载部门下人员
this
.
initOrganizationPersons
();
//加载部门下人员
}
else
{
}
else
{
this
.
initGeneralContactPersons
();
//加载常用联系人
this
.
initGeneralContactPersons
();
//加载常用联系人
}
}
}
}
//加载常用联系人
//加载常用联系人
initGeneralContactPersons
()
{
initGeneralContactPersons
()
{
const
data
=
{
const
data
=
{
'order'
:
1
'order'
:
1
};
};
this
.
appService
.
ObserverHttpGetOption
(
"/wisdomgroup/app/contact/getGeneralContactPersons"
,
data
)
this
.
appService
.
ObserverHttpGetOption
(
"/wisdomgroup/app/contact/getGeneralContactPersons"
,
data
)
.
subscribe
((
res
:
Response
)
=>
{
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
let
data
=
res
.
json
();
console
.
log
(
"data1:"
+
JSON
.
stringify
(
data
));
console
.
log
(
"data1:"
+
JSON
.
stringify
(
data
));
this
.
contactPersons
=
data
;
this
.
contactPersons
=
data
;
this
.
contactPersons
.
forEach
(
element
=>
{
this
.
contactPersons
.
forEach
(
element
=>
{
//常用联系人的部门信息
//常用联系人的部门信息
this
.
getOrgName
(
element
[
"id"
],
result
=>
{
this
.
getOrgName
(
element
[
"id"
],
result
=>
{
element
[
"orgName"
]
=
result
[
"orgName"
];
element
[
"orgName"
]
=
result
[
"orgName"
];
});
});
//是否已添加到常用联系人中:
//是否已添加到常用联系人中:
...
@@ -75,9 +75,10 @@ export class ContactListPage {
...
@@ -75,9 +75,10 @@ export class ContactListPage {
}
}
);
);
}
}
//根据用户id获取部门信息
//根据用户id获取部门信息
getOrgName
(
id
,
callback
?):
any
{
getOrgName
(
id
,
callback
?):
any
{
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/app/getOrgName"
,{
"userid"
:
id
})
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/app/getOrgName"
,
{
"userid"
:
id
})
.
toPromise
()
.
toPromise
()
.
then
(
res
=>
{
.
then
(
res
=>
{
var
data
=
res
.
json
();
var
data
=
res
.
json
();
...
@@ -89,12 +90,12 @@ export class ContactListPage {
...
@@ -89,12 +90,12 @@ export class ContactListPage {
}
}
//加载部门下人员
//加载部门下人员
initOrganizationPersons
()
{
initOrganizationPersons
()
{
//this.appService.ObserverHttpGet("/wisdomgroup/app/getAllUserByOrgid",{"orgId":this.orgid})
//this.appService.ObserverHttpGet("/wisdomgroup/app/getAllUserByOrgid",{"orgId":this.orgid})
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/sysmanagement/user/getAllUserByOrgid"
,{
"orgId"
:
this
.
orgid
})
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/sysmanagement/user/getAllUserByOrgid"
,
{
"orgId"
:
this
.
orgid
})
.
subscribe
((
res
:
Response
)
=>
{
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
let
data
=
res
.
json
();
console
.
log
(
"data:"
+
data
);
console
.
log
(
"data:"
+
data
);
this
.
contactPersons
=
data
;
this
.
contactPersons
=
data
;
this
.
contactPersons
.
forEach
(
element
=>
{
this
.
contactPersons
.
forEach
(
element
=>
{
//部门人员的部门信息
//部门人员的部门信息
...
@@ -107,7 +108,7 @@ export class ContactListPage {
...
@@ -107,7 +108,7 @@ export class ContactListPage {
//判断是否在常用联系人中存在:移除按钮
//判断是否在常用联系人中存在:移除按钮
for
(
let
index
=
0
;
index
<
this
.
generalContactPersons
.
length
;
index
++
)
{
for
(
let
index
=
0
;
index
<
this
.
generalContactPersons
.
length
;
index
++
)
{
const
strid
=
this
.
generalContactPersons
[
index
];
const
strid
=
this
.
generalContactPersons
[
index
];
if
(
element
[
"id"
]
==
strid
)
{
if
(
element
[
"id"
]
==
strid
)
{
element
[
"hasgeneralpersonsflag"
]
=
true
;
element
[
"hasgeneralpersonsflag"
]
=
true
;
break
;
break
;
}
}
...
@@ -119,9 +120,10 @@ export class ContactListPage {
...
@@ -119,9 +120,10 @@ export class ContactListPage {
}
}
);
);
}
}
//跳转联系人信息页面
//跳转联系人信息页面
contactPersonInfo
(
contactPerson
)
{
contactPersonInfo
(
contactPerson
)
{
this
.
navCtrl
.
push
(
"ContractPersoninfoPage"
,{
"id"
:
contactPerson
.
id
,
orgName
:
this
.
orgName
});
this
.
navCtrl
.
push
(
"ContractPersoninfoPage"
,
{
"id"
:
contactPerson
.
id
,
orgName
:
this
.
orgName
});
}
}
// search(){
// search(){
...
@@ -134,11 +136,11 @@ export class ContactListPage {
...
@@ -134,11 +136,11 @@ export class ContactListPage {
//获取常用联系人ids,数组:此方法主要是在部门人员列表中判断:
//获取常用联系人ids,数组:此方法主要是在部门人员列表中判断:
//当前人员是否在常用联系人中来判别:添加/移出联系人按钮
//当前人员是否在常用联系人中来判别:添加/移出联系人按钮
getGeneralContactPersons
()
{
getGeneralContactPersons
()
{
const
data
=
{
const
data
=
{
'order'
:
1
'order'
:
1
};
};
this
.
appService
.
ObserverHttpGetOption
(
"/wisdomgroup/app/contact/getGeneralContactPersons"
,
data
)
this
.
appService
.
ObserverHttpGetOption
(
"/wisdomgroup/app/contact/getGeneralContactPersons"
,
data
)
.
subscribe
((
res
:
Response
)
=>
{
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
let
data
=
res
.
json
();
data
.
forEach
(
element
=>
{
data
.
forEach
(
element
=>
{
...
@@ -150,8 +152,8 @@ export class ContactListPage {
...
@@ -150,8 +152,8 @@ export class ContactListPage {
);
);
}
}
goBack
()
{
goBack
()
{
this
.
navCtrl
.
popToRoot
();
this
.
navCtrl
.
popToRoot
();
}
}
}
}
src/pages/contact/contract-personinfo/contract-personinfo.html
View file @
0aef8abf
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<span
class=
"info-span"
>
头像
</span>
<span
class=
"info-span"
>
头像
</span>
<div
class=
"info-item-content"
>
<div
class=
"info-item-content"
>
<ng-container
*
ngIf=
"contactPersonInfo?.picUrl && contactPersonInfo?.picUrl != ''"
>
<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>
<ng-container
*
ngIf=
"!contactPersonInfo?.picUrl || contactPersonInfo?.picUrl == ''"
>
<ng-container
*
ngIf=
"!contactPersonInfo?.picUrl || contactPersonInfo?.picUrl == ''"
>
<img
src=
"./assets/imgs/head.png"
class=
"contact-img"
>
<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 {
...
@@ -57,8 +57,9 @@ page-contract-personinfo {
}
}
.contact-img
{
.contact-img
{
width
:
3rem
;
width
:
4rem
;
height
:
3rem
;
height
:
4rem
;
border-radius
:
2px
;
}
}
.list-item
{
.list-item
{
margin
:
-1px
0
0px
;
margin
:
-1px
0
0px
;
...
...
src/pages/contact/person-list/person-list.html
View file @
0aef8abf
...
@@ -23,14 +23,17 @@
...
@@ -23,14 +23,17 @@
<ion-item-sliding>
<ion-item-sliding>
<ion-item
*
ngFor=
"let item of perList"
>
<ion-item
*
ngFor=
"let item of perList"
>
<div
class=
"contact-box"
(
click
)="
sure
(
item
)"
>
<div
class=
"contact-box"
(
click
)="
sure
(
item
)"
>
<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/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'"
>
<img
src=
"./assets/imgs/woman.png"
class=
"contact-img"
*
ngIf=
"item.gender =='0'"
>
</ng-container>
<div
class=
"contact-box-right"
>
<div
class=
"contact-box-right"
>
<div>
<div>
<span
class=
"contact-name"
>
{{item.name}}
</span>
<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>
<span
class=
"contact-handphone"
>
{{item.mobile}}
</span>
</div>
</div>
<div
class=
"contact-organization"
>
{{item?.orgname}}
</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 {
...
@@ -30,8 +30,9 @@ page-person-list {
}
}
.contact-img
{
.contact-img
{
width
:
3rem
;
width
:
4rem
;
height
:
3rem
;
height
:
4rem
;
border-radius
:
2px
;
}
}
.contact-name
{
.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
{
IonicPage
,
NavController
,
NavParams
,
ViewController
}
from
'ionic-angular'
;
import
{
AppService
}
from
"../../../service/appHttpService"
;
import
{
App
Global
,
App
Service
}
from
"../../../service/appHttpService"
;
@
Component
({
@
Component
({
selector
:
'page-person-list'
,
selector
:
'page-person-list'
,
...
@@ -8,24 +8,26 @@ import {AppService} from "../../../service/appHttpService";
...
@@ -8,24 +8,26 @@ import {AppService} from "../../../service/appHttpService";
})
})
export
class
PersonListPage
{
export
class
PersonListPage
{
picture
:
string
=
AppGlobal
.
picture
;
perList
;
perList
;
name
=
''
;
name
=
''
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
,
public
viewCtrl
:
ViewController
)
{
public
appService
:
AppService
,
public
viewCtrl
:
ViewController
)
{
}
}
ionViewDidLoad
()
{
ionViewDidLoad
()
{
this
.
getList
();
this
.
getList
();
}
}
getList
()
{
getList
()
{
const
data
=
{
const
data
=
{
name
:
this
.
name
,
name
:
this
.
name
,
pageNumber
:
1
,
pageNumber
:
1
,
pageSize
:
100
,
pageSize
:
100
,
};
};
this
.
appService
.
ObserverHttpNoForm
(
'/wisdomgroup/app/getUserByName'
,
data
)
this
.
appService
.
ObserverHttpNoForm
(
'/wisdomgroup/app/getUserByName'
,
data
)
.
subscribe
((
res
)
=>
{
.
subscribe
((
res
)
=>
{
this
.
perList
=
res
.
json
().
list
;
this
.
perList
=
res
.
json
().
list
;
})
})
}
}
...
@@ -34,7 +36,7 @@ export class PersonListPage {
...
@@ -34,7 +36,7 @@ export class PersonListPage {
this
.
viewCtrl
.
dismiss
();
this
.
viewCtrl
.
dismiss
();
}
}
sure
(
item
){
sure
(
item
)
{
this
.
viewCtrl
.
dismiss
(
item
);
this
.
viewCtrl
.
dismiss
(
item
);
}
}
...
...
src/pages/contact/search/search.html
View file @
0aef8abf
...
@@ -15,16 +15,20 @@
...
@@ -15,16 +15,20 @@
<ion-list>
<ion-list>
<ion-item
*
ngFor=
"let contactPerson of contactPersons"
(
click
)="
contactPersonInfo
(
contactPerson
)"
>
<ion-item
*
ngFor=
"let contactPerson of contactPersons"
(
click
)="
contactPersonInfo
(
contactPerson
)"
>
<div
class=
"contact-box"
>
<div
class=
"contact-box"
>
<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/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'"
>
<img
src=
"./assets/imgs/woman.png"
class=
"contact-img"
*
ngIf=
"contactPerson.gender =='0'"
>
</ng-container>
<div
class=
"contact-box-right"
>
<div
class=
"contact-box-right"
>
<div>
<div>
<span
class=
"contact-name"
>
{{contactPerson.name}}
</span>
<span
class=
"contact-name"
>
{{contactPerson.name}}
</span>
</div>
</div>
<div
class=
"contact-organization"
>
{{contactPerson.orgName}}
</div>
<div
class=
"contact-organization"
>
{{contactPerson.orgName}}
</div>
<div>
<div>
<span
class=
"contact-telphone"
>
座机:{{contactPerson.telephone}}
</span>
<span
class=
"contact-handphone"
>
手机:{{contactPerson.mobile}}
</span>
<span
class=
"contact-handphone"
>
手机:{{contactPerson.mobile}}
</span>
</div>
</div>
</div>
</div>
...
...
src/pages/contact/search/search.scss
View file @
0aef8abf
...
@@ -78,8 +78,8 @@ page-search {
...
@@ -78,8 +78,8 @@ page-search {
}
}
.contact-img
{
.contact-img
{
width
:
3
rem
;
width
:
4
rem
;
height
:
3
rem
;
height
:
4
rem
;
}
}
.contact-name
{
.contact-name
{
...
...
src/pages/surveyManage/list/list.html
View file @
0aef8abf
...
@@ -2,7 +2,11 @@
...
@@ -2,7 +2,11 @@
<ion-navbar>
<ion-navbar>
<ion-title>
问卷管理
</ion-title>
<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>
</ion-navbar>
<div
class=
"pageMenuSlides"
>
<div
class=
"pageMenuSlides"
>
<div
class=
"swiper-container"
>
<div
class=
"swiper-container"
>
...
...
src/pages/surveyManage/list/list.ts
View file @
0aef8abf
...
@@ -100,7 +100,7 @@ export class ListPage {
...
@@ -100,7 +100,7 @@ export class ListPage {
//创建
//创建
create
(){
create
(){
this
.
showOp
=
false
;
//
this.showOp = false;
this
.
navCtrl
.
push
(
'DesicrPage'
);
this
.
navCtrl
.
push
(
'DesicrPage'
);
}
}
...
...
src/pages/tabs/contact/contact.scss
View file @
0aef8abf
...
@@ -8,7 +8,7 @@ page-contact {
...
@@ -8,7 +8,7 @@ page-contact {
.myItem
{
.myItem
{
margin
:
0
;
margin
:
0
;
.contact-img
{
.contact-img
{
width
:
3
rem
;
width
:
4
rem
;
margin-right
:
1rem
;
margin-right
:
1rem
;
}
}
.item
{
.item
{
...
...
src/pages/tabs/home/home.ts
View file @
0aef8abf
...
@@ -365,6 +365,7 @@ export class HomePage {
...
@@ -365,6 +365,7 @@ export class HomePage {
//日历
//日历
getCalendar
()
{
getCalendar
()
{
this
.
newArr
=
[];
let
date
=
new
Date
();
let
date
=
new
Date
();
let
year
=
date
.
getFullYear
();
let
year
=
date
.
getFullYear
();
let
month
=
date
.
getMonth
()
+
1
;
let
month
=
date
.
getMonth
()
+
1
;
...
...
src/pages/tabs/mine/mine.scss
View file @
0aef8abf
...
@@ -46,7 +46,7 @@ page-mine {
...
@@ -46,7 +46,7 @@ page-mine {
.head-photo
{
.head-photo
{
width
:
60px
;
width
:
60px
;
height
:
60px
;
height
:
60px
;
border-radius
:
60
px
;
border-radius
:
2
px
;
}
}
.group
{
.group
{
...
...
src/service/appHttpService.ts
View file @
0aef8abf
...
@@ -362,7 +362,7 @@ export class AppService {
...
@@ -362,7 +362,7 @@ export class AppService {
// return this.http.get(AppGlobal.domain + url + this.encode(params, "get")) //app
// return this.http.get(AppGlobal.domain + url + this.encode(params, "get")) //app
// }
// }
//
//
//
// //get请求
// //get请求
// ObserverHttpGetData(url, params): Observable<any> {
// ObserverHttpGetData(url, params): Observable<any> {
// return this.http.get(AppGlobal.domain +url, params) //本地
// 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