浏览代码

fix(merge): merge sc

lind 3 年之前
父节点
当前提交
b561c5ce27
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 2 1
      src/pages/Northbound/DuerOS/Detail/index.tsx
  2. 7 0
      src/pages/Northbound/DuerOS/index.tsx

+ 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: '设备类型',
       }),