refactor(data): excludeUserId 重命名为 excludeId,语义更准确
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
e898c4d305
commit
32dd83a738
@@ -60,7 +60,7 @@ Component({
|
|||||||
value: 'addMember'
|
value: 'addMember'
|
||||||
},
|
},
|
||||||
/** 需要排除的用户 ID(history 模式下排除当前查看的成员) */
|
/** 需要排除的用户 ID(history 模式下排除当前查看的成员) */
|
||||||
excludeUserId: {
|
excludeId: {
|
||||||
type: String,
|
type: String,
|
||||||
value: ''
|
value: ''
|
||||||
}
|
}
|
||||||
@@ -117,8 +117,8 @@ Component({
|
|||||||
|
|
||||||
if (this.properties.source === 'history') {
|
if (this.properties.source === 'history') {
|
||||||
const params: Record<string, string> = { userId }
|
const params: Record<string, string> = { userId }
|
||||||
if (this.properties.excludeUserId) {
|
if (this.properties.excludeId) {
|
||||||
params.userIdExclude = this.properties.excludeUserId
|
params.userIdExclude = this.properties.excludeId
|
||||||
}
|
}
|
||||||
get<HistoryApiItem[]>('weighingScale/v3/select/history/user', params, { loading: false })
|
get<HistoryApiItem[]>('weighingScale/v3/select/history/user', params, { loading: false })
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
<select-member-drawer
|
<select-member-drawer
|
||||||
show="{{ showSelectDrawer }}"
|
show="{{ showSelectDrawer }}"
|
||||||
source="history"
|
source="history"
|
||||||
exclude-user-id="{{ userInfo.id }}"
|
exclude-id="{{ userInfo.id }}"
|
||||||
bind:select="onSelectMember"
|
bind:select="onSelectMember"
|
||||||
bind:close="onCloseDrawer"
|
bind:close="onCloseDrawer"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user