From 077feba634b75aee3c1fc8e561b2d2aeb95e3305 Mon Sep 17 00:00:00 2001 From: y505174330 <505174330@qq.com> Date: 星期六, 18 五月 2024 15:37:00 +0800 Subject: [PATCH] 1 --- src/pages/character/index.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/pages/character/index.vue b/src/pages/character/index.vue index e58ea8a..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: { @@ -468,8 +471,17 @@ }, // 楂樼骇鎼滅储 onSubmit(val) { - getAdvanceSearch(val).then((res) => { - console.log(res, "鎺ュ彛璋冪敤鎴愬姛"); + getAdvanceSearch({ + ...val, + page: 1, + pageSize: 100 + }).then((res) => { + console.log(res, "res"); + }); + }, + advancedSearchBack() { + uni.navigateTo({ + url: "/pages/knowledgeBase/knowledgeBase" }); }, // 鐐瑰嚮涓嬮潰鐨勬湞浠f寜閽� -- Gitblit v1.9.1