Commit 24c5c030 by zhaochengxiang

资产编号

parent 5c883b47
......@@ -50,7 +50,7 @@ const AddAssetModel = (props) => {
data: { elements: newElements }
},
callback: isExist => {
if (isExist) {
if (isExist === 'true') {
setConfirmLoading(false);
showMessage('warn', '已存在相同的资产编号,请重新输入');
} else {
......
......@@ -264,7 +264,7 @@ const AssetAction = (props) => {
data: action==='add' ? { elements: newElements } : { ...assets, elements: newElements }
},
callback: isExist => {
if (isExist) {
if (isExist === 'true') {
setConfirmLoading(false);
showMessage('warn', '已存在相同的资产编号,请重新输入');
} else {
......
......@@ -156,7 +156,7 @@ const AssetTagModal = (props) => {
data: { ...asset, elements: newElements }
},
callback: isExist => {
if (isExist) {
if (isExist === 'true') {
setConfirmLoading(false);
showMessage('warn', '已存在相同的资产编号,请重新输入');
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment