From 0edf94722a0dcc338567fec7df76b2e0acd39b92 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期一, 27 五月 2024 15:30:48 +0800 Subject: [PATCH] 调整 --- src/pages/character/index.vue | 38 +++++++++++++++++++++++++++----------- 1 files changed, 27 insertions(+), 11 deletions(-) diff --git a/src/pages/character/index.vue b/src/pages/character/index.vue index 8f7acbe..fded48b 100644 --- a/src/pages/character/index.vue +++ b/src/pages/character/index.vue @@ -1,5 +1,7 @@ <template> - <view> + <view + style="width: 100%; height: 100%; display: flex; flex-direction: column" + > <headNav idIndex="1" text="涓尰浜虹墿鏁版嵁搴�" /> <!-- 楂樼骇鎼滅储 --> <view style="margin: 0.35rem 0 0.16rem 0"> @@ -26,14 +28,29 @@ </li> </ul> </view> - <view class="" style="margin-left: 0.2rem">涔︿腑鏈�甯告彁鍒扮殑100浣嶄汉鐗�</view> + <view style="margin-left: 0.2rem">涔︿腑鏈�甯告彁鍒扮殑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 + id="relation" + style="margin-top: 0.2rem; flex: 1; 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.2rem; + color: #666; + " + > + 鏆傛棤鐩稿叧鏁版嵁 + </div></view > <!-- 鏈濅唬 --> - <view + <!-- <view class="flex flex-center" style="width: 100%; position: fixed; bottom: 0.33rem; left: 0" > @@ -70,7 +87,7 @@ </view> </li> </ul> - </view> + </view> --> </view> </template> @@ -275,9 +292,9 @@ this.searchKey = options.keyword; }, methods: { - getData() { + getData(key) { getFuzzySearch({ - keyword: this.searchKey ? this.searchKey : "" + keyword: key ? key : this.searchKey ? this.searchKey : "" }).then((res) => { this.nodes = []; this.relationships = []; @@ -457,7 +474,6 @@ // 璁剧疆鐐瑰嚮浜嬩欢鐩戝惉 myChart.off("click"); myChart.on("click", (params) => { - console.log(params); if (params.dataType === "node") { this.spaceTimeArr(params.data.id); } @@ -466,8 +482,8 @@ }, // 鍩虹鎼滅储 onSearch(val) { - this.searchKey = val.text; - this.getData(); + // this.searchKey = val.text; + this.getData(val.text); }, // 楂樼骇鎼滅储 onSubmit(val) { -- Gitblit v1.9.1