From 9516d95bdcc481b71d4b090bbdcfff39a84b26d6 Mon Sep 17 00:00:00 2001 From: lzhe <lzhe@example.com> Date: 星期一, 07 十月 2024 22:38:23 +0800 Subject: [PATCH] 1 --- src/views/console/workstation/CollDialog.vue | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/views/console/workstation/CollDialog.vue b/src/views/console/workstation/CollDialog.vue index 4417dc1..fda7f7b 100644 --- a/src/views/console/workstation/CollDialog.vue +++ b/src/views/console/workstation/CollDialog.vue @@ -97,6 +97,15 @@ }).then(() => { try { this.cols = JSON.parse(this.typeList.find(v => v.id === val).dpHeadFull) + if (this.cols.filter(v => v.prop === 'dplabel').length === 0) { + this.cols.unshift( + { + label: "鏄剧ず鍚嶇О", + prop: "dplabel", + isRequired: true, + } + ) + } this.tabledata = [] } catch (error) { this.cols = [] @@ -107,6 +116,15 @@ } else { try { this.cols = JSON.parse(this.typeList.find(v => v.id === val).dpHeadFull) + 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