From 1ad5ddc1d9225d0472e7d40e2258b370b7e580da Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期三, 09 十月 2024 21:18:44 +0800
Subject: [PATCH] update
---
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