Преглед изворни кода

fix(指标管理): 将部门选择值从code改为id以匹配数据源

JammeyJiang пре 1 месец
родитељ
комит
7932c42911
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/pages/platform/setting/indicatorMana/DrawerForm/drawer.tsx

+ 1 - 1
src/pages/platform/setting/indicatorMana/DrawerForm/drawer.tsx

@@ -868,7 +868,7 @@ const DrawerForm = (props: IndicatorDrawerForm) => {
                     request={async () => {
                       if (deptCache) return deptCache;
                       const data = await getHospDepartment();
-                      deptCache = data.map(t => ({ label: t.name, value: t.code }));
+                      deptCache = data.map(t => ({ label: t.name, value: t.id }));
                       return deptCache;
                     }}
                     placeholder="请选择"