Commit 1236fb40 authored by wangqinghua's avatar wangqinghua

日历

parent e0140468
...@@ -154,3 +154,10 @@ ion-icon { ...@@ -154,3 +154,10 @@ ion-icon {
background-color: #ebedf2; background-color: #ebedf2;
height: 10px; height: 10px;
} }
//toast
.toast-ios .toast-wrapper.toast-middle{
width: 50%;
text-align: center;
}
\ No newline at end of file
...@@ -99,9 +99,9 @@ ...@@ -99,9 +99,9 @@
<button class="call-btn" (click)="call(contactPersonInfo.mobile)">拨打手机</button> <button class="call-btn" (click)="call(contactPersonInfo.mobile)">拨打手机</button>
<button class="call-btn" (click)="addcontactPersons()" *ngIf="!contactPersonInfo.hasgeneralpersonsflag">添加常用联系人</button> <button class="call-btn" (click)="addcontactPersons()" *ngIf="isContact == 0">添加常用联系人</button>
<button class="call-btn" (click)="cancelGenaralPersons()" *ngIf="contactPersonInfo.hasgeneralpersonsflag">移除常用联系人</button> <button class="call-btn" (click)="cancelGenaralPersons()" *ngIf="isContact == 1">移除常用联系人</button>
<button class="call-btn" (click)="usualContactSet()">设置分组</button> <button class="call-btn" (click)="usualContactSet()">设置分组</button>
......
...@@ -21,14 +21,12 @@ export class ContractPersoninfoPage { ...@@ -21,14 +21,12 @@ export class ContractPersoninfoPage {
}; };
id; id;
userRelEntity = {
relUserId: '',
moduleName: 'appcontact',
};
edit = false; edit = false;
email; email;
abbreviation; abbreviation;
telephone; telephone;
isContact;
constructor(public navCtrl: NavController, constructor(public navCtrl: NavController,
public navParams: NavParams, public navParams: NavParams,
...@@ -47,6 +45,7 @@ export class ContractPersoninfoPage { ...@@ -47,6 +45,7 @@ export class ContractPersoninfoPage {
this.appService.ObserverHttpGet("/wisdomgroup/modules/telpBookPerson", data) this.appService.ObserverHttpGet("/wisdomgroup/modules/telpBookPerson", data)
.subscribe((res: Response) => { .subscribe((res: Response) => {
this.contactPersonInfo = res.json().data.user; this.contactPersonInfo = res.json().data.user;
this.isContact = res.json().data.isContact;
this.email = this.contactPersonInfo.email; this.email = this.contactPersonInfo.email;
this.abbreviation = this.contactPersonInfo.abbreviation; this.abbreviation = this.contactPersonInfo.abbreviation;
this.telephone = this.contactPersonInfo.telephone; this.telephone = this.contactPersonInfo.telephone;
...@@ -70,8 +69,9 @@ export class ContractPersoninfoPage { ...@@ -70,8 +69,9 @@ export class ContractPersoninfoPage {
} else if (data["result"] == '3') { } else if (data["result"] == '3') {
this.appService.popToastView('添加常用联系人失败!', 'top', 2000); this.appService.popToastView('添加常用联系人失败!', 'top', 2000);
} else { } else {
//this.appService.popToastView('添加常用联系人成功!','top',2000); this.appService.popToastView('添加常用联系人成功!','middle',2000);
this.navCtrl.push("ContactListPage"); this.getPersonInfo();
// this.navCtrl.push("ContactListPage");
} }
//this.navCtrl.pop(); //this.navCtrl.pop();
}, error => { }, error => {
...@@ -83,10 +83,15 @@ export class ContractPersoninfoPage { ...@@ -83,10 +83,15 @@ export class ContractPersoninfoPage {
//移除常用联系人 //移除常用联系人
cancelGenaralPersons() { cancelGenaralPersons() {
this.appService.ObserverHttpPost("/wisdomgroup/app/contact/deleteGeneralContactPersons", this.userRelEntity) const data = {
relUserId: this.id,
moduleName: 'appcontact',
};
this.appService.ObserverHttpPost("/wisdomgroup/app/contact/deleteGeneralContactPersons", data)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
this.navCtrl.push("ContactListPage"); this.getPersonInfo();
this.appService.popToastView('移除常用联系人成功!', 'middle', 2000);
}, error => { }, error => {
this.appService.alert('网络异常!'); this.appService.alert('网络异常!');
} }
......
...@@ -10,26 +10,28 @@ ...@@ -10,26 +10,28 @@
<ion-content class="bgc-e7e8ed"> <ion-content class="bgc-e7e8ed">
<ion-list> <ion-list>
<ng-container *ngIf="list.length > 0"> <ng-container *ngIf="list.length > 0">
<ng-container *ngIf="item?.isAnsNum != 0">
<ion-item class="item-list margin-bottom-10" *ngFor="let item of list"> <ion-item class="item-list margin-bottom-10" *ngFor="let item of list">
<div class="item" > <div class="item" >
<div class="item-header padding-15-0"> <div class="item-header padding-15-0">
<div class="item-header-style"> <div class="item-header-style">
<span class="item-title">{{item.title}}</span> <span class="item-title">{{item.title}}</span>
<span float-right class="done" *ngIf="item.state==1 ">未发布</span> <!--<span float-right class="done" *ngIf="item.state==1 ">未发布</span>-->
<span float-right class="done" *ngIf="item.state==2 ">已发布</span> <span float-right class="done">已完成</span>
<span float-right class="done" *ngIf="item.state==3 ">已过期</span> <!--<span float-right class="done" *ngIf="item.state==3 ">已过期</span>-->
</div> </div>
</div> </div>
<div class="content-button padding-15-0"> <div class="content-button padding-15-0">
<span>参与人员:</span> <span>参与人员:</span>
<span *ngIf="item.groupName">{{item.groupName}}</span> <span *ngIf="item.groupName">{{item.groupName}}</span>
<span *ngIf="!item.groupName">全体人员</span> <span *ngIf="!item.groupName">全体人员</span>
<span *ngIf="item?.isAnsNum == 0" float-right class="join" (click)="geToWrite(item)">参与</span> <!--<span *ngIf="item?.isAnsNum == 0" float-right class="join" (click)="geToWrite(item)">参与</span>-->
<span *ngIf="item?.isAnsNum != 0" float-right class="look" (click)="goToResult(item)">查看</span> <span float-right class="look" (click)="goToResult(item)">查看</span>
</div> </div>
</div> </div>
</ion-item> </ion-item>
</ng-container> </ng-container>
</ng-container>
<ng-container *ngIf="list.length == 0"> <ng-container *ngIf="list.length == 0">
<div text-center style="margin-top: 10rem" *ngIf="list.length == 0"> <div text-center style="margin-top: 10rem" *ngIf="list.length == 0">
<img style="width: 20%;" src="./assets/imgs/no-info.png" alt=""> <img style="width: 20%;" src="./assets/imgs/no-info.png" alt="">
......
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