From 9e341acec731503f1540b65727441e771b8ef9b4 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期二, 17 十月 2023 11:40:20 +0800
Subject: [PATCH] 校验关键属性规则写到后面
---
Source/UBCS-WEB/src/views/modeling/LinkType.vue | 25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/modeling/LinkType.vue b/Source/UBCS-WEB/src/views/modeling/LinkType.vue
index eec03bf..4f2371b 100644
--- a/Source/UBCS-WEB/src/views/modeling/LinkType.vue
+++ b/Source/UBCS-WEB/src/views/modeling/LinkType.vue
@@ -64,7 +64,7 @@
<i :class="icons.domain"></i>
鎵�灞為鍩�
</template>
- <el-tag size="small">
+ <el-tag v-if="obj.domainText" size="small">
{{ obj.domainText }}
</el-tag>
</el-descriptions-item>
@@ -97,7 +97,7 @@
</el-descriptions>
<el-descriptions class="margin-top" :column="2" size="medium" border>
- <!--
+ <!--
<el-descriptions-item :labelStyle="descriptionOption.labelStyle"
:contentStyle="descriptionOption.contentStyle">
<template slot="label">
@@ -122,7 +122,7 @@
</template>
{{ obj.description }}
</el-descriptions-item>
- </el-descriptions>
+ </el-descriptions>
</basic-container>
<!-- 灞炴�у垪琛�-->
<basic-container>
@@ -142,7 +142,7 @@
</el-container>
</template>
-
+
<script>
import {
initTree,
@@ -156,7 +156,9 @@
data() {
return {
addOption: {
- linkType: {},
+ linkType: {
+ attributes:[]
+ },
},
domain: null,
domainOptions: [],
@@ -177,7 +179,7 @@
},
loadOption: {
border: true,
- height: 360,
+ height: 395,
editBtn: false,
addBtn: false,
menu: false,
@@ -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;
},
@@ -268,10 +276,9 @@
}
}
</script>
-
+
<style lang="scss">
.attributeCrud>.el-card:nth-of-type(2)>.el-card__body>.avue-crud__menu {
display: none !important;
}
</style>
-
\ No newline at end of file
--
Gitblit v1.9.3