From ff65caf1954933924bdb83946ed1b97743005b89 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期日, 27 四月 2025 10:43:12 +0800
Subject: [PATCH] 工艺路线详情页面缓存
---
src/views/technology/routing/routing-form.vue | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/src/views/technology/routing/routing-form.vue b/src/views/technology/routing/routing-form.vue
index 1458ba5..e9c4fda 100644
--- a/src/views/technology/routing/routing-form.vue
+++ b/src/views/technology/routing/routing-form.vue
@@ -580,10 +580,33 @@
} else {
this.bomList = []
}
- }
+ },
+ '$route.query.id': {
+ immediate: true,
+ handler(newVal, oldVal) {
+ this.dataForm.id = this.$route.query.id
+ this.getParamType()
+ this.init()
+ this.itemKey = Math.random()
+ this.getBomTypeDbOptions()
+ this.getWorkCenterOptions()
+ this.getRunTimeCodeDbOptions()
+ this.getLaborClassNo()
+ },
+ },
},
created() {
+ // this.dataForm.id = this.$route.query.id
+ // this.getParamType()
+ // this.init()
+ // this.itemKey = Math.random()
+ // this.getBomTypeDbOptions()
+ // this.getWorkCenterOptions()
+ // this.getRunTimeCodeDbOptions()
+ // this.getLaborClassNo()
+ },
+ activated() {
this.dataForm.id = this.$route.query.id
this.getParamType()
this.init()
@@ -593,7 +616,6 @@
this.getRunTimeCodeDbOptions()
this.getLaborClassNo()
},
-
methods: {
// 鏌ヨ缁撴瀯绫诲瀷瀛楀吀
getBomTypeDbOptions() {
--
Gitblit v1.9.3