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() {