From fe87d39adb4e995ccf96a45b142ae026c3cf5eae Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期三, 13 十二月 2023 18:10:09 +0800 Subject: [PATCH] 配置路由守卫导航重定向 --- src/components/makepager/CommonFormTableView.vue | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/makepager/CommonFormTableView.vue b/src/components/makepager/CommonFormTableView.vue index 4cfa286..06667cc 100644 --- a/src/components/makepager/CommonFormTableView.vue +++ b/src/components/makepager/CommonFormTableView.vue @@ -574,6 +574,7 @@ }, // 浣嶇疆 async getLocationList() { + this.locacionName = "" await getLocationList({ // keyword: "", jointName: this.initialPosition ? this.initialPosition : null, @@ -661,7 +662,16 @@ } else { let selIndex = 0 this.tableList.tableData.map((ite, index) => { - if (ite.id === row.id) { + // ite.id 鏄笂鏋惰鍒欑殑, ite.productId鏄簱瀛樿皟鏁寸殑 + if (ite.id === row.id&&ite.id!=undefined&&row.id!=undefined) { + selIndex = index + ite.productId = item.id + ite.productName = item.name + ite.categoryId = item.categoryId + ite.productCategory = item.categoryName + ite.amount = item.amount + ite.unit = item.unit + }else if(ite.productId===row.productId){ selIndex = index ite.productId = item.id ite.productName = item.name @@ -872,7 +882,9 @@ }, // 琛岀偣鍑� tableRowClick(row) { - this.locacionName = row.location.name + if (this.isReorder) { + this.locacionName = row.location.name + } this.$emit("tableRowClick", row, row.index) }, // 鍗曢�夎鐩稿叧 -- Gitblit v1.8.0