|
@@ -49,8 +49,8 @@ export default {
|
|
|
// GraphicId: 'ksaajdk',//图类型编码
|
|
|
// Note: '边类型说明(待补充)',//说明
|
|
|
// ConneObject: '项目→建筑体',//连接对象
|
|
|
- // IsSource: true,//是否需要配置源末端
|
|
|
- // IsAutomatic: true,//是否自动计算类型
|
|
|
+ // source: true,//是否需要配置源末端
|
|
|
+ // automatic: true,//是否自动计算类型
|
|
|
// Manual: 2,//123选一个手动计算类型1禁用2提示引导3手动维护
|
|
|
// Prompting: '【设备台账】,【系统台账】',//提示信息
|
|
|
// ProjectId: 'Pj1245',//项目id
|
|
@@ -96,7 +96,8 @@ export default {
|
|
|
computed: {
|
|
|
...mapGetters("layout", ["projectId"])
|
|
|
},
|
|
|
- mounted() {},
|
|
|
+ mounted() {
|
|
|
+ },
|
|
|
components: { CardList },
|
|
|
methods: {
|
|
|
init() {
|
|
@@ -143,14 +144,14 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
changeList.length &&
|
|
|
- changeList.forEach(item => {
|
|
|
- let name = item.graphTypeName;
|
|
|
- let rList = item.relationTypeProjectList;
|
|
|
- rList.forEach(r => {
|
|
|
- r.count = countInfo[name][r.id];
|
|
|
- // this.$set(r, 'cardDisabled', false)
|
|
|
- });
|
|
|
+ changeList.forEach(item => {
|
|
|
+ let name = item.graphTypeName;
|
|
|
+ let rList = item.relationTypeProjectList;
|
|
|
+ rList.forEach(r => {
|
|
|
+ r.count = countInfo[name][r.id];
|
|
|
+ // this.$set(r, 'cardDisabled', false)
|
|
|
});
|
|
|
+ });
|
|
|
},
|
|
|
RelationType(relation_type, zone_type) {
|
|
|
let param = {
|
|
@@ -161,19 +162,19 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
businessSpaceAll(param).then(res => {
|
|
|
- if (res.data.Result === "failure") {
|
|
|
+ if (res.data.result === "failure") {
|
|
|
this.$message({
|
|
|
message: "计算失败",
|
|
|
type: "error"
|
|
|
});
|
|
|
}
|
|
|
- this.init();
|
|
|
+ this.init();
|
|
|
});
|
|
|
this.init();
|
|
|
},
|
|
|
calcSpecial(relation) {
|
|
|
this.currentRelationTypeName = relation.RelationTypeName;
|
|
|
- if (relation.IsSource) {
|
|
|
+ if (relation.source) {
|
|
|
//配置云末端
|
|
|
// this.TableVisibleMoreLoading = true//会很慢,加loading
|
|
|
// let param = {
|
|
@@ -198,27 +199,27 @@ export default {
|
|
|
openComputed(result) {
|
|
|
let param = {
|
|
|
// BuildingId: '',
|
|
|
- Domain: "DomainPiping",
|
|
|
- MepSystemType: "冷冻水供水管",
|
|
|
- ProjectId: this.projectId,
|
|
|
- SourceList: result
|
|
|
+ domain: "DomainPiping",
|
|
|
+ mepSystemType: "冷冻水供水管",
|
|
|
+ projectId: this.projectId,
|
|
|
+ sourceList: result
|
|
|
};
|
|
|
blockSource(param, res => {
|
|
|
//覆盖源端数据
|
|
|
//确定流向
|
|
|
result.forEach(i => {
|
|
|
- let { BlockId, BuildingId, Domain, Source } = i;
|
|
|
- this.DataSorting(BlockId, BuildingId, Domain, Source);
|
|
|
+ let { blockId, buildingId, domain, source } = i;
|
|
|
+ this.DataSorting(blockId, buildingId, domain, source);
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
- DataSorting(BlockId, BuildingId, Domain, isSource) {
|
|
|
+ DataSorting(BlockId, BuildingId, Domain, source) {
|
|
|
let param = {
|
|
|
- BlockId,
|
|
|
- Domain,
|
|
|
- isSource,
|
|
|
- BuildingId,
|
|
|
- SystemName: this.currentRelationTypeName
|
|
|
+ blockId: BlockId,
|
|
|
+ domain: Domain,
|
|
|
+ source,
|
|
|
+ buildingId: BuildingId,
|
|
|
+ systemName: this.currentRelationTypeName
|
|
|
};
|
|
|
sysDirection(param, res => {
|
|
|
this.init();
|