Selaa lähdekoodia

fix(merge): merge sc

lind 3 vuotta sitten
vanhempi
commit
b561c5ce27

+ 2 - 1
src/pages/Northbound/DuerOS/Detail/index.tsx

@@ -501,7 +501,8 @@ const Save = () => {
 
   const handleSave = async () => {
     const data: any = await form.submit();
-    await service.savePatch(data);
+    const productName = Store.get('product-list')?.find((item: any) => item.id === data.id)?.name;
+    await service.savePatch({ ...data, productName });
     message.success('保存成功!');
     history.back();
   };

+ 7 - 0
src/pages/Northbound/DuerOS/index.tsx

@@ -79,6 +79,13 @@ export default () => {
     },
     {
       title: intl.formatMessage({
+        id: 'page.cloud.duerOS.productName',
+        defaultMessage: '产品',
+      }),
+      dataIndex: 'productName',
+    },
+    {
+      title: intl.formatMessage({
         id: 'pages.cloud.duerOS.applianceType',
         defaultMessage: '设备类型',
       }),