|
|
@@ -2,9 +2,8 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import { Button, Select, TreeSelect } from 'antd'
|
|
|
import { iconUrl } from '@/utils/http'
|
|
|
-import { useDispatch, useSelector } from 'react-redux'
|
|
|
+import { useSelector } from 'react-redux'
|
|
|
import { RootState } from '@/store'
|
|
|
-import { E1_APIgetTree } from '@/store/action/Eculture/E1tag'
|
|
|
import type { TypeI5Tree } from '@/pages/Isystem/I5organization/data'
|
|
|
import * as xlsx from 'xlsx'
|
|
|
import * as echarts from 'echarts'
|
|
|
@@ -46,7 +45,6 @@ function A1statistics() {
|
|
|
const [categoryTagId, setCategoryTagId] = useState<string | null>(null)
|
|
|
const [categoryData, setCategoryData] = useState<{ name: string; value: number }[]>([])
|
|
|
|
|
|
- const dispatch = useDispatch()
|
|
|
const categoryTreeData = useSelector((state: RootState) => state.E1tag.treeData)
|
|
|
|
|
|
// 一级/二级分类
|
|
|
@@ -154,9 +152,9 @@ function A1statistics() {
|
|
|
: null
|
|
|
|
|
|
// 获取品类树(cms/tag/getTree)
|
|
|
- useEffect(() => {
|
|
|
- dispatch(E1_APIgetTree())
|
|
|
- }, [dispatch])
|
|
|
+ // useEffect(() => {
|
|
|
+ // dispatch(E1_APIgetTree(undefined, 'cms/common/tagGetTree'))
|
|
|
+ // }, [dispatch])
|
|
|
|
|
|
// 品类树加载后默认选中第一个
|
|
|
useEffect(() => {
|