프로필 항목 옵션화 / 직무, 거래처

This commit is contained in:
leejinho 2020-01-10 15:57:12 +09:00
parent 856def09c4
commit 831283c10a
6 changed files with 24 additions and 27 deletions

View File

@ -80,13 +80,7 @@
(openProfile)="onClickOpenProfile($event)"
(click)="onToggleUser(userInfo)"
(contextmenu)="onContextMenuOrgUser($event, userInfo)"
[matTooltip]="
userInfo.companyName +
' / ' +
userInfo.lineNumber +
' / ' +
userInfo.hpNumber
"
[matTooltip]="getTooltip(userInfo)"
matTooltipPosition="after"
>
</ucap-profile-user-list-item>
@ -110,13 +104,7 @@
(openProfile)="onClickOpenProfile($event)"
(click)="onToggleUser(userInfo)"
(contextmenu)="onContextMenuOrgUser($event, userInfo)"
[matTooltip]="
userInfo.companyName +
' / ' +
userInfo.lineNumber +
' / ' +
userInfo.hpNumber
"
[matTooltip]="getTooltip(userInfo)"
matTooltipPosition="after"
>
</ucap-profile-user-list-item>

View File

@ -64,6 +64,7 @@ import {
SelectedUserListDialogData
} from '../../dialogs/organization/selected-user-list.dialog.component';
import { TranslateService } from '@ngx-translate/core';
import { StringFormatterPhonePipe } from 'projects/ucap-webmessenger-ui/src/lib/pipes/string.pipe';
@Component({
selector: 'app-layout-chat-left-sidenav-organization',
@ -604,4 +605,12 @@ export class OrganizationComponent
break;
}
}
getTooltip(userInfo: UserInfoSS): string {
return `${
userInfo.companyName
} / ${new StringFormatterPhonePipe().transform(
userInfo.lineNumber
)} / ${new StringFormatterPhonePipe().transform(userInfo.hpNumber)}`;
}
}

View File

@ -127,7 +127,7 @@ export const environment: Environment = {
hostConfig: {
protocol: 'http',
domain: '15.164.139.105',
port: 9098
port: 9097
},
urls: messageApiUrls
},

View File

@ -68,12 +68,12 @@ export const decodeDataUser: ProtocolDecoder<DataUserResponse> = (
employeeType: info[28] as EmployeeType,
// [daesang]
companyName: info[29],
responsibilities: info[30],
companyName: !!info[29] ? info[29].trim() : '',
responsibilities: !!info[30] ? info[30].trim() : '',
workstatus: info[31] as WorkStatusType,
job: info[32],
customerInfo: info[33],
workplace: info[34]
job: !!info[32] ? info[32].trim() : '',
customerInfo: !!info[33] ? info[33].trim() : '',
workplace: !!info[34] ? info[34].trim() : ''
};
}
return decodeProtocolMessage(message, {

View File

@ -117,12 +117,12 @@ export const decodeDeptUserData: ProtocolDecoder<DeptUserData> = (
employeeType: info[28] as EmployeeType,
// [daesang]
companyName: info[29],
responsibilities: info[30],
companyName: !!info[29] ? info[29].trim() : '',
responsibilities: !!info[30] ? info[30].trim() : '',
workstatus: info[31] as WorkStatusType,
job: info[32],
customerInfo: info[33],
workplace: info[34]
job: !!info[32] ? info[32].trim() : '',
customerInfo: !!info[33] ? info[33].trim() : '',
workplace: !!info[34] ? info[34].trim() : ''
});
});
return decodeProtocolMessage(message, {

View File

@ -170,11 +170,11 @@
<dt>{{ 'profile.fieldworkplace' | translate }}</dt>
<dd>{{ userInfo.workplace | ucapStringEmptycheck }}</dd>
</li>
<li>
<li *ngIf="userInfo.job">
<dt class="division">{{ 'profile.fieldJob' | translate }}</dt>
<dd>{{ userInfo.job | ucapStringEmptycheck }}</dd>
</li>
<li>
<li *ngIf="userInfo.customerInfo">
<dt>{{ 'profile.fieldCustomerInfo' | translate }}</dt>
<dd>{{ userInfo.customerInfo | ucapStringEmptycheck }}</dd>
</li>