提交 48806035 作者: 龚洪江 提交者: ZhangLingKun

修复:服务上下架,删除未选择问题

上级 b1d2d7b9
...@@ -226,6 +226,10 @@ const ServiceList: FC<any> = () => { ...@@ -226,6 +226,10 @@ const ServiceList: FC<any> = () => {
}; };
//上下架 //上下架
const groundingOrOffService = (status: number) => { const groundingOrOffService = (status: number) => {
if (selectedRowKeys.length === 0) {
message.warning('请先选择服务');
return;
}
MallManageAPI.batchUpAndDownWorkService({ MallManageAPI.batchUpAndDownWorkService({
displayState: status, displayState: status,
ids: selectedRowKeys as number[], ids: selectedRowKeys as number[],
...@@ -239,6 +243,10 @@ const ServiceList: FC<any> = () => { ...@@ -239,6 +243,10 @@ const ServiceList: FC<any> = () => {
}; };
//服务删除 //服务删除
const deleteService = () => { const deleteService = () => {
if (selectedRowKeys.length === 0) {
message.warning('请先选择服务');
return;
}
Modal.confirm({ Modal.confirm({
title: '提示', title: '提示',
content: '删除后数据将会丢失,确定删除吗?', content: '删除后数据将会丢失,确定删除吗?',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论