Ver código fonte

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

JammeyJiang 1 mês atrás
pai
commit
7932c42911

+ 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="请选择"