From 5e73d562bae941a7658c3c13fdb585461f1a24e4 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期一, 28 四月 2025 21:21:07 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/wyyDatabase

---
 src/views/chronology/index.vue |   64 ++++++++++++++++++++++----------
 1 files changed, 44 insertions(+), 20 deletions(-)

diff --git a/src/views/chronology/index.vue b/src/views/chronology/index.vue
index 8b5e4db..9e8b18a 100644
--- a/src/views/chronology/index.vue
+++ b/src/views/chronology/index.vue
@@ -96,6 +96,8 @@
 import floatingWindow from "./floatingWindow.vue";
 import yearWindow from "./yearWindow.vue";
 import { nextTick } from "vue";
+import fileApi from "@/assets/js/middleGround/api/file";
+import { requestCtx, appRefCode } from "@/assets/js/config";
 
 export default {
   components: {
@@ -168,11 +170,8 @@
                 const element = listData[j];
                 this.$set(element, "showChildDetail", false);
               }
-              console.log(item, "item");
             }
           }
-
-          console.log(this.contentList, "this.contentList");
           this.contentList = res.datas;
           this.showList = true;
         });
@@ -210,8 +209,7 @@
         for (let i = 0; i < filterList.length; i++) {
           const item = filterList[i];
           if (item.file) {
-            const requestCtx =
-              this.config.requestCtx + `/file/api/ApiDownload?md5=${item.file}`;
+            const requestCtx = await this.getResourcePath(item.file);
             this.$set(item, "fileLink", requestCtx);
           }
           this.$set(item, "showDetail", false);
@@ -224,6 +222,20 @@
       }
       return filterList;
     },
+
+    // 鑾峰彇闃块噷浜戝姞閫熷湴鍧� (瑙嗛锛岄煶棰�)
+    async getResourcePath(md5) {
+      try {
+        // 濡傛灉杩斿洖鐨勬暟鎹负绌烘垨鏈畾涔夛紝鍒欐嫾鎺ラ粯璁や笅杞借矾寰�
+        return requestCtx + "/file/api/ApiDownload?md5=" + md5;
+      } catch (error) {
+        // 鎹曡幏寮傚父骞舵墦鍗伴敊璇棩蹇�
+        console.error("鑾峰彇璧勬簮璺緞澶辫触:", error);
+        // 杩斿洖涓�涓粯璁ゅ�兼垨鎶涘嚭閿欒锛堟牴鎹笟鍔¢渶姹傦級
+        return requestCtx + "/file/api/ApiDownload?md5=" + md5;
+      }
+    },
+
     closeDetail(index, cindex, type) {
       for (let i = 0; i < this.contentList.length; i++) {
         const item = this.contentList[i];
@@ -235,11 +247,6 @@
         }
       }
       this.contentList[index].list[cindex].showDetail = false;
-
-      console.log(
-        this.contentList[index].list,
-        "this.contentList[index].list[cindex]"
-      );
     },
     showDetail(index, cindex, type, event) {
       const rect = event.target.getBoundingClientRect();
@@ -268,6 +275,8 @@
       //   // 鍙充晶绌洪棿涓嶈冻鏃跺己鍒跺乏渚ф樉绀�
       //   this.popupStyle.left = `${rect.left - popupWidth}px`;
       // }
+
+      console.log(event, "event");
       for (let i = 0; i < this.contentList.length; i++) {
         const item = this.contentList[i];
         if (item && item.list?.length > 0) {
@@ -280,9 +289,14 @@
           }
         }
       }
+
       if (this.contentList[index].list[cindex].type) {
         this.contentList[index].list[cindex].showChildDetail = true;
       }
+      console.log(
+        this.contentList[index].list,
+        "this.contentList[index].list[cindex]"
+      );
     },
   },
 };
@@ -297,6 +311,7 @@
   display: flex;
   flex-direction: column;
   overflow: auto;
+  font-family: Source Han Sans;
 }
 
 .pageBox {
@@ -406,20 +421,20 @@
   cursor: pointer;
   position: relative;
 }
-
-// .gradchild :hover {
-//   transform: scale(1.1);
-//   z-index: 999;
-// }
+.gradchild:hover {
+  // transform: scale(1.1);
+  width: 23px;
+  height: 23px;
+  cursor: pointer;
+  position: relative;
+}
 
 /* 閲嶇疆瀛愬厓绱犵殑鏍峰紡 */
 // .gradchild:hover .detailDialog {
 //   transform: scale(1);
 //   z-index: 999;
 // }
-.item-circle :hover ::before {
-  background-color: #b9a587 !important;
-}
+
 .item-circle {
   width: 100%;
   height: 20px;
@@ -450,6 +465,11 @@
   margin-left: -9px;
   z-index: 99;
   background: #fff;
+  cursor: pointer;
+}
+.item-circle:hover:before {
+  background-color: #b9a587;
+  border: 1px solid #8f7a5a;
 }
 
 .item-text {
@@ -468,6 +488,12 @@
   background: #fff;
   border: 2px solid #cbbeaa;
   box-shadow: 2px 2px 4px 1px rgba(0, 0, 0, 0.5);
+}
+
+video {
+  border-radius: 10px;
+  border: 1px solid #dcdcdc;
+  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
 }
 
 .yaerWindow {
@@ -501,7 +527,6 @@
 
 ::v-deep .el-loading-spinner {
   .el-loading-text {
-
     font-size: 14px;
     color: #937950;
   }
@@ -511,5 +536,4 @@
     color: #937950;
   }
 }
-
 </style>

--
Gitblit v1.9.1