田源
2023-09-18 da6cc144cc4d60805e4693e4adc5ebdf78b5b37d
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>