|
@@ -1,33 +1,195 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <p class="slave-relation-title">架构从属关系</p>
|
|
|
- <cardList/>
|
|
|
- <cardList/>
|
|
|
+ <cardList
|
|
|
+ :content="list"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import cardList from "@/components/relation/overview/cardList"
|
|
|
+ import CardList from "@/components/relation/Overview/CardList"
|
|
|
+ import api from "../../../api/relation/api";
|
|
|
+
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- plan: "2019-10-30",
|
|
|
- finish: "2019-10-30",
|
|
|
- onLine: "2019-10-30",
|
|
|
- explain: "所有关系的检索查看以及维护(查看方式包含:列表,平面图,拓扑图等)"
|
|
|
+ list: [
|
|
|
+ {
|
|
|
+ GraphTypeId: '3535436',//大分类id
|
|
|
+ GraphTypeName: '架构从属关系',//大分类名称
|
|
|
+ GraphTypeCode: '',//大分类编码
|
|
|
+ Note: '',//说明
|
|
|
+ ParentId: '',//父id
|
|
|
+ ChildGraphicTypeList: [
|
|
|
+ {
|
|
|
+ GraphTypeId: '234534543',//图类型id
|
|
|
+ GraphTypeName: '建筑从属关系',//图类型名称
|
|
|
+ GraphTypeCode: 'ksaajdk',//图类型编码
|
|
|
+ Note: '显示数字字典excel中的xxx',//说明
|
|
|
+ ParentId: '3535436',//父id,GraphTypeId
|
|
|
+ RelationTypeProjectList: [
|
|
|
+ {
|
|
|
+ Id: '23445433534',
|
|
|
+ RelationTypeName: '项目下的建筑体',//关系类型名称
|
|
|
+ RelationTypeCode: 'Pj2Bd',//关系类型编码
|
|
|
+ GraphicId: 'ksaajdk',//图类型编码
|
|
|
+ Note: '边类型说明(待补充)',//说明
|
|
|
+ ConneObject: '项目→建筑体',//连接对象
|
|
|
+ IsSource: true,//是否需要配置源末端
|
|
|
+ IsAutomatic: true,//是否自动计算类型
|
|
|
+ Manual: 2,//123选一个手动计算类型1禁用2提示引导3手动维护
|
|
|
+ Prompting: '【设备台账】,【系统台账】',//提示信息
|
|
|
+ ProjectId: 'Pj1245',//项目id
|
|
|
+ ComputingTime: '2019.12.12 12:00',//null不显示,最后一次自动计算时间
|
|
|
+ ComputationalState: 1,//计算状态
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Id: '345646',
|
|
|
+ RelationTypeName: '建筑体下的业务空间',//关系类型名称
|
|
|
+ RelationTypeCode: 'Bd2Sp',//关系类型编码
|
|
|
+ GraphicId: 'ksaajdk',//图类型编码
|
|
|
+ Note: '边类型说明(待补充)',//说明
|
|
|
+ ConneObject: '建筑体→业务空间',//连接对象
|
|
|
+ IsSource: true,//是否需要配置源末端
|
|
|
+ IsAutomatic: true,//是否自动计算类型
|
|
|
+ Manual: 1,//123选一个手动计算类型1禁用2提示引导3手动维护
|
|
|
+ Prompting: '【设备台账】',//提示信息
|
|
|
+ ProjectId: 'Pj1245',//项目id
|
|
|
+ ComputingTime: '2019.12.12 12:00',//null不显示,最后一次自动计算时间
|
|
|
+ ComputationalState: 1,//计算状态
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Id: '345646546',
|
|
|
+ RelationTypeName: '建筑体下的高度',//关系类型名称
|
|
|
+ RelationTypeCode: 'Bd2F1',//关系类型编码
|
|
|
+ GraphicId: 'ksaajdk',//图类型编码
|
|
|
+ Note: '边类型说明(待补充)',//说明
|
|
|
+ ConneObject: '建筑体→优势',//连接对象
|
|
|
+ IsSource: true,//是否需要配置源末端
|
|
|
+ IsAutomatic: true,//是否自动计算类型
|
|
|
+ Manual: 3,//123选一个手动计算类型1禁用2提示引导3手动维护
|
|
|
+ Prompting: '【设备台账】,【系统台账】',//提示信息
|
|
|
+ ProjectId: 'Pj1245',//项目id
|
|
|
+ ComputingTime: '2019.12.11 12:00',//null不显示,最后一次自动计算时间
|
|
|
+ ComputationalState: 1,//计算状态
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Id: '345644356',
|
|
|
+ RelationTypeName: '建筑体下的竖井',//关系类型名称
|
|
|
+ RelationTypeCode: 'Bd2Sh',//关系类型编码
|
|
|
+ GraphicId: 'ksaajdk',//图类型编码
|
|
|
+ Note: '边类型说明(待补充)',//说明
|
|
|
+ ConneObject: '建筑体→竖井',//连接对象
|
|
|
+ IsSource: true,//是否需要配置源末端
|
|
|
+ IsAutomatic: true,//是否自动计算类型
|
|
|
+ Manual: 2,//123选一个手动计算类型1禁用2提示引导3手动维护
|
|
|
+ Prompting: '【设备台账】',//提示信息
|
|
|
+ ProjectId: 'Pj1245',//项目id
|
|
|
+ ComputingTime: '2019.12.11 12:00',//null不显示,最后一次自动计算时间
|
|
|
+ ComputationalState: 1,//计算状态
|
|
|
+ },
|
|
|
+ {
|
|
|
+ Id: '3456465sss46',
|
|
|
+ RelationTypeName: '建筑体下的高度',//关系类型名称
|
|
|
+ RelationTypeCode: 'Bd2F1',//关系类型编码
|
|
|
+ GraphicId: 'ksaajdk',//图类型编码
|
|
|
+ Note: '边类型说明(待补充)',//说明
|
|
|
+ ConneObject: '建筑体→优势',//连接对象
|
|
|
+ IsSource: true,//是否需要配置源末端
|
|
|
+ IsAutomatic: true,//是否自动计算类型
|
|
|
+ Manual: 3,//123选一个手动计算类型1禁用2提示引导3手动维护
|
|
|
+ Prompting: '【设备台账】,【系统台账】,【xx台账】',//提示信息
|
|
|
+ ProjectId: 'Pj1245',//项目id
|
|
|
+ ComputingTime: '2019.12.11 12:00',//null不显示,最后一次自动计算时间
|
|
|
+ ComputationalState: 1,//计算状态
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ GraphTypeId: '23453645645433',//图类型id
|
|
|
+ GraphTypeName: '机电从属关系',//图类型名称
|
|
|
+ GraphTypeCode: 'ksaajdk',//图类型编码
|
|
|
+ Note: '显示数字字典excel中的xxx',//说明
|
|
|
+ ParentId: '3535436',//父id,GraphTypeId
|
|
|
+ RelationTypeProjectList: [
|
|
|
+ {
|
|
|
+ Id: '234454345363534',
|
|
|
+ RelationTypeName: '项目下的系统',//关系类型名称
|
|
|
+ RelationTypeCode: 'Pj2Bd',//关系类型编码
|
|
|
+ GraphicId: 'ksaajdk',//图类型编码
|
|
|
+ Note: '边类型说明(待补充)',//说明
|
|
|
+ ConneObject: '项目→建筑体',//连接对象
|
|
|
+ IsSource: false,//是否需要配置源末端
|
|
|
+ IsAutomatic: true,//是否自动计算类型
|
|
|
+ Manual: 1,//123选一个手动计算类型1禁用2提示引导3手动维护
|
|
|
+ Prompting: '【设备台账】,【系统台账】',//提示信息
|
|
|
+ ProjectId: 'Pj1245',//项目id
|
|
|
+ ComputingTime: '2019.12.12 12:00',//null不显示,最后一次自动计算时间
|
|
|
+ ComputationalState: 1,//计算状态
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }, {
|
|
|
+ GraphTypeId: '3535436',//大分类id
|
|
|
+ GraphTypeName: '物理连通关系',//大分类名称
|
|
|
+ GraphTypeCode: '',//大分类编码
|
|
|
+ Note: '',//说明
|
|
|
+ ParentId: '',//父id
|
|
|
+ ChildGraphicTypeList: [
|
|
|
+ {
|
|
|
+ GraphTypeId: '23453455436343',//图类型id
|
|
|
+ GraphTypeName: '业务空间(同类)初步关系',//图类型名称
|
|
|
+ GraphTypeCode: 'ksaajdk',//图类型编码
|
|
|
+ Note: '显示数字字典excel中的xxx',//说明
|
|
|
+ ParentId: '3535436',//父id,GraphTypeId
|
|
|
+ RelationTypeProjectList: [
|
|
|
+ {
|
|
|
+ Id: '23445476533534',
|
|
|
+ RelationTypeName: '项目下的建筑体',//关系类型名称
|
|
|
+ RelationTypeCode: 'Pj2Bd',//关系类型编码
|
|
|
+ GraphicId: 'ksaajdk',//图类型编码
|
|
|
+ Note: '边类型说明(待补充)',//说明
|
|
|
+ ConneObject: '项目→建筑体',//连接对象
|
|
|
+ IsSource: true,//是否需要配置源末端
|
|
|
+ IsAutomatic: true,//是否自动计算类型
|
|
|
+ Manual: 1,//123选一个手动计算类型1禁用2提示引导3手动维护
|
|
|
+ Prompting: '【设备台账】,【系统台账】',//提示信息
|
|
|
+ ProjectId: 'Pj1245',//项目id
|
|
|
+ ComputingTime: '2019.12.12 12:00',//null不显示,最后一次自动计算时间
|
|
|
+ ComputationalState: 1,//计算状态
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ let data = {
|
|
|
+ "Cascade": [{
|
|
|
+ "Cascade": [{
|
|
|
+ "Filters": " projectId = 'Pj4201050001'",
|
|
|
+ "Name": "relationTypeProjectList"
|
|
|
+ }],
|
|
|
+ "Filters": " not parentId isnull",
|
|
|
+ "Name": "childGraphicTypeList"
|
|
|
+ }],
|
|
|
+ "Filters": " parentId isnull ",
|
|
|
+ "PageNumber": 1,
|
|
|
+ "PageSize": 50
|
|
|
+ }
|
|
|
+ api.graphic(data, res => {
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
+ },
|
|
|
mounted() {
|
|
|
},
|
|
|
- components: {cardList}
|
|
|
+ components: {CardList}
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
- .slave-relation-title {
|
|
|
- color: #AAAAAA;
|
|
|
- font-weight: 600;
|
|
|
- border-bottom: 2px dashed #555;
|
|
|
- padding-bottom: 5px;
|
|
|
- }
|
|
|
+
|
|
|
</style>
|