提交 a7a092f6 authored 作者: caijian's avatar caijian

first commit

上级
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
mapWithLabel
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Vue 3 + Vite
\ No newline at end of file
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hypergraph</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "techhypergraph",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@antv/g6": "^4.8.21",
"@turf/turf": "^7.2.0",
"axios": "^1.8.3",
"echarts": "^5.6.0",
"element-plus": "^2.9.6",
"leaflet": "^1.9.4",
"leaflet-ant-path": "^1.3.0",
"leaflet-draw": "^1.0.4",
"leaflet-minimap": "^3.6.1",
"leaflet-polylinedecorator": "^1.6.0",
"leaflet-textpath": "^1.2.3",
"lodash": "^4.17.21",
"mitt": "^3.0.1",
"proj4": "^2.19.7",
"proj4leaflet": "^1.0.2",
"sass": "^1.86.0",
"stylus": "^0.64.0",
"vue": "^3.5.13",
"vue-router": "^4.5.0",
"vuex": "^4.1.0",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.2.1",
"less": "^4.2.2",
"less-loader": "^12.2.0",
"unplugin-auto-import": "^20.0.0",
"unplugin-vue-components": "^29.0.0",
"vite": "^6.2.0"
}
}
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
\ No newline at end of file
<template>
<div class="container">
<router-view />
</div>
</template>
<style>
.container {
width: 100vw;
height: 100vh;
}
#app {
font-family: "Microsoft YaHei";
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #ffffff;
margin: 0;
padding: 0;
}
</style>
<script setup>
</script>
import request from './request'
//创建超图
export const createGraph = async (params) => {
let {
data
} = await request.post('/api/hypergraph/create')
return data
}
//超图列表
export const getGraphList = async (params) => {
let {
data
} = await request.get('/api/hypergraph/get_list')
return data
}
//创建实体
export const createEntity = async (params) => {
// let {
// data
// } = await request.post('/api/entity/create')
// return data
let data = await request({
method: "post",
url: "/api/entity/create",
data: params
})
return data
}
// 在超图中插入节点
export const insertEntityIntoHypergraph = async (params) => {
let data = await request({
method: "post",
url: "/api/hypergraph/insert_entity_in_hypergraph",
data: params
})
return data
}
//实体列表
export const getEntityList = async (params) => {
let {
data
} = await request.get('/api/entity/get_list')
return data
}
//实体检索
export const searchEntity = async (params) => {
let {
data
} = await request.get('/api/entity/search')
return data
}
//创建事件
export const createItem = async (params) => {
let {
data
} = await request.post('/api/news/create')
return data
}
//新闻列表
export const getItemList = async (params) => {
let {
data
} = await request.get('/api/news/get_list')
return data
}
//新闻检索
export const searchItem = async (params) => {
let {
data
} = await request.get('/api/news/search?query=' + params.id)
return data
}
//获取超图详情
export const getGraphInfo = async (params) => {
let {
data
} = await request.get('/api/hypergraph/get_hypergraph_by_id?id=' + params.id
+ '&cur_lt_lon=' + params.cur_lt_lon + '&cur_lt_lat=' + params.cur_lt_lat
+ '&cur_lt_x=' + params.cur_lt_x + '&cur_lt_y=' + params.cur_lt_y
+ '&cur_rb_lon=' + params.cur_rb_lon + '&cur_rb_lat=' + params.cur_rb_lat
+ '&cur_rb_x=' + params.cur_rb_x + '&cur_rb_y=' + params.cur_rb_y)
return data
}
//获取多个超图详情
export const getGraphInfoByIds = async (params) => {
let {
data
} = await request({
method: "post",
url: "/api/hypergraph/get_hypergraph_by_ids",
data: params
})
return data
}
//保存超图
export const saveHypergraph = async (params) => {
let data = await request({
method: "post",
url: "/api/hypergraph/save_hypergraph",
data: params
})
return data
}
//根据ID获取超图
export const getHypermapById = async (params) => {
let data = await request.get('/api/hypergraph/get_hypermap_by_id?id=' + params.id)
return data
}
//折线图
export const getChart = async () => {
let {
data
} = await request.get('/api/analysis/get_chart')
return data
}
//矩阵图
export const getMatrix = async () => {
let {
data
} = await request.get('/api/analysis/get_matrix')
return data
}
//时序图
export const getEvents = async () => {
let data = await request.get('/api/analysis/get_events')
return data
}
//获取折线统计的编辑数据
export const getChartEditTable = async (params) => {
let data = request.get('/api/analysis/get_chart_edit_table?hypergraph_id=' + params.id)
return data
}
//保存折线统计编辑
export const saveChartTable = async (params) => {
let data = await request({
method: "post",
headers: {
'Content-Type': 'application/json'
},
url: "/api/analysis/save_chart",
data: params
})
return data
}
//获取矩阵编辑数据
export const getMatrixEditTable = async (params) => {
let data = await request.get('/api/analysis/get_matrix_edit_table')
return data
}
//保存矩阵数据
export const saveMatrixTable = async (params) => {
let data = await request({
method: "post",
headers: {
'Content-Type': 'application/json'
},
url: "/api/analysis/save_matrix",
data: params
})
return data
}
//获取事件编辑数据
export const getEventsEditTable = async (params) => {
let data = await request.get('/api/analysis/get_events_edit_table')
return data
}
//保存事件数据
export const saveEventsTable = async (params) => {
let data = await request({
method: "post",
headers: {
'Content-Type': 'application/json'
},
url: "/api/analysis/save_events",
data: params
})
return data
}
/**
* 上传文件,后端解析Excel文件
* @param file 文件,表单数据
* @returns
*/
export const uploadFileService = (file) => {
// return request.post("", file, {
// // 上传文件,需设置 headers 信息,将"Content-Type"设置为"multipart/form-data"
// headers: {
// "Content-Type": "multipart/form-data"
// }
// });
};
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论