reactor:优化批量删除的代码,从 as number 变成 !

This commit is contained in:
YunaiV
2025-09-02 09:28:19 +08:00
parent 67da079606
commit c25ea731fd
73 changed files with 102 additions and 97 deletions

View File

@@ -35,6 +35,7 @@ function onRefresh() {
}
/** 创建公告 */
// TODO @霖:【规范讨论】方法名,要不要都换成 handleXXX 开头,和 ep 保持一致;
function onCreate() {
formModalApi.setData(null).open();
}
@@ -74,7 +75,7 @@ function handleRowCheckboxChange({
}: {
records: SystemNoticeApi.Notice[];
}) {
checkedIds.value = records.map((item) => item.id as number);
checkedIds.value = records.map((item) => item.id!);
}
/** 推送公告 */
@@ -173,6 +174,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
]"
/>
</template>
<!-- TODO @规范讨论要不要类似 antd 一样改成 TableAction可见 /apps/web-ele/src/views/system/notice/index.vue 167 195 -->
</Grid>
</Page>
</template>