From 2865ab3c6d01cd8750be572c1843a22e43f36f30 Mon Sep 17 00:00:00 2001 From: wanyongkang <937888580@qq.com> Date: Fri, 27 Nov 2020 12:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Host/Views/LineList/Index.cshtml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/Host/Views/LineList/Index.cshtml b/Host/Views/LineList/Index.cshtml index 72a28a3..4273d64 100644 --- a/Host/Views/LineList/Index.cshtml +++ b/Host/Views/LineList/Index.cshtml @@ -81,7 +81,7 @@
- +
@@ -105,6 +105,15 @@
产品 城市{{site.status}}
+
+ +
@@ -121,7 +130,9 @@ search_field:'全部', sstp:'', count:0, - use_count:0 + use_count:0, + all_data: [], + is_all: false }, computed: { @@ -208,7 +219,16 @@ use_count = res.use_count; } }); - this.table_data = datalist; + if (ProductId == 0){ + this.all_data = datalist; + let now_data = []; + for (let i = 0;i<50;i++){ + now_data[i] = datalist[i]; + } + this.table_data = now_data; + } else { + this.table_data = datalist; + } this.count = count; if(ProductId != 16){ this.use_count = use_count; @@ -216,6 +236,10 @@ this.use_count = count; } }, + get_index_data(){ + this.table_data = this.all_data; + this.is_all = true; + }, search_all(){ if(!this.search_all_data){ this.select_product(0);