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 = []