shaogen1995 2 tahun lalu
induk
melakukan
8cd9027a66
1 mengubah file dengan 7 tambahan dan 5 penghapusan
  1. 7 5
      src/pages/Hot/index.tsx

+ 7 - 5
src/pages/Hot/index.tsx

@@ -161,7 +161,8 @@ function Hot() {
       age: [],
       level: [],
       source: [],
-      texture: [],
+      // texture: [],
+      sourceOther: [],
     };
 
     for (const i in obj) {
@@ -175,7 +176,7 @@ function Hot() {
     }
 
     // 4个饼图
-    echFu2(".hotEch2", newObj["texture"]);
+    echFu2(".hotEch2", newObj["sourceOther"]);
     echFu2(".hotEch3", newObj["age"]);
     echFu2(".hotEch4", newObj["level"]);
     echFu2(".hotEch5", newObj["source"]);
@@ -205,7 +206,8 @@ function Hot() {
 
   // 点击导出
   const deriveFu = useCallback(async () => {
-    if (likeData.length === 0) return MessageFu.warning("当前搜索条件没有数据!");
+    if (likeData.length === 0)
+      return MessageFu.warning("当前搜索条件没有数据!");
     const name = dayjs(new Date()).format("YYYYMMDD");
 
     const option = {
@@ -245,7 +247,7 @@ function Hot() {
                 <Tooltip title=" 游客通过万物墙每查看一次数据,热度值记为1">
                   <div className="hotTitleInco1">
                     <ExclamationOutlined />
-                  </div>{" "}
+                  </div>
                 </Tooltip>
               </div>
             </div>
@@ -264,7 +266,7 @@ function Hot() {
             {/* 4个饼图 */}
             <div className="hotEch2Box">
               <div className="hotEch2BoxSon">
-                <div className="txt">类别</div>
+                <div className="txt">出土地</div>
                 <div className="hotEch2 ech2BoxCake"></div>
               </div>
               <div className="hotEch2BoxSon">