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; hourItem=hoverNode;
}else { }else {
if (hourItem!=null){ if (hourItem!=null){
try {
hourItem.setState("hover", false) hourItem.setState("hover", false)
}catch (e){
}
} }
} }
}, },
onNodeOut(event) { onNodeOut(event) {
console.log(hourItem)
const name = event.shape.get("name"); const name = event.shape.get("name");
let hoverNode = event.item; let hoverNode = event.item;
if (name && name.startsWith("marker")) { if (name && name.startsWith("marker")) {
hoverNode.setState("hover", false); hoverNode.setState("hover", false);
} }
if (hourItem!=null){ if (hourItem!=null&&hourItem.destroyed){
try {
hourItem.setState("hover", false) hourItem.setState("hover", false)
}catch (e){
}
} }
hoverNode.setState("hover", false); hoverNode.setState("hover", false);
}, },
onNodeLeave(event) { onNodeLeave(event) {
if (hourItem!=null){ if (hourItem!=null){
try {
hourItem.setState("hover", false) 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() this.randomChange()
}, },
doSaveData(graphData) { doSaveData(graphData) {
console.log(JSON.stringify(graphData))
let data = { let data = {
id : this.topId, id : this.topId,
topJson:JSON.stringify(graphData) topJson:JSON.stringify(graphData)

View File

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