Commit 73b347db6d703b916a53fa07f653a381fee9645a
1 parent
bc745c1e
fix(系统指标): 原始数据字段修改
Showing
1 changed file
with
2 additions
and
1 deletions
src/pages/performance/KpiSetting/components/EditModal.tsx
... | ... | @@ -46,6 +46,7 @@ export default function EditModal({ onClose, setItem, item, roleList }: Props) { |
46 | 46 | const result = transformFormData(currentItem, roleList, list); |
47 | 47 | console.log(currentItem,'323') |
48 | 48 | console.log({...result},'1111dwewwwwwew') |
49 | + | |
49 | 50 | form.setFieldsValue({ ...result}); |
50 | 51 | } |
51 | 52 | }, [visible]); |
... | ... | @@ -211,7 +212,7 @@ export default function EditModal({ onClose, setItem, item, roleList }: Props) { |
211 | 212 | > |
212 | 213 | {({ getFieldValue }) => { |
213 | 214 | return getFieldValue('roleType') === 3 ? ( |
214 | - <Form.Item name="roles" label="适用角色1" rules={[{ required: true }]}> | |
215 | + <Form.Item name="roles" label="适用角色" rules={[{ required: true }]}> | |
215 | 216 | <Select |
216 | 217 | placeholder="请选择角色" |
217 | 218 | showSearch | ... | ... |