Commit 4f453467 authored by wangqinghua's avatar wangqinghua

问卷调查

parent 41126371
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"proxies": [ "proxies": [
{ {
"path": "/wisdomgroup", "path": "/wisdomgroup",
"proxyUrl": "http://10.10.200.34:8080/wisdomgroup" "proxyUrl": "http://180.168.156.212:2931/wisdomgroup"
} }
] ]
} }
\ No newline at end of file
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
</div> </div>
<div class="content-button"> <div class="content-button">
<span>最新批次:</span> <span>最新批次:</span>
<span>{{item.recent_batch.batchName}}</span> <span *ngIf="item.recent_batch">{{item.recent_batch.batchName}}</span>
<span *ngIf="!item.recent_batch">暂无</span>
</div> </div>
<!--<button class="sign-up" *ngIf="item.activityState==2 && item.orderList.length>0 " (click)="goDetail(item);$event.stopPropagation();">查看</button>--> <!--<button class="sign-up" *ngIf="item.activityState==2 && item.orderList.length>0 " (click)="goDetail(item);$event.stopPropagation();">查看</button>-->
<!--<button class="sign-up" *ngIf="item.activityState==2 && item.orderList.length==0 " (click)="goApply(item);$event.stopPropagation();">报名</button>--> <!--<button class="sign-up" *ngIf="item.activityState==2 && item.orderList.length==0 " (click)="goApply(item);$event.stopPropagation();">报名</button>-->
......
...@@ -62,7 +62,7 @@ export class ActivityListPage { ...@@ -62,7 +62,7 @@ export class ActivityListPage {
} }
//初始化显示活动列表 //初始化显示活动列表
ngOnInit(): void { ionViewDidEnter(): void {
this.getActivityList(); this.getActivityList();
this.addRecodings(); this.addRecodings();
} }
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<ion-content *ngIf="isSearch"> <ion-content *ngIf="isSearch">
<div class="city-item" id="{{area.inorout}}" *ngFor="let area of searchAreaAll"> <div class="city-item" *ngFor="let area of searchAreaAll" id="{{area.inorout}}">
<div class="city-title"></div> <div class="city-title"></div>
<div class="city-box"> <div class="city-box">
<div class="city"> <div class="city">
...@@ -46,12 +46,11 @@ ...@@ -46,12 +46,11 @@
<ion-slides #contentSlides (ionSlideDidChange)="slideChanged()"> <ion-slides #contentSlides (ionSlideDidChange)="slideChanged()">
<ion-slide> <ion-slide>
<ion-content #content1> <ion-content #content1>
<div class="city-item" *ngFor="let area of areaAll" id="{{area.code}}0">
<div class="city-item" id="{{area.code}}0" *ngFor="let area of areaAll"> <div class="city-title">{{area.code}} </div>
<div class="city-title">{{area.code}}</div>
<div class="city-box"> <div class="city-box">
<div class="city" *ngFor="let item of area.list"> <div class="city">
<span (click)="selectedCity(item)">{{item.areaName}}</span> <span (click)="selectedCity(area)">{{area.areaName}}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -60,12 +59,12 @@ ...@@ -60,12 +59,12 @@
<ion-slide> <ion-slide>
<ion-content #content2> <ion-content #content2>
<div class="city-item" id="{{area.code}}1" *ngFor="let area of outerAreaAll"> <div class="city-item" *ngFor="let area of outerAreaAll" id="{{area.code}}1">
<div class="city-title">{{area.code}}</div> <div class="city-title">{{area.code}}</div>
<div class="city-box"> <div class="city-box">
<div class="city" *ngFor="let item of area.list"> <!--<div class="city" *ngFor="let item of area.list">-->
<span (click)="selectedCity(item)">{{item.areaName}}</span> <span (click)="selectedCity(area)">{{area.areaName}}</span>
</div> <!--</div>-->
</div> </div>
</div> </div>
</ion-content> </ion-content>
......
...@@ -26,7 +26,7 @@ export class ChooseAddressPage { ...@@ -26,7 +26,7 @@ export class ChooseAddressPage {
searchValue: string; searchValue: string;
currentIndex:number = 0; currentIndex:number = 0;
//国内 //国内
areaAll: Array<String>[][]; areaAll = [];
//国外 //国外
outerAreaAll: Array<String>[][]; outerAreaAll: Array<String>[][];
//搜索 //搜索
...@@ -116,8 +116,6 @@ export class ChooseAddressPage { ...@@ -116,8 +116,6 @@ export class ChooseAddressPage {
this.isSearch = false; this.isSearch = false;
} }
//滑动定位 //滑动定位
scrollTop(id) { scrollTop(id) {
//动态拼接组件id //动态拼接组件id
...@@ -133,13 +131,16 @@ export class ChooseAddressPage { ...@@ -133,13 +131,16 @@ export class ChooseAddressPage {
document.querySelector("#"+id+this.currentIndex).scrollIntoView(true); document.querySelector("#"+id+this.currentIndex).scrollIntoView(true);
} }
//初始化列表 //初始化列表
initAreaList(): void { initAreaList(): void {
this.appService.ObserverHttpGet("/wisdomgroup/area/area/getArea",null) const data = {
'inorout':'1'
};
this.appService.ObserverHttpGetOption("/wisdomgroup/area/area/getProvince",data)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
this.areaAll = data; this.areaAll = data;
console.log(this.areaAll);
//this.appService.alert(JSON.stringify(this.areaAll)); //this.appService.alert(JSON.stringify(this.areaAll));
}, error => { }, error => {
...@@ -150,11 +151,15 @@ export class ChooseAddressPage { ...@@ -150,11 +151,15 @@ export class ChooseAddressPage {
initOuterAreaList(): void { initOuterAreaList(): void {
this.appService.ObserverHttpGet("/wisdomgroup/area/area/getOutArea",null) const data = {
'inorout':'2'
};
this.appService.ObserverHttpGetOption("/wisdomgroup/area/area/getProvince",data)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
this.outerAreaAll = data; this.outerAreaAll = data;
//this.appService.alert(JSON.stringify(this.outerAreaAll)); console.log(this.outerAreaAll);
//this.appService.alert(JSON.stringify(this.areaAll));
}, error => { }, error => {
this.appService.alert('网络异常!'); this.appService.alert('网络异常!');
...@@ -191,4 +196,21 @@ export class ChooseAddressPage { ...@@ -191,4 +196,21 @@ export class ChooseAddressPage {
); );
} }
initArea(){
// this.appService.ObserverHttpGetOption('/wisdomgroup/area/area/getProvince',data).subscribe(
// (res:Response)=>{
// console.log(res)
// }
// )
const data1 = {
'parentId':'8514'
};
this.appService.ObserverHttpGetOption('/wisdomgroup/area/area/getCityByParentId',data1).subscribe(
(res:Response)=>{
console.log(res)
}
)
}
} }
...@@ -35,7 +35,7 @@ export class ContactListPage { ...@@ -35,7 +35,7 @@ export class ContactListPage {
} }
ngOnInit():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");
...@@ -43,17 +43,20 @@ export class ContactListPage { ...@@ -43,17 +43,20 @@ export class ContactListPage {
console.log("orgid:"+this.orgid); console.log("orgid:"+this.orgid);
console.log("orgName:"+this.orgName); console.log("orgName:"+this.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(){
this.appService.ObserverHttpGet("/wisdomgroup/app/contact/getGeneralContactPersons",null) const data = {
'order':1
};
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));
...@@ -121,8 +124,7 @@ export class ContactListPage { ...@@ -121,8 +124,7 @@ export class ContactListPage {
} }
//跳转联系人信息页面 //跳转联系人信息页面
contactPersonInfo(contactPerson){ contactPersonInfo(contactPerson){
console.log("contactPerson:"+JSON.stringify(contactPerson)); this.navCtrl.push("ContractPersoninfoPage",{"id":contactPerson.id});
this.navCtrl.push("ContractPersoninfoPage",{"contactPerson":contactPerson});
} }
// search(){ // search(){
...@@ -136,7 +138,10 @@ export class ContactListPage { ...@@ -136,7 +138,10 @@ export class ContactListPage {
//获取常用联系人ids,数组:此方法主要是在部门人员列表中判断: //获取常用联系人ids,数组:此方法主要是在部门人员列表中判断:
//当前人员是否在常用联系人中来判别:添加/移出联系人按钮 //当前人员是否在常用联系人中来判别:添加/移出联系人按钮
getGeneralContactPersons(){ getGeneralContactPersons(){
this.appService.ObserverHttpGet("/wisdomgroup/app/contact/getGeneralContactPersons",null) const data = {
'order':1
};
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 => {
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<div class="info-item"> <div class="info-item">
<span class="info-span">邮箱</span> <span class="info-span">邮箱</span>
<div *ngIf="!edit.email" class="info-item-content" (click)="editFun('email')"> <div *ngIf="!edit.email" class="info-item-content" (click)="editFun('email')">
<span class="info">{{contactPersonInfo.telephone}}</span> <span class="info">{{contactPersonInfo.email}}</span>
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon> <ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</div> </div>
<div *ngIf="edit.email" class="info-item-content"> <div *ngIf="edit.email" class="info-item-content">
......
...@@ -14,8 +14,9 @@ import {MyBlockPage} from "../my-block/my-block"; ...@@ -14,8 +14,9 @@ import {MyBlockPage} from "../my-block/my-block";
export class ContractPersoninfoPage { export class ContractPersoninfoPage {
contactPersonInfo = { contactPersonInfo = {
mobile:'' gender:''
}; };
id;
userRelEntity = { userRelEntity = {
relUserId:'', relUserId:'',
...@@ -38,22 +39,18 @@ export class ContractPersoninfoPage { ...@@ -38,22 +39,18 @@ export class ContractPersoninfoPage {
} }
ionViewDidLoad() { ionViewDidLoad() {
this.contactPersonInfo = this.navParams.get("contactPerson"); this.id = this.navParams.get("id");
console.log("contactPersonInfo:"+this.contactPersonInfo);
this.userRelEntity.relUserId = this.contactPersonInfo["id"];
this.getPersonInfo(); this.getPersonInfo();
} }
getPersonInfo(){ getPersonInfo(){
const params = { const data = {
name: this.contactPersonInfo.mobile, 'userId':this.id
pageSize:'1', };
pageNumber:'1' this.appService.ObserverHttpGet("/wisdomgroup/modules/telpBookPerson",data)
}
this.appService.ObserverHttpGetOption("/wisdomgroup/app/getUserByName",params)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); this.contactPersonInfo = res.json().data;
this.contactPersonInfo = data.list[0];
}, error => { }, error => {
this.appService.alert('网络异常!'); this.appService.alert('网络异常!');
} }
...@@ -62,7 +59,7 @@ export class ContractPersoninfoPage { ...@@ -62,7 +59,7 @@ export class ContractPersoninfoPage {
//添加常用联系人 //添加常用联系人
addcontactPersons(){ addcontactPersons(){
this.appService.ObserverHttpPost("/wisdomgroup/app/contact/addGeneralContactPersons",this.userRelEntity) this.appService.ObserverHttpPostOption("/wisdomgroup/app/contact/addGeneralContactPersons",this.id)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
console.log("data:"+data); console.log("data:"+data);
...@@ -127,12 +124,12 @@ export class ContractPersoninfoPage { ...@@ -127,12 +124,12 @@ export class ContractPersoninfoPage {
email:this.email email:this.email
}; };
const paramsTelePhone = { const paramsTelePhone = {
email:this.telephone telephone:this.telephone
}; };
const paramsAbbreviation = { const paramsAbbreviation = {
email:this.abbreviation abbreviation:this.abbreviation
}; };
this.appService.ObserverHttpPut("/wisdomgroup//modules/telpBookPerson/email/",paramsEmail,this.userRelEntity.relUserId) this.appService.ObserverHttpPut("/wisdomgroup/modules/telpBookPerson/email/",paramsEmail,this.id)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
}, error => { }, error => {
...@@ -140,7 +137,7 @@ export class ContractPersoninfoPage { ...@@ -140,7 +137,7 @@ export class ContractPersoninfoPage {
} }
); );
this.appService.ObserverHttpPut("/wisdomgroup//modules/telpBookPerson/telephone/",paramsTelePhone,this.userRelEntity.relUserId) this.appService.ObserverHttpPut("/wisdomgroup//modules/telpBookPerson/telephone/",paramsTelePhone,this.id)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
}, error => { }, error => {
...@@ -148,7 +145,7 @@ export class ContractPersoninfoPage { ...@@ -148,7 +145,7 @@ export class ContractPersoninfoPage {
} }
); );
this.appService.ObserverHttpPut("/wisdomgroup//modules/telpBookPerson/abbreviation/",paramsAbbreviation,this.userRelEntity.relUserId) this.appService.ObserverHttpPut("/wisdomgroup//modules/telpBookPerson/abbreviation/",paramsAbbreviation,this.id)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
}, error => { }, error => {
......
...@@ -120,22 +120,7 @@ export class OutGoingReportDetailPage { ...@@ -120,22 +120,7 @@ export class OutGoingReportDetailPage {
} }
ngOnInit():void{ ngOnInit():void{
const data = {
'inorout':'2'
}
this.appService.ObserverHttpGetOption('/wisdomgroup/area/area/getProvince',data).subscribe(
(res:Response)=>{
console.log(res)
}
)
const data1 = {
'parentId':'8514'
}
this.appService.ObserverHttpGetOption('/wisdomgroup/area/area/getCityByParentId',data1).subscribe(
(res:Response)=>{
console.log(res)
}
)
} }
......
...@@ -29,7 +29,7 @@ export class ContactPage { ...@@ -29,7 +29,7 @@ export class ContactPage {
} }
//ionViewWillEnter //ionViewWillEnter
ngOnInit():void{ ionViewDidEnter():void{
//加载组织列表:initOrganizeList //加载组织列表:initOrganizeList
this.initOrganizeList(); this.initOrganizeList();
this.initOwnerList(); this.initOwnerList();
......
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