فهرست منبع

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