瀏覽代碼

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