fix: 修改员工添加爱时默认勾选收银机权限
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user