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

feat: 增加客户新增的设置权限

outaozhen пре 3 година
родитељ
комит
3fc032efb3
1 измењених фајлова са 11 додато и 1 уклоњено
  1. 11 1
      src/pages/Role/Statistic/index.tsx

+ 11 - 1
src/pages/Role/Statistic/index.tsx

@@ -191,7 +191,8 @@ const Statistic = () => {
                             formRef.current?.setFieldsValue({
                               'software-usage': [],
                               'invoice-aggregate': [],
-                              'invoice-trends': []
+                              'invoice-trends': [],
+                              'customer-additions': []
                             })
                           }
                         }
@@ -233,6 +234,15 @@ const Statistic = () => {
                           />
                         )}
                       </ProFormDependency>
+                      <ProFormDependency name={['showProduct']}>
+                        {({ showProduct }) => (
+                          <ProFormCheckbox.Group
+                            name="customer-additions"
+                            label="客户新增"
+                            options={[{ value: 'access', label: '查看', disabled: !showProduct }]}
+                          />
+                        )}
+                      </ProFormDependency>
                     </div>
                   </ProForm>
                 )}