fix: 修改员工添加爱时默认勾选收银机权限

This commit is contained in:
YeMingfei666 2025-04-03 09:33:17 +08:00
parent c0b0bf184a
commit 542fc9a827
1 changed files with 1 additions and 2 deletions

View File

@ -181,6 +181,7 @@ async function init() {
value: item.id,
};
});
addPagePathIdList.value = pagePathIdLists.value.map((v) => v.id);
}
init();
@ -213,9 +214,7 @@ async function handleEditClick(row: IObject) {
}
}
const pageList = await shopPagePermissionApi.detail({ staffId: row.id });
console.log(pageList);
editPagePathIdList.value = pageList.map((item) => item.id);
console.log(selPermissionList.value);
// id
await ShopStaffApi.get(row.id).then((res) => {
console.log(res);