From c3a4f841d5499b74e9153fce421cebd1fb4ac72d Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期二, 15 七月 2025 10:55:52 +0800
Subject: [PATCH] 1、mdc设备多选输入框优化新增点击输入框同样触发查询按钮弹出抽屉或弹窗 2、解决进入过产品结构树页面后再进入设备日志页面后设备状态分布图样式变形问题以及优化组件代码

---
 src/views/system/modules/ProductionManager/ProductionModal.vue |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/views/system/modules/ProductionManager/ProductionModal.vue b/src/views/system/modules/ProductionManager/ProductionModal.vue
index 7c76baf..3a93426 100644
--- a/src/views/system/modules/ProductionManager/ProductionModal.vue
+++ b/src/views/system/modules/ProductionManager/ProductionModal.vue
@@ -43,6 +43,12 @@
         <a-form-model-item
           :labelCol="labelCol"
           :wrapperCol="wrapperCol"
+          label="鏄惁MDC浣跨敤">
+          <lx-switch checked-children='鏄�' un-checked-children='鍚�' v-model="model.mdcFlag"/>
+        </a-form-model-item>
+        <a-form-model-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
           label="鎺掑簭">
           <a-input-number v-model="model.productionOrder"/>
         </a-form-model-item>
@@ -115,14 +121,19 @@
         })
       },
       add (depart) {
+        this.visible = true;
+        this.model = {}
         if(depart){
           this.seen = false;
           this.dictDisabled = false;
+          this.model.parentId = depart.id;
+          this.model.mdcFlag = depart.mdcFlag;
         }else{
           this.seen = true;
           this.dictDisabled = true;
         }
-        this.edit(depart);
+        // this.edit(depart);
+        this.loadTreeData();
       },
       edit (record) {
         this.visible = true;

--
Gitblit v1.9.3