top图字段修改完成

This commit is contained in:
clay 2021-07-24 23:55:43 +08:00
parent 97814f5764
commit 42f37a4137
4 changed files with 213 additions and 75 deletions

View File

@ -41,24 +41,34 @@ export default {
hourItem=hoverNode;
}else {
if (hourItem!=null){
hourItem.setState("hover", false)
try {
hourItem.setState("hover", false)
}catch (e){
}
}
}
},
onNodeOut(event) {
console.log(hourItem)
const name = event.shape.get("name");
let hoverNode = event.item;
if (name && name.startsWith("marker")) {
hoverNode.setState("hover", false);
}
if (hourItem!=null){
hourItem.setState("hover", false)
if (hourItem!=null&&hourItem.destroyed){
try {
hourItem.setState("hover", false)
}catch (e){
}
}
hoverNode.setState("hover", false);
},
onNodeLeave(event) {
if (hourItem!=null){
hourItem.setState("hover", false)
try {
hourItem.setState("hover", false)
}catch (e){
}
}
}
}

File diff suppressed because one or more lines are too long

View File

@ -90,6 +90,7 @@ export default {
this.randomChange()
},
doSaveData(graphData) {
console.log(JSON.stringify(graphData))
let data = {
id : this.topId,
topJson:JSON.stringify(graphData)

View File

@ -10,9 +10,11 @@ spring:
# username: hcybase
# password: hcybase@2020
# url: jdbc:mysql://13.75.92.40:3306/gen?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: gen
# password: zcsbKxPseM8LhFdT
url: jdbc:mysql://127.0.0.1:3306/gen?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: gen
password: zcsbKxPseM8LhFdT
username: root
password: 926425
# 从库数据源
slave:
# 从数据源开关/默认关闭