From 987c04588c7640901c15c7505bb9ac05bb4550fc Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期一, 07 十月 2024 00:33:03 +0800
Subject: [PATCH] update

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

diff --git a/src/views/console/workstation/CollTable.vue b/src/views/console/workstation/CollTable.vue
index 400b45a..f2261d3 100644
--- a/src/views/console/workstation/CollTable.vue
+++ b/src/views/console/workstation/CollTable.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2024-10-05 09:51:45
  * @LastEditors: gaoshp
- * @LastEditTime: 2024-10-05 20:40:36
+ * @LastEditTime: 2024-10-07 00:32:44
  * @FilePath: /cps-web/src/views/console/workstation/CollTable.vue
 -->
 <template>
@@ -54,6 +54,15 @@
             this.$HTTP.get(`/api/blade-cps/workstation/listDatapointsByWorkstationId`, {}, { params }).then(res => {
                 try {
                     this.cols = JSON.parse(res.data.dpHead)
+                    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