From 232febf29b40995d7cdef2a6e5a7a4c1e8668008 Mon Sep 17 00:00:00 2001 From: zhangherong <571457620@qq.com> Date: 星期一, 03 三月 2025 14:51:42 +0800 Subject: [PATCH] art: 【设备台账-新增】页面,点击“设备所属分类”下拉选项,已经删除的“设备分类”仍显示,有误! --- src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue b/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue index 90fddfd..7cb1658 100644 --- a/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue +++ b/src/views/mdc/base/modules/StatisticsChart/StatisticsLegend.vue @@ -609,10 +609,14 @@ const { isEquipment, productionId, tierName } = this.$route.params // 鍒ゆ柇鏄惁鏄粠鐪嬫澘璺宠浆杩囨潵锛宲roductionId 瀛樺湪鍒欎负浠庣湅鏉胯烦杞� if (productionId) { - _this.$set(this.queryParam, 'tierName', tierName) // 鍒ゆ柇鏄惁鐐瑰嚮鐨勬槸璁惧灞傜骇 - if (!isEquipment) _this.$set(this.queryParams, 'parentId', productionId) - else _this.$set(this.queryParams, 'equipmentId', productionId) + if (!isEquipment) { + _this.$set(this.queryParams, 'parentId', productionId) + _this.$set(this.queryParam, 'tierName', tierName) + } else { + _this.$set(this.queryParams, 'equipmentId', productionId) + _this.$set(this.queryParam, 'tierName', productionId + '/' + tierName) + } } else { if (res.result[0]) { _this.$set(this.queryParam, 'tierName', res.result[0].title) -- Gitblit v1.9.3