Commit 5c883b47 by zhaochengxiang

判断资产编号

parent 4378764e
......@@ -261,7 +261,7 @@ const AssetAction = (props) => {
dispatch({
type: 'assetmanage.checkCodeIsExist',
payload: {
data: { elements: newElements }
data: action==='add' ? { elements: newElements } : { ...assets, elements: newElements }
},
callback: isExist => {
if (isExist) {
......
......@@ -153,7 +153,7 @@ const AssetTagModal = (props) => {
dispatch({
type: 'assetmanage.checkCodeIsExist',
payload: {
data: { elements: newElements }
data: { ...asset, elements: newElements }
},
callback: isExist => {
if (isExist) {
......
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