Commit 5c883b47 by zhaochengxiang

判断资产编号

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