Explorar o código

fix: 同前台修改路由权限路径

lanjianrong %!s(int64=3) %!d(string=hai) anos
pai
achega
276a908d9c
Modificáronse 1 ficheiros con 11 adicións e 11 borrados
  1. 11 11
      src/pages/Role/Statistic/index.tsx

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

@@ -211,11 +211,11 @@ const Statistic = () => {
                           onChange(checked) {
                             if (!checked) {
                               formRef.current?.setFieldsValue({
-                                'software-usage': [],
-                                'invoice-aggregate': [],
-                                'invoice-trends': [],
-                                'customer-additions': [],
-                                'invoice-receivables': []
+                                usage: [],
+                                aggregate: [],
+                                trends: [],
+                                additions: [],
+                                receivables: []
                               })
                             }
                           }
@@ -236,28 +236,28 @@ const Statistic = () => {
                           {({ showProduct }) => (
                             <>
                               <ProFormCheckbox.Group
-                                name="software-usage"
+                                name="usage"
                                 label="软件锁用量"
                                 options={[
                                   { value: 'access', label: '查看', disabled: !showProduct }
                                 ]}
                               />
                               <ProFormCheckbox.Group
-                                name="invoice-aggregate"
+                                name="aggregate"
                                 label="发票收款入账汇总"
                                 options={[
                                   { value: 'access', label: '查看', disabled: !showProduct }
                                 ]}
                               />
                               <ProFormCheckbox.Group
-                                name="invoice-trends"
+                                name="trends"
                                 label="发票收款入账趋势"
                                 options={[
                                   { value: 'access', label: '查看', disabled: !showProduct }
                                 ]}
                               />
                               <ProFormCheckbox.Group
-                                name="invoice-receivables"
+                                name="receivables"
                                 label="应收款统计"
                                 options={[
                                   { value: 'access', label: '查看', disabled: !showProduct }
@@ -272,7 +272,7 @@ const Statistic = () => {
                           onChange(checked) {
                             if (!checked) {
                               formRef.current?.setFieldsValue({
-                                'customer-additions': []
+                                additions: []
                               })
                             }
                           }
@@ -292,7 +292,7 @@ const Statistic = () => {
                         <ProFormDependency name={['showCustomer']}>
                           {({ showCustomer }) => (
                             <ProFormCheckbox.Group
-                              name="customer-additions"
+                              name="additions"
                               label="客户新增"
                               options={[
                                 { value: 'access', label: '查看', disabled: !showCustomer }