From 60884524aba674d2368d2169b057f0d806acc0f6 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期四, 10 十月 2024 12:14:24 +0800
Subject: [PATCH] 1

---
 src/views/console/workstation/CollDialog.vue |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/views/console/workstation/CollDialog.vue b/src/views/console/workstation/CollDialog.vue
index 6723f27..d274661 100644
--- a/src/views/console/workstation/CollDialog.vue
+++ b/src/views/console/workstation/CollDialog.vue
@@ -33,7 +33,7 @@
                     <el-switch :disabled="!scope.row.status" size="small" v-model="scope.row[item.prop]"
                         v-else-if="item.type === 'boolean'" />
                     <el-input size="small" v-model="scope.row[item.prop]" placeholder="" v-else-if="scope.row.status"
-                        :disabled="(item.prop == 'dpLabel' && 'Other' !== scope.row.dpCategory)"></el-input>
+                        :disabled="(['dpLabel', 'dpName'].includes(item.prop) && 'Other' !== scope.row.dpCategory)"></el-input>
                     <span v-else>{{ scope.row[item.prop] }}</span>
                 </template>
             </el-table-column>
@@ -106,8 +106,10 @@
                     value: 'Alarm'
                 }].find(v => v.value === e).label
                 this.tabledata[index].dpLabel = label
+                this.tabledata[index].dpName = e
             } else if (prop === 'dpCategory' && e === 'Other') {
                 this.tabledata[index].dpLabel = ''
+                this.tabledata[index].dpName = ''
             }
         },
         changeType(val) {

--
Gitblit v1.9.3