From ec7f3f3675efc96b59caa40c5ada96600eb60650 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 26 十月 2023 17:17:01 +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