提交 814bcb40 authored 作者: caijian's avatar caijian

中美机理图

上级 f29efbcf
...@@ -127,8 +127,8 @@ ...@@ -127,8 +127,8 @@
</div> </div>
<DataList :list="newsListChartG6" class="g6-datalist"></DataList> <DataList :list="newsListChartG6" class="g6-datalist"></DataList>
<div class="bottom-button-group"> <div class="bottom-button-group">
<el-button type="primary" @click="createGraphA()">美国机理图</el-button> <el-button type="primary" @click="createGraphA()">中/美机理图</el-button>
<el-button type="primary" @click="createGraphC()">中国机理图</el-button> <!-- <el-button type="primary" @click="createGraphC()">中国机理图</el-button> -->
<el-button type="primary" @click="generateConclusionG6()">生成结论</el-button> <el-button type="primary" @click="generateConclusionG6()">生成结论</el-button>
</div> </div>
</div> </div>
...@@ -484,12 +484,20 @@ async function getGraphList() { ...@@ -484,12 +484,20 @@ async function getGraphList() {
}) })
graphLoading.value = false graphLoading.value = false
if (res.code == 1) { if (res.code == 1) {
graphData.value.nodes = res.data.events const usa = res.data['美国']
graphData.value.edges = res.data.events_relations graphData.value.nodes = usa.events
graphData.value.time = res.data.events_time graphData.value.edges = usa.events_relations
graphData.value.type = res.data.events_type graphData.value.time = usa.events_time
graphData.value.relation_type = res.data.relation_type graphData.value.type = usa.events_type
graphData.value.relation_type = usa.relation_type
initGraph(graphData.value); initGraph(graphData.value);
const china = res.data['中国']
graphDataBottom.value.nodes = china.events
graphDataBottom.value.edges = china.events_relations
graphDataBottom.value.time = china.events_time
graphDataBottom.value.type = china.events_type
graphDataBottom.value.relation_type = china.relation_type
initGraphBottom(graphDataBottom.value);
} }
// getEvents().then((res) => { // getEvents().then((res) => {
// if (res) { // if (res) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论