프로필 항목 옵션화 / 직무, 거래처
This commit is contained in:
parent
856def09c4
commit
831283c10a
|
@ -80,13 +80,7 @@
|
||||||
(openProfile)="onClickOpenProfile($event)"
|
(openProfile)="onClickOpenProfile($event)"
|
||||||
(click)="onToggleUser(userInfo)"
|
(click)="onToggleUser(userInfo)"
|
||||||
(contextmenu)="onContextMenuOrgUser($event, userInfo)"
|
(contextmenu)="onContextMenuOrgUser($event, userInfo)"
|
||||||
[matTooltip]="
|
[matTooltip]="getTooltip(userInfo)"
|
||||||
userInfo.companyName +
|
|
||||||
' / ' +
|
|
||||||
userInfo.lineNumber +
|
|
||||||
' / ' +
|
|
||||||
userInfo.hpNumber
|
|
||||||
"
|
|
||||||
matTooltipPosition="after"
|
matTooltipPosition="after"
|
||||||
>
|
>
|
||||||
</ucap-profile-user-list-item>
|
</ucap-profile-user-list-item>
|
||||||
|
@ -110,13 +104,7 @@
|
||||||
(openProfile)="onClickOpenProfile($event)"
|
(openProfile)="onClickOpenProfile($event)"
|
||||||
(click)="onToggleUser(userInfo)"
|
(click)="onToggleUser(userInfo)"
|
||||||
(contextmenu)="onContextMenuOrgUser($event, userInfo)"
|
(contextmenu)="onContextMenuOrgUser($event, userInfo)"
|
||||||
[matTooltip]="
|
[matTooltip]="getTooltip(userInfo)"
|
||||||
userInfo.companyName +
|
|
||||||
' / ' +
|
|
||||||
userInfo.lineNumber +
|
|
||||||
' / ' +
|
|
||||||
userInfo.hpNumber
|
|
||||||
"
|
|
||||||
matTooltipPosition="after"
|
matTooltipPosition="after"
|
||||||
>
|
>
|
||||||
</ucap-profile-user-list-item>
|
</ucap-profile-user-list-item>
|
||||||
|
|
|
@ -64,6 +64,7 @@ import {
|
||||||
SelectedUserListDialogData
|
SelectedUserListDialogData
|
||||||
} from '../../dialogs/organization/selected-user-list.dialog.component';
|
} from '../../dialogs/organization/selected-user-list.dialog.component';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
|
import { StringFormatterPhonePipe } from 'projects/ucap-webmessenger-ui/src/lib/pipes/string.pipe';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-layout-chat-left-sidenav-organization',
|
selector: 'app-layout-chat-left-sidenav-organization',
|
||||||
|
@ -604,4 +605,12 @@ export class OrganizationComponent
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getTooltip(userInfo: UserInfoSS): string {
|
||||||
|
return `${
|
||||||
|
userInfo.companyName
|
||||||
|
} / ${new StringFormatterPhonePipe().transform(
|
||||||
|
userInfo.lineNumber
|
||||||
|
)} / ${new StringFormatterPhonePipe().transform(userInfo.hpNumber)}`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ export const environment: Environment = {
|
||||||
hostConfig: {
|
hostConfig: {
|
||||||
protocol: 'http',
|
protocol: 'http',
|
||||||
domain: '15.164.139.105',
|
domain: '15.164.139.105',
|
||||||
port: 9098
|
port: 9097
|
||||||
},
|
},
|
||||||
urls: messageApiUrls
|
urls: messageApiUrls
|
||||||
},
|
},
|
||||||
|
|
|
@ -68,12 +68,12 @@ export const decodeDataUser: ProtocolDecoder<DataUserResponse> = (
|
||||||
employeeType: info[28] as EmployeeType,
|
employeeType: info[28] as EmployeeType,
|
||||||
|
|
||||||
// [daesang]
|
// [daesang]
|
||||||
companyName: info[29],
|
companyName: !!info[29] ? info[29].trim() : '',
|
||||||
responsibilities: info[30],
|
responsibilities: !!info[30] ? info[30].trim() : '',
|
||||||
workstatus: info[31] as WorkStatusType,
|
workstatus: info[31] as WorkStatusType,
|
||||||
job: info[32],
|
job: !!info[32] ? info[32].trim() : '',
|
||||||
customerInfo: info[33],
|
customerInfo: !!info[33] ? info[33].trim() : '',
|
||||||
workplace: info[34]
|
workplace: !!info[34] ? info[34].trim() : ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return decodeProtocolMessage(message, {
|
return decodeProtocolMessage(message, {
|
||||||
|
|
|
@ -117,12 +117,12 @@ export const decodeDeptUserData: ProtocolDecoder<DeptUserData> = (
|
||||||
employeeType: info[28] as EmployeeType,
|
employeeType: info[28] as EmployeeType,
|
||||||
|
|
||||||
// [daesang]
|
// [daesang]
|
||||||
companyName: info[29],
|
companyName: !!info[29] ? info[29].trim() : '',
|
||||||
responsibilities: info[30],
|
responsibilities: !!info[30] ? info[30].trim() : '',
|
||||||
workstatus: info[31] as WorkStatusType,
|
workstatus: info[31] as WorkStatusType,
|
||||||
job: info[32],
|
job: !!info[32] ? info[32].trim() : '',
|
||||||
customerInfo: info[33],
|
customerInfo: !!info[33] ? info[33].trim() : '',
|
||||||
workplace: info[34]
|
workplace: !!info[34] ? info[34].trim() : ''
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return decodeProtocolMessage(message, {
|
return decodeProtocolMessage(message, {
|
||||||
|
|
|
@ -170,11 +170,11 @@
|
||||||
<dt>{{ 'profile.fieldworkplace' | translate }}</dt>
|
<dt>{{ 'profile.fieldworkplace' | translate }}</dt>
|
||||||
<dd>{{ userInfo.workplace | ucapStringEmptycheck }}</dd>
|
<dd>{{ userInfo.workplace | ucapStringEmptycheck }}</dd>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li *ngIf="userInfo.job">
|
||||||
<dt class="division">{{ 'profile.fieldJob' | translate }}</dt>
|
<dt class="division">{{ 'profile.fieldJob' | translate }}</dt>
|
||||||
<dd>{{ userInfo.job | ucapStringEmptycheck }}</dd>
|
<dd>{{ userInfo.job | ucapStringEmptycheck }}</dd>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li *ngIf="userInfo.customerInfo">
|
||||||
<dt>{{ 'profile.fieldCustomerInfo' | translate }}</dt>
|
<dt>{{ 'profile.fieldCustomerInfo' | translate }}</dt>
|
||||||
<dd>{{ userInfo.customerInfo | ucapStringEmptycheck }}</dd>
|
<dd>{{ userInfo.customerInfo | ucapStringEmptycheck }}</dd>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user