diff --git a/cds-fontend-2025.V1/src/views/mps/market/index.vue b/cds-fontend-2025.V1/src/views/mps/market/index.vue index 6424d43..d2c5a4e 100644 --- a/cds-fontend-2025.V1/src/views/mps/market/index.vue +++ b/cds-fontend-2025.V1/src/views/mps/market/index.vue @@ -418,9 +418,9 @@ const { }; // 只有当checkType为'9'时才显示编辑和删除按钮 - // if (row.checkFlag !== '9') { - // return null; - // } + if (row.checkFlag !== '9') { + return null; + } return (
{editBtn()} diff --git a/cds-platform-2025.V1/cds-modules/cds-system/src/main/java/org/dromara/mps/service/impl/MpsMarketServiceImpl.java b/cds-platform-2025.V1/cds-modules/cds-system/src/main/java/org/dromara/mps/service/impl/MpsMarketServiceImpl.java index 13a89b2..cdf52f1 100644 --- a/cds-platform-2025.V1/cds-modules/cds-system/src/main/java/org/dromara/mps/service/impl/MpsMarketServiceImpl.java +++ b/cds-platform-2025.V1/cds-modules/cds-system/src/main/java/org/dromara/mps/service/impl/MpsMarketServiceImpl.java @@ -5,6 +5,7 @@ import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import cn.idev.excel.util.DateUtils; import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator; +import org.dromara.common.core.domain.R; import org.dromara.common.core.utils.MapstructUtils; import org.dromara.common.core.utils.StringUtils; import org.dromara.common.core.exception.ServiceException; @@ -609,6 +610,9 @@ public class MpsMarketServiceImpl implements IMpsMarketService { List trafficIds = new ArrayList<>(); for (MpsMarket market : marketList) { + if(!"9".equals(market.getCheckFlag())){//9-校验失败 + throw new ServiceException("校验状态异常,不允许删除!"); + } if (market.getMagneticCardId() != null) { magneticCardIds.add(market.getMagneticCardId()); }