Explorar o código

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

outaozhen %!s(int64=3) %!d(string=hai) anos
pai
achega
3fc032efb3
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  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>
                 )}