|
@@ -100,7 +100,7 @@ export default {
|
|
|
],
|
|
|
legend: false,
|
|
|
canvasWidth: 700,
|
|
|
- canvasHeight: 800,
|
|
|
+ canvasHeight: 600,
|
|
|
view: null,
|
|
|
urlMsg: null,
|
|
|
floorList: {},
|
|
@@ -109,13 +109,16 @@ export default {
|
|
|
appName: "万达可视化系统",
|
|
|
defaultProps: {
|
|
|
children: 'Category',
|
|
|
- label: 'Name'
|
|
|
- }
|
|
|
+ label: 'Gcode'
|
|
|
+ },
|
|
|
+ graphId:'',
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
handleNodeClick(data) {
|
|
|
console.log(data);
|
|
|
+ this.graphId = '124aeab6fbb346cd92057525a30aee18';
|
|
|
+ this.getLegend();
|
|
|
},
|
|
|
init() {
|
|
|
console.log(this.urlMsg);
|
|
@@ -199,98 +202,21 @@ export default {
|
|
|
getTreeData(){
|
|
|
queryDraftGroup({projectId:'1000423'}).then(res=>{
|
|
|
console.log(res);
|
|
|
+ if(res.Result =='success'){
|
|
|
+ this.treeData = res.Data;
|
|
|
+ }else{
|
|
|
+ this.treeData=[];
|
|
|
+ this.$message.err('获取楼层结构失败');
|
|
|
+ }
|
|
|
})
|
|
|
- let res = {
|
|
|
- "Data": [
|
|
|
- {
|
|
|
- "Category": [
|
|
|
- {
|
|
|
- "Code": "F6",
|
|
|
- "Gcode": "6F",
|
|
|
- "Gname": "f6",
|
|
|
- "Name": "第6层"
|
|
|
- }
|
|
|
- ],
|
|
|
- "Id": "LCGN",
|
|
|
- "Name": "楼层功能"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [
|
|
|
- {
|
|
|
- "Category": [
|
|
|
- {
|
|
|
- "Code": "F1",
|
|
|
- "Gcode": "1F",
|
|
|
- "Gname": "f1",
|
|
|
- "Name": "第1层"
|
|
|
- }
|
|
|
- ],
|
|
|
- "Id": "GDXT",
|
|
|
- "Name": "供电系统"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [],
|
|
|
- "Id": "NTXT",
|
|
|
- "Name": "暖通系统"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [],
|
|
|
- "Id": "XFXT",
|
|
|
- "Name": "消防系统"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [],
|
|
|
- "Id": "RDXT",
|
|
|
- "Name": "弱电系统"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [],
|
|
|
- "Id": "JPSXT",
|
|
|
- "Name": "给排水系统"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [],
|
|
|
- "Id": "DTXT",
|
|
|
- "Name": "电梯系统"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [],
|
|
|
- "Id": "RQXT",
|
|
|
- "Name": "燃气系统"
|
|
|
- }
|
|
|
- ],
|
|
|
- "Id": "LCFB",
|
|
|
- "Name": "楼层分布"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [],
|
|
|
- "Id": "SCPZ",
|
|
|
- "Name": "石材铺装(土建装饰)"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [
|
|
|
- {
|
|
|
- "Category": [],
|
|
|
- "Id": "FZQZL",
|
|
|
- "Name": "分支器支路分布图(暖通系统)"
|
|
|
- },
|
|
|
- {
|
|
|
- "Category": [],
|
|
|
- "Id": "XFBFYCFL",
|
|
|
- "Name": "消防泵房引出管路分布图(消防系统)"
|
|
|
- }
|
|
|
- ],
|
|
|
- "Id": "XTYLT",
|
|
|
- "Name": "系统原理图"
|
|
|
- }
|
|
|
- ],
|
|
|
- "Message": "",
|
|
|
- "Result": "success"
|
|
|
- };
|
|
|
- this.treeData = res.Data;
|
|
|
},
|
|
|
getLegend(){
|
|
|
- queryStatistic({}).then(res=>{
|
|
|
+ let data = {
|
|
|
+ projectId:'1000423',
|
|
|
+ flag:true,
|
|
|
+ graphId:this.graphId,
|
|
|
+ }
|
|
|
+ queryStatistic(data).then(res=>{
|
|
|
|
|
|
})
|
|
|
}
|