From 078b910e4a7099ecca561dc19cf58a3a27703e7d Mon Sep 17 00:00:00 2001 From: ngfchl Date: Tue, 6 Dec 2022 21:07:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8D=A1=E7=89=87=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=AB=99=E7=82=B9=E5=90=8D=E7=A7=B0=E5=92=8C=E7=BD=91?= =?UTF-8?q?=E5=9D=80=E6=A8=A1=E7=B3=8A=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/auto_pt/status.html | 110 ++++++++++++++++++++-------------- 1 file changed, 64 insertions(+), 46 deletions(-) diff --git a/templates/auto_pt/status.html b/templates/auto_pt/status.html index c7437fe..2a19e37 100644 --- a/templates/auto_pt/status.html +++ b/templates/auto_pt/status.html @@ -67,10 +67,21 @@
-
-
- -
+ + + + + + + + @@ -178,7 +189,7 @@ + v-for="site in showData">
@@ -301,52 +312,52 @@ -
+
-
-
+
+
- - - 求药 - - - 图例 - - - Logo - - - -
- - + + + 求药 + + + 图例 + + + Logo + +
+ +
- - - - - - - - - - - - - - - - + +
+ + + + + + + + + + + + + + + +
{% include 'admin/includes/js-part.html' %} @@ -372,6 +383,7 @@ shuffle: false, searchKey: '', sortStep: 1, + showData: [], } }, beforeMount() { @@ -396,7 +408,12 @@ }, methods: { siteSearch() { - + console.log(this.searchKey) + {#this.showData#} + this.searchKey == '' ? this.showData = this.ptData.status_list : this.showData = this.ptData.status_list.filter(site => { + return site.url.toLowerCase().includes(this.searchKey.toLowerCase()) || site.name.toLowerCase().includes(this.searchKey.toLowerCase()) + }) + console.log(this.showData) }, changeSortStep() { console.log(this.sortStep) @@ -608,6 +625,7 @@ //乱序 {#this.shuffleList()#} this.showList = true + this.siteSearch() }, setPie() { let uploadedList = []