wjx 4 месяцев назад
Родитель
Сommit
eb2538bc9b
2 измененных файлов с 2 добавлено и 4 удалено
  1. 2 2
      src/pages/gameDataStatistics/roleOperate/roleRechargeRanking/assign.tsx
  2. 0 2
      tsconfig.json

+ 2 - 2
src/pages/gameDataStatistics/roleOperate/roleRechargeRanking/assign.tsx

@@ -27,10 +27,10 @@ const Assign: React.FC<Props> = ({ startTime, id, visible, data, onClose, onChan
 
 
     useEffect(() => {
     useEffect(() => {
         if (data?.length === 1) {
         if (data?.length === 1) {
-            const { customer_service_id, oper_user_id, gs_id } = data[0]
+            const { customer_service_id, oper_user_id, gsId } = data[0]
             console.log('----->', startTime)
             console.log('----->', startTime)
             let time = startTime ? moment(startTime) : undefined
             let time = startTime ? moment(startTime) : undefined
-            form.setFieldsValue({ startTime: time, operUserId: oper_user_id?.toString(), customerServiceId: customer_service_id?.toString(), gsId: gs_id?.toString() })
+            form.setFieldsValue({ startTime: time, operUserId: oper_user_id?.toString(), customerServiceId: customer_service_id?.toString(), gsId: gsId?.toString() })
         }
         }
     }, [data])
     }, [data])
 
 

+ 0 - 2
tsconfig.json

@@ -1,6 +1,5 @@
 {
 {
   "compilerOptions": {
   "compilerOptions": {
-    "ignoreDeprecations": "5.0",
     "outDir": "build/dist",
     "outDir": "build/dist",
     "module": "esnext",
     "module": "esnext",
     "target": "esnext",
     "target": "esnext",
@@ -12,7 +11,6 @@
     "moduleResolution": "node",
     "moduleResolution": "node",
     "forceConsistentCasingInFileNames": true,
     "forceConsistentCasingInFileNames": true,
     "noImplicitReturns": true,
     "noImplicitReturns": true,
-    "suppressImplicitAnyIndexErrors": true,
     "noUnusedLocals": true,
     "noUnusedLocals": true,
     "allowJs": true,
     "allowJs": true,
     "skipLibCheck": true,
     "skipLibCheck": true,