Browse Source

物模型优化

master
zhaoy 9 months ago
parent
commit
1b2014b3af
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      src/pages/device/productmanage/components/CreateForm.jsx
  2. +3
    -0
      src/pages/device/productmanage/index.jsx

+ 1
- 0
src/pages/device/productmanage/components/CreateForm.jsx View File

@@ -40,6 +40,7 @@ const CreateForm = (props) => {
setarttue(props?.values?.type)
if(props?.values?.type==1){
setdisplay("none")
setdisanumbled('none')
}else if(props?.values?.type==0){
setdisplay("block")
}


+ 3
- 0
src/pages/device/productmanage/index.jsx View File

@@ -368,6 +368,9 @@ const handleAdd = async (fields) => {
fields.enumValue=JSON.stringify(fields.enumvaluelist)
}
}
if(fields.type==1){
fields.dataType="";
}
await addgoodstechnology(JSON.stringify(fields)).then((r) => {
if (r.data) {
message.success('添加成功');


Loading…
Cancel
Save