|
@@ -367,14 +367,13 @@ const { mapData, zTreeData, mapData3, zTreeData3 } = require('./data.js');
|
|
require("../css/selfKnowledgeGraph.less")
|
|
require("../css/selfKnowledgeGraph.less")
|
|
require("./../css/common.less");
|
|
require("./../css/common.less");
|
|
const { drawGraph, updateTree, getGraph, getTree, getNode, getTab, renderTab, setTabBottomHei, selectedZTreeNode,
|
|
const { drawGraph, updateTree, getGraph, getTree, getNode, getTab, renderTab, setTabBottomHei, selectedZTreeNode,
|
|
- setSelectName, hideHideTab, hideSlide, reDrawGraph } = require('./selfgraphMap.js');
|
|
|
|
|
|
+ setSelectName, hideHideTab, hideSlide, reDrawGraph } = require('./selfgraphMap.js');
|
|
// require("element-ui/lib/theme-chalk/index.css")
|
|
// require("element-ui/lib/theme-chalk/index.css")
|
|
const { post, get, api, getUrlArgObject } = require('./api.js');
|
|
const { post, get, api, getUrlArgObject } = require('./api.js');
|
|
const $ = require('jquery')
|
|
const $ = require('jquery')
|
|
const Vue = require("vue/dist/vue.esm.js").default;
|
|
const Vue = require("vue/dist/vue.esm.js").default;
|
|
-// const ElementUI = require("../public/elementUI/index.js");
|
|
|
|
|
|
+const ElementUI = require("../public/elementUI/2.7.2/index.js");
|
|
|
|
|
|
-const ElementUI = require("element-ui/lib/index.js");
|
|
|
|
// import UmyUi from 'umy-ui'
|
|
// import UmyUi from 'umy-ui'
|
|
// Vue.use(UmyUi);
|
|
// Vue.use(UmyUi);
|
|
/**右侧侧边栏折叠*/
|
|
/**右侧侧边栏折叠*/
|
|
@@ -392,19 +391,19 @@ window.knowledgeMapData = {}//当前右键节点数据
|
|
window.graphMapUpdatedData = null //实时更新的关系图数据
|
|
window.graphMapUpdatedData = null //实时更新的关系图数据
|
|
window.graphMap = null //当前关系图实例对象
|
|
window.graphMap = null //当前关系图实例对象
|
|
window.knowledgeMapSetting = {
|
|
window.knowledgeMapSetting = {
|
|
- self: self,
|
|
|
|
- operation: "view", //操作类型,修改
|
|
|
|
- draggable: true, //是否能拖拽节点
|
|
|
|
- zTree: !noTree,//是否有zTree
|
|
|
|
- expandPropertyId: [],//存储展开属性的nodeId
|
|
|
|
- expandRelationshipsId: [],//存储展开关系的nodeId
|
|
|
|
- currentNodeId: -1,//存储右侧显示的节点的nodeId
|
|
|
|
- legends: [],//图例
|
|
|
|
- selected: {},//选中的数据
|
|
|
|
- showLegend: true, //是否显示图例
|
|
|
|
- showLegendNum: 0,//展示图例的数量
|
|
|
|
- showLegendAll: false,//是否展示全部图例
|
|
|
|
- records: [],//历史记录
|
|
|
|
|
|
+ self: self,
|
|
|
|
+ operation: "view", //操作类型,修改
|
|
|
|
+ draggable: true, //是否能拖拽节点
|
|
|
|
+ zTree: !noTree,//是否有zTree
|
|
|
|
+ expandPropertyId: [],//存储展开属性的nodeId
|
|
|
|
+ expandRelationshipsId: [],//存储展开关系的nodeId
|
|
|
|
+ currentNodeId: -1,//存储右侧显示的节点的nodeId
|
|
|
|
+ legends: [],//图例
|
|
|
|
+ selected: {},//选中的数据
|
|
|
|
+ showLegend: true, //是否显示图例
|
|
|
|
+ showLegendNum: 0,//展示图例的数量
|
|
|
|
+ showLegendAll: false,//是否展示全部图例
|
|
|
|
+ records: [],//历史记录
|
|
}
|
|
}
|
|
|
|
|
|
Vue.use(ElementUI)
|
|
Vue.use(ElementUI)
|
|
@@ -443,10 +442,10 @@ const vm = new Vue({
|
|
this.isShowKG = true
|
|
this.isShowKG = true
|
|
this.initGraph(id)
|
|
this.initGraph(id)
|
|
},
|
|
},
|
|
- initGraph(id){
|
|
|
|
|
|
+ initGraph(id) {
|
|
let user_id = localStorage.getItem("userId") ? JSON.parse(localStorage.getItem("userId")) : 1
|
|
let user_id = localStorage.getItem("userId") ? JSON.parse(localStorage.getItem("userId")) : 1
|
|
- getGraph('艾滋病','疾病',id)
|
|
|
|
- getTree(user_id, id,'艾滋病')
|
|
|
|
|
|
+ getGraph('艾滋病', '疾病', id)
|
|
|
|
+ getTree(user_id, id, '艾滋病')
|
|
|
|
|
|
},
|
|
},
|
|
getUserGraphs: function () {
|
|
getUserGraphs: function () {
|