From 79545e4252d32c5a4b9690757f6e12beaf7a6843 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期一, 07 十月 2024 00:31:18 +0800
Subject: [PATCH] update

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

diff --git a/src/views/console/workstation/CollDialog.vue b/src/views/console/workstation/CollDialog.vue
index e62bc6f..0b30ce6 100644
--- a/src/views/console/workstation/CollDialog.vue
+++ b/src/views/console/workstation/CollDialog.vue
@@ -129,7 +129,15 @@
             this.$HTTP.get(`/api/blade-cps/workstation/listDatapointsByWorkstationId`, {}, { params }).then(res => {
                 try {
                     this.cols = JSON.parse(res.data.dpHead)
-                    console.log(this.cols, 'cols')
+                    if (this.cols.filter(v => v.prop === 'dplabel').length === 0) {
+                        this.cols.unshift(
+                            {
+                                label: "鏄剧ず鍚嶇О",
+                                prop: "dplabel",
+                                isRequired: true,
+                            }
+                        )
+                    }
                 } catch (error) {
                     this.cols = []
                 }

--
Gitblit v1.9.3