From 1b2014b3afee05725f45fb20dd78295980a8aa84 Mon Sep 17 00:00:00 2001 From: zhaoy <137053305@qq.com> Date: Tue, 23 Jan 2024 10:51:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=A8=A1=E5=9E=8B=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/device/productmanage/components/CreateForm.jsx | 1 + src/pages/device/productmanage/index.jsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/pages/device/productmanage/components/CreateForm.jsx b/src/pages/device/productmanage/components/CreateForm.jsx index bdd3ffe..3872c1c 100644 --- a/src/pages/device/productmanage/components/CreateForm.jsx +++ b/src/pages/device/productmanage/components/CreateForm.jsx @@ -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") } diff --git a/src/pages/device/productmanage/index.jsx b/src/pages/device/productmanage/index.jsx index 7aed6dd..9ba0e83 100644 --- a/src/pages/device/productmanage/index.jsx +++ b/src/pages/device/productmanage/index.jsx @@ -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('添加成功');