user nick first
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
<pass-time-label :timestamp="fulfillment.deliveredAt" underline />
|
||||
</template>
|
||||
</t-cell>
|
||||
<t-cell title="提交人" :note="fulfillment.operator?.name || fulfillment.operatorUserId || '未知'" />
|
||||
<t-cell title="处理人" :note="fulfillment.verifier?.name || fulfillment.verifierUserId || '未处理'" />
|
||||
<t-cell title="提交人" :note="fulfillment.operator?.nick || fulfillment.operator?.name || fulfillment.operatorUserId || '未知'" />
|
||||
<t-cell title="处理人" :note="fulfillment.verifier?.nick || fulfillment.verifier?.name || fulfillment.verifierUserId || '未处理'" />
|
||||
<t-cell v-if="fulfillment.reason" title="原因" :note="fulfillment.reason" />
|
||||
<t-cell v-if="fulfillment.remark" title="备注" :note="fulfillment.remark" />
|
||||
<div class="photo-wrap bg-white">
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<t-cell title="标准价" :note="formatPackageAmount(config.standardAmount)" />
|
||||
<t-cell title="起始日期" :note="config.beginAt ? Time.toDateTime(config.beginAt) : '不限'" />
|
||||
<t-cell title="终止日期" :note="config.endAt ? Time.toDateTime(config.endAt) : '不限'" />
|
||||
<t-cell title="最后修改人" :note="config.updater?.name || config.updater?.nick || '未知'" />
|
||||
<t-cell title="最后修改人" :note="config.updater?.nick || config.updater?.name || '未知'" />
|
||||
</t-cell-group>
|
||||
<t-cell-group class="product" title="产品权益" theme="card" v-entrance-transition="140">
|
||||
<t-cell
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<pass-time-label :timestamp="record.occurredAt" underline />
|
||||
</template>
|
||||
</t-cell>
|
||||
<t-cell title="操作人" :note="record.operator?.name || record.operatorUserId || '未知操作人'" />
|
||||
<t-cell title="操作人" :note="record.operator?.nick || record.operator?.name || record.operatorUserId || '未知操作人'" />
|
||||
<t-cell v-if="record.sourceRecordId" title="原库存流水" :note="record.sourceRecordId" arrow @click="openRelatedRecord(record.sourceRecordId)" />
|
||||
<t-cell v-if="record.revokeRecordId" title="冲正流水" :note="record.revokeRecordId" arrow @click="openRelatedRecord(record.revokeRecordId)" />
|
||||
<t-cell v-if="record.remark" title="备注" :note="record.remark" />
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<t-cell-group theme="card" v-entrance-transition="210">
|
||||
<t-cell
|
||||
title="发起人"
|
||||
:note="record.operator?.name || record.operator?.nick || '未知'"
|
||||
:note="record.operator?.nick || record.operator?.name || '未知'"
|
||||
/>
|
||||
<t-cell title="发起时间">
|
||||
<template #note>
|
||||
@@ -64,7 +64,7 @@
|
||||
</t-cell>
|
||||
<t-cell
|
||||
title="处理人"
|
||||
:note="record.verifier?.name || record.verifier?.nick || '未处理'"
|
||||
:note="record.verifier?.nick || record.verifier?.name || '未处理'"
|
||||
/>
|
||||
<t-cell title="处理时间">
|
||||
<template #note>
|
||||
|
||||
@@ -450,11 +450,11 @@ function buildUnixRange(): [number | undefined, number | undefined] {
|
||||
}
|
||||
|
||||
function getOperatorText(item: FundRecord): string {
|
||||
return item.operator?.name || item.operator?.nick || item.operatorUserId || "未知";
|
||||
return item.operator?.nick || item.operator?.name || item.operatorUserId || "未知";
|
||||
}
|
||||
|
||||
function getVerifierText(item: FundRecord): string {
|
||||
return item.verifier?.name || item.verifier?.nick || item.verifierUserId || "未核销";
|
||||
return item.verifier?.nick || item.verifier?.name || item.verifierUserId || "未核销";
|
||||
}
|
||||
|
||||
function getCustomerText(item: FundRecord): string {
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
<pass-time-label :timestamp="order.cancelledAt" underline />
|
||||
</template>
|
||||
</t-cell>
|
||||
<t-cell title="取消人" :note="order.cancelOperator?.name || order.cancelOperator?.nick || order.cancelOperatorUserId || '未知'" />
|
||||
<t-cell title="取消人" :note="order.cancelOperator?.nick || order.cancelOperator?.name || order.cancelOperatorUserId || '未知'" />
|
||||
<t-cell title="取消原因" :note="order.cancelReason || '未填写'" />
|
||||
</t-cell-group>
|
||||
<section class="actions" v-entrance-transition="280">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</template>
|
||||
<template #title>
|
||||
<div class="header">
|
||||
<div class="name" v-text="currentUser.name" />
|
||||
<div class="name" v-text="currentUser.nick || currentUser.name" />
|
||||
<gender-icon :value="currentUser.gender" />
|
||||
<div class="roles">
|
||||
<t-tag
|
||||
@@ -32,7 +32,7 @@
|
||||
<t-image
|
||||
class="avatar"
|
||||
:src="currentUserAvatar"
|
||||
:alt="currentUser.name"
|
||||
:alt="currentUser.nick || currentUser.name"
|
||||
fit="cover"
|
||||
/>
|
||||
</template>
|
||||
@@ -284,7 +284,7 @@ async function loadCurrentRoleList(): Promise<void> {
|
||||
}
|
||||
|
||||
function buildUserAvatar(user?: UserAvatarSource): string {
|
||||
return UserAPI.getAvatarURL(user) || buildFallbackAvatar(currentUser.value?.name, "#0f766e");
|
||||
return UserAPI.getAvatarURL(user) || buildFallbackAvatar(currentUser.value?.nick || currentUser.value?.name, "#0f766e");
|
||||
}
|
||||
|
||||
async function go(item: MenuItem | string): Promise<void> {
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
>
|
||||
<t-cell-group v-if="managedUser.user" theme="card" v-entrance-transition>
|
||||
<t-cell
|
||||
:title="managedUser.user.name"
|
||||
:title="managedUser.user.nick || managedUser.user.name"
|
||||
:description="getRoleDisplayName(getManagedUserRoleList(managedUser)[0], permissionStore.roleList)"
|
||||
>
|
||||
<template #leftIcon>
|
||||
<t-image
|
||||
class="avatar"
|
||||
:src="buildUserAvatar(managedUser.user)"
|
||||
:alt="managedUser.user.name"
|
||||
:alt="managedUser.user.nick || managedUser.user.name"
|
||||
fit="cover"
|
||||
/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user