From d9f277335044119ab1616aa3a3058e03b20633ac Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期四, 20 七月 2023 17:59:40 +0800 Subject: [PATCH] 1、增加ALLCODE数据保存时通过ID判断是否有重复数据如果有重复数据则报错。 --- Source/UBCS-WEB/src/views/modeling/LinkType.vue | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/views/modeling/LinkType.vue b/Source/UBCS-WEB/src/views/modeling/LinkType.vue index eec03bf..43e926a 100644 --- a/Source/UBCS-WEB/src/views/modeling/LinkType.vue +++ b/Source/UBCS-WEB/src/views/modeling/LinkType.vue @@ -156,7 +156,9 @@ data() { return { addOption: { - linkType: {}, + linkType: { + attributes:[] + }, }, domain: null, domainOptions: [], @@ -240,11 +242,17 @@ }, // 娣诲姞鎸夐挳鐐瑰嚮浜嬩欢 linkTypeAdd() { + this.$refs.linkAdd.linkType = {}; this.$refs.linkAdd.showSubmitDialog = true; }, // 缂栬緫鎸夐挳鐐瑰嚮浜嬩欢 linkTypeEdit() { - this.addOption.linkType = this.obj; + var linktype = this.obj; + linktype.fromBtmValues = this.obj.fromBtmTypes; + linktype.toBtmValues = this.obj.toBtmTypes; + linktype.attributes = this.obj.attributes; + var json = JSON.stringify(linktype); + this.addOption.linkType = JSON.parse(json); this.$refs.linkAdd.linkType = this.addOption.linkType; this.$refs.linkAdd.showSubmitDialog = true; }, -- Gitblit v1.9.3