From 41c9b2fa8cef5f45c23d00d33680764b48dfc3cc Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期日, 27 四月 2025 11:03:43 +0800 Subject: [PATCH] 修改缓存 --- src/views/technology/routing/routing-form.vue | 32 +++++++++++++++++++++++++++----- 1 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/views/technology/routing/routing-form.vue b/src/views/technology/routing/routing-form.vue index 1458ba5..6b5702b 100644 --- a/src/views/technology/routing/routing-form.vue +++ b/src/views/technology/routing/routing-form.vue @@ -543,9 +543,9 @@ }, watch: { 'dataForm.partId'(newValue, oldValue) { - if (oldValue) { - this.dataForm.bomId = null - } + // if (oldValue) { + // this.dataForm.bomId = null + // } if (newValue) { getBomList( Object.assign({ @@ -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