This commit is contained in:
zhutianqi
2021-11-08 14:09:55 +08:00
parent 3c35c536e7
commit 211e45e4eb
5 changed files with 71 additions and 42 deletions
@@ -31,11 +31,12 @@ export default {
data() {
return {
list: [],
tabValue: "listProject",
tabValue: "listOfCountries",
menuName: ["国家/地区清单", "车型类别清单", "其他清单", "项目清单"]
};
},
methods: {},
methods: {
},
components: {
localProductsOrProjectLibrary,
listOfCountries,
@@ -84,8 +85,7 @@ export default {
}
}
});
this.list = list;
this.tabValue = this.list[0].name;
this.list = list
},
beforeRouteLeave(to, from, next) {
const toName = ["ListOfStandardsAndRegulationsDetails", "AccessStandardDetails", "LocalProductDetail", "OtherAddEit"];
@@ -50,6 +50,11 @@
})
},
handleNodeClick (node) {
let json = {
id: '123',
name: '123',
}
},
handleEdgeClick (node) {},
renderGraph(row) {
@@ -182,11 +187,8 @@
{
type: 'collapse-expand',
onChange: function onChange(item, collapsed) {
console.log(1);
const data = item.get('model');
const icon = item.get('group').find((element) => element.get('name') === 'collapse-icon');
console.log(data);
console.log(icon);
if (collapsed) {
icon.attr('symbol', G6.Marker.expand);
} else {
@@ -197,7 +199,7 @@
},
shouldBegin: (e) => {
const target = e.target
const nodeType = target.cfg.nature
const nodeType = target.cfg.name
if (nodeType === 'collapse-icon') return true;
return false;
}
@@ -77,7 +77,9 @@
// }
// this.$message.success('节点被点击' + data.name)
},
handleEdgeClick (node) {},
handleEdgeClick (node) {
console.log(4);
},
renderGraph() {
G6.registerNode(
'tree-node',
@@ -281,6 +283,7 @@
},
handleGraphDraw () {},
handleGraphNodeClickEvent(graph) {
console.log(1);
// 点击节点
graph.on('node:click', (e) => {
// 先将所有当前是 click 状态的节点置为非 click 状态
@@ -294,6 +297,7 @@
});
},
handleGraphEdgeClickEvent(graph) {
console.log(2);
// 点击边
graph.on('edge:click', (e) => {
// 先将所有当前是 click 状态的边置为非 click 状态
@@ -5,7 +5,7 @@
<div class="standard-search-content">
<div style="position: absolute;left: 0;right: 0;top: 0;bottom: 0;">
<div class="content-left">
<div class="search" style="padding: 40px;">
<div class="search" style="padding: 20px 0 0;">
<div class="search-box">
<div class="home-input">
<el-input
@@ -268,7 +268,6 @@
</div>
</div>
<adc-back-top scroll-bind="standardSearch" windowScroll></adc-back-top>
<!-- 分享 -->
<el-drawer :title="$t('m.share')" :visible.sync="drawerModal" size="300px" :styles="drawerModalstyles" @close="treeCancel">
<div class="demo-drawer-content">