fix(equipmentMember): 移除删除主用户时的子用户检查限制
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
f10ce6656f
commit
24fda6becc
@@ -244,14 +244,14 @@ Page({
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target.userType === 1) {
|
// if (target.userType === 1) {
|
||||||
const hasSubUser = this.data.employeeList.some(m => m.userType !== 1)
|
// const hasSubUser = this.data.employeeList.some(m => m.userType !== 1)
|
||||||
|| this.data.familyList.some(m => m.userType !== 1)
|
// || this.data.familyList.some(m => m.userType !== 1)
|
||||||
if (hasSubUser) {
|
// if (hasSubUser) {
|
||||||
wx.showToast({ title: '请先删除所有普通用户', icon: 'none' })
|
// wx.showToast({ title: '请先删除所有普通用户', icon: 'none' })
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
this.setData({
|
this.setData({
|
||||||
showDeleteModal: true,
|
showDeleteModal: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user