From e33eb0eb98aa0a88d2b3a7163abf92e4e028fb31 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期五, 17 五月 2024 21:09:39 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TCM_CharacterLibrary

---
 src/pages/character/index.vue |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/pages/character/index.vue b/src/pages/character/index.vue
index 3d38805..8f7acbe 100644
--- a/src/pages/character/index.vue
+++ b/src/pages/character/index.vue
@@ -9,6 +9,7 @@
         :from="From"
         placehold="璇疯緭鍏ュ叧閿瓧"
         :keyword="searchKey"
+        :advancedSearchBack="advancedSearchBack"
       />
     </view>
     <!-- 鐑棬鎼滅储 -->
@@ -27,10 +28,10 @@
     </view>
     <view class="" style="margin-left: 0.2rem">涔︿腑鏈�甯告彁鍒扮殑100浣嶄汉鐗�</view>
     <!-- 鍏崇郴琛ㄥ湴鍥� -->
-    <view
-      id="relation"
-      style="margin-top: 0.2rem; height: 70vh; width: 100%"
-    ></view>
+    <view id="relation" style="margin-top: 0.2rem; height: 70vh; width: 100%;position: relative;"
+      ><div v-if="!loading && relationships.length == 0" style="position: absolute;top: 30%;left: 0;right: 0;text-align: center;font-size: 0.20rem;color: #666;">鏆傛棤鐩稿叧鏁版嵁</div></view
+    >
+
     <!-- 鏈濅唬 -->
     <view
       class="flex flex-center"
@@ -86,6 +87,7 @@
 export default {
   data() {
     return {
+      loading: true,
       // echarts鏁版嵁
       nodes: [],
       // echarts涓よ�呯殑鍏崇郴
@@ -308,6 +310,7 @@
             this.relationships.push(obj);
           });
         }
+        this.loading = false;
         this.relation();
       });
     },
@@ -388,7 +391,7 @@
           }
         };
       });
-      
+
       var option;
       option = {
         title: {
@@ -473,7 +476,12 @@
         page: 1,
         pageSize: 100
       }).then((res) => {
-        console.log(res,"res");
+        console.log(res, "res");
+      });
+    },
+    advancedSearchBack() {
+      uni.navigateTo({
+        url: "/pages/knowledgeBase/knowledgeBase"
       });
     },
     // 鐐瑰嚮涓嬮潰鐨勬湞浠f寜閽�

--
Gitblit v1.9.1