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

This commit is contained in:
2025-04-03 09:33:17 +08:00
parent c0b0bf184a
commit 542fc9a827

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);