删除验证
This commit is contained in:
parent
f49b4aef15
commit
4ca45e3b5f
@ -389,6 +389,10 @@ const {
|
||||
if (!hasAuth('mps:market:edit')) {
|
||||
return null;
|
||||
}
|
||||
// 只有当checkType为'9'时才显示编辑按钮
|
||||
if (row.checkFlag !== '9') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<ButtonIcon
|
||||
@ -405,6 +409,10 @@ const {
|
||||
if (!hasAuth('mps:market:remove')) {
|
||||
return null;
|
||||
}
|
||||
// 只有当checkType为'0'时才显示删除按钮
|
||||
if (row.checkFlag !== '0') {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<ButtonIcon
|
||||
text
|
||||
@ -417,10 +425,7 @@ const {
|
||||
);
|
||||
};
|
||||
|
||||
// 只有当checkType为'9'时才显示编辑和删除按钮
|
||||
if (row.checkFlag !== '9') {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
|
||||
@ -610,7 +610,7 @@ public class MpsMarketServiceImpl implements IMpsMarketService {
|
||||
List<Long> trafficIds = new ArrayList<>();
|
||||
|
||||
for (MpsMarket market : marketList) {
|
||||
if(!"9".equals(market.getCheckFlag())){//9-校验失败
|
||||
if(!"0".equals(market.getCheckFlag())){//0-未校验
|
||||
throw new ServiceException("校验状态异常,不允许删除!");
|
||||
}
|
||||
if (market.getMagneticCardId() != null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user