|
@@ -180,7 +180,7 @@
|
|
},
|
|
},
|
|
option: {
|
|
option: {
|
|
title: {
|
|
title: {
|
|
- text: '典型事故应急"四步"管控体系'
|
|
|
|
|
|
+ text: '集团应急管理体系'
|
|
},
|
|
},
|
|
tooltip: {
|
|
tooltip: {
|
|
trigger: 'item',
|
|
trigger: 'item',
|
|
@@ -302,7 +302,7 @@
|
|
},
|
|
},
|
|
layout: {
|
|
layout: {
|
|
type: 'mindmap',
|
|
type: 'mindmap',
|
|
- direction: 'H',
|
|
|
|
|
|
+ direction: 'TB',
|
|
getHeight: function getHeight() {
|
|
getHeight: function getHeight() {
|
|
return 16;
|
|
return 16;
|
|
},
|
|
},
|
|
@@ -313,7 +313,7 @@
|
|
return 20;
|
|
return 20;
|
|
},
|
|
},
|
|
getHGap: function getHGap() {
|
|
getHGap: function getHGap() {
|
|
- return 120;
|
|
|
|
|
|
+ return 130;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
modes: {
|
|
modes: {
|
|
@@ -333,14 +333,14 @@
|
|
},
|
|
},
|
|
// plugins: [menu],
|
|
// plugins: [menu],
|
|
fitView: true,
|
|
fitView: true,
|
|
- fitViewPadding: 80,
|
|
|
|
|
|
+ fitViewPadding: [140,40,20,40],
|
|
});
|
|
});
|
|
// graph.data(vm.chart.option.series[0].data[0]);
|
|
// graph.data(vm.chart.option.series[0].data[0]);
|
|
// gragh.render();
|
|
// gragh.render();
|
|
graph.read({
|
|
graph.read({
|
|
...vm.chart.option.series[0].data[0]
|
|
...vm.chart.option.series[0].data[0]
|
|
});
|
|
});
|
|
- graph.fitView(80);
|
|
|
|
|
|
+ graph.fitView([140,40,20,40]);
|
|
this.graph = graph;
|
|
this.graph = graph;
|
|
this.bindEvents();
|
|
this.bindEvents();
|
|
},
|
|
},
|
|
@@ -376,7 +376,7 @@
|
|
model.collapsed = !model.collapsed;
|
|
model.collapsed = !model.collapsed;
|
|
this.graph.updateItem(e.item, model);
|
|
this.graph.updateItem(e.item, model);
|
|
this.graph.layout();
|
|
this.graph.layout();
|
|
- this.graph.fitView(80);;
|
|
|
|
|
|
+ this.graph.fitView([140,40,20,40]);
|
|
} else {
|
|
} else {
|
|
if (model.value) {
|
|
if (model.value) {
|
|
let args = {
|
|
let args = {
|
|
@@ -398,7 +398,7 @@
|
|
// 查找所有的节点路径
|
|
// 查找所有的节点路径
|
|
this.getParentNodes(this.chart.option.series[0].data[0], model.id);
|
|
this.getParentNodes(this.chart.option.series[0].data[0], model.id);
|
|
this.graph.changeData(JSON.parse(JSON.stringify(model)));
|
|
this.graph.changeData(JSON.parse(JSON.stringify(model)));
|
|
- this.graph.fitView(80);
|
|
|
|
|
|
+ this.graph.fitView([140,40,20,40]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
e.item.toFront();
|
|
e.item.toFront();
|
|
@@ -468,7 +468,7 @@
|
|
// this.chart.option.title.text = node.label;
|
|
// this.chart.option.title.text = node.label;
|
|
}
|
|
}
|
|
this.graph.changeData(JSON.parse(JSON.stringify(node)));
|
|
this.graph.changeData(JSON.parse(JSON.stringify(node)));
|
|
- this.graph.fitView(80);;
|
|
|
|
|
|
+ this.graph.fitView([140,40,20,40]);
|
|
},
|
|
},
|
|
getFileTreeData() {
|
|
getFileTreeData() {
|
|
let that = this,
|
|
let that = this,
|
|
@@ -488,10 +488,8 @@
|
|
// that.chart.height = res.data.length * 100 + 'px';
|
|
// that.chart.height = res.data.length * 100 + 'px';
|
|
arr = that.treeDataUtil(res.data, '');
|
|
arr = that.treeDataUtil(res.data, '');
|
|
// arr = that.getParentNodes(res.data, 1)
|
|
// arr = that.getParentNodes(res.data, 1)
|
|
- arr[0].labelCfg = {
|
|
|
|
- style: {
|
|
|
|
- fontSize: 30,
|
|
|
|
- },
|
|
|
|
|
|
+ arr[0].style = {
|
|
|
|
+ fill: '#f79646'
|
|
};
|
|
};
|
|
arr[0].id = '1';
|
|
arr[0].id = '1';
|
|
arr[0].collapsed = false,
|
|
arr[0].collapsed = false,
|
|
@@ -516,6 +514,27 @@
|
|
let j = 0;
|
|
let j = 0;
|
|
let g = 0;
|
|
let g = 0;
|
|
let name = '';
|
|
let name = '';
|
|
|
|
+ let style = {};
|
|
|
|
+ let labelCfg = {};
|
|
|
|
+ switch (id.toString().split("-").length) {
|
|
|
|
+ case 1:
|
|
|
|
+ style = {
|
|
|
|
+ fill: '#e6b9b8',
|
|
|
|
+ };
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ style = {
|
|
|
|
+ fill: '#ffff66',
|
|
|
|
+ };
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
|
|
+ style = {
|
|
|
|
+ fill: '#d9d9d9',
|
|
|
|
+ };
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ };
|
|
for (let item of treeData) {
|
|
for (let item of treeData) {
|
|
i++;
|
|
i++;
|
|
if (item.fileName === null) {
|
|
if (item.fileName === null) {
|
|
@@ -533,6 +552,8 @@
|
|
nodeType: 'node',
|
|
nodeType: 'node',
|
|
label: item.createMan,
|
|
label: item.createMan,
|
|
children: children,
|
|
children: children,
|
|
|
|
+ style: style,
|
|
|
|
+ labelCfg: labelCfg,
|
|
});
|
|
});
|
|
children = [];
|
|
children = [];
|
|
} else {
|
|
} else {
|
|
@@ -550,6 +571,8 @@
|
|
isCollapsed: true,
|
|
isCollapsed: true,
|
|
label: name,
|
|
label: name,
|
|
children: children1,
|
|
children: children1,
|
|
|
|
+ style: style,
|
|
|
|
+ labelCfg: labelCfg,
|
|
});
|
|
});
|
|
j = 0;
|
|
j = 0;
|
|
children1 = [];
|
|
children1 = [];
|
|
@@ -575,6 +598,8 @@
|
|
isCollapsed: true,
|
|
isCollapsed: true,
|
|
label: name,
|
|
label: name,
|
|
children: children1,
|
|
children: children1,
|
|
|
|
+ style: style,
|
|
|
|
+ labelCfg: labelCfg,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -730,7 +755,7 @@
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
.root {
|
|
.root {
|
|
- background: linear-gradient(rgba(0,0,0,0), rgba(173, 173, 173, 0.6)), url(../../../../assets/img/img/filebg7.png) center bottom no-repeat;
|
|
|
|
|
|
+ background: url(../../../../assets/img/img/filebg8.jpg) center bottom no-repeat;
|
|
background-size: 100% 100%;
|
|
background-size: 100% 100%;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -780,13 +805,15 @@
|
|
}
|
|
}
|
|
|
|
|
|
.text-nav {
|
|
.text-nav {
|
|
|
|
+ background-color: #ffff00;
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 40px;
|
|
top: 40px;
|
|
- left: 28%;
|
|
|
|
|
|
+ left: 32%;
|
|
font-size: 60px;
|
|
font-size: 60px;
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
// background: #73bf8f;
|
|
// background: #73bf8f;
|
|
// border-radius: 4px;
|
|
// border-radius: 4px;
|
|
- color: #000000;
|
|
|
|
|
|
+ color: #ff0000;
|
|
|
|
+ padding: 36px 50px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|