gaoshp
2024-10-07 987c04588c7640901c15c7505bb9ac05bb4550fc
update
已修改1个文件
11 ■■■■■ 文件已修改
src/views/console/workstation/CollTable.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 = []
                }