fix: 修改员工添加爱时默认勾选收银机权限
This commit is contained in:
parent
c0b0bf184a
commit
542fc9a827
|
|
@ -181,6 +181,7 @@ async function init() {
|
||||||
value: item.id,
|
value: item.id,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
addPagePathIdList.value = pagePathIdLists.value.map((v) => v.id);
|
||||||
}
|
}
|
||||||
init();
|
init();
|
||||||
|
|
||||||
|
|
@ -213,9 +214,7 @@ async function handleEditClick(row: IObject) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const pageList = await shopPagePermissionApi.detail({ staffId: row.id });
|
const pageList = await shopPagePermissionApi.detail({ staffId: row.id });
|
||||||
console.log(pageList);
|
|
||||||
editPagePathIdList.value = pageList.map((item) => item.id);
|
editPagePathIdList.value = pageList.map((item) => item.id);
|
||||||
console.log(selPermissionList.value);
|
|
||||||
// 根据id获取数据进行填充
|
// 根据id获取数据进行填充
|
||||||
await ShopStaffApi.get(row.id).then((res) => {
|
await ShopStaffApi.get(row.id).then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue