From d67293dc4d56b0db8830c2a92fdf9cdf23a20bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com> Date: Tue, 13 Aug 2024 10:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/product/index.vue | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue index 53b799c..306fa01 100644 --- a/src/views/modules/product/index.vue +++ b/src/views/modules/product/index.vue @@ -33,11 +33,10 @@ > - - + + - - +
{ console.log(res); @@ -87,6 +91,20 @@ export default { this.$refs.oTable.complete(false); }); }, + handleClick() { + switch (this.activeName) { + case "在售": + this.productFilterType = "SALE"; + break; + case "仓库中": + this.productFilterType = "WAREHOUSE"; + break; + case "折扣": + this.productFilterType = "DISCOUNT"; + break; + } + this.$refs.oTable.reload(); + }, }, computed: { tableCols() {