From e1a3c04432d808ca27e1158095d2564cd81ea379 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期三, 15 十一月 2023 19:22:16 +0800 Subject: [PATCH] 表格公共组件修改合并 --- src/views/operate/orderPoint/index.vue | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/views/operate/orderPoint/index.vue b/src/views/operate/orderPoint/index.vue index 092a1d9..676f4a1 100644 --- a/src/views/operate/orderPoint/index.vue +++ b/src/views/operate/orderPoint/index.vue @@ -113,9 +113,17 @@ } }, created() { + if (this.$route.params.productId) { + this.getData({ + productId: this.$route.params.productId, + pageSize: 15, + page: 1 + }) + } else { + this.getData() + } this.setTable() this.searchTaskMap = [{ id: "0", type: this.type, title: "閲嶆柊璁㈣喘" }] - this.getData() this.getLocationList() }, methods: { @@ -144,7 +152,8 @@ type: this.type, keyWord: data?.jointName, page: this.pagerOptions.currPage, - pageSize: this.pagerOptions.pageSize + pageSize: this.pagerOptions.pageSize, + productId: data?.productId }).then((res) => { if (res.code === 200) { console.log(res) @@ -232,6 +241,7 @@ editable: false, isOrder: true }) + this.tableList.tableData = this.tableData this.locationId = 0 this.productId = 0 } else { -- Gitblit v1.8.0