Renxy 1 rok temu
rodzic
commit
d943542077
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      src/pages/Cad/index.js

+ 4 - 1
src/pages/Cad/index.js

@@ -104,7 +104,10 @@ const CadDemo = () => {
   const { data: projectList } = useRequest(queryApprovalProject, {
     formatResult: (res) => {
       return res?.data?.map((item) => {
-        return { label: item.project_name, value: item.project_full_code };
+        return {
+          label: `${item.project_name}(${item.project_full_code})`,
+          value: item.id,
+        };
       });
     },
   });