数据请求
This commit is contained in:
parent
3d36f659b8
commit
d67293dc4d
|
@ -33,11 +33,10 @@
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-tabs v-model="activeName" @tab-click="$refs.oTable.reload()">
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
||||||
<el-tab-pane label="出售中" name="出售中"></el-tab-pane>
|
<el-tab-pane label="在售" name="在售"></el-tab-pane>
|
||||||
<el-tab-pane label="仓库中" name="仓库中"></el-tab-pane>
|
<el-tab-pane label="仓库中" name="仓库中"></el-tab-pane>
|
||||||
<el-tab-pane label="已售罄" name="已售罄"></el-tab-pane>
|
<el-tab-pane label="折扣" name="折扣"></el-tab-pane>
|
||||||
<el-tab-pane label="警戒库存" name="警戒库存"></el-tab-pane>
|
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<el-button type="primary" size="small" @click="addProduct"
|
<el-button type="primary" size="small" @click="addProduct"
|
||||||
|
@ -62,6 +61,7 @@ export default {
|
||||||
user: "",
|
user: "",
|
||||||
region: "",
|
region: "",
|
||||||
},
|
},
|
||||||
|
productFilterType: "SALE",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -75,6 +75,10 @@ export default {
|
||||||
pageNumber: pageNo,
|
pageNumber: pageNo,
|
||||||
pageSize: pageSize,
|
pageSize: pageSize,
|
||||||
},
|
},
|
||||||
|
productFilterType: this.productFilterType,
|
||||||
|
merchantId: JSON.parse(sessionStorage.getItem("userInfo")).merchantId,
|
||||||
|
shopId: JSON.parse(sessionStorage.getItem("userInfo")).shopId,
|
||||||
|
productQuerySortParam: [],
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
@ -87,6 +91,20 @@ export default {
|
||||||
this.$refs.oTable.complete(false);
|
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: {
|
computed: {
|
||||||
tableCols() {
|
tableCols() {
|
||||||
|
|
Loading…
Reference in New Issue