fix(userManagement): 编辑传主键id与成员来源标注
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
48b75f37c9
commit
d59aad4f44
@@ -42,6 +42,8 @@ interface MemberItem {
|
||||
height: number
|
||||
sync: string
|
||||
syncClass: string
|
||||
/** 1=本人 2=自己添加 3=他人添加 */
|
||||
relationType: number | null
|
||||
}
|
||||
|
||||
/** 展示用分组 */
|
||||
@@ -144,6 +146,7 @@ Page({
|
||||
height: item.height,
|
||||
sync: item.syncStatus === 1 ? '已同步' : '待同步',
|
||||
syncClass: item.syncStatus === 1 ? 'done' : 'pending',
|
||||
relationType: item.relationType,
|
||||
})
|
||||
const self = list.find(m => m.relationType === 1)
|
||||
this.setData({
|
||||
@@ -383,7 +386,7 @@ Page({
|
||||
onTapEdit(e: WechatMiniprogram.TouchEvent) {
|
||||
const item = e.currentTarget.dataset.item as MemberItem
|
||||
const sn = targetDevice?.sn || ''
|
||||
wx.navigateTo({ url: `/pages/addUser/addUser?sn=${encodeURIComponent(sn)}&userId=${encodeURIComponent(item.userId)}` })
|
||||
wx.navigateTo({ url: `/pages/addUser/addUser?sn=${encodeURIComponent(sn)}&id=${encodeURIComponent(item.id)}` })
|
||||
},
|
||||
|
||||
/** 删除成员 */
|
||||
|
||||
Reference in New Issue
Block a user